diff --git a/ams/dashboard/src/main/resources/static/assets/404-6Zzsn426.css b/ams/dashboard/src/main/resources/static/assets/404-KpevdraZ.css similarity index 81% rename from ams/dashboard/src/main/resources/static/assets/404-6Zzsn426.css rename to ams/dashboard/src/main/resources/static/assets/404-KpevdraZ.css index dd37aa40d2..a240710024 100644 --- a/ams/dashboard/src/main/resources/static/assets/404-6Zzsn426.css +++ b/ams/dashboard/src/main/resources/static/assets/404-KpevdraZ.css @@ -17,4 +17,4 @@ * limitations under the License. */ -.container[data-v-6baaab62]{padding-top:100px}.container .title[data-v-6baaab62]{font-size:20px;font-weight:700}.container .button[data-v-6baaab62]{background:#1890ff;border-radius:3px;color:#fff} +.container[data-v-5c997eea]{padding-top:100px}.container .title[data-v-5c997eea]{font-size:20px;font-weight:700}.container .button[data-v-5c997eea]{background:#1890ff;border-radius:3px;color:#fff} diff --git a/ams/dashboard/src/main/resources/static/assets/404-Cfg0Wzoe.js b/ams/dashboard/src/main/resources/static/assets/404-SAO48nPd.js similarity index 56% rename from ams/dashboard/src/main/resources/static/assets/404-Cfg0Wzoe.js rename to ams/dashboard/src/main/resources/static/assets/404-SAO48nPd.js index 14ed3f1c26..19bd82d5d0 100644 --- a/ams/dashboard/src/main/resources/static/assets/404-Cfg0Wzoe.js +++ b/ams/dashboard/src/main/resources/static/assets/404-SAO48nPd.js @@ -17,4 +17,4 @@ * limitations under the License. */ -import{v as c,x as r,r as _,o as p,e as d,y as a,u as e,h as o,a5 as i,z as l,a1 as u,p as m,a as f}from"./index-DlWIyNCI.js";/* empty css */const h=c({name:"Page404"}),x=t=>(m("data-v-6baaab62"),t=t(),f(),t),b={class:"g-flex-center"},g={class:"g-flex-col container"},v=x(()=>a("p",{class:"title"},"404 - Not Found",-1));function k(t,$,B,I,N,S){const s=u,n=_("router-link");return p(),d("div",b,[a("div",g,[v,e(n,{to:"/",style:{"text-align":"center"}},{default:o(()=>[e(s,{class:"button g-mt-32"},{default:o(()=>[i(l(t.$t("backHome")),1)]),_:1})]),_:1})])])}const V=r(h,[["render",k],["__scopeId","data-v-6baaab62"]]);export{V as default}; +import{v as n,x as r,r as _,o as p,e as d,z as a,u as t,h as o,a5 as i,y as l,a1 as u,p as m,a as f}from"./index-bS3EFDLG.js";/* empty css */const h=n({name:"Page404"}),x=e=>(m("data-v-5c997eea"),e=e(),f(),e),g={class:"g-flex-center"},v={class:"g-flex-col container"},k=x(()=>a("p",{class:"title"},"404 - Not Found",-1));function $(e,B,I,N,S,b){const s=u,c=_("router-link");return p(),d("div",g,[a("div",v,[k,t(c,{to:"/",style:{"text-align":"center"}},{default:o(()=>[t(s,{class:"button g-mt-32"},{default:o(()=>[i(l(e.$t("backHome")),1)]),_:1})]),_:1})])])}const V=r(h,[["render",$],["__scopeId","data-v-5c997eea"]]);export{V as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/Home-BVx4TYHz.css b/ams/dashboard/src/main/resources/static/assets/Home-lvRUJbNS.css similarity index 52% rename from ams/dashboard/src/main/resources/static/assets/Home-BVx4TYHz.css rename to ams/dashboard/src/main/resources/static/assets/Home-lvRUJbNS.css index 1bb8748720..a20a3affa3 100644 --- a/ams/dashboard/src/main/resources/static/assets/Home-BVx4TYHz.css +++ b/ams/dashboard/src/main/resources/static/assets/Home-lvRUJbNS.css @@ -17,4 +17,4 @@ * limitations under the License. */ -.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.scroller[data-v-ddc6c699]{height:calc(100% - 80px);padding:4px 0 0 4px;margin-top:4px;box-sizing:border-box}.scroller[data-v-ddc6c699] .vue-recycle-scroller__item-view{padding-right:4px}.desc[data-v-ddc6c699]{display:flex;justify-content:flex-start;align-items:center;padding:10px 12px;height:40px;color:#fffc;cursor:pointer}.desc.active[data-v-ddc6c699],.desc[data-v-ddc6c699]:hover{background-color:#2b354a;color:#fff}.desc .name[data-v-ddc6c699]{max-width:200px;margin-top:-2px}.desc .table-icon[data-v-ddc6c699]{font-size:14px}.tables-menu[data-v-6411edc2]{box-sizing:border-box;height:100%;width:512px;background-color:#202a40;color:#fff;box-shadow:#00152914 2px 0 6px}.tables-menu .tables-wrap[data-v-6411edc2]{height:calc(100% - 40px)}.tables-menu .filter-wrap[data-v-6411edc2]{padding:4px 4px 0}.tables-menu .filter-wrap .input-clear-icon[data-v-6411edc2]{font-size:12px}.tables-menu[data-v-6411edc2] .ant-input-group-addon{display:none}.tables-menu .database-list[data-v-6411edc2],.tables-menu .table-list[data-v-6411edc2]{flex:1;padding-top:8px}.tables-menu .table-list[data-v-6411edc2],.tables-menu .database-list .list-wrap[data-v-6411edc2]{border-right:1px solid rgba(255,255,255,.12)}.tables-menu .list-wrap[data-v-6411edc2]{height:calc(100% - 12px);position:relative}.tables-menu .list-wrap .u-loading[data-v-6411edc2]{background:transparent;justify-content:flex-start;padding-top:200px}.tables-menu .select-catalog[data-v-6411edc2],.tables-menu .add[data-v-6411edc2]{align-items:center;height:40px;padding:0 12px}.tables-menu .database-list .select-catalog[data-v-6411edc2]{padding-right:4px}.tables-menu .add[data-v-6411edc2]{margin:4px 4px 0;background-color:#1a2232}.tables-menu[data-v-6411edc2] .select-catalog .ant-select{width:240px;margin-left:12px}.tables-menu .icon[data-v-6411edc2]{cursor:pointer}.tables-menu .select-catalog[data-v-6411edc2]{padding-top:8px;border-right:1px solid rgba(255,255,255,.12)}.side-bar[data-v-de316f7d]{position:relative;height:100%;transition:width .3s;display:flex;flex-direction:column;flex-shrink:0}.side-bar[data-v-de316f7d] .ant-menu{height:100%;width:200px}.side-bar[data-v-de316f7d] .ant-menu.ant-menu-inline-collapsed{width:64px}.side-bar[data-v-de316f7d] .ant-menu.ant-menu-inline-collapsed .logo{padding-left:14px}.side-bar[data-v-de316f7d] .ant-menu.ant-menu-inline-collapsed .toggle-btn{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar[data-v-de316f7d] .ant-menu-item{margin:0;padding-left:22px!important}.side-bar[data-v-de316f7d] .ant-menu-item .ant-menu-title-content{width:100%;margin-left:12px}.side-bar[data-v-de316f7d] .ant-menu-item.active{background-color:#1890ff;color:#fff}.side-bar[data-v-de316f7d] .ant-menu-item.active-color{color:#fff;background-color:#202a40}.side-bar[data-v-de316f7d] .ant-menu-item:hover{color:#fff}.side-bar[data-v-de316f7d] .ant-menu-item.table-item-tab:hover{background-color:#202a40}.side-bar .logo[data-v-de316f7d]{overflow:hidden;background-color:#001529;cursor:pointer;padding:12px 20px}.side-bar .logo-img[data-v-de316f7d]{width:24px;height:24px}.side-bar .arctic-name[data-v-de316f7d]{width:66px;margin:4px 0 0 4px}.side-bar .toggle-btn[data-v-de316f7d]{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar .svg-icon[data-v-de316f7d]{font-size:16px}.tables-menu-wrap[data-v-de316f7d]{position:absolute;top:0;left:200px;right:0;bottom:0;z-index:1100}.tables-menu-wrap.collapsed-sub-menu[data-v-de316f7d]{left:64px}.custom-top-bar{height:48px;display:flex;flex:1;align-items:center;justify-content:flex-end;background:#fff;border-bottom:1px solid #e8e8e8;box-shadow:0 1px 2px #0015290d;padding:0 12px 0 0;font-size:12px}.custom-top-bar .question-icon{font-size:12px;margin-top:-2px}.topbar-tooltip .ant-tooltip-inner{font-size:12px}.logout-button{border-color:transparent}.logout-button:hover{border-color:unset}.layout[data-v-821410ed]{display:flex;width:100%;height:100%;min-width:1200px}.layout .right-content[data-v-821410ed]{display:flex;flex:1;flex-direction:column;transition:width .3s;overflow:auto}.layout .right-content .content[data-v-821410ed]{height:calc(100% - 48px);overflow:auto} +.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.scroller[data-v-3b4ebd20]{height:calc(100% - 80px);padding:4px 0 0 4px;margin-top:4px;box-sizing:border-box}.scroller[data-v-3b4ebd20] .vue-recycle-scroller__item-view{padding-right:4px}.desc[data-v-3b4ebd20]{display:flex;justify-content:flex-start;align-items:center;padding:10px 12px;height:40px;color:#fffc;cursor:pointer}.desc.active[data-v-3b4ebd20],.desc[data-v-3b4ebd20]:hover{background-color:#2b354a;color:#fff}.desc .name[data-v-3b4ebd20]{max-width:200px;margin-top:-2px}.desc .table-icon[data-v-3b4ebd20]{font-size:14px}.tables-menu[data-v-ba75b422]{box-sizing:border-box;height:100%;width:512px;background-color:#202a40;color:#fff;box-shadow:#00152914 2px 0 6px}.tables-menu .tables-wrap[data-v-ba75b422]{height:calc(100% - 40px)}.tables-menu .filter-wrap[data-v-ba75b422]{padding:4px 4px 0}.tables-menu .filter-wrap .input-clear-icon[data-v-ba75b422]{font-size:12px}.tables-menu[data-v-ba75b422] .ant-input-group-addon{display:none}.tables-menu .database-list[data-v-ba75b422],.tables-menu .table-list[data-v-ba75b422]{flex:1;padding-top:8px}.tables-menu .table-list[data-v-ba75b422],.tables-menu .database-list .list-wrap[data-v-ba75b422]{border-right:1px solid rgba(255,255,255,.12)}.tables-menu .list-wrap[data-v-ba75b422]{height:calc(100% - 12px);position:relative}.tables-menu .list-wrap .u-loading[data-v-ba75b422]{background:transparent;justify-content:flex-start;padding-top:200px}.tables-menu .select-catalog[data-v-ba75b422],.tables-menu .add[data-v-ba75b422]{align-items:center;height:40px;padding:0 12px}.tables-menu .database-list .select-catalog[data-v-ba75b422]{padding-right:4px}.tables-menu .add[data-v-ba75b422]{margin:4px 4px 0;background-color:#1a2232}.tables-menu[data-v-ba75b422] .select-catalog .ant-select{width:240px;margin-left:12px}.tables-menu .icon[data-v-ba75b422]{cursor:pointer}.tables-menu .select-catalog[data-v-ba75b422]{padding-top:8px;border-right:1px solid rgba(255,255,255,.12)}.side-bar[data-v-63765c58]{position:relative;height:100%;transition:width .3s;display:flex;flex-direction:column;flex-shrink:0}.side-bar[data-v-63765c58] .ant-menu{height:100%;width:200px}.side-bar[data-v-63765c58] .ant-menu.ant-menu-inline-collapsed{width:64px}.side-bar[data-v-63765c58] .ant-menu.ant-menu-inline-collapsed .logo{padding-left:14px}.side-bar[data-v-63765c58] .ant-menu.ant-menu-inline-collapsed .toggle-btn{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar[data-v-63765c58] .ant-menu-item{margin:0;padding-left:22px!important}.side-bar[data-v-63765c58] .ant-menu-item .ant-menu-title-content{width:100%;margin-left:12px}.side-bar[data-v-63765c58] .ant-menu-item.active{background-color:#1890ff;color:#fff}.side-bar[data-v-63765c58] .ant-menu-item.active-color{color:#fff;background-color:#202a40}.side-bar[data-v-63765c58] .ant-menu-item:hover{color:#fff}.side-bar[data-v-63765c58] .ant-menu-item.table-item-tab:hover{background-color:#202a40}.side-bar .logo[data-v-63765c58]{overflow:hidden;background-color:#001529;cursor:pointer;padding:12px 20px}.side-bar .logo-img[data-v-63765c58]{width:24px;height:24px}.side-bar .arctic-name[data-v-63765c58]{width:66px;margin:4px 0 0 4px}.side-bar .toggle-btn[data-v-63765c58]{position:absolute;right:-68px;top:8px;font-size:18px;padding:0 24px}.side-bar .svg-icon[data-v-63765c58]{font-size:16px}.tables-menu-wrap[data-v-63765c58]{position:absolute;top:0;left:200px;right:0;bottom:0;z-index:1100}.tables-menu-wrap.collapsed-sub-menu[data-v-63765c58]{left:64px}.custom-top-bar{height:48px;display:flex;flex:1;align-items:center;justify-content:flex-end;background:#fff;border-bottom:1px solid #e8e8e8;box-shadow:0 1px 2px #0015290d;padding:0 12px 0 0;font-size:12px}.custom-top-bar .question-icon{font-size:12px;margin-top:-2px}.topbar-tooltip .ant-tooltip-inner{font-size:12px}.logout-button{border-color:transparent}.logout-button:hover{border-color:unset}.layout[data-v-daec4a7b]{display:flex;width:100%;height:100%;min-width:1200px}.layout .right-content[data-v-daec4a7b]{display:flex;flex:1;flex-direction:column;transition:width .3s;overflow:auto}.layout .right-content .content[data-v-daec4a7b]{height:calc(100% - 48px);overflow:auto} diff --git a/ams/dashboard/src/main/resources/static/assets/Home-C66Dh-wI.js b/ams/dashboard/src/main/resources/static/assets/Home-uvv4mfKx.js similarity index 89% rename from ams/dashboard/src/main/resources/static/assets/Home-C66Dh-wI.js rename to ams/dashboard/src/main/resources/static/assets/Home-uvv4mfKx.js index 5f56093199..3f2b8a400e 100644 --- a/ams/dashboard/src/main/resources/static/assets/Home-C66Dh-wI.js +++ b/ams/dashboard/src/main/resources/static/assets/Home-uvv4mfKx.js @@ -1,2 +1,2 @@ -import{p as Se,a as we,n as Y,o as v,c as C,w as Re,m as He,s as Ue,r as T,b as je,d as $e,e as A,f as W,g as V,h as w,F as G,i as Le,j as ue,k as qe,t as We,l as Ke,q as F,u as p,v as Q,_ as Oe,x as j,y,z as E,A as Ie,B as ie,C as U,D as Ce,E as Te,G as Ze,I as Ye,H as Ge,M as ke,S as Je,J as Xe,K as ze,L as Me,N as se,O as xe,P as Ne,Q as de,R as fe,T as et,U as Ae,V as he,W as tt,X as nt,Y as it,Z as st,$ as ot,a0 as at,a1 as Pe,a2 as lt,a3 as rt,a4 as ct,a5 as pe,a6 as ut}from"./index-DlWIyNCI.js";/* empty css */import{Q as dt}from"./QuestionCircleOutlined-BsAdzrND.js";/* empty css *//* empty css */import{t as ft}from"./common.type-BewOZShK.js";/* empty css *//* empty css *//* empty css */import{u as Ee}from"./usePlaceholder-DDgQeLdU.js";import{g as ht,a as pt,b as mt}from"./table.service-Ca4OvdR2.js";function gt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let K;function x(){x.init||(x.init=!0,K=gt()!==-1)}var J={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){x(),Y(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",K&&this.$el.appendChild(e),e.data="about:blank",K||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!K&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const bt=Re();Se("data-v-b329ee4c");const vt={class:"resize-observer",tabindex:"-1"};we();const yt=bt((e,t,n,i,o,s)=>(v(),C("div",vt)));J.render=yt;J.__scopeId="data-v-b329ee4c";J.__file="src/components/ResizeObserver.vue";function Z(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(t){return typeof t}:Z=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},i,o,s,r=function(a){for(var c=arguments.length,b=new Array(c>1?c-1:0),_=1;_1){var c=l.find(function(_){return _.isIntersecting});c&&(a=c)}if(o.callback){var b=a.isIntersecting&&a.intersectionRatio>=o.threshold;if(b===o.oldResult)return;o.oldResult=b,o.callback(b,a)}},this.options.intersection),Y(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Be(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new Tt(e,i,n);e._vue_visibilityState=o}}function kt(e,t,n){var i=t.value,o=t.oldValue;if(!Ve(i,o)){var s=e._vue_visibilityState;if(!i){De(e);return}s?s.createObserver(i,n):Be(e,{value:i},n)}}function De(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var zt={beforeMount:Be,updated:kt,unmounted:De},Mt={itemsLimit:1e3},Nt=/(auto|scroll)/;function Fe(e,t){return e.parentNode===null?t:Fe(e.parentNode,t.concat([e]))}var X=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},At=function(t){return X(t,"overflow")+X(t,"overflow-y")+X(t,"overflow-x")},Pt=function(t){return Nt.test(At(t))};function be(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fe(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const s=He({id:Dt++,index:t,used:!0,key:i,type:o}),r=Ue({item:n,position:0,nr:s});return e.push(r),r},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,s=this.$_computedMinItemSize,r=this.typeField,l=this.simpleArray?null:this.keyField,a=this.items,c=a.length,b=this.sizes,_=this.$_views,O=this.$_unusedViews,d=this.pool,B=this.itemIndexByKey;let m,g,D,k,z;if(!c)m=g=k=z=D=0;else if(this.$_prerender)m=k=0,g=z=Math.min(this.prerender,a.length),D=null;else{const u=this.getScroll();if(t){let L=u.start-this.$_lastUpdateScrollPosition;if(L<0&&(L=-L),n===null&&Lu.start&&(q=M),M=~~((P+q)/2);while(M!==ce);for(M<0&&(M=0),m=M,D=b[c-1].accumulator,g=M;gc&&(g=c)),k=m;kc&&(g=c),k<0&&(k=0),z>c&&(z=c),D=Math.ceil(c/i)*n}}g-m>Mt.itemsLimit&&this.itemsLimitError(),this.totalSize=D;let f;const R=m<=this.$_endIndex&&g>=this.$_startIndex;if(R)for(let u=0,$=d.length;u<$;u++)f=d[u],f.nr.used&&(e&&(f.nr.index=B[f.item[l]]),(f.nr.index==null||f.nr.index=g)&&this.unuseView(f));const H=R?null:new Map;let N,h,I;for(let u=m;u=S.length)&&(f=this.addView(d,u,N,$,h),this.unuseView(f,!0),S=O.get(h)),f=S[I],H.set(h,I+1)),_.delete(f.nr.key),f.nr.used=!0,f.nr.index=u,f.nr.key=$,f.nr.type=h,_.set($,f),L=!0;else if(!f.nr.used&&(f.nr.used=!0,L=!0,S)){const P=S.indexOf(f);P!==-1&&S.splice(P,1)}f.item=N,L&&(u===a.length-1&&this.$emit("scroll-end"),u===0&&this.$emit("scroll-start")),n===null?(f.position=b[u-1].accumulator,f.offset=0):(f.position=Math.floor(u/i)*n,f.offset=u%i*o)}return this.$_startIndex=m,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",m,g,k,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:R}},getListenerTarget(){let e=be(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),s=n?o.height:o.width;let r=-(n?o.top:o.left),l=n?window.innerHeight:window.innerWidth;r<0&&(l+=r,r=0),r+l>s&&(l=s-r),i={start:r,end:r+l}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ne?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const s=be(this.$el),r=s.tagName==="HTML"?0:s[t.scroll],l=s.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=s,i=t.scroll,o=e+r+c}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Ft={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Qt={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Rt(e,t,n,i,o,s){const r=T("ResizeObserver"),l=je("observe-visibility");return $e((v(),A("div",{class:F(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>s.handleScroll&&s.handleScroll(...a))},[e.$slots.before?(v(),A("div",Ft,[W(e.$slots,"before")],512)):V("v-if",!0),(v(),C(ue(n.listTag),{ref:"wrapper",style:Ke({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:F(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:w(()=>[(v(!0),A(G,null,Le(o.pool,a=>(v(),C(ue(n.itemTag),qe({key:a.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===a.nr.key}]]},We(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=a.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:w(()=>[W(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),W(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(v(),A("div",Qt,[W(e.$slots,"after")],512)):V("v-if",!0),p(r,{onNotify:s.handleResize},null,8,["onNotify"])],34)),[[l,s.handleVisibilityChange]])}oe.render=Rt;oe.__file="src/components/RecycleScroller.vue";const Ht=Q({components:{RecycleScroller:oe},emits:["mouseEnter","handleClickTable"],setup(e,{emit:t}){const n=o=>{t("mouseEnter",o.label)},i=o=>{t("handleClickTable",o)};return{simpleImage:Oe.PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:ft,handleMouseEnter:n,handleClickTable:i}},props:{items:{type:Array,default:()=>[]},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}}),Ut=["onMouseenter","onClick"],jt=["title"];function qt(e,t,n,i,o,s){const r=Ie,l=T("RecycleScroller"),a=Oe;return v(),A(G,null,[e.items.length&&!e.loading?(v(),C(l,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:w(({item:c})=>[y("div",{class:F([{active:e.activeItem===c.label,"hive-table":c.type==="HIVE"},"desc"]),onMouseenter:b=>e.handleMouseEnter(c),onClick:b=>e.handleClickTable(c)},[e.iconName==="database"?(v(),C(r,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(v(),C(r,{key:1,"icon-class":e.tableTypeIconMap[c.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),y("p",{title:c.label,class:"name g-text-nowrap"},E(c.label),9,jt)],42,Ut)]),_:1},8,["items"])):V("",!0),!e.items.length&&!e.loading?(v(),C(a,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"])):V("",!0)],64)}const Qe=j(Ht,[["render",qt],["__scopeId","data-v-ddc6c699"]]);var Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const Kt=Wt;function ve(e){for(var t=1;t[]}},emits:["cancel"],setup(e,{emit:t}){const n=U(Ee()),i=Ce(),o=U({catalog:void 0,dbname:""});return{formRef:i,formState:o,placeholder:n,handleOk:()=>{i.value.validateFields().then(()=>{i.value.resetFields(),t("cancel")}).catch(l=>{console.log("Validate Failed:",l)})},handleCancel:()=>{i.value.resetFields(),t("cancel")}}}});function an(e,t,n,i,o,s){const r=Te,l=Ze,a=Ye,c=Ge,b=ke;return v(),C(b,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:w(()=>[p(c,{ref:"formRef",model:e.formState,class:"label-120"},{default:w(()=>[p(l,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:`${e.placeholder.selectClPh}`}]},{default:w(()=>[p(r,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=_=>e.formState.catalog=_),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),p(l,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:`${e.placeholder.inputDBPh}`}]},{default:w(()=>[p(a,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=_=>e.formState.dbname=_),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["visible","title","onOk","onCancel"])}const ln=j(on,[["render",an]]),rn=Q({name:"TablesMenu",components:{SearchOutlined:Je,CloseCircleOutlined:Xe,CreateDBModal:ln,virtualRecycleScroller:Qe},emits:["goCreatePage"],setup(e,{emit:t}){const n=ze(),i=Me(),o=se(),s=U({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),r="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(r)||"{}"),a=U(Ee()),c=h=>{h==="table"?_():O()},b=h=>{h==="table"?(s.tableSearchInput="",_()):(s.DBSearchInput="",O())},_=de(()=>{N()}),O=de(()=>{H(!0)}),d=h=>{s.database!==h.id&&(s.database=h.id,s.tableName="",N())},B=h=>h.parentNode,m=()=>{},g=h=>{s.curCatalog=h,s.databaseList.length=0,s.tableList.length=0,H()},D=()=>{s.showCreateDBModal=!0},k=()=>{s.showCreateDBModal=!1},z=()=>{t("goCreatePage")},f=h=>{s.tableName=h.label,s.type=h.type,localStorage.setItem(r,JSON.stringify({catalog:s.curCatalog,database:s.database,tableName:h.label})),o.updateTablesMenu(!1);const u={path:h.type==="HIVE"?"/hive-tables":"/tables",query:{catalog:s.curCatalog,db:s.database,table:s.tableName,type:s.type}};if(i.path.indexOf("tables")>-1){n.replace(u);return}n.push(u)},R=()=>{s.catalogLoading=!0,ht().then(h=>{var I;if(h){if(s.catalogOptions=(h||[]).map(u=>({value:u.catalogName,label:u.catalogName})),s.catalogOptions.length){const u=s.catalogOptions.findIndex(S=>S.value===l.catalog),$=i.query;s.curCatalog=u>-1?l.catalog:((I=$==null?void 0:$.catalog)==null?void 0:I.toString())||s.catalogOptions[0].value}H()}}).finally(()=>{s.catalogLoading=!1})},H=(h=!1)=>{s.curCatalog&&(s.loading=!0,pt({catalog:s.curCatalog,keywords:s.DBSearchInput}).then(I=>{var u,$,S,L;if(s.databaseList=(I||[]).map(P=>({id:P,label:P})),s.databaseList.length&&!h){const P=s.databaseList.findIndex(q=>q.id===l.database);s.database=P>-1?l.database:s.curCatalog===(($=(u=i.query)==null?void 0:u.catalog)==null?void 0:$.toString())?((L=(S=i.query)==null?void 0:S.db)==null?void 0:L.toString())||s.databaseList[0].id||"":s.databaseList[0].id||"",N()}}).finally(()=>{s.loading=!1}))},N=()=>{!s.curCatalog||!s.database||(s.tableLoading=!0,s.tableList.length=0,mt({catalog:s.curCatalog,db:s.database,keywords:s.tableSearchInput}).then(h=>{s.tableList=(h||[]).map(I=>({id:I.name,label:I.name,type:I.type}))}).finally(()=>{s.tableLoading=!1}))};return xe(()=>{const{database:h,tableName:I}=l;s.database=h,s.tableName=I,R()}),{...Ne(s),placeholder:a,handleClickDb:d,getPopupContainer:B,clickDatabase:m,catalogChange:g,addDatabase:D,cancel:k,createTable:z,handleClickTable:f,handleSearch:c,clearSearch:b}}}),cn={class:"tables-menu"},un={class:"select-catalog g-flex-ac"},dn={class:"label"},fn={class:"tables-wrap g-flex"},hn={class:"database-list"},pn={class:"list-wrap"},mn={class:"add g-flex-jsb"},gn={class:"label"},bn={class:"filter-wrap"},vn={class:"table-list"},yn={class:"list-wrap"},_n={class:"add g-flex-jsb"},Sn={class:"label"},wn={class:"filter-wrap"};function $n(e,t,n,i,o,s){const r=Te,l=T("SearchOutlined"),a=T("CloseCircleOutlined"),c=et,b=T("u-loading"),_=Qe,O=T("createDB-modal");return v(),A(G,null,[y("div",cn,[y("div",un,[y("span",dn,E(e.$t("catalog")),1),p(r,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=d=>e.curCatalog=d),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),y("div",fn,[y("div",hn,[y("div",pn,[y("div",mn,[y("span",gn,E(e.$t("database",2)),1)]),y("div",bn,[p(c,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=d=>e.DBSearchInput=d),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=d=>e.handleSearch("db",d)),class:"theme-dark"},fe({prefix:w(()=>[p(l)]),_:2},[e.DBSearchInput?{name:"suffix",fn:w(()=>[p(a,{onClick:t[1]||(t[1]=d=>e.clearSearch("db")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),e.loading?(v(),C(b,{key:0})):V("",!0),p(_,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),y("div",vn,[y("div",yn,[y("div",_n,[y("span",Sn,E(e.$t("table",2)),1)]),y("div",wn,[p(c,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=d=>e.tableSearchInput=d),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=d=>e.handleSearch("table",d)),class:"theme-dark"},fe({prefix:w(()=>[p(l)]),_:2},[e.tableSearchInput?{name:"suffix",fn:w(()=>[p(a,{onClick:t[4]||(t[4]=d=>e.clearSearch("table")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(v(),C(b,{key:0})):V("",!0),p(_,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),p(O,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}const Ln=j(rn,[["render",$n],["__scopeId","data-v-6411edc2"]]),On=Q({name:"Sidebar",components:{MenuFoldOutlined:xt,MenuUnfoldOutlined:sn,TableMenu:Ln},setup(){const{t:e}=Ae(),t=ze(),n=Me(),i=se(),o=U({collapsed:!1,selectedKeys:[]}),s=he(()=>!!tt("token")),r=Ce(0),l=he(()=>{const m=[{key:"tables",title:e("tables"),icon:"TableOutlined"}],g=[{key:"tables",title:e("tables"),icon:"tables"},{key:"catalogs",title:e("catalogs"),icon:"catalogs"},{key:"optimizing",title:e("Optimizing"),icon:"optimizers"},{key:"terminal",title:e("terminal"),icon:"terminal"},{key:"settings",title:e("settings"),icon:"settings"}];return s.value?m:g}),a=()=>{const m=n.path.split("/");if(n.path){const g=[m[1]];o.selectedKeys=g.includes("hive-tables")?["tables"]:g}};nt(()=>{a()});const c=()=>{o.collapsed=!o.collapsed,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},300)},b=m=>{if(m.key==="tables"){Y(()=>{a()});return}t.replace({path:`/${m.key}`}),Y(()=>{a()})},_=m=>{d(m.key==="tables")},O=()=>{d(!1),t.push({path:"/tables/create"})},d=(m=!1)=>{if(s.value)return;r.value&&clearTimeout(r.value);const g=m?0:200;r.value=setTimeout(()=>{i.updateTablesMenu(m)},g)},B=()=>{t.push({path:"/introduce"})};return{...Ne(o),hasToken:s,menuList:l,toggleCollapsed:c,navClick:b,mouseenter:_,store:i,toggleTablesMenu:d,goCreatePage:O,viewIntroduce:B}}}),In="data:image/svg+xml,%3c!--%20Licensed%20to%20the%20Apache%20Software%20Foundation%20(ASF)%20under%20one%20or%20more%20contributor%20license%20agreements.%20See%20the%20NOTICE%20file%20distributed%20with%20this%20work%20for%20additional%20information%20regarding%20copyright%20ownership.%20The%20ASF%20licenses%20this%20file%20to%20you%20under%20the%20Apache%20License,%20Version%202.0%20(the%20'License');%20you%20may%20not%20use%20this%20file%20except%20in%20compliance%20with%20the%20License.%20You%20may%20obtain%20a%20copy%20of%20the%20License%20at%20http://www.apache.org/licenses/LICENSE-2.0%20Unless%20required%20by%20applicable%20law%20or%20agreed%20to%20in%20writing,%20software%20distributed%20under%20the%20License%20is%20distributed%20on%20an%20'AS%20IS'%20BASIS,%20WITHOUT%20WARRANTIES%20OR%20CONDITIONS%20OF%20ANY%20KIND,%20either%20express%20or%20implied.%20See%20the%20License%20for%20the%20specific%20language%20governing%20permissions%20and%20limitations%20under%20the%20License.%20/--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='30.789306640625'%20height='28.4443359375'%20viewBox='0%200%2030.789306640625%2028.4443359375'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M9.222345351562499,16.597559078125Q10.5910653515625,16.055694078125,12.0159353515625,15.808411078125Q12.0654353515625,15.799832078125,12.1149353515625,15.791610078125Q13.2631353515625,15.600830078125,14.4478353515625,15.600830078125Q17.155635351562502,15.600830078125,19.6733353515625,16.597559078125Q19.8444353515625,16.665280078125,20.0132353515625,16.737220078125Q20.0859353515625,16.768170078125,20.1582353515625,16.799900078125L20.1592353515625,16.798270078125Q20.3138353515625,16.865760078125,20.4717353515625,16.928270078125Q22.1502353515625,17.592760078125,23.9554353515625,17.592760078125Q25.2066353515625,17.592760078125,26.3970353515625,17.273520078125L28.5421353515625,21.563830078125Q27.4813353515625,21.927340078125,26.3873353515625,22.117200078125002Q25.1911353515625,22.324780078125002,23.9554353515625,22.324780078125002Q21.2476353515625,22.324780078125002,18.7299353515625,21.328050078125Q18.4256353515625,21.207570078125002,18.1282353515625,21.073770078125L18.1267353515625,21.077080078125Q18.0298353515625,21.036250078125,17.9315353515625,20.997330078125Q16.253035351562502,20.332850078125,14.4478353515625,20.332850078125Q12.6426353515625,20.332850078125,10.9641753515625,20.997330078125C9.1417253515625,21.718820078125,8.379625351562499,22.583330078125,7.8580153515625,23.148720078125Q7.3364053515625,23.714120078125,5.9892453515625,26.398830078125002L1.4537746732625,24.079880078125Q1.9242563515625,23.009960078125,2.5658053515625,22.028670078125Q3.3702353515625,20.798240078124998,4.4097153515625,19.758760078125Q5.4491953515625,18.719280078125,6.6796153515625,17.914850078125Q7.8842153515625,17.127320078125,9.222345351562499,16.597559078125Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M1.89522,28.4444L4.25308,28.4444C4.70117,28.4444,5.1108,28.1913,5.31119,27.7905L14.6449,9.12308C14.8226,8.89236,15.0988,8.75423,15.3947,8.75423C15.6905,8.75423,15.9667,8.89236,16.1444,9.12308L17.9575,12.7493C19.342,14.544,21.5139,15.7,23.9558,15.7C24.4868,15.7,25.005,15.6453,25.5052,15.5413L18.7662,2.06344L18.7659,2.06344C18.1189,0.797012,16.8168,0,15.3947,0C13.9725,0,12.6704,0.797012,12.0235,2.06344L12.0231,2.06344L0.20224,25.7051C-0.427025,26.9637,0.488139,28.4444,1.89522,28.4444ZM24.5061,24.081Q24.0551,24.081,23.6095,24.0534L25.805,28.4444L28.894,28.4444C30.3011,28.4444,31.2163,26.9637,30.587,25.7051L29.3492,23.2295Q27.0088,24.081,24.5061,24.081Z'%20fill-rule='evenodd'%20fill='%232A72FF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cn="data:image/svg+xml,%3c!--%20Licensed%20to%20the%20Apache%20Software%20Foundation%20(ASF)%20under%20one%20or%20more%20contributor%20license%20agreements.%20See%20the%20NOTICE%20file%20distributed%20with%20this%20work%20for%20additional%20information%20regarding%20copyright%20ownership.%20The%20ASF%20licenses%20this%20file%20to%20you%20under%20the%20Apache%20License,%20Version%202.0%20(the%20'License');%20you%20may%20not%20use%20this%20file%20except%20in%20compliance%20with%20the%20License.%20You%20may%20obtain%20a%20copy%20of%20the%20License%20at%20http://www.apache.org/licenses/LICENSE-2.0%20Unless%20required%20by%20applicable%20law%20or%20agreed%20to%20in%20writing,%20software%20distributed%20under%20the%20License%20is%20distributed%20on%20an%20'AS%20IS'%20BASIS,%20WITHOUT%20WARRANTIES%20OR%20CONDITIONS%20OF%20ANY%20KIND,%20either%20express%20or%20implied.%20See%20the%20License%20for%20the%20specific%20language%20governing%20permissions%20and%20limitations%20under%20the%20License.%20/--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='224.99998474121094'%20height='50'%20viewBox='0%200%20224.99998474121094%2050'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M21.2505,0L29.0705,31.3649L43.9035,0L58.7942,0L53.1262,50L40.349,50L43.9035,23.6673L32.6058,46.6452L21.2505,46.6452L15.5632,24.5634L12.758,50L0,50L5.66807,3.35478L2.80521,0L21.2505,0ZM109.961,0Q110.979,0,111.863,0.436581Q112.766,0.873162,113.381,1.67739Q114.015,2.45864,114.226,3.5386Q114.457,4.59559,114.168,5.92831L109.211,50L69.5155,50Q68.4972,50,67.5942,49.5634Q66.7103,49.1039,66.0763,48.3226Q65.4614,47.5184,65.2309,46.4154Q65.0195,45.3125,65.3077,44.0717L70.2649,0L109.961,0ZM83.0228,8.50184L79.4875,41.4982L95.7808,41.4982L99.9886,8.50184L83.0228,8.50184ZM169.177,0L166.372,24.954Q166.372,26.1719,165.892,27.2978Q165.412,28.4007,164.605,29.205Q163.798,29.9862,162.799,30.4458Q161.799,30.8823,160.685,30.8823L151.462,30.8823L166.372,50L150.809,50L136.629,30.8823L134.497,50L120.336,50L125.274,3.35478L123.141,0L169.177,0ZM138.781,8.50184L137.302,22.3805L152.942,22.3805L154.344,8.50184L138.781,8.50184ZM220.632,0Q221.65,0,222.534,0.436581Q223.437,0.873162,224.052,1.67739Q224.686,2.45864,224.898,3.5386Q225.128,4.59559,224.84,5.92831L219.883,50L180.187,50Q179.169,50,178.266,49.5634Q177.382,49.1039,176.748,48.3226Q176.133,47.5184,175.902,46.4154Q175.691,45.3125,175.979,44.0717L180.936,0L220.632,0ZM193.694,8.50184L190.159,41.4982L206.452,41.4982L210.66,8.50184L193.694,8.50184Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Tn=e=>(Se("data-v-de316f7d"),e=e(),we(),e),kn=Tn(()=>y("img",{src:In,class:"logo-img",alt:""},null,-1)),zn={src:Cn,class:"arctic-name",alt:""};function Mn(e,t,n,i,o,s){const r=Ie,l=ot,a=at,c=T("MenuUnfoldOutlined"),b=T("MenuFoldOutlined"),_=Pe,O=T("TableMenu");return v(),A("div",{class:F([{"side-bar-collapsed":e.collapsed},"side-bar"])},[y("div",{class:F([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=d=>e.toggleTablesMenu(!1)),onClick:t[1]||(t[1]=(...d)=>e.viewIntroduce&&e.viewIntroduce(...d))},[kn,$e(y("img",zn,null,512),[[it,!e.collapsed]])],34),p(a,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=d=>e.selectedKeys=d),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:w(()=>[(v(!0),A(G,null,Le(e.menuList,d=>(v(),C(l,{key:d.key,onClick:B=>e.navClick(d),onMouseenter:B=>e.mouseenter(d),class:F({"active-color":e.store.isShowTablesMenu&&d.key==="tables","table-item-tab":d.key==="tables"})},{icon:w(()=>[p(r,{iconClass:d.icon,class:"svg-icon"},null,8,["iconClass"])]),default:w(()=>[y("span",null,E(e.$t(d.title)),1)]),_:2},1032,["onClick","onMouseenter","class"]))),128))]),_:1},8,["selectedKeys","inline-collapsed"]),p(_,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:w(()=>[e.collapsed?(v(),C(c,{key:0})):(v(),C(b,{key:1}))]),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(v(),A("div",{key:0,onClick:t[3]||(t[3]=st(d=>e.toggleTablesMenu(!1),["self"])),onMouseleave:t[4]||(t[4]=d=>e.toggleTablesMenu(!1)),onMouseenter:t[5]||(t[5]=d=>e.toggleTablesMenu(!0)),class:F([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[p(O,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):V("",!0)],2)}const Nn=j(On,[["render",Mn],["__scopeId","data-v-de316f7d"]]);function An(){return lt.get("ams/v1/versionInfo")}const Pn=Q({name:"Topbar",components:{QuestionCircleOutlined:dt,LogoutOutlined:Yt},setup(){const e=U({version:"",commitTime:""}),{t}=Ae(),n=async()=>{const s=await An();s&&(e.version=s.version,e.commitTime=s.commitTime)},i=async()=>{ke.confirm({title:t("logoutModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{const s=await ct.logout();console.log(s.code)}catch{}finally{se().updateUserInfo({userName:""}),window.location.href="/login"}}})},o=()=>{window.open("https://amoro.netease.com/docs/latest/")};return rt(()=>{n()}),{verInfo:e,goDocs:o,handleLogout:i}}}),En={class:"custom-top-bar"},Vn={class:"version-info"},Bn={class:"g-mr-8"},Dn={class:"g-mr-8"};function Fn(e,t,n,i,o,s){const r=T("question-circle-outlined"),l=ut,a=T("LogoutOutlined"),c=Pe;return v(),A("div",En,[y("div",Vn,[y("span",Bn,E(`${e.$t("version")}: ${e.verInfo.version}`),1),y("span",Dn,E(`${e.$t("commitTime")}: ${e.verInfo.commitTime}`),1)]),p(l,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:w(()=>[pe(E(e.$t("userGuide")),1)]),default:w(()=>[p(r,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]),_:1}),p(l,null,{title:w(()=>[pe(E(e.$t("logout")),1)]),default:w(()=>[p(c,{class:"logout-button",onClick:e.handleLogout},{default:w(()=>[p(a,{style:{"font-size":"1.2em"}})]),_:1},8,["onClick"])]),_:1})])}const Qn=j(Pn,[["render",Fn]]),Rn=Q({name:"Layout",components:{SideBar:Nn,TopBar:Qn},props:{menus:{type:Array,default:()=>[]},showTopBar:{type:Boolean,default:!0}}}),Hn={class:"layout"},Un={class:"right-content"},jn={class:"content"};function qn(e,t,n,i,o,s){const r=T("side-bar"),l=T("top-bar"),a=T("router-view");return v(),A("div",Hn,[p(r),y("div",Un,[e.showTopBar?(v(),C(l,{key:0})):V("",!0),y("div",jn,[p(a)])])])}const Wn=j(Rn,[["render",qn],["__scopeId","data-v-821410ed"]]),si=Q({__name:"Home",setup(e){return(t,n)=>(v(),C(Wn))}});export{si as default}; +import{p as Se,a as we,n as Y,o as v,c as C,w as Re,m as He,s as Ue,r as T,b as je,d as $e,e as A,f as W,g as V,h as w,F as G,i as ue,t as qe,j as We,k as Le,l as Ke,q as F,u as p,v as Q,_ as Oe,x as j,y as E,z as y,A as Ie,B as ie,C as U,D as Ce,E as Te,G as Ze,I as Ye,H as Ge,M as ke,S as Je,J as Xe,K as ze,L as Me,N as se,O as xe,P as Ne,Q as de,R as fe,T as et,U as Ae,V as he,W as tt,X as nt,Y as it,Z as st,$ as ot,a0 as at,a1 as Pe,a2 as lt,a3 as rt,a4 as ct,a5 as pe,a6 as ut}from"./index-bS3EFDLG.js";/* empty css */import{Q as dt}from"./QuestionCircleOutlined-JJ5I9CjY.js";/* empty css *//* empty css */import{t as ft}from"./common.type-LfySSiiQ.js";/* empty css *//* empty css *//* empty css */import{u as Ee}from"./usePlaceholder--xdljq8Y.js";import{g as ht,a as pt,b as mt}from"./table.service-dNBck7IJ.js";function gt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let K;function x(){x.init||(x.init=!0,K=gt()!==-1)}var J={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){x(),Y(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",K&&this.$el.appendChild(e),e.data="about:blank",K||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!K&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const bt=Re();Se("data-v-b329ee4c");const vt={class:"resize-observer",tabindex:"-1"};we();const yt=bt((e,t,n,i,o,s)=>(v(),C("div",vt)));J.render=yt;J.__scopeId="data-v-b329ee4c";J.__file="src/components/ResizeObserver.vue";function Z(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(t){return typeof t}:Z=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},i,o,s,r=function(a){for(var c=arguments.length,b=new Array(c>1?c-1:0),_=1;_1){var c=l.find(function(_){return _.isIntersecting});c&&(a=c)}if(o.callback){var b=a.isIntersecting&&a.intersectionRatio>=o.threshold;if(b===o.oldResult)return;o.oldResult=b,o.callback(b,a)}},this.options.intersection),Y(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Be(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new Tt(e,i,n);e._vue_visibilityState=o}}function kt(e,t,n){var i=t.value,o=t.oldValue;if(!Ve(i,o)){var s=e._vue_visibilityState;if(!i){De(e);return}s?s.createObserver(i,n):Be(e,{value:i},n)}}function De(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var zt={beforeMount:Be,updated:kt,unmounted:De},Mt={itemsLimit:1e3},Nt=/(auto|scroll)/;function Fe(e,t){return e.parentNode===null?t:Fe(e.parentNode,t.concat([e]))}var X=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},At=function(t){return X(t,"overflow")+X(t,"overflow-y")+X(t,"overflow-x")},Pt=function(t){return Nt.test(At(t))};function be(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fe(e.parentNode,[]),n=0;n{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const s=He({id:Dt++,index:t,used:!0,key:i,type:o}),r=Ue({item:n,position:0,nr:s});return e.push(r),r},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,s=this.$_computedMinItemSize,r=this.typeField,l=this.simpleArray?null:this.keyField,a=this.items,c=a.length,b=this.sizes,_=this.$_views,O=this.$_unusedViews,d=this.pool,B=this.itemIndexByKey;let m,g,D,k,z;if(!c)m=g=k=z=D=0;else if(this.$_prerender)m=k=0,g=z=Math.min(this.prerender,a.length),D=null;else{const u=this.getScroll();if(t){let L=u.start-this.$_lastUpdateScrollPosition;if(L<0&&(L=-L),n===null&&Lu.start&&(q=M),M=~~((P+q)/2);while(M!==ce);for(M<0&&(M=0),m=M,D=b[c-1].accumulator,g=M;gc&&(g=c)),k=m;kc&&(g=c),k<0&&(k=0),z>c&&(z=c),D=Math.ceil(c/i)*n}}g-m>Mt.itemsLimit&&this.itemsLimitError(),this.totalSize=D;let f;const R=m<=this.$_endIndex&&g>=this.$_startIndex;if(R)for(let u=0,$=d.length;u<$;u++)f=d[u],f.nr.used&&(e&&(f.nr.index=B[f.item[l]]),(f.nr.index==null||f.nr.index=g)&&this.unuseView(f));const H=R?null:new Map;let N,h,I;for(let u=m;u=S.length)&&(f=this.addView(d,u,N,$,h),this.unuseView(f,!0),S=O.get(h)),f=S[I],H.set(h,I+1)),_.delete(f.nr.key),f.nr.used=!0,f.nr.index=u,f.nr.key=$,f.nr.type=h,_.set($,f),L=!0;else if(!f.nr.used&&(f.nr.used=!0,L=!0,S)){const P=S.indexOf(f);P!==-1&&S.splice(P,1)}f.item=N,L&&(u===a.length-1&&this.$emit("scroll-end"),u===0&&this.$emit("scroll-start")),n===null?(f.position=b[u-1].accumulator,f.offset=0):(f.position=Math.floor(u/i)*n,f.offset=u%i*o)}return this.$_startIndex=m,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",m,g,k,z),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:R}},getListenerTarget(){let e=be(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),s=n?o.height:o.width;let r=-(n?o.top:o.left),l=n?window.innerHeight:window.innerWidth;r<0&&(l+=r,r=0),r+l>s&&(l=s-r),i={start:r,end:r+l}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ne?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const s=be(this.$el),r=s.tagName==="HTML"?0:s[t.scroll],l=s.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=s,i=t.scroll,o=e+r+c}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Ft={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Qt={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Rt(e,t,n,i,o,s){const r=T("ResizeObserver"),l=je("observe-visibility");return $e((v(),A("div",{class:F(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>s.handleScroll&&s.handleScroll(...a))},[e.$slots.before?(v(),A("div",Ft,[W(e.$slots,"before")],512)):V("v-if",!0),(v(),C(ue(n.listTag),{ref:"wrapper",style:Ke({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:F(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:w(()=>[(v(!0),A(G,null,Le(o.pool,a=>(v(),C(ue(n.itemTag),We({key:a.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===a.nr.key}]]},qe(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=a.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:w(()=>[W(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),W(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(v(),A("div",Qt,[W(e.$slots,"after")],512)):V("v-if",!0),p(r,{onNotify:s.handleResize},null,8,["onNotify"])],34)),[[l,s.handleVisibilityChange]])}oe.render=Rt;oe.__file="src/components/RecycleScroller.vue";const Ht=Q({components:{RecycleScroller:oe},emits:["mouseEnter","handleClickTable"],setup(e,{emit:t}){const n=o=>{t("mouseEnter",o.label)},i=o=>{t("handleClickTable",o)};return{simpleImage:Oe.PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:ft,handleMouseEnter:n,handleClickTable:i}},props:{items:{type:Array,default:()=>[]},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}}),Ut=["onMouseenter","onClick"],jt=["title"];function qt(e,t,n,i,o,s){const r=Ie,l=T("RecycleScroller"),a=Oe;return v(),A(G,null,[e.items.length&&!e.loading?(v(),C(l,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:w(({item:c})=>[y("div",{class:F([{active:e.activeItem===c.label,"hive-table":c.type==="HIVE"},"desc"]),onMouseenter:b=>e.handleMouseEnter(c),onClick:b=>e.handleClickTable(c)},[e.iconName==="database"?(v(),C(r,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(v(),C(r,{key:1,"icon-class":e.tableTypeIconMap[c.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),y("p",{title:c.label,class:"name g-text-nowrap"},E(c.label),9,jt)],42,Ut)]),_:1},8,["items"])):V("",!0),!e.items.length&&!e.loading?(v(),C(a,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"])):V("",!0)],64)}const Qe=j(Ht,[["render",qt],["__scopeId","data-v-3b4ebd20"]]);var Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const Kt=Wt;function ve(e){for(var t=1;t[]}},emits:["cancel"],setup(e,{emit:t}){const n=U(Ee()),i=Ce(),o=U({catalog:void 0,dbname:""});return{formRef:i,formState:o,placeholder:n,handleOk:()=>{i.value.validateFields().then(()=>{i.value.resetFields(),t("cancel")}).catch(l=>{console.log("Validate Failed:",l)})},handleCancel:()=>{i.value.resetFields(),t("cancel")}}}});function an(e,t,n,i,o,s){const r=Te,l=Ze,a=Ye,c=Ge,b=ke;return v(),C(b,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:w(()=>[p(c,{ref:"formRef",model:e.formState,class:"label-120"},{default:w(()=>[p(l,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:`${e.placeholder.selectClPh}`}]},{default:w(()=>[p(r,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=_=>e.formState.catalog=_),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),p(l,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:`${e.placeholder.inputDBPh}`}]},{default:w(()=>[p(a,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=_=>e.formState.dbname=_),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["visible","title","onOk","onCancel"])}const ln=j(on,[["render",an]]),rn=Q({name:"TablesMenu",components:{SearchOutlined:Je,CloseCircleOutlined:Xe,CreateDBModal:ln,virtualRecycleScroller:Qe},emits:["goCreatePage"],setup(e,{emit:t}){const n=ze(),i=Me(),o=se(),s=U({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),r="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(r)||"{}"),a=U(Ee()),c=h=>{h==="table"?_():O()},b=h=>{h==="table"?(s.tableSearchInput="",_()):(s.DBSearchInput="",O())},_=de(()=>{N()}),O=de(()=>{H(!0)}),d=h=>{s.database!==h.id&&(s.database=h.id,s.tableName="",N())},B=h=>h.parentNode,m=()=>{},g=h=>{s.curCatalog=h,s.databaseList.length=0,s.tableList.length=0,H()},D=()=>{s.showCreateDBModal=!0},k=()=>{s.showCreateDBModal=!1},z=()=>{t("goCreatePage")},f=h=>{s.tableName=h.label,s.type=h.type,localStorage.setItem(r,JSON.stringify({catalog:s.curCatalog,database:s.database,tableName:h.label})),o.updateTablesMenu(!1);const u={path:h.type==="HIVE"?"/hive-tables":"/tables",query:{catalog:s.curCatalog,db:s.database,table:s.tableName,type:s.type}};if(i.path.indexOf("tables")>-1){n.replace(u);return}n.push(u)},R=()=>{s.catalogLoading=!0,ht().then(h=>{var I;if(h){if(s.catalogOptions=(h||[]).map(u=>({value:u.catalogName,label:u.catalogName})),s.catalogOptions.length){const u=s.catalogOptions.findIndex(S=>S.value===l.catalog),$=i.query;s.curCatalog=u>-1?l.catalog:((I=$==null?void 0:$.catalog)==null?void 0:I.toString())||s.catalogOptions[0].value}H()}}).finally(()=>{s.catalogLoading=!1})},H=(h=!1)=>{s.curCatalog&&(s.loading=!0,pt({catalog:s.curCatalog,keywords:s.DBSearchInput}).then(I=>{var u,$,S,L;if(s.databaseList=(I||[]).map(P=>({id:P,label:P})),s.databaseList.length&&!h){const P=s.databaseList.findIndex(q=>q.id===l.database);s.database=P>-1?l.database:s.curCatalog===(($=(u=i.query)==null?void 0:u.catalog)==null?void 0:$.toString())?((L=(S=i.query)==null?void 0:S.db)==null?void 0:L.toString())||s.databaseList[0].id||"":s.databaseList[0].id||"",N()}}).finally(()=>{s.loading=!1}))},N=()=>{!s.curCatalog||!s.database||(s.tableLoading=!0,s.tableList.length=0,mt({catalog:s.curCatalog,db:s.database,keywords:s.tableSearchInput}).then(h=>{s.tableList=(h||[]).map(I=>({id:I.name,label:I.name,type:I.type}))}).finally(()=>{s.tableLoading=!1}))};return xe(()=>{const{database:h,tableName:I}=l;s.database=h,s.tableName=I,R()}),{...Ne(s),placeholder:a,handleClickDb:d,getPopupContainer:B,clickDatabase:m,catalogChange:g,addDatabase:D,cancel:k,createTable:z,handleClickTable:f,handleSearch:c,clearSearch:b}}}),cn={class:"tables-menu"},un={class:"select-catalog g-flex-ac"},dn={class:"label"},fn={class:"tables-wrap g-flex"},hn={class:"database-list"},pn={class:"list-wrap"},mn={class:"add g-flex-jsb"},gn={class:"label"},bn={class:"filter-wrap"},vn={class:"table-list"},yn={class:"list-wrap"},_n={class:"add g-flex-jsb"},Sn={class:"label"},wn={class:"filter-wrap"};function $n(e,t,n,i,o,s){const r=Te,l=T("SearchOutlined"),a=T("CloseCircleOutlined"),c=et,b=T("u-loading"),_=Qe,O=T("createDB-modal");return v(),A(G,null,[y("div",cn,[y("div",un,[y("span",dn,E(e.$t("catalog")),1),p(r,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=d=>e.curCatalog=d),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),y("div",fn,[y("div",hn,[y("div",pn,[y("div",mn,[y("span",gn,E(e.$t("database",2)),1)]),y("div",bn,[p(c,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=d=>e.DBSearchInput=d),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=d=>e.handleSearch("db",d)),class:"theme-dark"},fe({prefix:w(()=>[p(l)]),_:2},[e.DBSearchInput?{name:"suffix",fn:w(()=>[p(a,{onClick:t[1]||(t[1]=d=>e.clearSearch("db")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),e.loading?(v(),C(b,{key:0})):V("",!0),p(_,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),y("div",vn,[y("div",yn,[y("div",_n,[y("span",Sn,E(e.$t("table",2)),1)]),y("div",wn,[p(c,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=d=>e.tableSearchInput=d),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=d=>e.handleSearch("table",d)),class:"theme-dark"},fe({prefix:w(()=>[p(l)]),_:2},[e.tableSearchInput?{name:"suffix",fn:w(()=>[p(a,{onClick:t[4]||(t[4]=d=>e.clearSearch("table")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(v(),C(b,{key:0})):V("",!0),p(_,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),p(O,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}const Ln=j(rn,[["render",$n],["__scopeId","data-v-ba75b422"]]),On=Q({name:"Sidebar",components:{MenuFoldOutlined:xt,MenuUnfoldOutlined:sn,TableMenu:Ln},setup(){const{t:e}=Ae(),t=ze(),n=Me(),i=se(),o=U({collapsed:!1,selectedKeys:[]}),s=he(()=>!!tt("token")),r=Ce(0),l=he(()=>{const m=[{key:"tables",title:e("tables"),icon:"TableOutlined"}],g=[{key:"tables",title:e("tables"),icon:"tables"},{key:"catalogs",title:e("catalogs"),icon:"catalogs"},{key:"optimizing",title:e("Optimizing"),icon:"optimizers"},{key:"terminal",title:e("terminal"),icon:"terminal"},{key:"settings",title:e("settings"),icon:"settings"}];return s.value?m:g}),a=()=>{const m=n.path.split("/");if(n.path){const g=[m[1]];o.selectedKeys=g.includes("hive-tables")?["tables"]:g}};nt(()=>{a()});const c=()=>{o.collapsed=!o.collapsed,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},300)},b=m=>{if(m.key==="tables"){Y(()=>{a()});return}t.replace({path:`/${m.key}`}),Y(()=>{a()})},_=m=>{d(m.key==="tables")},O=()=>{d(!1),t.push({path:"/tables/create"})},d=(m=!1)=>{if(s.value)return;r.value&&clearTimeout(r.value);const g=m?0:200;r.value=setTimeout(()=>{i.updateTablesMenu(m)},g)},B=()=>{t.push({path:"/introduce"})};return{...Ne(o),hasToken:s,menuList:l,toggleCollapsed:c,navClick:b,mouseenter:_,store:i,toggleTablesMenu:d,goCreatePage:O,viewIntroduce:B}}}),In="data:image/svg+xml,%3c!--%20Licensed%20to%20the%20Apache%20Software%20Foundation%20(ASF)%20under%20one%20or%20more%20contributor%20license%20agreements.%20See%20the%20NOTICE%20file%20distributed%20with%20this%20work%20for%20additional%20information%20regarding%20copyright%20ownership.%20The%20ASF%20licenses%20this%20file%20to%20you%20under%20the%20Apache%20License,%20Version%202.0%20(the%20'License');%20you%20may%20not%20use%20this%20file%20except%20in%20compliance%20with%20the%20License.%20You%20may%20obtain%20a%20copy%20of%20the%20License%20at%20http://www.apache.org/licenses/LICENSE-2.0%20Unless%20required%20by%20applicable%20law%20or%20agreed%20to%20in%20writing,%20software%20distributed%20under%20the%20License%20is%20distributed%20on%20an%20'AS%20IS'%20BASIS,%20WITHOUT%20WARRANTIES%20OR%20CONDITIONS%20OF%20ANY%20KIND,%20either%20express%20or%20implied.%20See%20the%20License%20for%20the%20specific%20language%20governing%20permissions%20and%20limitations%20under%20the%20License.%20/--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='30.789306640625'%20height='28.4443359375'%20viewBox='0%200%2030.789306640625%2028.4443359375'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M9.222345351562499,16.597559078125Q10.5910653515625,16.055694078125,12.0159353515625,15.808411078125Q12.0654353515625,15.799832078125,12.1149353515625,15.791610078125Q13.2631353515625,15.600830078125,14.4478353515625,15.600830078125Q17.155635351562502,15.600830078125,19.6733353515625,16.597559078125Q19.8444353515625,16.665280078125,20.0132353515625,16.737220078125Q20.0859353515625,16.768170078125,20.1582353515625,16.799900078125L20.1592353515625,16.798270078125Q20.3138353515625,16.865760078125,20.4717353515625,16.928270078125Q22.1502353515625,17.592760078125,23.9554353515625,17.592760078125Q25.2066353515625,17.592760078125,26.3970353515625,17.273520078125L28.5421353515625,21.563830078125Q27.4813353515625,21.927340078125,26.3873353515625,22.117200078125002Q25.1911353515625,22.324780078125002,23.9554353515625,22.324780078125002Q21.2476353515625,22.324780078125002,18.7299353515625,21.328050078125Q18.4256353515625,21.207570078125002,18.1282353515625,21.073770078125L18.1267353515625,21.077080078125Q18.0298353515625,21.036250078125,17.9315353515625,20.997330078125Q16.253035351562502,20.332850078125,14.4478353515625,20.332850078125Q12.6426353515625,20.332850078125,10.9641753515625,20.997330078125C9.1417253515625,21.718820078125,8.379625351562499,22.583330078125,7.8580153515625,23.148720078125Q7.3364053515625,23.714120078125,5.9892453515625,26.398830078125002L1.4537746732625,24.079880078125Q1.9242563515625,23.009960078125,2.5658053515625,22.028670078125Q3.3702353515625,20.798240078124998,4.4097153515625,19.758760078125Q5.4491953515625,18.719280078125,6.6796153515625,17.914850078125Q7.8842153515625,17.127320078125,9.222345351562499,16.597559078125Z'%20fill-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M1.89522,28.4444L4.25308,28.4444C4.70117,28.4444,5.1108,28.1913,5.31119,27.7905L14.6449,9.12308C14.8226,8.89236,15.0988,8.75423,15.3947,8.75423C15.6905,8.75423,15.9667,8.89236,16.1444,9.12308L17.9575,12.7493C19.342,14.544,21.5139,15.7,23.9558,15.7C24.4868,15.7,25.005,15.6453,25.5052,15.5413L18.7662,2.06344L18.7659,2.06344C18.1189,0.797012,16.8168,0,15.3947,0C13.9725,0,12.6704,0.797012,12.0235,2.06344L12.0231,2.06344L0.20224,25.7051C-0.427025,26.9637,0.488139,28.4444,1.89522,28.4444ZM24.5061,24.081Q24.0551,24.081,23.6095,24.0534L25.805,28.4444L28.894,28.4444C30.3011,28.4444,31.2163,26.9637,30.587,25.7051L29.3492,23.2295Q27.0088,24.081,24.5061,24.081Z'%20fill-rule='evenodd'%20fill='%232A72FF'%20fill-opacity='1'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cn="data:image/svg+xml,%3c!--%20Licensed%20to%20the%20Apache%20Software%20Foundation%20(ASF)%20under%20one%20or%20more%20contributor%20license%20agreements.%20See%20the%20NOTICE%20file%20distributed%20with%20this%20work%20for%20additional%20information%20regarding%20copyright%20ownership.%20The%20ASF%20licenses%20this%20file%20to%20you%20under%20the%20Apache%20License,%20Version%202.0%20(the%20'License');%20you%20may%20not%20use%20this%20file%20except%20in%20compliance%20with%20the%20License.%20You%20may%20obtain%20a%20copy%20of%20the%20License%20at%20http://www.apache.org/licenses/LICENSE-2.0%20Unless%20required%20by%20applicable%20law%20or%20agreed%20to%20in%20writing,%20software%20distributed%20under%20the%20License%20is%20distributed%20on%20an%20'AS%20IS'%20BASIS,%20WITHOUT%20WARRANTIES%20OR%20CONDITIONS%20OF%20ANY%20KIND,%20either%20express%20or%20implied.%20See%20the%20License%20for%20the%20specific%20language%20governing%20permissions%20and%20limitations%20under%20the%20License.%20/--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='224.99998474121094'%20height='50'%20viewBox='0%200%20224.99998474121094%2050'%3e%3cg%20style='mix-blend-mode:passthrough'%3e%3cpath%20d='M21.2505,0L29.0705,31.3649L43.9035,0L58.7942,0L53.1262,50L40.349,50L43.9035,23.6673L32.6058,46.6452L21.2505,46.6452L15.5632,24.5634L12.758,50L0,50L5.66807,3.35478L2.80521,0L21.2505,0ZM109.961,0Q110.979,0,111.863,0.436581Q112.766,0.873162,113.381,1.67739Q114.015,2.45864,114.226,3.5386Q114.457,4.59559,114.168,5.92831L109.211,50L69.5155,50Q68.4972,50,67.5942,49.5634Q66.7103,49.1039,66.0763,48.3226Q65.4614,47.5184,65.2309,46.4154Q65.0195,45.3125,65.3077,44.0717L70.2649,0L109.961,0ZM83.0228,8.50184L79.4875,41.4982L95.7808,41.4982L99.9886,8.50184L83.0228,8.50184ZM169.177,0L166.372,24.954Q166.372,26.1719,165.892,27.2978Q165.412,28.4007,164.605,29.205Q163.798,29.9862,162.799,30.4458Q161.799,30.8823,160.685,30.8823L151.462,30.8823L166.372,50L150.809,50L136.629,30.8823L134.497,50L120.336,50L125.274,3.35478L123.141,0L169.177,0ZM138.781,8.50184L137.302,22.3805L152.942,22.3805L154.344,8.50184L138.781,8.50184ZM220.632,0Q221.65,0,222.534,0.436581Q223.437,0.873162,224.052,1.67739Q224.686,2.45864,224.898,3.5386Q225.128,4.59559,224.84,5.92831L219.883,50L180.187,50Q179.169,50,178.266,49.5634Q177.382,49.1039,176.748,48.3226Q176.133,47.5184,175.902,46.4154Q175.691,45.3125,175.979,44.0717L180.936,0L220.632,0ZM193.694,8.50184L190.159,41.4982L206.452,41.4982L210.66,8.50184L193.694,8.50184Z'%20fill='%23FFFFFF'%20fill-opacity='1'/%3e%3c/g%3e%3c/svg%3e",Tn=e=>(Se("data-v-63765c58"),e=e(),we(),e),kn=Tn(()=>y("img",{src:In,class:"logo-img",alt:""},null,-1)),zn={src:Cn,class:"arctic-name",alt:""};function Mn(e,t,n,i,o,s){const r=Ie,l=ot,a=at,c=T("MenuUnfoldOutlined"),b=T("MenuFoldOutlined"),_=Pe,O=T("TableMenu");return v(),A("div",{class:F([{"side-bar-collapsed":e.collapsed},"side-bar"])},[y("div",{class:F([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=d=>e.toggleTablesMenu(!1)),onClick:t[1]||(t[1]=(...d)=>e.viewIntroduce&&e.viewIntroduce(...d))},[kn,$e(y("img",zn,null,512),[[it,!e.collapsed]])],34),p(a,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=d=>e.selectedKeys=d),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:w(()=>[(v(!0),A(G,null,Le(e.menuList,d=>(v(),C(l,{key:d.key,onClick:B=>e.navClick(d),onMouseenter:B=>e.mouseenter(d),class:F({"active-color":e.store.isShowTablesMenu&&d.key==="tables","table-item-tab":d.key==="tables"})},{icon:w(()=>[p(r,{iconClass:d.icon,class:"svg-icon"},null,8,["iconClass"])]),default:w(()=>[y("span",null,E(e.$t(d.title)),1)]),_:2},1032,["onClick","onMouseenter","class"]))),128))]),_:1},8,["selectedKeys","inline-collapsed"]),p(_,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:w(()=>[e.collapsed?(v(),C(c,{key:0})):(v(),C(b,{key:1}))]),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(v(),A("div",{key:0,onClick:t[3]||(t[3]=st(d=>e.toggleTablesMenu(!1),["self"])),onMouseleave:t[4]||(t[4]=d=>e.toggleTablesMenu(!1)),onMouseenter:t[5]||(t[5]=d=>e.toggleTablesMenu(!0)),class:F([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[p(O,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):V("",!0)],2)}const Nn=j(On,[["render",Mn],["__scopeId","data-v-63765c58"]]);function An(){return lt.get("ams/v1/versionInfo")}const Pn=Q({name:"Topbar",components:{QuestionCircleOutlined:dt,LogoutOutlined:Yt},setup(){const e=U({version:"",commitTime:""}),{t}=Ae(),n=async()=>{const s=await An();s&&(e.version=s.version,e.commitTime=s.commitTime)},i=async()=>{ke.confirm({title:t("logoutModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{const s=await ct.logout();console.log(s.code)}catch{}finally{se().updateUserInfo({userName:""}),window.location.href="/login"}}})},o=()=>{window.open("https://amoro.netease.com/docs/latest/")};return rt(()=>{n()}),{verInfo:e,goDocs:o,handleLogout:i}}}),En={class:"custom-top-bar"},Vn={class:"version-info"},Bn={class:"g-mr-8"},Dn={class:"g-mr-8"};function Fn(e,t,n,i,o,s){const r=T("question-circle-outlined"),l=ut,a=T("LogoutOutlined"),c=Pe;return v(),A("div",En,[y("div",Vn,[y("span",Bn,E(`${e.$t("version")}: ${e.verInfo.version}`),1),y("span",Dn,E(`${e.$t("commitTime")}: ${e.verInfo.commitTime}`),1)]),p(l,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:w(()=>[pe(E(e.$t("userGuide")),1)]),default:w(()=>[p(r,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]),_:1}),p(l,null,{title:w(()=>[pe(E(e.$t("logout")),1)]),default:w(()=>[p(c,{class:"logout-button",onClick:e.handleLogout},{default:w(()=>[p(a,{style:{"font-size":"1.2em"}})]),_:1},8,["onClick"])]),_:1})])}const Qn=j(Pn,[["render",Fn]]),Rn=Q({name:"Layout",components:{SideBar:Nn,TopBar:Qn},props:{menus:{type:Array,default:()=>[]},showTopBar:{type:Boolean,default:!0}}}),Hn={class:"layout"},Un={class:"right-content"},jn={class:"content"};function qn(e,t,n,i,o,s){const r=T("side-bar"),l=T("top-bar"),a=T("router-view");return v(),A("div",Hn,[p(r),y("div",Un,[e.showTopBar?(v(),C(l,{key:0})):V("",!0),y("div",jn,[p(a)])])])}const Wn=j(Rn,[["render",qn],["__scopeId","data-v-daec4a7b"]]),si=Q({__name:"Home",setup(e){return(t,n)=>(v(),C(Wn))}});export{si as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-BsAdzrND.js b/ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-JJ5I9CjY.js similarity index 97% rename from ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-BsAdzrND.js rename to ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-JJ5I9CjY.js index 308d57c76d..c5d1e64377 100644 --- a/ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-BsAdzrND.js +++ b/ams/dashboard/src/main/resources/static/assets/QuestionCircleOutlined-JJ5I9CjY.js @@ -17,4 +17,4 @@ * limitations under the License. */ -import{u,B as l}from"./index-DlWIyNCI.js";var o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const s=o;function a(r){for(var t=1;t{const i=S,c=T,B=q,N=w;return P(),D("div",O,[s("div",U,[a($(I),{onClick:C}),s("span",E,p(u.$t("createTable")),1)]),s("div",R,[s("div",V,[s("p",z,p(u.$t("basicInformation")),1),a(N,{ref_key:"formRef",ref:b,model:e,class:"label-120"},{default:n(()=>[a(c,{name:"catalog",label:"Catalog",rules:[{required:!0,message:`${t.selectClPh}`}]},{default:n(()=>[a(i,{value:e.catalog,"onUpdate:value":o[0]||(o[0]=l=>e.catalog=l),options:f.value,showSearch:"",onChange:h,placeholder:t.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["rules"]),a(c,{name:"database",label:"Database",rules:[{required:!0,message:`${t.selectDBPh}`}]},{default:n(()=>[a(i,{value:e.database,"onUpdate:value":o[1]||(o[1]=l=>e.database=l),options:g.value,showSearch:"",onChange:v,placeholder:t.selectDBPh},null,8,["value","options","placeholder"])]),_:1},8,["rules"]),a(c,{name:"tableName",label:"Table",rules:[{required:!0,message:`${t.inputTNPh}`}]},{default:n(()=>[a(B,{value:e.tableName,"onUpdate:value":o[2]||(o[2]=l=>e.tableName=l),placeholder:t.inputTNPh},null,8,["value","placeholder"])]),_:1},8,["rules"])]),_:1},8,["model"])])])])}}}),W=x(F,[["__scopeId","data-v-cc371386"]]);export{W as default}; +import{v as k,D as r,C as d,o as P,e as D,z as s,u as a,ad as $,aC as I,y as p,h as n,E as S,G as T,I as q,H as w,x}from"./index-bS3EFDLG.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as y}from"./usePlaceholder--xdljq8Y.js";const O={class:"create-table"},U={class:"nav-bar"},E={class:"title g-ml-8"},R={class:"content"},V={class:"basic"},z={class:"title"},F=k({__name:"create",emits:["goBack"],setup(G,{emit:m}){const _=m,b=r(),f=r([{value:"catalog1",label:"catalog1"},{value:"catalog2",label:"catalog2"}]),g=r([{value:"database1",label:"database1"},{value:"database2",label:"database2"}]),e=d({catalog:"catalog1",database:"",tableName:""}),t=d(y());function h(){}function v(){}function C(){_("goBack")}return(u,o)=>{const i=S,c=T,B=q,N=w;return P(),D("div",O,[s("div",U,[a($(I),{onClick:C}),s("span",E,p(u.$t("createTable")),1)]),s("div",R,[s("div",V,[s("p",z,p(u.$t("basicInformation")),1),a(N,{ref_key:"formRef",ref:b,model:e,class:"label-120"},{default:n(()=>[a(c,{name:"catalog",label:"Catalog",rules:[{required:!0,message:`${t.selectClPh}`}]},{default:n(()=>[a(i,{value:e.catalog,"onUpdate:value":o[0]||(o[0]=l=>e.catalog=l),options:f.value,showSearch:"",onChange:h,placeholder:t.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["rules"]),a(c,{name:"database",label:"Database",rules:[{required:!0,message:`${t.selectDBPh}`}]},{default:n(()=>[a(i,{value:e.database,"onUpdate:value":o[1]||(o[1]=l=>e.database=l),options:g.value,showSearch:"",onChange:v,placeholder:t.selectDBPh},null,8,["value","options","placeholder"])]),_:1},8,["rules"]),a(c,{name:"tableName",label:"Table",rules:[{required:!0,message:`${t.inputTNPh}`}]},{default:n(()=>[a(B,{value:e.tableName,"onUpdate:value":o[2]||(o[2]=l=>e.tableName=l),placeholder:t.inputTNPh},null,8,["value","placeholder"])]),_:1},8,["rules"])]),_:1},8,["model"])])])])}}}),W=x(F,[["__scopeId","data-v-4d1fcf10"]]);export{W as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/csharp-DWIp4pSg.js b/ams/dashboard/src/main/resources/static/assets/csharp-UnRUvf3-.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/csharp-DWIp4pSg.js rename to ams/dashboard/src/main/resources/static/assets/csharp-UnRUvf3-.js diff --git a/ams/dashboard/src/main/resources/static/assets/csp-C46ZqvIl.js b/ams/dashboard/src/main/resources/static/assets/csp-fOIuQerM.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/csp-C46ZqvIl.js rename to ams/dashboard/src/main/resources/static/assets/csp-fOIuQerM.js diff --git a/ams/dashboard/src/main/resources/static/assets/css-DUIZ76Ch.js b/ams/dashboard/src/main/resources/static/assets/css-rd7u0qww.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/css-DUIZ76Ch.js rename to ams/dashboard/src/main/resources/static/assets/css-rd7u0qww.js diff --git a/ams/dashboard/src/main/resources/static/assets/cssMode-BWxpU_eN.js b/ams/dashboard/src/main/resources/static/assets/cssMode-nYJKCY9A.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/cssMode-BWxpU_eN.js rename to ams/dashboard/src/main/resources/static/assets/cssMode-nYJKCY9A.js diff --git a/ams/dashboard/src/main/resources/static/assets/dockerfile-C1cGoIR-.js b/ams/dashboard/src/main/resources/static/assets/dockerfile-hAw0vplE.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/dockerfile-C1cGoIR-.js rename to ams/dashboard/src/main/resources/static/assets/dockerfile-hAw0vplE.js diff --git a/ams/dashboard/src/main/resources/static/assets/fsharp-fd1GTHhf.js b/ams/dashboard/src/main/resources/static/assets/fsharp-cBMliwcB.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/fsharp-fd1GTHhf.js rename to ams/dashboard/src/main/resources/static/assets/fsharp-cBMliwcB.js diff --git a/ams/dashboard/src/main/resources/static/assets/go-O9LJTZXk.js b/ams/dashboard/src/main/resources/static/assets/go-cn-5M2Hz.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/go-O9LJTZXk.js rename to ams/dashboard/src/main/resources/static/assets/go-cn-5M2Hz.js diff --git a/ams/dashboard/src/main/resources/static/assets/graphql-DV_i635h.js b/ams/dashboard/src/main/resources/static/assets/graphql-F7jmCrpy.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/graphql-DV_i635h.js rename to ams/dashboard/src/main/resources/static/assets/graphql-F7jmCrpy.js diff --git a/ams/dashboard/src/main/resources/static/assets/handlebars-BvkMZJ20.js b/ams/dashboard/src/main/resources/static/assets/handlebars-1gnZslKO.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/handlebars-BvkMZJ20.js rename to ams/dashboard/src/main/resources/static/assets/handlebars-1gnZslKO.js diff --git a/ams/dashboard/src/main/resources/static/assets/hive-Dn5cA63E.svg b/ams/dashboard/src/main/resources/static/assets/hive-dih8Rczh.svg similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/hive-Dn5cA63E.svg rename to ams/dashboard/src/main/resources/static/assets/hive-dih8Rczh.svg diff --git a/ams/dashboard/src/main/resources/static/assets/home-content-iEWjcHtP.png b/ams/dashboard/src/main/resources/static/assets/home-content-IhFo3B7T.png similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/home-content-iEWjcHtP.png rename to ams/dashboard/src/main/resources/static/assets/home-content-IhFo3B7T.png diff --git a/ams/dashboard/src/main/resources/static/assets/html-3yF9IKqR.js b/ams/dashboard/src/main/resources/static/assets/html-wUA2QVmj.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/html-3yF9IKqR.js rename to ams/dashboard/src/main/resources/static/assets/html-wUA2QVmj.js diff --git a/ams/dashboard/src/main/resources/static/assets/htmlMode-FDWWjQuC.js b/ams/dashboard/src/main/resources/static/assets/htmlMode-Z2lLivFi.js similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/htmlMode-FDWWjQuC.js rename to ams/dashboard/src/main/resources/static/assets/htmlMode-Z2lLivFi.js diff --git a/ams/dashboard/src/main/resources/static/assets/iceberg-Cuu4gQ9t.svg b/ams/dashboard/src/main/resources/static/assets/iceberg-8HnHTu8y.svg similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/iceberg-Cuu4gQ9t.svg rename to ams/dashboard/src/main/resources/static/assets/iceberg-8HnHTu8y.svg diff --git a/ams/dashboard/src/main/resources/static/assets/index-CIrzahzi.js b/ams/dashboard/src/main/resources/static/assets/index-0_NSCMzr.js similarity index 96% rename from ams/dashboard/src/main/resources/static/assets/index-CIrzahzi.js rename to ams/dashboard/src/main/resources/static/assets/index-0_NSCMzr.js index bb0a9e2bf8..e39ec16f42 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-CIrzahzi.js +++ b/ams/dashboard/src/main/resources/static/assets/index-0_NSCMzr.js @@ -17,4 +17,4 @@ * limitations under the License. */ -import{aL as ye,v as W,aM as he,aN as ze,V as F,D as S,a7 as ue,aO as Ce,aP as Ge,aQ as ee,aR as X,aS as $e,u,F as U,aT as ie,aU as se,C as O,a3 as Q,o as G,c as B,h as $,a5 as ce,z as R,G as pe,I as de,H as me,M as V,U as Y,K as ae,s as K,r as H,e as D,y as M,g as L,l as fe,ad as j,q as J,aV as re,a8 as te,af as ve,x as oe,av as ke,aW as Se,aw as we,E as ge,L as Ie,P as Te,ao as Re,a1 as Le,ap as Oe}from"./index-DlWIyNCI.js";/* empty css *//* empty css */import{u as ne}from"./usePlaceholder-DDgQeLdU.js";import{u as le}from"./usePagination-flyrWnsD.js";/* empty css *//* empty css *//* empty css *//* empty css */import{s as xe,r as _e,a as Ne,g as be,b as Me,c as De,d as Pe,_ as Ae,e as Ee,u as qe,f as je}from"./optimize.service-gp8YzoRE.js";/* empty css *//* empty css */var Fe={small:8,middle:16,large:24},Be=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:ie.oneOf(se("horizontal","vertical")).def("horizontal"),align:ie.oneOf(se("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function Ue(a){return typeof a=="string"?Fe[a]:a||0}var Ve=W({compatConfig:{MODE:3},name:"ASpace",props:Be(),slots:["split"],setup:function(t,e){var _=e.slots,p=he("space",t),b=p.prefixCls,r=p.space,o=p.direction,d=ze(),c=F(function(){var n,g,s;return(n=(g=t.size)!==null&&g!==void 0?g:(s=r.value)===null||s===void 0?void 0:s.size)!==null&&n!==void 0?n:"small"}),l=S(),y=S();ue(c,function(){var n=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(function(s){return Ue(s)}),g=Ce(n,2);l.value=g[0],y.value=g[1]},{immediate:!0});var f=F(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),P=F(function(){var n;return Ge(b.value,"".concat(b.value,"-").concat(t.direction),(n={},ee(n,"".concat(b.value,"-rtl"),o.value==="rtl"),ee(n,"".concat(b.value,"-align-").concat(f.value),f.value),n))}),v=F(function(){return o.value==="rtl"?"marginLeft":"marginRight"}),m=F(function(){var n={};return d.value&&(n.columnGap="".concat(l.value,"px"),n.rowGap="".concat(y.value,"px")),X(X({},n),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-y.value,"px")})});return function(){var n,g,s=t.wrap,z=t.direction,k=z===void 0?"horizontal":z,w=$e((n=_.default)===null||n===void 0?void 0:n.call(_)),C=w.length;if(C===0)return null;var A=(g=_.split)===null||g===void 0?void 0:g.call(_),x="".concat(b.value,"-item"),I=l.value,i=C-1;return u("div",{class:P.value,style:m.value},[w.map(function(h,E){var q={};return d.value||(k==="vertical"?E{p.value=!0,await xe({optimizerGroup:o.resourceGroup||"",parallelism:Number(o.parallelism)}),r.value.resetFields(),e("cancel"),e("refresh"),p.value=!1}).catch(()=>{p.value=!1})}function c(){r.value.resetFields(),e("cancel")}return Q(()=>{}),(y,f)=>{const P=pe,v=de,m=me,n=V;return G(),B(n,{visible:!0,title:y.$t("scaleOut"),confirmLoading:p.value,closable:!1,onOk:d,onCancel:c},{default:$(()=>[u(m,{ref_key:"formRef",ref:r,model:o,class:"label-120"},{default:$(()=>[u(P,{name:"resourceGroup",label:y.$t("resourceGroup")},{default:$(()=>[ce(R(o.resourceGroup),1)]),_:1},8,["label"]),u(P,{name:"parallelism",label:y.$t("parallelism"),rules:[{required:!0,message:`${b.parallelismPh}`}]},{default:$(()=>[u(v,{value:o.parallelism,"onUpdate:value":f[0]||(f[0]=g=>o.parallelism=g),type:"number",placeholder:b.parallelismPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["title","confirmLoading"])}}}),We={class:"list-wrap"},He=["title"],Qe=["onClick"],Xe=["onClick"],Ye=["onClick"],Ze=["onClick"],et=W({__name:"List",props:{curGroupName:{},type:{}},emits:["editGroup","refresh"],setup(a,{emit:t}){const{t:e}=Y();ae();const _=a,p=t,b=K({pending:{title:"pending",color:"#ffcc00"},planning:{title:"planning",color:"#076de3"},idle:{title:"idle",color:"#c9cdd4"},minor:{title:"minor",color:"#0ad787"},major:{title:"major",color:"#0ad787"},full:{title:"full",color:"#0ad787"},committing:{title:"committing",color:"#0ad787"}}),r=S(!1),o=S(!1),d=K([{dataIndex:"name",title:e("name"),ellipsis:!0},{dataIndex:"container",title:e("container"),width:"23%",ellipsis:!0},{dataIndex:"resourceOccupation",title:e("resourceOccupation"),width:"23%",ellipsis:!0},{dataIndex:"operationGroup",title:e("operation"),key:"operationGroup",ellipsis:!0,width:230,scopedSlots:{customRender:"operationGroup"}}]),c=K([{dataIndex:"index",title:e("order"),width:80,ellipsis:!0},{dataIndex:"groupName",title:e("optimizerGroup"),ellipsis:!0},{dataIndex:"container",title:e("container"),ellipsis:!0},{dataIndex:"jobStatus",title:e("status"),ellipsis:!0},{dataIndex:"resourceAllocation",title:e("resourceAllocation"),width:"20%",ellipsis:!0},{dataIndex:"operation",title:e("operation"),key:"operation",ellipsis:!0,width:160,scopedSlots:{customRender:"operationGroup"}}]),l=O(le()),y=O([]),f=O([]),P=F(()=>_.type==="optimizers"?c:d),v=F(()=>_.type==="optimizers"?y:f);function m(i){i&&(l.current=1),_.type==="optimizers"?s():z()}function n(i){i.container!=="external"&&V.confirm({title:e("releaseOptModalTitle"),content:"",okText:"",cancelText:"",onOk:()=>{g(i)}})}async function g(i){try{o.value=!0,await _e({optimizerGroup:i.groupName,jobId:i.jobId}),m(!0),p("refreshCurGroupInfo")}finally{o.value=!1}}async function s(){try{y.length=0,r.value=!0;const i={optimizerGroup:"all",page:l.current,pageSize:l.pageSize},h=await Ne(i),{list:E,total:q}=h;l.total=q,(E||[]).forEach((N,T)=>{N.resourceAllocation=`${N.coreNumber} ${e("core")} ${re(N.memory)}`,N.index=(l.current-1)*l.pageSize+T+1,y.push(N)})}catch{}finally{r.value=!1}}async function z(){try{f.length=0,r.value=!0;const i=await be();l.total=i.length,(i||[]).forEach(h=>{h.name=h.resourceGroup.name,h.container=h.resourceGroup.container,h.resourceOccupation=`${h.occupationCore} ${e("core")} ${re(h.occupationMemory)}`,f.push(h)})}catch{}finally{r.value=!1}}const k=i=>{p("editGroup",i)},w=async i=>{if(await Me({name:i.name})){V.confirm({title:e("deleteGroupModalTitle"),onOk:async()=>{await De({name:i.name}),te.success(`${e("remove")} ${e("success")}`),m()}});return}V.warning({title:e("cannotDeleteGroupModalTitle"),content:e("cannotDeleteGroupModalContent")})},C=S({}),A=S(!1),x=i=>{i.container!=="external"&&(C.value={...i},A.value=!0)};function I({current:i=l.current,pageSize:h=l.pageSize}){l.current=i;const E=h!==l.pageSize;l.pageSize=h,m(E)}return Q(()=>{m()}),(i,h)=>{const E=ve,q=H("u-loading");return G(),D(U,null,[M("div",We,[u(E,{class:"ant-table-common",columns:P.value,"data-source":v.value,pagination:l,loading:r.value,onChange:I},{bodyCell:$(({column:N,record:T})=>[N.dataIndex==="durationDisplay"?(G(),D("span",{key:0,title:T.durationDesc},R(T.durationDisplay),9,He)):L("",!0),N.dataIndex==="optimizeStatus"?(G(),D(U,{key:1},[M("span",{style:fe({"background-color":(j(b)[T.optimizeStatus]||{}).color}),class:"status-icon"},null,4),M("span",null,R(T.optimizeStatus),1)],64)):L("",!0),N.dataIndex==="operation"?(G(),D("span",{key:2,class:J(["primary-link",{disabled:T.container==="external"}]),onClick:Z=>n(T)},R(j(e)("release")),11,Qe)):L("",!0),N.dataIndex==="operationGroup"?(G(),D(U,{key:3},[M("span",{class:J(["primary-link g-mr-12",{disabled:T.container==="external"}]),onClick:Z=>x(T)},R(j(e)("scaleOut")),11,Xe),M("span",{class:"primary-link g-mr-12",onClick:Z=>k(T)},R(j(e)("edit")),9,Ye),M("span",{class:"primary-link",onClick:Z=>w(T)},R(j(e)("remove")),9,Ze)],64)):L("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),A.value?(G(),B(Je,{key:0,groupRecord:C.value,onCancel:h[0]||(h[0]=N=>A.value=!1),onRefresh:m},null,8,["groupRecord"])):L("",!0),o.value?(G(),B(q,{key:1})):L("",!0)],64)}}}),tt=oe(et,[["__scopeId","data-v-d9e15342"]]),at={class:"list-wrap"},ot=["title","onClick"],nt=["title"],lt=["onClick"],it=W({__name:"List",setup(a){const{t}=Y(),e=ae(),_=K({pending:{title:"pending",color:"#ffcc00"},planning:{title:"planning",color:"#076de3"},idle:{title:"idle",color:"#c9cdd4"},minor:{title:"minor",color:"#0ad787"},major:{title:"major",color:"#0ad787"},full:{title:"full",color:"#0ad787"},committing:{title:"committing",color:"#0ad787"}}),p=S(!1),b=S(!1),r=S([]),o=K([{dataIndex:"tableName",title:t("table"),ellipsis:!0,scopedSlots:{customRender:"tableName"}},{dataIndex:"groupName",title:t("optimizerGroup"),width:"16%",ellipsis:!0},{dataIndex:"optimizeStatus",title:t("optimizingStatus"),width:"16%",ellipsis:!0},{dataIndex:"durationDisplay",title:t("duration"),width:"10%",ellipsis:!0},{dataIndex:"fileCount",title:t("fileCount"),width:"10%",ellipsis:!0},{dataIndex:"fileSizeDesc",title:t("fileSize"),width:"10%",ellipsis:!0},{dataIndex:"quota",title:t("quota"),width:"10%",ellipsis:!0},{dataIndex:"quotaOccupationDesc",title:t("occupation"),width:120,ellipsis:!0}]),d=O(le()),c=O([]),l=S(),y=async()=>{const z=(await be()||[]).map(k=>({lable:k.resourceGroup.name,value:k.resourceGroup.name}));r.value=z};function f(s){s&&(d.current=1),P()}async function P(){try{c.length=0,p.value=!0;const s={optimizerGroup:l.value||"all",page:d.current,pageSize:d.pageSize},z=await Pe(s),{list:k,total:w}=z;d.total=w,(k||[]).forEach(C=>{C.quotaOccupationDesc=C.quotaOccupation-5e-4>0?`${(C.quotaOccupation*100).toFixed(1)}%`:"0",C.durationDesc=ke(C.duration||0),C.durationDisplay=Se(C.duration||0),C.fileSizeDesc=we(C.fileSize),c.push(C)})}catch{}finally{p.value=!1}}function v(s){s.container!=="external"&&V.confirm({title:t("releaseOptModalTitle"),content:"",okText:"",cancelText:"",onOk:()=>{m(s)}})}async function m(s){try{b.value=!0,await _e({optimizerGroup:s.groupName,jobId:s.jobId}),f(!0)}finally{b.value=!1}}function n({current:s=d.current,pageSize:z=d.pageSize}){d.current=s;const k=z!==d.pageSize;d.pageSize=z,f(k)}function g(s){const{catalog:z,database:k,tableName:w}=s.tableIdentifier;e.push({path:"/tables",query:{catalog:z,db:k,table:w}})}return Q(()=>{f(),y()}),(s,z)=>{const k=ge,w=Ke,C=ve,A=H("u-loading");return G(),D(U,null,[M("div",at,[u(w,{class:"filter-form"},{default:$(()=>[u(k,{allowClear:"",value:l.value,"onUpdate:value":z[0]||(z[0]=x=>l.value=x),placeholder:"Optimizer group",options:r.value,style:{"min-width":"150px"},onChange:f},null,8,["value","options"])]),_:1}),u(C,{class:"ant-table-common",columns:j(o),"data-source":c,pagination:d,loading:p.value,onChange:n},{bodyCell:$(({column:x,record:I})=>[x.dataIndex==="tableName"?(G(),D("span",{key:0,title:I.tableName,class:"primary-link",onClick:i=>g(I)},R(I.tableName),9,ot)):L("",!0),x.dataIndex==="durationDisplay"?(G(),D("span",{key:1,title:I.durationDesc},R(I.durationDisplay),9,nt)):L("",!0),x.dataIndex==="optimizeStatus"?(G(),D(U,{key:2},[M("span",{style:fe({"background-color":(j(_)[I.optimizeStatus]||{}).color}),class:"status-icon"},null,4),M("span",null,R(I.optimizeStatus),1)],64)):L("",!0),x.dataIndex==="operation"?(G(),D("span",{key:3,class:J(["primary-link",{disabled:I.container==="external"}]),onClick:i=>v(I)},R(j(t)("release")),11,lt)):L("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),b.value?(G(),B(A,{key:0})):L("",!0)],64)}}}),st=oe(it,[["__scopeId","data-v-04c00ee0"]]),rt=W({__name:"GroupModal",props:{edit:{type:Boolean},editRecord:{}},emits:["cancel","refresh"],setup(a,{emit:t}){const{t:e}=Y(),_=O(ne()),p=a,b=S({containerList:[]});async function r(){const m=(await Ee()||[]).map(n=>({label:n,value:n}));b.value.containerList=m}const o=O({name:"",container:void 0,properties:{}}),d=S(!1),c=t,l=()=>{c("cancel")},y=S(),f=S(),P=()=>{y.value.validateFields().then(async()=>{try{const v=await f.value.getProperties(),m={name:o.name,container:o.container,properties:v};p.edit?await qe(m):await je(m),te.success(`${e("save")} ${e("success")}`),c("refresh")}catch{te.error(`${e("save")} ${e("failed")}`)}})};return Q(()=>{var v,m,n;r(),p.edit&&(o.name=(v=p.editRecord)==null?void 0:v.name,o.container=(m=p.editRecord)==null?void 0:m.container,o.properties=(n=p.editRecord)==null?void 0:n.resourceGroup.properties)}),(v,m)=>{const n=de,g=pe,s=ge,z=me,k=V;return G(),B(k,{visible:!0,title:v.edit?v.$t("editgroup"):v.$t("addgroup"),confirmLoading:d.value,closable:!1,class:"group-modal",onOk:P,onCancel:l},{default:$(()=>[u(z,{ref_key:"formRef",ref:y,model:o,class:"label-120"},{default:$(()=>[u(g,{name:"name",label:v.$t("name"),rules:[{required:!0,message:`${_.groupNamePh}`}]},{default:$(()=>[u(n,{value:o.name,"onUpdate:value":m[0]||(m[0]=w=>o.name=w),placeholder:_.groupNamePh,disabled:v.edit},null,8,["value","placeholder","disabled"])]),_:1},8,["label","rules"]),u(g,{name:"container",label:v.$t("container"),rules:[{required:!0,message:`${_.groupContainer}`}]},{default:$(()=>[u(s,{value:o.container,"onUpdate:value":m[1]||(m[1]=w=>o.container=w),showSearch:!0,options:b.value.containerList,placeholder:_.groupContainer},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),u(g,{label:v.$t("properties")},null,8,["label"]),u(g,null,{default:$(()=>[u(Ae,{propertiesObj:o.properties,isEdit:!0,ref_key:"propertiesRef",ref:f},null,8,["propertiesObj"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","confirmLoading"])}}}),ut=W({name:"Resource",components:{List:tt,GroupModal:rt,TableList:st},setup(){const{t:a}=Y(),t=ae(),e=Ie(),_=K([{label:a("optimizergroup"),value:"optimizergroup"},{label:a("optimizers"),value:"optimizers"}]),p=O(ne()),b=O(le()),r=O({activeTab:"optimizergroup",showGroupModal:!1,groupEdit:!1,groupEditRecord:{},groupKeyCount:1,showTab:!1});ue(()=>e.query,c=>{r.activeTab=c.tab||"tables"},{immediate:!0});const o=c=>{c?(r.groupEdit=!0,r.groupEditRecord={...c}):r.groupEdit=!1,r.showGroupModal=!0},d=c=>{const l={...e.query};l.tab=c,t.replace({query:{...l}})};return Q(()=>{r.showTab=!0}),{placeholder:p,pagination:b,...Te(r),tabConfig:_,onChangeTab:d,editGroup:o,t:a}}}),ct={class:"border-wrap"},pt={class:"resource-wrap"},dt={class:"content"};function mt(a,t,e,_,p,b){const r=H("TableList"),o=Re,d=H("List"),c=Le,l=Oe,y=H("GroupModal");return G(),D("div",ct,[M("div",pt,[M("div",dt,[u(l,{activeKey:a.activeTab,"onUpdate:activeKey":t[1]||(t[1]=f=>a.activeTab=f),destroyInactiveTabPane:"",onChange:a.onChangeTab},{default:$(()=>[u(o,{key:"tables",tab:a.t("tables"),class:J([a.activeTab==="tables"?"active":""])},{default:$(()=>[u(r)]),_:1},8,["tab","class"]),u(o,{key:"optimizers",tab:a.t("optimizers"),class:J([a.activeTab==="optimizers"?"active":""])},{default:$(()=>[u(d,{type:"optimizers"})]),_:1},8,["tab","class"]),u(o,{key:"optimizergroup",tab:a.t("optimizergroup"),class:J([a.activeTab==="optimizergroup"?"active":""])},{default:$(()=>[u(c,{type:"primary",class:"g-mb-16",onClick:t[0]||(t[0]=f=>a.editGroup(null))},{default:$(()=>[ce(R(a.t("addgroup")),1)]),_:1}),(G(),B(d,{key:a.groupKeyCount,type:"optimizergroup",onEditGroup:a.editGroup},null,8,["onEditGroup"]))]),_:1},8,["tab","class"])]),_:1},8,["activeKey","onChange"])])]),a.showGroupModal?(G(),B(y,{key:0,edit:a.groupEdit,editRecord:a.groupEditRecord,onCancel:t[2]||(t[2]=f=>a.showGroupModal=!1),onRefresh:t[3]||(t[3]=f=>{a.groupKeyCount++,a.showGroupModal=!1})},null,8,["edit","editRecord"])):L("",!0)])}const St=oe(ut,[["render",mt],["__scopeId","data-v-193b9dbf"]]);export{St as default}; +import{aL as ye,v as W,aM as he,aN as ze,V as F,D as S,a7 as ue,aO as Ce,aP as Ge,aQ as ee,aR as X,aS as $e,u,F as U,aT as ie,aU as se,C as O,a3 as Q,o as G,c as B,h as $,a5 as ce,y as R,G as pe,I as de,H as me,M as V,U as Y,K as ae,s as K,r as H,e as D,z as M,g as L,l as fe,ad as j,q as J,aV as re,a8 as te,af as ve,x as oe,av as ke,aW as Se,aw as we,E as ge,L as Ie,P as Te,ao as Re,a1 as Le,ap as Oe}from"./index-bS3EFDLG.js";/* empty css *//* empty css */import{u as ne}from"./usePlaceholder--xdljq8Y.js";import{u as le}from"./usePagination-nbhDV7a3.js";/* empty css *//* empty css *//* empty css *//* empty css */import{s as xe,r as _e,a as Ne,g as be,b as Me,c as De,d as Pe,_ as Ae,e as Ee,u as qe,f as je}from"./optimize.service--Z5NEXUo.js";/* empty css *//* empty css */var Fe={small:8,middle:16,large:24},Be=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:ie.oneOf(se("horizontal","vertical")).def("horizontal"),align:ie.oneOf(se("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function Ue(a){return typeof a=="string"?Fe[a]:a||0}var Ve=W({compatConfig:{MODE:3},name:"ASpace",props:Be(),slots:["split"],setup:function(t,e){var _=e.slots,p=he("space",t),b=p.prefixCls,r=p.space,o=p.direction,d=ze(),c=F(function(){var n,g,s;return(n=(g=t.size)!==null&&g!==void 0?g:(s=r.value)===null||s===void 0?void 0:s.size)!==null&&n!==void 0?n:"small"}),l=S(),y=S();ue(c,function(){var n=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(function(s){return Ue(s)}),g=Ce(n,2);l.value=g[0],y.value=g[1]},{immediate:!0});var f=F(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),P=F(function(){var n;return Ge(b.value,"".concat(b.value,"-").concat(t.direction),(n={},ee(n,"".concat(b.value,"-rtl"),o.value==="rtl"),ee(n,"".concat(b.value,"-align-").concat(f.value),f.value),n))}),v=F(function(){return o.value==="rtl"?"marginLeft":"marginRight"}),m=F(function(){var n={};return d.value&&(n.columnGap="".concat(l.value,"px"),n.rowGap="".concat(y.value,"px")),X(X({},n),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-y.value,"px")})});return function(){var n,g,s=t.wrap,z=t.direction,k=z===void 0?"horizontal":z,w=$e((n=_.default)===null||n===void 0?void 0:n.call(_)),C=w.length;if(C===0)return null;var A=(g=_.split)===null||g===void 0?void 0:g.call(_),x="".concat(b.value,"-item"),I=l.value,i=C-1;return u("div",{class:P.value,style:m.value},[w.map(function(h,E){var q={};return d.value||(k==="vertical"?E{p.value=!0,await xe({optimizerGroup:o.resourceGroup||"",parallelism:Number(o.parallelism)}),r.value.resetFields(),e("cancel"),e("refresh"),p.value=!1}).catch(()=>{p.value=!1})}function c(){r.value.resetFields(),e("cancel")}return Q(()=>{}),(y,f)=>{const P=pe,v=de,m=me,n=V;return G(),B(n,{visible:!0,title:y.$t("scaleOut"),confirmLoading:p.value,closable:!1,onOk:d,onCancel:c},{default:$(()=>[u(m,{ref_key:"formRef",ref:r,model:o,class:"label-120"},{default:$(()=>[u(P,{name:"resourceGroup",label:y.$t("resourceGroup")},{default:$(()=>[ce(R(o.resourceGroup),1)]),_:1},8,["label"]),u(P,{name:"parallelism",label:y.$t("parallelism"),rules:[{required:!0,message:`${b.parallelismPh}`}]},{default:$(()=>[u(v,{value:o.parallelism,"onUpdate:value":f[0]||(f[0]=g=>o.parallelism=g),type:"number",placeholder:b.parallelismPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["title","confirmLoading"])}}}),We={class:"list-wrap"},He=["title"],Qe=["onClick"],Xe=["onClick"],Ye=["onClick"],Ze=["onClick"],et=W({__name:"List",props:{curGroupName:{},type:{}},emits:["editGroup","refresh"],setup(a,{emit:t}){const{t:e}=Y();ae();const _=a,p=t,b=K({pending:{title:"pending",color:"#ffcc00"},planning:{title:"planning",color:"#076de3"},idle:{title:"idle",color:"#c9cdd4"},minor:{title:"minor",color:"#0ad787"},major:{title:"major",color:"#0ad787"},full:{title:"full",color:"#0ad787"},committing:{title:"committing",color:"#0ad787"}}),r=S(!1),o=S(!1),d=K([{dataIndex:"name",title:e("name"),ellipsis:!0},{dataIndex:"container",title:e("container"),width:"23%",ellipsis:!0},{dataIndex:"resourceOccupation",title:e("resourceOccupation"),width:"23%",ellipsis:!0},{dataIndex:"operationGroup",title:e("operation"),key:"operationGroup",ellipsis:!0,width:230,scopedSlots:{customRender:"operationGroup"}}]),c=K([{dataIndex:"index",title:e("order"),width:80,ellipsis:!0},{dataIndex:"groupName",title:e("optimizerGroup"),ellipsis:!0},{dataIndex:"container",title:e("container"),ellipsis:!0},{dataIndex:"jobStatus",title:e("status"),ellipsis:!0},{dataIndex:"resourceAllocation",title:e("resourceAllocation"),width:"20%",ellipsis:!0},{dataIndex:"operation",title:e("operation"),key:"operation",ellipsis:!0,width:160,scopedSlots:{customRender:"operationGroup"}}]),l=O(le()),y=O([]),f=O([]),P=F(()=>_.type==="optimizers"?c:d),v=F(()=>_.type==="optimizers"?y:f);function m(i){i&&(l.current=1),_.type==="optimizers"?s():z()}function n(i){i.container!=="external"&&V.confirm({title:e("releaseOptModalTitle"),content:"",okText:"",cancelText:"",onOk:()=>{g(i)}})}async function g(i){try{o.value=!0,await _e({optimizerGroup:i.groupName,jobId:i.jobId}),m(!0),p("refreshCurGroupInfo")}finally{o.value=!1}}async function s(){try{y.length=0,r.value=!0;const i={optimizerGroup:"all",page:l.current,pageSize:l.pageSize},h=await Ne(i),{list:E,total:q}=h;l.total=q,(E||[]).forEach((N,T)=>{N.resourceAllocation=`${N.coreNumber} ${e("core")} ${re(N.memory)}`,N.index=(l.current-1)*l.pageSize+T+1,y.push(N)})}catch{}finally{r.value=!1}}async function z(){try{f.length=0,r.value=!0;const i=await be();l.total=i.length,(i||[]).forEach(h=>{h.name=h.resourceGroup.name,h.container=h.resourceGroup.container,h.resourceOccupation=`${h.occupationCore} ${e("core")} ${re(h.occupationMemory)}`,f.push(h)})}catch{}finally{r.value=!1}}const k=i=>{p("editGroup",i)},w=async i=>{if(await Me({name:i.name})){V.confirm({title:e("deleteGroupModalTitle"),onOk:async()=>{await De({name:i.name}),te.success(`${e("remove")} ${e("success")}`),m()}});return}V.warning({title:e("cannotDeleteGroupModalTitle"),content:e("cannotDeleteGroupModalContent")})},C=S({}),A=S(!1),x=i=>{i.container!=="external"&&(C.value={...i},A.value=!0)};function I({current:i=l.current,pageSize:h=l.pageSize}){l.current=i;const E=h!==l.pageSize;l.pageSize=h,m(E)}return Q(()=>{m()}),(i,h)=>{const E=ve,q=H("u-loading");return G(),D(U,null,[M("div",We,[u(E,{class:"ant-table-common",columns:P.value,"data-source":v.value,pagination:l,loading:r.value,onChange:I},{bodyCell:$(({column:N,record:T})=>[N.dataIndex==="durationDisplay"?(G(),D("span",{key:0,title:T.durationDesc},R(T.durationDisplay),9,He)):L("",!0),N.dataIndex==="optimizeStatus"?(G(),D(U,{key:1},[M("span",{style:fe({"background-color":(j(b)[T.optimizeStatus]||{}).color}),class:"status-icon"},null,4),M("span",null,R(T.optimizeStatus),1)],64)):L("",!0),N.dataIndex==="operation"?(G(),D("span",{key:2,class:J(["primary-link",{disabled:T.container==="external"}]),onClick:Z=>n(T)},R(j(e)("release")),11,Qe)):L("",!0),N.dataIndex==="operationGroup"?(G(),D(U,{key:3},[M("span",{class:J(["primary-link g-mr-12",{disabled:T.container==="external"}]),onClick:Z=>x(T)},R(j(e)("scaleOut")),11,Xe),M("span",{class:"primary-link g-mr-12",onClick:Z=>k(T)},R(j(e)("edit")),9,Ye),M("span",{class:"primary-link",onClick:Z=>w(T)},R(j(e)("remove")),9,Ze)],64)):L("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),A.value?(G(),B(Je,{key:0,groupRecord:C.value,onCancel:h[0]||(h[0]=N=>A.value=!1),onRefresh:m},null,8,["groupRecord"])):L("",!0),o.value?(G(),B(q,{key:1})):L("",!0)],64)}}}),tt=oe(et,[["__scopeId","data-v-46b3e914"]]),at={class:"list-wrap"},ot=["title","onClick"],nt=["title"],lt=["onClick"],it=W({__name:"List",setup(a){const{t}=Y(),e=ae(),_=K({pending:{title:"pending",color:"#ffcc00"},planning:{title:"planning",color:"#076de3"},idle:{title:"idle",color:"#c9cdd4"},minor:{title:"minor",color:"#0ad787"},major:{title:"major",color:"#0ad787"},full:{title:"full",color:"#0ad787"},committing:{title:"committing",color:"#0ad787"}}),p=S(!1),b=S(!1),r=S([]),o=K([{dataIndex:"tableName",title:t("table"),ellipsis:!0,scopedSlots:{customRender:"tableName"}},{dataIndex:"groupName",title:t("optimizerGroup"),width:"16%",ellipsis:!0},{dataIndex:"optimizeStatus",title:t("optimizingStatus"),width:"16%",ellipsis:!0},{dataIndex:"durationDisplay",title:t("duration"),width:"10%",ellipsis:!0},{dataIndex:"fileCount",title:t("fileCount"),width:"10%",ellipsis:!0},{dataIndex:"fileSizeDesc",title:t("fileSize"),width:"10%",ellipsis:!0},{dataIndex:"quota",title:t("quota"),width:"10%",ellipsis:!0},{dataIndex:"quotaOccupationDesc",title:t("occupation"),width:120,ellipsis:!0}]),d=O(le()),c=O([]),l=S(),y=async()=>{const z=(await be()||[]).map(k=>({lable:k.resourceGroup.name,value:k.resourceGroup.name}));r.value=z};function f(s){s&&(d.current=1),P()}async function P(){try{c.length=0,p.value=!0;const s={optimizerGroup:l.value||"all",page:d.current,pageSize:d.pageSize},z=await Pe(s),{list:k,total:w}=z;d.total=w,(k||[]).forEach(C=>{C.quotaOccupationDesc=C.quotaOccupation-5e-4>0?`${(C.quotaOccupation*100).toFixed(1)}%`:"0",C.durationDesc=ke(C.duration||0),C.durationDisplay=Se(C.duration||0),C.fileSizeDesc=we(C.fileSize),c.push(C)})}catch{}finally{p.value=!1}}function v(s){s.container!=="external"&&V.confirm({title:t("releaseOptModalTitle"),content:"",okText:"",cancelText:"",onOk:()=>{m(s)}})}async function m(s){try{b.value=!0,await _e({optimizerGroup:s.groupName,jobId:s.jobId}),f(!0)}finally{b.value=!1}}function n({current:s=d.current,pageSize:z=d.pageSize}){d.current=s;const k=z!==d.pageSize;d.pageSize=z,f(k)}function g(s){const{catalog:z,database:k,tableName:w}=s.tableIdentifier;e.push({path:"/tables",query:{catalog:z,db:k,table:w}})}return Q(()=>{f(),y()}),(s,z)=>{const k=ge,w=Ke,C=ve,A=H("u-loading");return G(),D(U,null,[M("div",at,[u(w,{class:"filter-form"},{default:$(()=>[u(k,{allowClear:"",value:l.value,"onUpdate:value":z[0]||(z[0]=x=>l.value=x),placeholder:"Optimizer group",options:r.value,style:{"min-width":"150px"},onChange:f},null,8,["value","options"])]),_:1}),u(C,{class:"ant-table-common",columns:j(o),"data-source":c,pagination:d,loading:p.value,onChange:n},{bodyCell:$(({column:x,record:I})=>[x.dataIndex==="tableName"?(G(),D("span",{key:0,title:I.tableName,class:"primary-link",onClick:i=>g(I)},R(I.tableName),9,ot)):L("",!0),x.dataIndex==="durationDisplay"?(G(),D("span",{key:1,title:I.durationDesc},R(I.durationDisplay),9,nt)):L("",!0),x.dataIndex==="optimizeStatus"?(G(),D(U,{key:2},[M("span",{style:fe({"background-color":(j(_)[I.optimizeStatus]||{}).color}),class:"status-icon"},null,4),M("span",null,R(I.optimizeStatus),1)],64)):L("",!0),x.dataIndex==="operation"?(G(),D("span",{key:3,class:J(["primary-link",{disabled:I.container==="external"}]),onClick:i=>v(I)},R(j(t)("release")),11,lt)):L("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),b.value?(G(),B(A,{key:0})):L("",!0)],64)}}}),st=oe(it,[["__scopeId","data-v-cd107afb"]]),rt=W({__name:"GroupModal",props:{edit:{type:Boolean},editRecord:{}},emits:["cancel","refresh"],setup(a,{emit:t}){const{t:e}=Y(),_=O(ne()),p=a,b=S({containerList:[]});async function r(){const m=(await Ee()||[]).map(n=>({label:n,value:n}));b.value.containerList=m}const o=O({name:"",container:void 0,properties:{}}),d=S(!1),c=t,l=()=>{c("cancel")},y=S(),f=S(),P=()=>{y.value.validateFields().then(async()=>{try{const v=await f.value.getProperties(),m={name:o.name,container:o.container,properties:v};p.edit?await qe(m):await je(m),te.success(`${e("save")} ${e("success")}`),c("refresh")}catch{te.error(`${e("save")} ${e("failed")}`)}})};return Q(()=>{var v,m,n;r(),p.edit&&(o.name=(v=p.editRecord)==null?void 0:v.name,o.container=(m=p.editRecord)==null?void 0:m.container,o.properties=(n=p.editRecord)==null?void 0:n.resourceGroup.properties)}),(v,m)=>{const n=de,g=pe,s=ge,z=me,k=V;return G(),B(k,{visible:!0,title:v.edit?v.$t("editgroup"):v.$t("addgroup"),confirmLoading:d.value,closable:!1,class:"group-modal",onOk:P,onCancel:l},{default:$(()=>[u(z,{ref_key:"formRef",ref:y,model:o,class:"label-120"},{default:$(()=>[u(g,{name:"name",label:v.$t("name"),rules:[{required:!0,message:`${_.groupNamePh}`}]},{default:$(()=>[u(n,{value:o.name,"onUpdate:value":m[0]||(m[0]=w=>o.name=w),placeholder:_.groupNamePh,disabled:v.edit},null,8,["value","placeholder","disabled"])]),_:1},8,["label","rules"]),u(g,{name:"container",label:v.$t("container"),rules:[{required:!0,message:`${_.groupContainer}`}]},{default:$(()=>[u(s,{value:o.container,"onUpdate:value":m[1]||(m[1]=w=>o.container=w),showSearch:!0,options:b.value.containerList,placeholder:_.groupContainer},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),u(g,{label:v.$t("properties")},null,8,["label"]),u(g,null,{default:$(()=>[u(Ae,{propertiesObj:o.properties,isEdit:!0,ref_key:"propertiesRef",ref:f},null,8,["propertiesObj"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","confirmLoading"])}}}),ut=W({name:"Resource",components:{List:tt,GroupModal:rt,TableList:st},setup(){const{t:a}=Y(),t=ae(),e=Ie(),_=K([{label:a("optimizergroup"),value:"optimizergroup"},{label:a("optimizers"),value:"optimizers"}]),p=O(ne()),b=O(le()),r=O({activeTab:"optimizergroup",showGroupModal:!1,groupEdit:!1,groupEditRecord:{},groupKeyCount:1,showTab:!1});ue(()=>e.query,c=>{r.activeTab=c.tab||"tables"},{immediate:!0});const o=c=>{c?(r.groupEdit=!0,r.groupEditRecord={...c}):r.groupEdit=!1,r.showGroupModal=!0},d=c=>{const l={...e.query};l.tab=c,t.replace({query:{...l}})};return Q(()=>{r.showTab=!0}),{placeholder:p,pagination:b,...Te(r),tabConfig:_,onChangeTab:d,editGroup:o,t:a}}}),ct={class:"border-wrap"},pt={class:"resource-wrap"},dt={class:"content"};function mt(a,t,e,_,p,b){const r=H("TableList"),o=Re,d=H("List"),c=Le,l=Oe,y=H("GroupModal");return G(),D("div",ct,[M("div",pt,[M("div",dt,[u(l,{activeKey:a.activeTab,"onUpdate:activeKey":t[1]||(t[1]=f=>a.activeTab=f),destroyInactiveTabPane:"",onChange:a.onChangeTab},{default:$(()=>[u(o,{key:"tables",tab:a.t("tables"),class:J([a.activeTab==="tables"?"active":""])},{default:$(()=>[u(r)]),_:1},8,["tab","class"]),u(o,{key:"optimizers",tab:a.t("optimizers"),class:J([a.activeTab==="optimizers"?"active":""])},{default:$(()=>[u(d,{type:"optimizers"})]),_:1},8,["tab","class"]),u(o,{key:"optimizergroup",tab:a.t("optimizergroup"),class:J([a.activeTab==="optimizergroup"?"active":""])},{default:$(()=>[u(c,{type:"primary",class:"g-mb-16",onClick:t[0]||(t[0]=f=>a.editGroup(null))},{default:$(()=>[ce(R(a.t("addgroup")),1)]),_:1}),(G(),B(d,{key:a.groupKeyCount,type:"optimizergroup",onEditGroup:a.editGroup},null,8,["onEditGroup"]))]),_:1},8,["tab","class"])]),_:1},8,["activeKey","onChange"])])]),a.showGroupModal?(G(),B(y,{key:0,edit:a.groupEdit,editRecord:a.groupEditRecord,onCancel:t[2]||(t[2]=f=>a.showGroupModal=!1),onRefresh:t[3]||(t[3]=f=>{a.groupKeyCount++,a.showGroupModal=!1})},null,8,["edit","editRecord"])):L("",!0)])}const St=oe(ut,[["render",mt],["__scopeId","data-v-9dd54e51"]]);export{St as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-SXqAZhkD.css b/ams/dashboard/src/main/resources/static/assets/index-3GeHNd1d.css similarity index 59% rename from ams/dashboard/src/main/resources/static/assets/index-SXqAZhkD.css rename to ams/dashboard/src/main/resources/static/assets/index-3GeHNd1d.css index 7ac5380844..b813710fa9 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-SXqAZhkD.css +++ b/ams/dashboard/src/main/resources/static/assets/index-3GeHNd1d.css @@ -17,4 +17,4 @@ * limitations under the License. */ -.home-section[data-v-a14c4a5e]{margin:0 auto;display:flex;justify-content:center;background-color:#fff}.home-section .content[data-v-a14c4a5e]{width:100%;max-width:1182px;padding:64px 30px}.home-section .content .img[data-v-a14c4a5e]{max-width:100%}.home-section .content .title[data-v-a14c4a5e],.home-feature .content .title[data-v-a14c4a5e]{font-size:20px;font-weight:700;line-height:24px;text-align:center;margin-bottom:40px}.home-feature[data-v-a14c4a5e]{background:#f5f6fa;margin:0 auto;display:flex;justify-content:center}.home-feature .content[data-v-a14c4a5e]{width:100%;max-width:1182px;padding:64px 41px 80px}.home-feature .content .title[data-v-a14c4a5e]{font-size:32px}.home-feature .content .features[data-v-a14c4a5e]{display:grid;grid-row-gap:24px;grid-column-gap:24px;max-width:1100px;grid-template-columns:auto auto}.home-feature .content .features .feature-item[data-v-a14c4a5e]{background-color:#fff;padding:32px;border-radius:5px;position:relative}.home-feature .content .features .feature-item .fix-icon[data-v-a14c4a5e]{position:absolute;top:0;right:20px}@media screen and (max-width: 800px){.home-feature .features[data-v-a14c4a5e]{grid-template-columns:auto}}.home-feature .features .item-title[data-v-a14c4a5e]{font-size:24px;font-weight:700;line-height:28px;display:flex;align-items:center}.home-feature .features .item-title img[data-v-a14c4a5e]{margin-right:13px}.home-feature .features .item-desc[data-v-a14c4a5e]{margin-top:24px;font-size:14px;font-weight:400;line-height:22px;color:#53576a} +.home-section[data-v-acb8e2f8]{margin:0 auto;display:flex;justify-content:center;background-color:#fff}.home-section .content[data-v-acb8e2f8]{width:100%;max-width:1182px;padding:64px 30px}.home-section .content .img[data-v-acb8e2f8]{max-width:100%}.home-section .content .title[data-v-acb8e2f8],.home-feature .content .title[data-v-acb8e2f8]{font-size:20px;font-weight:700;line-height:24px;text-align:center;margin-bottom:40px}.home-feature[data-v-acb8e2f8]{background:#f5f6fa;margin:0 auto;display:flex;justify-content:center}.home-feature .content[data-v-acb8e2f8]{width:100%;max-width:1182px;padding:64px 41px 80px}.home-feature .content .title[data-v-acb8e2f8]{font-size:32px}.home-feature .content .features[data-v-acb8e2f8]{display:grid;grid-row-gap:24px;grid-column-gap:24px;max-width:1100px;grid-template-columns:auto auto}.home-feature .content .features .feature-item[data-v-acb8e2f8]{background-color:#fff;padding:32px;border-radius:5px;position:relative}.home-feature .content .features .feature-item .fix-icon[data-v-acb8e2f8]{position:absolute;top:0;right:20px}@media screen and (max-width: 800px){.home-feature .features[data-v-acb8e2f8]{grid-template-columns:auto}}.home-feature .features .item-title[data-v-acb8e2f8]{font-size:24px;font-weight:700;line-height:28px;display:flex;align-items:center}.home-feature .features .item-title img[data-v-acb8e2f8]{margin-right:13px}.home-feature .features .item-desc[data-v-acb8e2f8]{margin-top:24px;font-size:14px;font-weight:400;line-height:22px;color:#53576a} diff --git a/ams/dashboard/src/main/resources/static/assets/index-Df_5A3gy.css b/ams/dashboard/src/main/resources/static/assets/index-3_-QN4Mi.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index-Df_5A3gy.css rename to ams/dashboard/src/main/resources/static/assets/index-3_-QN4Mi.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-4FqkUOPU.css b/ams/dashboard/src/main/resources/static/assets/index-4FqkUOPU.css new file mode 100644 index 0000000000..629aadc5de --- /dev/null +++ b/ams/dashboard/src/main/resources/static/assets/index-4FqkUOPU.css @@ -0,0 +1,20 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +.m-sql-editor.disabled[data-v-02d7d6cc],.m-sql-editor.disabled .monaco-editor .view-lines[data-v-02d7d6cc]{cursor:not-allowed!important}.sql-result-wrap[data-v-b9506e1e]{height:100%;width:100%;overflow:auto;box-sizing:border-box}.sql-result-wrap .result-status[data-v-b9506e1e]{padding:4px 12px}.sql-result-wrap .empty[data-v-b9506e1e]{padding:6px 12px;color:#79809a}.sql-result-wrap .result-wrap[data-v-b9506e1e]{padding:6px 12px;overflow-x:auto}.sql-result-wrap .sql-result-table[data-v-b9506e1e]{height:100%;overflow:auto}.sql-result-wrap .sql-result-table .ant-table-tbody td .td-val[data-v-b9506e1e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:240px!important;display:inherit}.sql-log[data-v-8ca0e67b]{padding:16px 16px 0;overflow:auto;height:100%}.console-wrap[data-v-636c83e0]{height:100%;padding:16px 24px}.console-wrap .console-content[data-v-636c83e0]{background-color:#fff;height:100%;width:100%}.console-wrap .console-content.fullscreen[data-v-636c83e0]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.console-wrap .console-content.fullscreen .sql-wrap[data-v-636c83e0]{flex:1;display:flex}.console-wrap .console-content.fullscreen .sql-wrap .sql-block[data-v-636c83e0]{flex:1;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap[data-v-636c83e0]{-webkit-user-select:none;user-select:none;font-size:0;border:1px solid #e5e5e5;border-bottom:0}.console-wrap .console-content .sql-wrap .sql-block[data-v-636c83e0]{font-size:14px;display:inline-block;width:calc(100% - 200px);height:100%}.console-wrap .console-content .sql-wrap .sql-block .top-ops[data-v-636c83e0]{padding:6px 16px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-636c83e0]{color:#000;cursor:pointer}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-636c83e0]:hover{color:#1890ff}.console-wrap .console-content .sql-wrap .sql-block .select-catalog .label[data-v-636c83e0]{padding-right:8px}.console-wrap .console-content .sql-wrap .sql-block .title-right[data-v-636c83e0]{display:flex;justify-content:flex-end;height:32px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .sql-content[data-v-636c83e0]{height:calc(100% - 44px);border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;position:relative;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap .sql-block .sql-content .sql-raw[data-v-636c83e0]{height:100%;overflow:hidden;flex:1}.console-wrap .console-content .sql-wrap .sql-block .sql-content .run-status[data-v-636c83e0]{height:32px;flex-shrink:0}.console-wrap .console-content .sql-wrap .sql-block .result-full[data-v-636c83e0]{height:auto;position:absolute;top:0;right:0;left:0;bottom:0}.console-wrap .console-content .sql-wrap .sql-shortcuts[data-v-636c83e0]{font-size:14px;display:inline-block;vertical-align:top;width:200px;height:100%;border-left:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .shortcuts[data-v-636c83e0]{padding:0 16px;line-height:44px;border-bottom:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .code[data-v-636c83e0]{width:100px}.console-wrap .console-content .sql-wrap .sql-shortcuts .ant-btn[data-v-636c83e0]{text-align:left}.console-wrap .console-content .sql-result[data-v-636c83e0]{background-color:#fff;border:1px solid #e5e5e5;border-top:0;width:100%;padding-bottom:12px;display:flex;flex-direction:column;position:relative;flex:1}.console-wrap .console-content .sql-result .drag-line[data-v-636c83e0]{position:absolute;top:-1px;left:0;width:100%;height:6px;font-size:18px;border-top:1px solid #e5e5e5}.console-wrap .console-content .sql-result .drag-line .icon[data-v-636c83e0]{position:absolute;top:-12px;font-size:24px;left:50%;transform:rotate(90deg);z-index:3}.console-wrap .console-content .sql-result .drag-line[data-v-636c83e0]:hover{cursor:n-resize}.console-wrap .console-content .sql-result .debug-result[data-v-636c83e0]{flex:1;overflow:auto}.console-wrap .debug-icon[data-v-636c83e0]:hover{color:#1890ff}.console-wrap .run-status[data-v-636c83e0]{padding:6px 12px;position:absolute;left:0;bottom:0;width:100%;z-index:2;background-color:#fff}.console-wrap .tab-operation[data-v-636c83e0]{display:flex;justify-content:space-between;height:40px;line-height:40px;border-bottom:1px solid #e5e5e5;padding:0 20px 0 16px}.console-wrap .tab-operation .tab[data-v-636c83e0]{display:flex}.console-wrap .tab-operation .tab .tab-item[data-v-636c83e0]{padding:0 16px;text-align:center;cursor:pointer}.console-wrap .tab-operation .tab .tab-item.active[data-v-636c83e0]{border-bottom:2px solid #1890ff}.console-wrap .tab-operation .operation .icon-svg[data-v-636c83e0]{margin-right:16px;cursor:pointer}.console-wrap .tab-operation .operation .icon-svg[data-v-636c83e0]:hover{color:#1890ff}.console-wrap .loading-icon[data-v-636c83e0]{display:block;margin-top:80px} diff --git a/ams/dashboard/src/main/resources/static/assets/index-BjI98gEp.js b/ams/dashboard/src/main/resources/static/assets/index-BjI98gEp.js deleted file mode 100644 index 8713abb900..0000000000 --- a/ams/dashboard/src/main/resources/static/assets/index-BjI98gEp.js +++ /dev/null @@ -1,20 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import{u as a,B as S,v as U,K as $,C as g,V as k,a3 as j,N as I,a4 as V,a8 as _,x as z,r as v,o as B,e as C,y as u,h as s,a5 as M,z as N,I as F,G as A,aK as D,a1 as H,H as q,p as E,a as x}from"./index-DlWIyNCI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as R}from"./usePlaceholder-DDgQeLdU.js";var G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const T=G;function O(e){for(var t=1;t{try{const l=I(),i=await V.login({user:d.username,password:d.password});if(i.code!==200){_.error(i.message);return}const{path:c,query:p}=l.historyPathInfo;e.replace({path:c||"/",query:p})}catch(l){_.error(l.message)}},o=k(()=>!(t.username&&t.password));return j(()=>{}),{placeholder:n,formState:t,onFinish:r,disabled:o}}}),ee=""+new URL("logo-all1-D7rKIuV6.svg",import.meta.url).href,y=e=>(E("data-v-e7b9da9d"),e=e(),x(),e),te={class:"login-wrap g-flex-jc"},ne={class:"login-content"},re=y(()=>u("div",{class:"img-logo"},[u("img",{src:ee,class:"arctic-logo",alt:""})],-1)),oe=y(()=>u("div",{class:"content-title"},"Lakehouse management system",-1));function ae(e,t,n,r,o,d){const l=v("UserOutlined"),i=F,c=A,p=v("LockOutlined"),w=D,P=H,L=q;return B(),C("div",te,[u("div",ne,[re,oe,a(L,{model:e.formState,name:"normal_login",class:"login-form label-120",onFinish:e.onFinish},{default:s(()=>[a(c,{label:"",name:"username",rules:[{required:!0,message:e.placeholder.usernamePh}]},{default:s(()=>[a(i,{value:e.formState.username,"onUpdate:value":t[0]||(t[0]=m=>e.formState.username=m),placeholder:e.placeholder.usernamePh,style:{height:"48px",background:"#fff"}},{prefix:s(()=>[a(l,{class:"site-form-item-icon"})]),_:1},8,["value","placeholder"])]),_:1},8,["rules"]),a(c,{label:"",name:"password",rules:[{required:!0,message:e.placeholder.passwordPh}]},{default:s(()=>[a(w,{value:e.formState.password,"onUpdate:value":t[1]||(t[1]=m=>e.formState.password=m),placeholder:e.placeholder.passwordPh,style:{height:"48px"}},{prefix:s(()=>[a(p,{class:"site-form-item-icon"})]),_:1},8,["value","placeholder"])]),_:1},8,["rules"]),a(c,null,{default:s(()=>[a(P,{disabled:e.disabled,type:"primary","html-type":"submit",class:"login-form-button"},{default:s(()=>[M(N(e.$t("signin")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["model","onFinish"])])])}const me=z(K,[["render",ae],["__scopeId","data-v-e7b9da9d"]]);export{me as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-CqamgkM0.js b/ams/dashboard/src/main/resources/static/assets/index-CqamgkM0.js new file mode 100644 index 0000000000..e39f93c3e4 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/assets/index-CqamgkM0.js @@ -0,0 +1,20 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import{v as he,U as ve,L as ye,C as P,D as L,V as O,a7 as De,a3 as Ce,r as Ke,o as l,e as d,z as T,u as f,h as i,y as c,c as p,g as b,F as J,k as Q,a5 as B,M as oe,a8 as K,G as He,I as qe,E as ze,a9 as Xe,a1 as _e,H as xe,q as le,aa as je,ab as Ve,x as be,K as We,_ as fe,ac as Ze,ad as Je}from"./index-bS3EFDLG.js";/* empty css *//* empty css */import{g as Qe}from"./table.service-dNBck7IJ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Ye,c as ea,s as aa,d as ta,a as oa}from"./setting.services-JdWe7Vb7.js";import{_ as me,g as la}from"./optimize.service--Z5NEXUo.js";import{u as sa}from"./usePlaceholder--xdljq8Y.js";const na={class:"detail-wrap"},ia={class:"detail-content-wrap"},ra={class:"content-wrap"},ua={class:"header"},ca={key:1,class:"config-value"},pa={key:1},da={key:1},ga={key:1},fa={class:"header"},ma={key:1,class:"config-value"},ha={key:1,class:"config-value"},va={key:1,class:"config-value"},ya={key:3},Ca=["onClick"],_a={class:"header"},ba={key:1,class:"config-value"},ka={key:1,class:"config-value"},Ea={key:1,class:"config-value"},Ia={key:6},wa=["onClick","title"],Na={key:1,class:"config-value"},Ma={key:1,class:"config-value"},Sa={class:"header"},$a={class:"header"},Ra={key:0,class:"footer-btn"},Pa={key:1,class:"footer-btn"},Ta=he({__name:"Detail",props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup(se,{emit:H}){const N={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},Y=se,y=H,{t:m}=ve(),M=ye(),$=P(sa()),x=L(""),u=O(()=>Y.isEdit),j=O(()=>"/ams/v1/files"),I=O(()=>{var t;const a=(((t=M.query)==null?void 0:t.catalogname)||"").toString();return decodeURIComponent(a)==="new catalog"}),U=O(()=>e.catalog.type==="hive");O(()=>e.catalog.type==="ams");const A=L(!1),F=L(),D=L(),q=L(),h={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},g={[h.ICEBERG]:"Iceberg",[h.MIXED_HIVE]:"Mixed Hive",[h.MIXED_ICEBERG]:"Mixed Iceberg",[h.PAIMON]:"Paimon"},C={ams:[h.MIXED_ICEBERG,h.ICEBERG],hive:[h.MIXED_HIVE,h.MIXED_ICEBERG,h.ICEBERG,h.PAIMON],hadoop:[h.MIXED_ICEBERG,h.ICEBERG,h.PAIMON],glue:[h.MIXED_ICEBERG,h.ICEBERG],custom:[h.MIXED_ICEBERG,h.ICEBERG]},_={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},R={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},w=L([{label:N["Internal Catalog"],value:N["Internal Catalog"]},{label:N["External Catalog"],value:N["External Catalog"]}]),e=P({catalog:{name:"",type:"ams",typeshow:N["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),V=P([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),z=P([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),ne={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},ke={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ee={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};De(()=>M.query,a=>{a&&Ee()},{immediate:!0,deep:!0});const W=P([]),ie=L([]);function Ee(){ae()}const Ie=async()=>{const t=(await la()||[]).map(s=>({lable:s.resourceGroup.name,value:s.resourceGroup.name}));ie.value=t};async function we(){(await Ye()||[]).forEach(t=>{t.value!=="ams"&&W.push({label:t.display,value:t.value})}),re()}function re(){x.value=(W.find(a=>a.value===e.catalog.type)||{}).label}async function ae(){try{A.value=!0;const{catalogname:a,type:t}=M.query;if(!a)return;if(I.value){e.catalog.name="",e.catalog.type=t||"ams",e.catalog.optimizerGroup=void 0,e.tableFormat=h.MIXED_ICEBERG,e.authConfig={...R.authConfig},e.storageConfig={...R.storageConfig};const n=ee[e.catalog.type]||[];e.properties={},n.forEach(v=>{e.properties[v]=""}),e.tableProperties={},e.storageConfigArray.length=0,e.authConfigArray.length=0}else{const n=await oa(a);if(!n)return;const{name:v,type:k,tableFormatList:E,storageConfig:G,authConfig:X,properties:te,tableProperties:o,optimizerGroup:S}=n;e.catalog.name=v,e.catalog.type=k,e.catalog.optimizerGroup=S,e.tableFormat=E.join(""),e.authConfig=X,e.storageConfig=G,e.properties=te||{},e.tableProperties=o||{},e.storageConfigArray.length=0,e.authConfigArray.length=0,re()}e.catalog.typeshow=e.catalog.type==="ams"?N["Internal Catalog"]:N["External Catalog"];const{storageConfig:s,authConfig:r}=e;Object.keys(s).forEach(n=>{var k,E,G;const v=["hadoop.core.site","hadoop.hdfs.site"];if(U.value&&v.push("hive.site"),v.includes(n)){const X={key:n,label:ne[n],value:(k=s[n])==null?void 0:k.fileName,fileName:(E=s[n])==null?void 0:E.fileName,fileUrl:(G=s[n])==null?void 0:G.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};e.storageConfigArray.push(X)}}),Object.keys(r).forEach(n=>{var v,k,E;if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(n)){const G={key:n,label:ke[n],value:(v=r[n])==null?void 0:v.fileName,fileName:(k=r[n])==null?void 0:k.fileName,fileUrl:(E=r[n])==null?void 0:E.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};e.authConfigArray.push(G)}})}catch{}finally{A.value=!1}}const Ne=a=>{a===N["Internal Catalog"]?e.catalog.type="ams":e.catalog.type=W[0].value,pe()},ue=O(()=>{const a=e.catalog.type;return C[a]||[]});async function ce(){const a=await D.value.getPropertiesWithoputValidation(),t=ee[e.catalog.type]||[];t.forEach(r=>{r&&!a[r]&&(a[r]="")});const s=ee[e.tableFormat]||[];s.forEach(r=>{r&&!a[r]&&(a[r]="")});for(const r in a)!a[r]&&!t.includes(r)&&!s.includes(r)&&delete a[r];e.properties=a}const Me=P([{label:"S3",value:"S3"}]),Se=P([{label:"Hadoop",value:"Hadoop"}]),$e=P([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),Re=O(()=>{const a=e.catalog.type;return a==="ams"||a==="custom"?$e:a==="glue"?Me:a==="hive"||a==="hadoop"?Se:null}),Pe=O(()=>{const a=e.storageConfig["storage.type"];return a==="Hadoop"?V:a==="S3"?z:null});async function pe(){if(e.tableFormat=ue.value[0],!I.value)return;const a=e.storageConfigArray.findIndex(t=>t.key==="hive.site");if(U.value){if(a>-1)return;e.storageConfigArray.push({key:"hive.site",label:ne["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),e.storageConfig["hive.site"]=""}else a>-1&&(e.storageConfigArray.splice(a,1),delete e.storageConfig["hive.site"]);await ce()}async function Te(){await ce()}function Ue(){y("updateEdit",!0)}async function Ge(){if(await ea(e.catalog.name)){Fe();return}oe.confirm({title:m("cannotDeleteModalTitle"),content:m("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"})}async function Le(a,t){return t?/^[a-zA-Z][\w-]*$/.test(t)?Promise.resolve():Promise.reject(new Error(m("invalidInput"))):Promise.reject(new Error(m("inputPlaceholder")))}function Ae(){const{storageConfig:a,authConfig:t,storageConfigArray:s,authConfigArray:r}=e;Object.keys(t).forEach(n=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(n)){const v=(r.find(k=>k.key===n)||{}).fileId;t[n]=v}}),Object.keys(a).forEach(n=>{if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(n)){const v=(s.find(k=>k.key===n)||{}).fileId;a[n]=v}})}function Oe(){F.value.validateFields().then(async()=>{const{catalog:a,tableFormat:t,storageConfig:s,authConfig:r}=e,n=await D.value.getProperties(),v=await q.value.getProperties();if(!n||!v)return;A.value=!0;const{typeshow:k,...E}=a;Ae(),await aa({isCreate:I.value,...E,tableFormatList:[t],storageConfig:s,authConfig:r,properties:n,tableProperties:v}).then(()=>{K.success(`${m("save")} ${m("success")}`),y("updateEdit",!1,{catalogName:a.name,catalogType:a.type}),ae(),F.value.resetFields()}).catch(()=>{K.error(`${m("save")} ${m("failed")}`)}).finally(()=>{A.value=!1})}).catch(()=>{})}function Be(){F.value.resetFields(),y("updateEdit",!1),ae()}async function Fe(){oe.confirm({title:m("deleteCatalogModalTitle"),onOk:async()=>{await ta(e.catalog.name),K.success(`${m("remove")} ${m("success")}`),y("updateEdit",!1,{})}})}function de(a,t,s){try{if(a.file.status==="uploading"?t.uploadLoading=!0:t.uploadLoading=!1,a.file.status==="done"){const{code:r}=a.file.response;if(r!==200){const{message:k}=a.file.response;throw new Error(k)}const{url:n,id:v}=a.file.response.result;t.isSuccess=!0,t.fileName=s==="STORAGE"?_[t.key]:a.file.name,t.fileUrl=n,t.fileId=v,K.success(`${a.file.name} ${m("uploaded")} ${m("success")}`)}else a.file.status==="error"&&(t.isSuccess=!1,K.error(`${a.file.name} ${m("uploaded")} ${m("failed")}`))}catch(r){K.error(r.message)}}function ge(a){a&&window.open(a)}return Ce(()=>{we(),Ie()}),(a,t)=>{const s=He,r=qe,n=ze,v=je,k=Xe,E=_e,G=Ve,X=xe,te=Ke("u-loading");return l(),d("div",na,[T("div",ia,[T("div",ra,[f(X,{ref_key:"formRef",ref:F,model:e,class:"catalog-form"},{default:i(()=>[f(s,null,{default:i(()=>[T("p",ua,c(a.$t("basic")),1)]),_:1}),f(s,{label:a.$t("name"),name:["catalog","name"],rules:[{required:u.value&&I.value,validator:Le}]},{default:i(()=>[u.value&&I.value?(l(),p(r,{key:0,value:e.catalog.name,"onUpdate:value":t[0]||(t[0]=o=>e.catalog.name=o)},null,8,["value"])):(l(),d("span",ca,c(e.catalog.name),1))]),_:1},8,["label","rules"]),f(s,{label:a.$t("type"),name:["catalog","typeshow"]},{default:i(()=>[u.value&&I.value?(l(),p(n,{key:0,value:e.catalog.typeshow,"onUpdate:value":t[1]||(t[1]=o=>e.catalog.typeshow=o),options:w.value,placeholder:$.selectPh,onChange:Ne},null,8,["value","options","placeholder"])):(l(),d("span",pa,c(e.catalog.typeshow),1))]),_:1},8,["label"]),e.catalog.typeshow===N["External Catalog"]?(l(),p(s,{key:0,label:a.$t("metastore"),name:["catalog","type"],rules:[{required:u.value&&I.value}]},{default:i(()=>[u.value&&I.value?(l(),p(n,{key:0,value:e.catalog.type,"onUpdate:value":t[2]||(t[2]=o=>e.catalog.type=o),options:W,placeholder:$.selectPh,onChange:pe},null,8,["value","options","placeholder"])):(l(),d("span",da,c(x.value),1))]),_:1},8,["label","rules"])):b("",!0),f(s,{label:a.$t("tableFormat"),name:["tableFormat"],rules:[{required:u.value&&I.value}]},{default:i(()=>[f(k,{disabled:!u.value||!I.value,value:e.tableFormat,"onUpdate:value":t[3]||(t[3]=o=>e.tableFormat=o),name:"radioGroup",onChange:Te},{default:i(()=>[(l(!0),d(J,null,Q(ue.value,o=>(l(),p(v,{key:o,value:o},{default:i(()=>[B(c(g[o]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["disabled","value"])]),_:1},8,["label","rules"]),f(s,{label:a.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(n,{key:0,value:e.catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=o=>e.catalog.optimizerGroup=o),options:ie.value,placeholder:$.selectPh},null,8,["value","options","placeholder"])):(l(),d("span",ga,c(e.catalog.optimizerGroup),1))]),_:1},8,["label","rules"]),f(s,null,{default:i(()=>[T("p",fa,c(a.$t("storageConfigName")),1)]),_:1}),f(s,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(n,{key:0,value:e.storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=o=>e.storageConfig["storage.type"]=o),placeholder:$.selectPh,options:Re.value},null,8,["value","placeholder","options"])):(l(),d("span",ma,c(e.storageConfig["storage.type"]),1))]),_:1},8,["name","rules"]),e.storageConfig["storage.type"]==="S3"?(l(),p(s,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=o=>e.storageConfig["storage.s3.endpoint"]=o)},null,8,["value"])):(l(),d("span",ha,c(e.storageConfig["storage.s3.endpoint"]),1))]),_:1},8,["name"])):b("",!0),e.storageConfig["storage.type"]==="S3"?(l(),p(s,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=o=>e.storageConfig["storage.s3.region"]=o)},null,8,["value"])):(l(),d("span",va,c(e.storageConfig["storage.s3.region"]),1))]),_:1},8,["name"])):b("",!0),e.storageConfig["storage.type"]==="Hadoop"?(l(),d("div",ya,[(l(!0),d(J,null,Q(e.storageConfigArray,o=>(l(),p(s,{key:o.label,label:o.label,class:"g-flex-ac"},{default:i(()=>[u.value?(l(),p(G,{key:0,"file-list":o.fileList,"onUpdate:fileList":S=>o.fileList=S,name:"file",accept:".xml",showUploadList:!1,action:j.value,disabled:o.uploadLoading,onChange:S=>de(S,o,"STORAGE")},{default:i(()=>[f(E,{type:"primary",ghost:"",loading:o.uploadLoading,class:"g-mr-12"},{default:i(()=>[B(c(a.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:fileList","action","disabled","onChange"])):b("",!0),o.isSuccess||o.fileName?(l(),d("span",{key:1,class:le(["config-value",{"view-active":!!o.fileUrl}]),onClick:S=>ge(o.fileUrl)},c(o.fileName),11,Ca)):b("",!0)]),_:2},1032,["label"]))),128))])):b("",!0),f(s,null,{default:i(()=>[T("p",_a,c(a.$t("authenticationConfig")),1)]),_:1}),f(s,{label:"Type",name:["authConfig","auth.type"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(n,{key:0,value:e.authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=o=>e.authConfig["auth.type"]=o),placeholder:$.selectPh,options:Pe.value},null,8,["value","placeholder","options"])):(l(),d("span",ba,c(e.authConfig["auth.type"]),1))]),_:1},8,["name","rules"]),e.authConfig["auth.type"]==="SIMPLE"?(l(),p(s,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=o=>e.authConfig["auth.simple.hadoop_username"]=o)},null,8,["value"])):(l(),d("span",ka,c(e.authConfig["auth.simple.hadoop_username"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="KERBEROS"?(l(),p(s,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=o=>e.authConfig["auth.kerberos.principal"]=o)},null,8,["value"])):(l(),d("span",Ea,c(e.authConfig["auth.kerberos.principal"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="KERBEROS"?(l(),d("div",Ia,[(l(!0),d(J,null,Q(e.authConfigArray,o=>(l(),p(s,{key:o.label,label:o.label,class:"g-flex-ac"},{default:i(()=>[u.value?(l(),p(G,{key:0,"file-list":o.fileList,"onUpdate:fileList":S=>o.fileList=S,name:"file",accept:o.key==="auth.kerberos.keytab"?".keytab":".conf",showUploadList:!1,action:j.value,disabled:o.uploadLoading,onChange:S=>de(S,o)},{default:i(()=>[f(E,{type:"primary",ghost:"",loading:o.uploadLoading,class:"g-mr-12"},{default:i(()=>[B(c(a.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:fileList","accept","action","disabled","onChange"])):b("",!0),o.isSuccess||o.fileName?(l(),d("span",{key:1,class:le(["config-value auth-filename",{"view-active":!!o.fileUrl}]),onClick:S=>ge(o.fileUrl),title:o.fileName},c(o.fileName),11,wa)):b("",!0)]),_:2},1032,["label"]))),128))])):b("",!0),e.authConfig["auth.type"]==="AK/SK"?(l(),p(s,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=o=>e.authConfig["auth.ak_sk.access_key"]=o)},null,8,["value"])):(l(),d("span",Na,c(e.authConfig["auth.ak_sk.access_key"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="AK/SK"?(l(),p(s,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:u.value}]},{default:i(()=>[u.value?(l(),p(r,{key:0,value:e.authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=o=>e.authConfig["auth.ak_sk.secret_key"]=o)},null,8,["value"])):(l(),d("span",Ma,c(e.authConfig["auth.ak_sk.secret_key"]),1))]),_:1},8,["name","rules"])):b("",!0),f(s,null,{default:i(()=>[T("p",Sa,c(a.$t("properties")),1)]),_:1}),f(s,null,{default:i(()=>[f(me,{propertiesObj:e.properties,isEdit:u.value,ref_key:"propertiesRef",ref:D},null,8,["propertiesObj","isEdit"])]),_:1}),f(s,null,{default:i(()=>[T("p",$a,c(a.$t("tableProperties")),1)]),_:1}),f(s,null,{default:i(()=>[f(me,{propertiesObj:e.tableProperties,isEdit:u.value,ref_key:"tablePropertiesRef",ref:q},null,8,["propertiesObj","isEdit"])]),_:1})]),_:1},8,["model"])])]),u.value?(l(),d("div",Ra,[f(E,{type:"primary",onClick:Oe,class:"save-btn g-mr-12"},{default:i(()=>[B(c(a.$t("save")),1)]),_:1}),f(E,{onClick:Be},{default:i(()=>[B(c(a.$t("cancel")),1)]),_:1})])):b("",!0),u.value?b("",!0):(l(),d("div",Pa,[f(E,{type:"primary",onClick:Ue,class:"edit-btn g-mr-12"},{default:i(()=>[B(c(a.$t("edit")),1)]),_:1}),f(E,{onClick:Ge,class:"remove-btn"},{default:i(()=>[B(c(a.$t("remove")),1)]),_:1})])),A.value?(l(),p(te,{key:2})):b("",!0)])}}}),Ua=be(Ta,[["__scopeId","data-v-688d3389"]]),Ga={class:"catalogs-wrap g-flex"},La={class:"catalog-list-left"},Aa={class:"catalog-header"},Oa={key:0,class:"catalog-list"},Ba=["onClick"],Fa={class:"catalog-detail"},Z="new catalog",Da=he({__name:"index",setup(se){const{t:H}=ve(),N=We(),Y=ye(),y=P([]),m=P({}),M=L(!1),$=L(!1),x=fe.PRESENTED_IMAGE_SIMPLE;async function u(){try{$.value=!0;const g=await Qe();y.length=0,(g||[]).forEach(C=>{y.push({catalogName:C.catalogName,catalogType:C.catalogType})})}finally{$.value=!1}}function j(){var R,w;const{catalogname:g="",type:C}=Y.query,_={};if(decodeURIComponent(g)===Z){D();return}g?(_.catalogName=g,_.catalogType=C):(_.catalogName=(R=y[0])==null?void 0:R.catalogName,_.catalogType=(w=y[0])==null?void 0:w.catalogType),U(_)}function I(g){M.value?h(()=>{U(g),M.value=!1,A(!1)}):U(g)}async function U(g){const{catalogName:C,catalogType:_}=g;m.catalogName=C||"",m.catalogType=_||"",await N.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(m.catalogName),type:m.catalogType}})}async function A(g,C){var R,w,e,V;M.value=g,C&&(await F(),C!=null&&C.catalogName||(C.catalogName=(R=y[0])==null?void 0:R.catalogName,C.catalogType=(w=y[0])==null?void 0:w.catalogType));const _=y.findIndex(z=>z.catalogName===Z);if(_>-1){y.splice(_);const z={catalogName:(e=y[0])==null?void 0:e.catalogName,catalogType:(V=y[0])==null?void 0:V.catalogType};U(z);return}C&&U(C)}async function F(){await u()}function D(){M.value?h(()=>{q()}):q()}async function q(){const g={catalogName:Z,catalogType:""};await U(g),y.push(g),M.value=!0}Ce(async()=>{await u(),j()});function h(g){oe.confirm({title:H("leavePageModalTitle"),content:H("leavePageModalContent"),okText:H("leave"),onOk:async()=>{g&&await g()}})}return Ze((g,C,_)=>{M.value?h(()=>{_()}):_()}),(g,C)=>{const _=_e,R=fe;return l(),d("div",Ga,[T("div",La,[T("div",Aa,c(`${g.$t("catalog")} ${g.$t("list")}`),1),y.length&&!$.value?(l(),d("ul",Oa,[(l(!0),d(J,null,Q(y,w=>(l(),d("li",{key:w.catalogName,class:le(["catalog-item g-text-nowrap",{active:w.catalogName===m.catalogName}]),onClick:e=>I(w)},c(w.catalogName),11,Ba))),128))])):b("",!0),f(_,{onClick:D,disabled:m.catalogName===Z,class:"add-btn"},{default:i(()=>[B("+")]),_:1},8,["disabled"])]),T("div",Fa,[!y.length&&!$.value?(l(),p(R,{key:0,image:Je(x),class:"detail-empty"},null,8,["image"])):(l(),p(Ua,{key:1,isEdit:M.value,onUpdateEdit:A,onUpdateCatalogs:F},null,8,["isEdit"]))])])}}}),Ya=be(Da,[["__scopeId","data-v-ee0cc5a1"]]);export{Ya as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-Dq0y8BTZ.css b/ams/dashboard/src/main/resources/static/assets/index-Dq0y8BTZ.css deleted file mode 100644 index 3dc1e50cf9..0000000000 --- a/ams/dashboard/src/main/resources/static/assets/index-Dq0y8BTZ.css +++ /dev/null @@ -1,20 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.m-sql-editor.disabled[data-v-2c827eb8],.m-sql-editor.disabled .monaco-editor .view-lines[data-v-2c827eb8]{cursor:not-allowed!important}.sql-result-wrap[data-v-8a52ce46]{height:100%;width:100%;overflow:auto;box-sizing:border-box}.sql-result-wrap .result-status[data-v-8a52ce46]{padding:4px 12px}.sql-result-wrap .empty[data-v-8a52ce46]{padding:6px 12px;color:#79809a}.sql-result-wrap .result-wrap[data-v-8a52ce46]{padding:6px 12px;overflow-x:auto}.sql-result-wrap .sql-result-table[data-v-8a52ce46]{height:100%;overflow:auto}.sql-result-wrap .sql-result-table .ant-table-tbody td .td-val[data-v-8a52ce46]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:240px!important;display:inherit}.sql-log[data-v-084da96e]{padding:16px 16px 0;overflow:auto;height:100%}.console-wrap[data-v-aa71aff6]{height:100%;padding:16px 24px}.console-wrap .console-content[data-v-aa71aff6]{background-color:#fff;height:100%;width:100%}.console-wrap .console-content.fullscreen[data-v-aa71aff6]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.console-wrap .console-content.fullscreen .sql-wrap[data-v-aa71aff6]{flex:1;display:flex}.console-wrap .console-content.fullscreen .sql-wrap .sql-block[data-v-aa71aff6]{flex:1;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap[data-v-aa71aff6]{-webkit-user-select:none;user-select:none;font-size:0;border:1px solid #e5e5e5;border-bottom:0}.console-wrap .console-content .sql-wrap .sql-block[data-v-aa71aff6]{font-size:14px;display:inline-block;width:calc(100% - 200px);height:100%}.console-wrap .console-content .sql-wrap .sql-block .top-ops[data-v-aa71aff6]{padding:6px 16px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-aa71aff6]{color:#000;cursor:pointer}.console-wrap .console-content .sql-wrap .sql-block .icon-svg[data-v-aa71aff6]:hover{color:#1890ff}.console-wrap .console-content .sql-wrap .sql-block .select-catalog .label[data-v-aa71aff6]{padding-right:8px}.console-wrap .console-content .sql-wrap .sql-block .title-right[data-v-aa71aff6]{display:flex;justify-content:flex-end;height:32px;align-items:center}.console-wrap .console-content .sql-wrap .sql-block .sql-content[data-v-aa71aff6]{height:calc(100% - 44px);border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;position:relative;display:flex;flex-direction:column}.console-wrap .console-content .sql-wrap .sql-block .sql-content .sql-raw[data-v-aa71aff6]{height:100%;overflow:hidden;flex:1}.console-wrap .console-content .sql-wrap .sql-block .sql-content .run-status[data-v-aa71aff6]{height:32px;flex-shrink:0}.console-wrap .console-content .sql-wrap .sql-block .result-full[data-v-aa71aff6]{height:auto;position:absolute;top:0;right:0;left:0;bottom:0}.console-wrap .console-content .sql-wrap .sql-shortcuts[data-v-aa71aff6]{font-size:14px;display:inline-block;vertical-align:top;width:200px;height:100%;border-left:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .shortcuts[data-v-aa71aff6]{padding:0 16px;line-height:44px;border-bottom:1px solid #e5e5e5}.console-wrap .console-content .sql-wrap .sql-shortcuts .code[data-v-aa71aff6]{width:100px}.console-wrap .console-content .sql-wrap .sql-shortcuts .ant-btn[data-v-aa71aff6]{text-align:left}.console-wrap .console-content .sql-result[data-v-aa71aff6]{background-color:#fff;border:1px solid #e5e5e5;border-top:0;width:100%;padding-bottom:12px;display:flex;flex-direction:column;position:relative;flex:1}.console-wrap .console-content .sql-result .drag-line[data-v-aa71aff6]{position:absolute;top:-1px;left:0;width:100%;height:6px;font-size:18px;border-top:1px solid #e5e5e5}.console-wrap .console-content .sql-result .drag-line .icon[data-v-aa71aff6]{position:absolute;top:-12px;font-size:24px;left:50%;transform:rotate(90deg);z-index:3}.console-wrap .console-content .sql-result .drag-line[data-v-aa71aff6]:hover{cursor:n-resize}.console-wrap .console-content .sql-result .debug-result[data-v-aa71aff6]{flex:1;overflow:auto}.console-wrap .debug-icon[data-v-aa71aff6]:hover{color:#1890ff}.console-wrap .run-status[data-v-aa71aff6]{padding:6px 12px;position:absolute;left:0;bottom:0;width:100%;z-index:2;background-color:#fff}.console-wrap .tab-operation[data-v-aa71aff6]{display:flex;justify-content:space-between;height:40px;line-height:40px;border-bottom:1px solid #e5e5e5;padding:0 20px 0 16px}.console-wrap .tab-operation .tab[data-v-aa71aff6]{display:flex}.console-wrap .tab-operation .tab .tab-item[data-v-aa71aff6]{padding:0 16px;text-align:center;cursor:pointer}.console-wrap .tab-operation .tab .tab-item.active[data-v-aa71aff6]{border-bottom:2px solid #1890ff}.console-wrap .tab-operation .operation .icon-svg[data-v-aa71aff6]{margin-right:16px;cursor:pointer}.console-wrap .tab-operation .operation .icon-svg[data-v-aa71aff6]:hover{color:#1890ff}.console-wrap .loading-icon[data-v-aa71aff6]{display:block;margin-top:80px} diff --git a/ams/dashboard/src/main/resources/static/assets/index-Dt04o-8L.js b/ams/dashboard/src/main/resources/static/assets/index-Dt04o-8L.js deleted file mode 100644 index 4112778a26..0000000000 --- a/ams/dashboard/src/main/resources/static/assets/index-Dt04o-8L.js +++ /dev/null @@ -1,64 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import{v as Xr,U as Ii,L as Ai,V as ca,a7 as ls,C as Lt,a3 as qr,s as ce,r as Yo,o as Y,e as ft,y as U,z as X,u as Z,ad as Tt,g as xt,c as Mt,ae as me,af as $a,x as Li,D as wt,F as Vt,R as W1,h as $,J as U1,S as Y1,a5 as _t,T as X1,a1 as Wa,ag as ph,ah as gh,a6 as yh,ai as q1,aj as Z1,a8 as K1,M as Zg,P as Ku,ak as Q1,l as Qu,al as j1,am as J1,d as $c,Y as Wc,i as Pn,an as tS,A as eS,I as rS,ao as Kg,ap as Qg,aq as nS,E as iS,ar as Uc,as as aS,at as jg,au as Jg,av as Yc,aw as no,p as oS,a as sS,K as lS,N as uS,n as fS,ax as hS,j as cS}from"./index-DlWIyNCI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{c as vS,d as dS,e as pS,f as gS,h as yS,i as mS,j as _S,k as SS,l as bS,m as wS,n as xS}from"./table.service-Ca4OvdR2.js";import{Q as Xc}from"./QuestionCircleOutlined-BsAdzrND.js";import{u as zn}from"./usePagination-flyrWnsD.js";/* empty css */import{b as lr,o as qn}from"./common.type-BewOZShK.js";const TS={class:"table-detail g-flex"},CS={class:"left-content"},MS={key:0,class:"table-attrs"},DS={class:"attr-title"},IS={key:1,class:"table-attrs"},AS={class:"attr-title"},LS={class:"table-attrs"},PS={class:"attr-title"},RS={class:"right-content"},ES={key:0,class:"table-attrs"},kS={class:"attr-title"},OS={class:"table-attrs"},BS={class:"attr-title"},NS={class:"table-attrs"},FS={class:"attr-title"},zS=Xr({__name:"Details",emits:["setBaseDetailInfo"],setup(r,{expose:t,emit:e}){const{t:n}=Ii(),i=e,a=Ai(),o=ca(()=>({...a.query}));ls(()=>a.query,p=>{p!=null&&p.catalog&&a.path==="/tables"&&h()});const s={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},l={...s,baseWatermark:"Base Watermark"},u={...s,tableWatermark:"Table Watermark"},f=Lt({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),h=async()=>{try{const{catalog:y,db:m,table:_}=o.value;if(!y||!m||!_)return;f.detailLoading=!0;const b=await vS({...o.value}),{pkList:w=[],tableType:S,partitionColumnList:x=[],properties:T,changeMetrics:M,schema:D,createTime:C,tableIdentifier:A,baseMetrics:L,tableSummary:E}=b;f.baseDetailInfo={...E,tableType:S,tableName:(A==null?void 0:A.tableName)||"",createTime:C?me(C):"",hasPartition:!!(x!=null&&x.length)},f.pkList=w||[],f.partitionColumnList=x||[],f.schema=D||[],f.changeMetrics=Object.keys(u||{}).map(R=>({metric:u[R],value:R==="lastCommitTime"||R==="tableWatermark"?(M||{})[R]?me((M||{})[R]):"":(M||{})[R]})).filter(R=>R.value),f.baseMetrics=Object.keys(l||{}).map(R=>({metric:l[R],value:R==="lastCommitTime"||R==="baseWatermark"?(L||{})[R]?me((L||{})[R]):"":(L||{})[R]})),f.properties=Object.keys(T||{}).map(R=>({key:R,value:T[R]})),p()}catch{}finally{f.detailLoading=!1}function p(){i("setBaseDetailInfo",f.baseDetailInfo)}};qr(()=>{h()}),t({getTableDetails:h});const v=ce([{title:n("field"),dataIndex:"field",width:"30%"},{title:n("type"),dataIndex:"type",width:"20%"},{title:n("required"),dataIndex:"required",width:"20%",customRender:p=>String(p==null?void 0:p.value)},{title:n("description"),dataIndex:"comment",ellipsis:!0}]),c=ce([{title:n("field"),dataIndex:"field",width:"30%"},{title:n("sourceField"),dataIndex:"sourceField",width:"30%"},{title:n("transform"),dataIndex:"transform",ellipsis:!0}]),d=ce([{title:n("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:n("value"),dataIndex:"value",ellipsis:!0}]),g=ce([{title:n("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:n("value"),dataIndex:"value",ellipsis:!0}]);return(p,y)=>{const m=$a,_=Yo("u-loading");return Y(),ft("div",TS,[U("div",CS,[f.pkList&&f.pkList.length?(Y(),ft("div",MS,[U("p",DS,X(p.$t("primaryKey")),1),Z(m,{rowKey:"field",columns:Tt(v),"data-source":f.pkList,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),f.partitionColumnList&&f.partitionColumnList.length?(Y(),ft("div",IS,[U("p",AS,X(p.$t("partitionKey")),1),Z(m,{rowKey:"field",columns:Tt(c),"data-source":f.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),U("div",LS,[U("p",PS,X(p.$t("schema")),1),Z(m,{rowKey:"field",columns:Tt(v),"data-source":f.schema,pagination:!1},null,8,["columns","data-source"])])]),U("div",RS,[f.changeMetrics&&f.changeMetrics.length?(Y(),ft("div",ES,[U("p",kS,X(p.$t("changeTableMetrics")),1),Z(m,{columns:Tt(d),"data-source":f.changeMetrics,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),U("div",OS,[U("p",BS,X(p.$t("baseTableMetrics")),1),Z(m,{columns:Tt(d),"data-source":f.baseMetrics,pagination:!1},null,8,["columns","data-source"])]),U("div",NS,[U("p",FS,X(p.$t("properties")),1),Z(m,{columns:Tt(g),"data-source":f.properties,pagination:!1},null,8,["columns","data-source"])])]),f.detailLoading?(Y(),Mt(_,{key:0})):xt("",!0)])}}}),GS=Li(zS,[["__scopeId","data-v-a1f32273"]]),HS={class:"table-partitons"},VS={class:"filter-wrap"},$S=Xr({__name:"Files",props:{hasPartition:{type:Boolean}},setup(r){const t=wt(!1),{t:e}=Ii(),n=ce([{title:e("partition"),dataIndex:"partition",ellipsis:!0},{title:e("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120,ellipsis:!0},{title:e("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),i=ce([{title:e("file"),dataIndex:"file",ellipsis:!0},{title:e("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120,ellipsis:!0},{title:e("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:e("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:e("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),a=r,o=Lt([]),s=Lt([]),l=wt(""),u=wt(0),f=wt(!1),h=Lt(zn()),v=Lt(zn()),d=Ai().query,g=Lt({catalog:"",db:"",table:"",...d}),p=wt("");async function y(x){p.value=x,await m()}async function m(){try{f.value=!0,o.length=0;const x=await dS({...g,filter:p.value,page:h.current,pageSize:h.pageSize}),{list:T,total:M}=x;h.total=M,(T||[]).forEach(D=>{D.lastCommitTime=D.lastCommitTime?me(D.lastCommitTime):"",o.push(D)})}catch{}finally{f.value=!1}}function _({current:x=1,pageSize:T=25}){!t.value&&a.hasPartition?(h.current=x,T!==h.pageSize&&(h.current=1),h.pageSize=T):(v.current=x,T!==v.pageSize&&(v.current=1),v.pageSize=T),b()}function b(){if(!a.hasPartition){w();return}t.value?w():m()}async function w(){try{s.length=0,f.value=!0;const x={...g,partition:a.hasPartition?encodeURIComponent(l.value):null,specId:u.value,page:v.current,pageSize:v.pageSize},T=await pS(x),{list:M,total:D}=T;v.total=D,(M||[]).forEach(C=>{C.commitTime=C.commitTime?me(C.commitTime):"",s.push(C)})}catch{}finally{f.value=!1}}function S(x){l.value=x.partition,u.value=x.specId,t.value=!t.value,t.value&&(v.current=1,w())}return qr(()=>{t.value=!1,a.hasPartition?m():w()}),(x,T)=>{const M=X1,D=Wa,C=$a,A=ph,L=gh,E=yh;return Y(),ft("div",HS,[!t.value&&x.hasPartition?(Y(),ft(Vt,{key:0},[U("div",VS,[Z(M,{value:p.value,"onUpdate:value":T[1]||(T[1]=R=>p.value=R),placeholder:x.$t("fileSearchPlaceholder"),onSearch:T[2]||(T[2]=R=>y(R)),style:{width:"350px"}},W1({prefix:$(()=>[Z(Tt(Y1))]),_:2},[p.value?{name:"suffix",fn:$(()=>[Z(Tt(U1),{onClick:T[0]||(T[0]=R=>y("")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),Z(C,{rowKey:"partiton",columns:Tt(n),"data-source":o,pagination:h,onChange:_,loading:f.value},{bodyCell:$(({column:R,record:P})=>[R.dataIndex==="partition"?(Y(),Mt(D,{key:0,type:"link",onClick:B=>S(P)},{default:$(()=>[_t(X(P.partition),1)]),_:2},1032,["onClick"])):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),ft(Vt,{key:1},[x.hasPartition?(Y(),Mt(L,{key:0,separator:">"},{default:$(()=>[Z(A,{onClick:S,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),Z(A,null,{default:$(()=>[_t(X(`${x.$t("partition")} ${l.value}`),1)]),_:1})]),_:1})):xt("",!0),Z(C,{rowKey:"file",columns:Tt(i),"data-source":s,pagination:v,onChange:_,loading:f.value},{bodyCell:$(({column:R,record:P})=>[R.dataIndex==="file"?(Y(),Mt(E,{key:0},{title:$(()=>[_t(X(P.file),1)]),default:$(()=>[U("span",null,X(P.file),1)]),_:2},1024)):xt("",!0),R.dataIndex==="path"?(Y(),Mt(E,{key:1},{title:$(()=>[_t(X(P.path),1)]),default:$(()=>[U("span",null,X(P.path),1)]),_:2},1024)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}}),WS=Li($S,[["__scopeId","data-v-1010f782"]]);var ty={exports:{}};/*! - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(r,t){(function(n,i){r.exports=i()})(Z1,function(){return function(){var e={686:function(a,o,s){s.d(o,{default:function(){return tt}});var l=s(279),u=s.n(l),f=s(370),h=s.n(f),v=s(817),c=s.n(v);function d(H){try{return document.execCommand(H)}catch{return!1}}var g=function(N){var F=c()(N);return d("cut"),F},p=g;function y(H){var N=document.documentElement.getAttribute("dir")==="rtl",F=document.createElement("textarea");F.style.fontSize="12pt",F.style.border="0",F.style.padding="0",F.style.margin="0",F.style.position="absolute",F.style[N?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return F.style.top="".concat(j,"px"),F.setAttribute("readonly",""),F.value=H,F}var m=function(N,F){var j=y(N);F.container.appendChild(j);var W=c()(j);return d("copy"),j.remove(),W},_=function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof N=="string"?j=m(N,F):N instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(N==null?void 0:N.type)?j=m(N.value,F):(j=c()(N),d("copy")),j},b=_;function w(H){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(F){return typeof F}:w=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},w(H)}var S=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=N.action,j=F===void 0?"copy":F,W=N.container,nt=N.target,Pt=N.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(nt!==void 0)if(nt&&w(nt)==="object"&&nt.nodeType===1){if(j==="copy"&&nt.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(nt.hasAttribute("readonly")||nt.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Pt)return b(Pt,{container:W});if(nt)return j==="cut"?p(nt):b(nt,{container:W})},x=S;function T(H){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(F){return typeof F}:T=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},T(H)}function M(H,N){if(!(H instanceof N))throw new TypeError("Cannot call a class as a function")}function D(H,N){for(var F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(H){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},k(H)}function O(H,N){var F="data-clipboard-".concat(H);if(N.hasAttribute(F))return N.getAttribute(F)}var Q=function(H){A(F,H);var N=E(F);function F(j,W){var nt;return M(this,F),nt=N.call(this),nt.resolveOptions(W),nt.listenClick(j),nt}return C(F,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=T(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var nt=this;this.listener=h()(W,"click",function(Pt){return nt.onClick(Pt)})}},{key:"onClick",value:function(W){var nt=W.delegateTarget||W.currentTarget,Pt=this.action(nt)||"copy",Rt=x({action:Pt,container:this.container,target:this.target(nt),text:this.text(nt)});this.emit(Rt?"success":"error",{action:Pt,text:Rt,trigger:nt,clearSelection:function(){nt&&nt.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(W){return O("action",W)}},{key:"defaultTarget",value:function(W){var nt=O("target",W);if(nt)return document.querySelector(nt)}},{key:"defaultText",value:function(W){return O("text",W)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(W){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return b(W,nt)}},{key:"cut",value:function(W){return p(W)}},{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],nt=typeof W=="string"?[W]:W,Pt=!!document.queryCommandSupported;return nt.forEach(function(Rt){Pt=Pt&&!!document.queryCommandSupported(Rt)}),Pt}}]),F}(u()),tt=Q},828:function(a){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(u,f){for(;u&&u.nodeType!==o;){if(typeof u.matches=="function"&&u.matches(f))return u;u=u.parentNode}}a.exports=l},438:function(a,o,s){var l=s(828);function u(v,c,d,g,p){var y=h.apply(this,arguments);return v.addEventListener(d,y,p),{destroy:function(){v.removeEventListener(d,y,p)}}}function f(v,c,d,g,p){return typeof v.addEventListener=="function"?u.apply(null,arguments):typeof d=="function"?u.bind(null,document).apply(null,arguments):(typeof v=="string"&&(v=document.querySelectorAll(v)),Array.prototype.map.call(v,function(y){return u(y,c,d,g,p)}))}function h(v,c,d,g){return function(p){p.delegateTarget=l(p.target,c),p.delegateTarget&&g.call(v,p)}}a.exports=f},879:function(a,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(a,o,s){var l=s(879),u=s(438);function f(d,g,p){if(!d&&!g&&!p)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(p))throw new TypeError("Third argument must be a Function");if(l.node(d))return h(d,g,p);if(l.nodeList(d))return v(d,g,p);if(l.string(d))return c(d,g,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(d,g,p){return d.addEventListener(g,p),{destroy:function(){d.removeEventListener(g,p)}}}function v(d,g,p){return Array.prototype.forEach.call(d,function(y){y.addEventListener(g,p)}),{destroy:function(){Array.prototype.forEach.call(d,function(y){y.removeEventListener(g,p)})}}}function c(d,g,p){return u(document.body,d,g,p)}a.exports=f},817:function(a){function o(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var u=s.hasAttribute("readonly");u||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),u||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var f=window.getSelection(),h=document.createRange();h.selectNodeContents(s),f.removeAllRanges(),f.addRange(h),l=f.toString()}return l}a.exports=o},279:function(a){function o(){}o.prototype={on:function(s,l,u){var f=this.e||(this.e={});return(f[s]||(f[s]=[])).push({fn:l,ctx:u}),this},once:function(s,l,u){var f=this;function h(){f.off(s,h),l.apply(u,arguments)}return h._=l,this.on(s,h,u)},emit:function(s){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[s]||[]).slice(),f=0,h=u.length;for(f;f{const t=(r==null?void 0:r.appendToBody)===void 0?!0:r.appendToBody;return{toClipboard(e,n){return new Promise((i,a)=>{const o=document.createElement("button"),s=new YS(o,{text:()=>e,action:()=>"copy",container:n!==void 0?n:document.body});s.on("success",l=>{s.destroy(),i(l)}),s.on("error",l=>{s.destroy(),a(l)}),t&&document.body.appendChild(o),o.click(),t&&document.body.removeChild(o)})}}},qS={class:"table-operations"},ZS=["onClick"],KS=Xr({__name:"Operations",setup(r){const{toClipboard:t}=XS(),{t:e}=Ii(),n=ce([{title:e("time"),dataIndex:"ts",width:"30%"},{title:e("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),i=wt(!1),a=wt(""),o=Lt([]),s=wt(!1),l=Lt(zn()),f=Ai().query,h=Lt({catalog:"",db:"",table:"",...f});async function v(){try{s.value=!0,o.length=0;const y=await gS({...h,page:l.current,pageSize:l.pageSize}),{total:m,list:_}=y;l.total=m,(_||[]).forEach(b=>{b.ts=b.ts?me(b.ts):"",o.push(b)})}catch{}finally{s.value=!1}}function c({current:y=1,pageSize:m=25}=l){l.current=y,m!==l.pageSize&&(l.current=1),l.pageSize=m,v()}function d(y){i.value=!0,a.value=y.operation}function g(){i.value=!1}async function p(){try{await t(a.value),K1.success(e("copySuccess")),g()}catch{}}return qr(()=>{v()}),(y,m)=>{const _=$a,b=Wa,w=Zg;return Y(),ft(Vt,null,[U("div",qS,[Z(_,{rowKey:"partiton",columns:Tt(n),"data-source":o,pagination:l,onChange:c,loading:s.value},{bodyCell:$(({column:S,record:x})=>[S.dataIndex==="operation"?(Y(),ft("span",{key:0,class:"text-active g-max-line-3",onClick:T=>d(x)},X(x.operation),9,ZS)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),Z(w,{visible:i.value,width:560,title:`${y.$t("operationDetails")}`,onCancel:g,class:"operation-wrap"},{footer:$(()=>[Z(b,{type:"primary",onClick:p},{default:$(()=>[_t(X(y.$t("copy")),1)]),_:1})]),default:$(()=>[_t(X(a.value)+" ",1)]),_:1},8,["visible","title"])],64)}}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var ju=function(r,t){return ju=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},ju(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ju(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var QS=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),jS=function(){function r(){this.browser=new QS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),xn=new jS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xn.wxa=!0,xn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xn.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(xn.node=!0,xn.svgSupported=!0):JS(navigator.userAgent,xn);function JS(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const st=xn;var mh=12,tb="sans-serif",Gn=mh+"px "+tb,eb=20,rb=100,nb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ib(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Pb(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?Zc(s,o):Zc(o,s))}function py(r){return r.nodeName.toUpperCase()==="CANVAS"}var Rb=/([&<>"'])/g,Eb={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace(Rb,function(t,e){return Eb[e]})}var kb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ml=[],Ob=st.browser.firefox&&+st.browser.version.split(".")[0]<39;function nf(r,t,e,n){return e=e||{},n?Qc(r,t,e):Ob&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Qc(r,t,e),e}function Qc(r,t,e){if(st.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(py(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(rf(Ml,r,n,i)){e.zrX=Ml[0],e.zrY=Ml[1];return}}e.zrX=e.zrY=0}function Dh(r){return r||window.event}function Ce(r,t,e){if(t=Dh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&nf(r,o,t,e)}else{nf(r,t,t,e);var a=Bb(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kb.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Bb(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Nb(r,t,e,n){r.addEventListener(t,e,n)}function Fb(r,t,e,n){r.removeEventListener(t,e,n)}var gy=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},zb=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=jc(n)/jc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Gb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function zr(){return[1,0,0,1,0,0]}function Xa(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ih(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Gr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function cs(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function $s(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function yy(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Ri(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function Hb(r){var t=zr();return Ih(t,r),t}const Vb=Object.freeze(Object.defineProperty({__proto__:null,clone:Hb,copy:Ih,create:zr,identity:Xa,invert:Ri,mul:Gr,rotate:$s,scale:yy,translate:cs},Symbol.toStringTag,{value:"Module"}));var at=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}(),ao=Math.min,oo=Math.max,Jr=new at,tn=new at,en=new at,rn=new at,Ni=new at,Fi=new at,$b=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=ao(t.x,this.x),n=ao(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oo(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=zr();return cs(a,a,[-e.x,-e.y]),yy(a,a,[n,i]),cs(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(ad&&(d=_,gd&&(d=b,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Jr.x=en.x=e.x,Jr.y=rn.y=e.y,tn.x=rn.x=e.x+e.width,tn.y=en.y=e.y+e.height,Jr.transform(n),rn.transform(n),tn.transform(n),en.transform(n),t.x=ao(Jr.x,tn.x,en.x,rn.x),t.y=ao(Jr.y,tn.y,en.y,rn.y);var l=oo(Jr.x,tn.x,en.x,rn.x),u=oo(Jr.y,tn.y,en.y,rn.y);t.width=l-t.x,t.height=u-t.y},r}();const ht=$b;var my="silent";function Wb(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Ub}}function Ub(){gy(this.event)}var Yb=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(or),zi=function(){function r(t,e){this.x=t,this.y=e}return r}(),Xb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Il=new ht(0,0,0,0),_y=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new zi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Yb,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Db(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(Xb,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Sy(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new zi(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new zi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=Wb(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new zi(e,n);if(Jc(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ht(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Il.copy(v.getBoundingRect()),v.transform&&Il.applyTransform(v.transform),Il.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function qb(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?my:!0}return!1}function Jc(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=qb(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==my)){t.target=o;break}}}function Sy(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const Zb=_y;var by=32,Gi=7;function Kb(r){for(var t=0;r>=by;)t|=r&1,r>>=1;return r+t}function tv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function Qb(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Al(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ll(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function jb(r,t){var e=Gi,n,i,a=0,o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]=Gi||x>=Gi);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[S+y]=r[w+y];r[b]=o[_];return}for(var x=e;;){var T=0,M=0,D=!1;do if(t(o[_],r[m])<0){if(r[b--]=r[m--],T++,M=0,--d===0){D=!0;break}}else if(r[b--]=o[_--],M++,T=0,--p===1){D=!0;break}while((T|M)=0;y--)r[S+y]=r[w+y];if(d===0){D=!0;break}}if(r[b--]=o[_--],--p===1){D=!0;break}if(M=p-Al(r[m],o,0,p,p-1,t),M!==0){for(b-=M,_-=M,p-=M,S=b+1,w=_+1,y=0;y=Gi||M>=Gi);if(D)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(b-=d,m-=d,S=b+1,w=m+1,y=d-1;y>=0;y--)r[S+y]=r[w+y];r[b]=o[_]}else{if(p===0)throw new Error;for(w=b-(p-1),y=0;ys&&(l=s),ev(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ye=1,aa=2,hi=4,rv=!1;function Pl(){rv||(rv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Jb=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nv}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Pl(),f.z=0),isNaN(f.z2)&&(Pl(),f.z2=0),isNaN(f.zlevel)&&(Pl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),wy;wy=st.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const af=wy;var pa={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-pa.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?pa.bounceIn(r*2)*.5:pa.bounceOut(r*2-1)*.5+.5}},so=Math.pow,Hr=Math.sqrt,vs=1e-8,xy=1e-4,iv=Hr(3),lo=1/3,Qe=Un(),Ie=Un(),mi=Un();function Br(r){return r>-vs&&rvs||r<-vs}function zt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function av(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ds(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Br(f)&&Br(h))if(Br(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var g=h*h-4*f*v;if(Br(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y)}else if(g>0){var m=Hr(g),_=f*s+1.5*o*(-h+m),b=f*s+1.5*o*(-h-m);_<0?_=-so(-_,lo):_=so(_,lo),b<0?b=-so(-b,lo):b=so(b,lo);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Hr(f*f*f)),S=Math.acos(w)/3,x=Hr(f),T=Math.cos(S),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+iv*Math.sin(S)))/(3*o),M=(-s+x*(T-iv*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),M>=0&&M<=1&&(a[c++]=M)}}return c}function Cy(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Br(o)){if(Ty(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Br(f))i[0]=-a/(2*o);else if(f>0){var h=Hr(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function $r(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function My(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,g,p,y;Qe[0]=l,Qe[1]=u;for(var m=0;m<1;m+=.05)Ie[0]=zt(r,e,i,o,m),Ie[1]=zt(t,n,a,s,m),p=Rn(Qe,Ie),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Br(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Hr(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Dy(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function ps(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Iy(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Qe[0]=o,Qe[1]=s;for(var v=0;v<1;v+=.05){Ie[0]=Zt(r,e,i,v),Ie[1]=Zt(t,n,a,v);var c=Rn(Qe,Ie);c=0&&c=1?1:ds(0,n,a,1,l,s)&&zt(0,i,o,1,s[0])}}}var iw=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ne,this.ondestroy=t.ondestroy||ne,this.onrestart=t.onrestart||ne,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rt(t)?t:pa[t]||Ay(t)},r}();const aw=iw;var Ly=function(){function r(t){this.value=t}return r}(),ow=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Ly(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),qa=function(){function r(t){this._list=new ow,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Ly(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),sv={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function We(r){return r=Math.round(r),r<0?0:r>255?255:r}function sw(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ia(r){return r<0?0:r>1?1:r}function Rl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?We(parseFloat(t)/100*255):We(parseInt(t,10))}function En(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ia(parseFloat(t)/100):Ia(parseFloat(t))}function El(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Nr(r,t,e){return r+(t-r)*e}function Te(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function of(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Py=new qa(20),uo=null;function Kn(r,t){uo&&of(uo,t),uo=Py.put(r,uo||t.slice())}function _e(r,t){if(r){t=t||[];var e=Py.get(r);if(e)return of(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in sv)return of(t,sv[n]),Kn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Te(t,0,0,0,1);return}return Te(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Kn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Te(t,0,0,0,1);return}return Te(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Kn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Te(t,+u[0],+u[1],+u[2],1):Te(t,0,0,0,1);f=En(u.pop());case"rgb":if(u.length>=3)return Te(t,Rl(u[0]),Rl(u[1]),Rl(u[2]),u.length===3?f:En(u[3])),Kn(r,t),t;Te(t,0,0,0,1);return;case"hsla":if(u.length!==4){Te(t,0,0,0,1);return}return u[3]=En(u[3]),sf(u,t),Kn(r,t),t;case"hsl":if(u.length!==3){Te(t,0,0,0,1);return}return sf(u,t),Kn(r,t),t;default:return}}Te(t,0,0,0,1)}}function sf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=En(r[1]),i=En(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Te(t,We(El(o,a,e+1/3)*255),We(El(o,a,e)*255),We(El(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function lw(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:e===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function lf(r,t){var e=_e(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Zr(e,e.length===4?"rgba":"rgb")}}function uw(r){var t=_e(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ry(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=We(Nr(o[0],s[0],l)),e[1]=We(Nr(o[1],s[1],l)),e[2]=We(Nr(o[2],s[2],l)),e[3]=Ia(Nr(o[3],s[3],l)),e}}var fw=Ry;function Ah(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=_e(t[i]),s=_e(t[a]),l=n-i,u=Zr([We(Nr(o[0],s[0],l)),We(Nr(o[1],s[1],l)),We(Nr(o[2],s[2],l)),Ia(Nr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var hw=Ah;function cw(r,t,e,n){var i=_e(r);if(r)return i=lw(i),t!=null&&(i[0]=sw(t)),e!=null&&(i[1]=En(e)),n!=null&&(i[2]=En(n)),Zr(sf(i),"rgba")}function vw(r,t){var e=_e(r);if(e&&t!=null)return e[3]=Ia(t),Zr(e,"rgba")}function Zr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Aa(r,t){var e=_e(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function dw(){return Zr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var lv=new qa(100);function uf(r){if(q(r)){var t=lv.get(r);return t||(t=lf(r,-.1),lv.put(r,t)),t}else if(Ua(r)){var e=z({},r);return e.colorStops=K(r.colorStops,function(n){return{offset:n.offset,color:lf(n.color,-.1)}}),e}return r}const pw=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ry,fastMapToColor:fw,lerp:Ah,lift:lf,liftColor:uf,lum:Aa,mapToColor:hw,modifyAlpha:vw,modifyHSL:cw,parse:_e,random:dw,stringify:Zr,toHex:uw},Symbol.toStringTag,{value:"Module"}));function gw(r){return r.type==="linear"}function yw(r){return r.type==="radial"}(function(){return st.hasGlobalWindow&&rt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var ff=Array.prototype.slice;function hr(r,t,e){return(t-r)*e+r}function kl(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=fv,l=e;if(Qt(e)){var u=bw(e);s=u,(u===1&&!St(e[0])||u===2&&!St(e[0][0]))&&(o=!0)}else if(St(e)&&!Ma(e))s=ho;else if(q(e))if(!isNaN(+e))s=ho;else{var f=_e(e);f&&(l=f,s=oa)}else if(Ua(e)){var h=z({},l);h.colorStops=K(e.colorStops,function(c){return{offset:c.offset,color:_e(c.color)}}),gw(e)?s=hf:yw(e)&&(s=cf),l=h}a===0?this.valType=s:(s!==this.valType||s===fv)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=rt(n)?n:pa[n]||Ay(n)),i.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=co(i),u=hv(i),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;fe);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-c.percent,y=p===0?1:v((e-c.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Hi:t[l];if((co(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:d.rawValue;else if(co(a))a===Qo?kl(m,c[i],d[i],y):mw(m,c[i],d[i],y);else if(hv(a)){var _=c[i],b=d[i],w=a===hf;t[l]={type:w?"linear":"radial",x:hr(_.x,b.x,y),y:hr(_.y,b.y,y),colorStops:K(_.colorStops,function(x,T){var M=b.colorStops[T];return{offset:hr(x.offset,M.offset,y),color:Ko(kl([],x.color,M.color,y))}}),global:b.global},w?(t[l].x2=hr(_.x2,b.x2,y),t[l].y2=hr(_.y2,b.y2,y)):t[l].r=hr(_.r,b.r,y)}else if(u)kl(m,c[i],d[i],y),n||(t[l]=Ko(m));else{var S=hr(c[i],d[i],y);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===ho?t[n]=t[n]+i:e===oa?(_e(t[n],Hi),fo(Hi,Hi,i,1),t[n]=Ko(Hi)):e===Qo?fo(t[n],t[n],i,1):e===Ey&&uv(t[n],t[n],i,1)},r}(),Lh=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Hs("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ct(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Zo(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Zo(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function vi(){return new Date().getTime()}var xw=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(af(n),!e._paused&&e.update())}af(n)},t.prototype.start=function(){this._running||(this._time=vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Lh(e,n.loop);return this.addAnimator(i),i},t}(or),Tw=300,Ol=st.domSupported,Bl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=K(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),cv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vv=!1;function vf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Cw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Nl(r){r&&(r.zrByTouch=!0)}function Mw(r,t){return Ce(r.dom,new Dw(r,t),!0)}function ky(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Dw=function(){function r(t,e){this.stopPropagation=ne,this.stopImmediatePropagation=ne,this.preventDefault=ne,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ze={mousedown:function(r){r=Ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ce(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ce(this.dom,r);var t=r.toElement||r.relatedTarget;ky(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){vv=!0,r=Ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){vv||(r=Ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ce(this.dom,r),Nl(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ze.mousemove.call(this,r),ze.mousedown.call(this,r)},touchmove:function(r){r=Ce(this.dom,r),Nl(r),this.handler.processGesture(r,"change"),ze.mousemove.call(this,r)},touchend:function(r){r=Ce(this.dom,r),Nl(r),this.handler.processGesture(r,"end"),ze.mouseup.call(this,r),+new Date-+this.__lastTouchMomentgv||r<-gv}var an=[],Qn=[],zl=zr(),Gl=Math.abs,Ew=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return nn(this.rotation)||nn(this.x)||nn(this.y)||nn(this.scaleX-1)||nn(this.scaleY-1)||nn(this.skewX)||nn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(pv(n),this.invTransform=null);return}n=n||zr(),e?this.getLocalTransform(n):pv(n),t&&(e?Gr(n,t,n):Ih(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(an);var n=an[0]<0?-1:1,i=an[1]<0?-1:1,a=((an[0]-n)*e+n)/an[0]||0,o=((an[1]-i)*e+i)/an[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||zr(),Ri(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||zr(),Gr(Qn,t.invTransform,e),e=Qn);var n=this.originX,i=this.originY;(n||i)&&(zl[4]=n,zl[5]=i,Gr(Qn,e,zl),Qn[4]-=n,Qn[5]-=i,e=Qn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ie(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ie(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Gl(t[0]-1)>1e-10&&Gl(t[3]-1)>1e-10?Math.sqrt(Gl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){kw(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,g=i+l;e[4]=-d*a-v*g*o,e[5]=-g*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&$s(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),La=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function kw(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function ys(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Wr(n[0],e.width),u+=Wr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Hl="__zr_normal__",Vl=La.concat(["ignore"]),Ow=rr(La,function(r,t){return r[t]=!0,r},{ignore:!1}),jn={},Bw=new ht(0,0,0,0),Eh=function(){function r(t){this.id=bh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=Bw;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jn,n,f):ys(jn,n,f),a.x=jn.x,a.y=jn.y,o=jn.align,s=jn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Wr(h[0],f.width),c=Wr(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ye,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?yf:gf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&_e(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Zr(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},z(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(J(t))for(var n=t,i=Ct(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Hl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===Hl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Hs("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,n,f),v&&v.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ye),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,v),p&&p.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ye)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=yt(i,t),o=yt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var v=0;v0||i.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},v&&(T={});for(var b=0;b<_;b++){var y=g[b];M[y]=e[y],v?T[y]=n[y]:e[y]=n[y]}}else if(v){D={};for(var b=0;b<_;b++){var y=g[b];D[y]=Zo(e[y]),Fw(e,n,y)}}var w=new Lh(e,!1,!1,h?It(d,function(A){return A.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,g),D&&w.whenWithKeys(0,D,g),w.whenWithKeys(u??500,s?M:n,g).delay(f||0),r.addAnimator(w,t),o.push(w)}}const Ny=Eh;var Fy=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=yt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=yt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function $t(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return q(r)?Kw(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Bt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Hy),r=(+r).toFixed(t),e?r:+r}function Qw(r){return r.sort(function(t,e){return t-e}),r}function je(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Vy(r)}function Vy(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function $y(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function jw(r,t,e){if(!r[t])return 0;var n=Jw(r,e);return n[t]||0}function Jw(r,t){var e=rr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=K(r,function(c){return(isNaN(c)?0:c)/e*n*100}),a=n*100,o=K(i,function(c){return Math.floor(c)}),s=rr(o,function(c,d){return c+d},0),l=K(i,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return K(o,function(c){return c/n})}function tx(r,t){var e=Math.max(je(r),je(t)),n=r+t;return e>Hy?n:Bt(n,e)}var ex=9007199254740991;function kh(r){var t=Math.PI*2;return(r%t+t)%t}function Pa(r){return r>-_v&&r<_v}var rx=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Pe(r){if(r instanceof Date)return r;if(q(r)){var t=rx.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Wy(r){return Math.pow(10,Ws(r))}function Ws(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Oh(r,t){var e=Ws(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function nx(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function ix(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||a&&yt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Ix=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Ax=Ea(Ix),Lx=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Ax(this,t,e)},r}(),bf=new qa(50);function Px(r){if(typeof r=="string"){var t=bf.get(r);return t&&t.image}else return r}function tm(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=bf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ys(t)&&a.pending.push(o)):(t=gr.loadImage(r,Tv,Tv),t.__zrImageSrc=r,bf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Tv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Se(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function nm(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=Se(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?Rx(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=Se(r,n)}return r===""&&(r=t.placeholder),r}function Rx(r,t,e,n){for(var i=0,a=0,o=r.length;ac&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=rm(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&Xl(e,r.substring(s,u),t,o),Xl(e,l[2],t,o,l[1]),s=Yl.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),p(m,b,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var A=x.width,L=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")S.percentWidth=A,f.push(S),S.contentWidth=Se(S.text,D);else{if(L){var E=x.backgroundColor,R=E&&E.image;R&&(R=Px(R),Ys(R)&&(S.width=Math.max(S.width,R.width*C/R.height)))}var P=d&&n!=null?n-b:null;P!=null&&P0&&d+n.accumWidth>n.width&&(f=t.split(` -`),u=!0),n.accumWidth=d}else{var g=im(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+c,h=g.linesWidths,f=g.lines}}else f=t.split(` -`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Fx=rr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function zx(r){return Nx(r)?!!Fx[r]:!0}function im(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he:i+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var wf="__zr_style_"+Math.round(Math.random()*10),kn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kn[wf]=!0;var Mv=["z","z2","invisible"],Gx=["invisible"],Hx=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ct(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(vo[0]=Ql(i)*e+r,vo[1]=Kl(i)*n+t,po[0]=Ql(a)*e+r,po[1]=Kl(a)*n+t,u(s,vo,po),f(l,vo,po),i=i%sn,i<0&&(i=i+sn),a=a%sn,a<0&&(a=a+sn),i>a&&!o?a+=sn:ii&&(go[0]=Ql(c)*e+r,go[1]=Kl(c)*n+t,u(s,go,s),f(l,go,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ln=[],un=[],Ye=[],xr=[],Xe=[],qe=[],jl=Math.min,Jl=Math.max,fn=Math.cos,hn=Math.sin,ur=Math.abs,xf=Math.PI,Pr=xf*2,tu=typeof Float32Array<"u",Vi=[];function eu(r){var t=Math.round(r/xf*1e8)/1e8;return t%2*xf}function Yx(r,t){var e=eu(r[0]);e<0&&(e+=Pr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Pr?i=e+Pr:t&&e-i>=Pr?i=e-Pr:!t&&e>i?i=e+(Pr-eu(e-i)):t&&e0&&(this._ux=ur(n/gs/t)||0,this._uy=ur(n/gs/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(mt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=ur(t-this._xi),i=ur(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(mt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(mt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Vi[0]=i,Vi[1]=a,Yx(Vi,o),i=Vi[0],a=Vi[1];var s=a-i;return this.addData(mt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=fn(a)*n+t,this._yi=hn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(mt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&tu&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ye[0]=Ye[1]=Xe[0]=Xe[1]=Number.MAX_VALUE,xr[0]=xr[1]=qe[0]=qe[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||ur(_)>i||v===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case mt.C:{var b=t[v++],w=t[v++],p=t[v++],y=t[v++],S=t[v++],x=t[v++];g=tw(a,o,b,w,p,y,S,x,10),a=S,o=x;break}case mt.Q:{var b=t[v++],w=t[v++],p=t[v++],y=t[v++];g=rw(a,o,b,w,p,y,10),a=p,o=y;break}case mt.A:var T=t[v++],M=t[v++],D=t[v++],C=t[v++],A=t[v++],L=t[v++],E=L+A;v+=1,d&&(s=fn(A)*D+T,l=hn(A)*C+M),g=Jl(D,C)*jl(Pr,Math.abs(L)),a=fn(E)*D+T,o=hn(E)*C+M;break;case mt.R:{s=a=t[v++],l=o=t[v++];var R=t[v++],P=t[v++];g=R*2+P*2;break}case mt.Z:{var m=s-a,_=l-o;g=Math.sqrt(m*m+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,g,p=0,y=0,m,_=0,b,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m)))t:for(var S=0;S0&&(t.lineTo(b,w),_=0),x){case mt.M:s=u=n[S++],l=f=n[S++],t.moveTo(u,f);break;case mt.L:{h=n[S++],v=n[S++];var M=ur(h-u),D=ur(v-f);if(M>i||D>a){if(c){var C=d[y++];if(p+C>m){var A=(m-p)/C;t.lineTo(u*(1-A)+h*A,f*(1-A)+v*A);break t}p+=C}t.lineTo(h,v),u=h,f=v,_=0}else{var L=M*M+D*D;L>_&&(b=h,w=v,_=L)}break}case mt.C:{var E=n[S++],R=n[S++],P=n[S++],B=n[S++],k=n[S++],O=n[S++];if(c){var C=d[y++];if(p+C>m){var A=(m-p)/C;$r(u,E,P,k,A,ln),$r(f,R,B,O,A,un),t.bezierCurveTo(ln[1],un[1],ln[2],un[2],ln[3],un[3]);break t}p+=C}t.bezierCurveTo(E,R,P,B,k,O),u=k,f=O;break}case mt.Q:{var E=n[S++],R=n[S++],P=n[S++],B=n[S++];if(c){var C=d[y++];if(p+C>m){var A=(m-p)/C;ps(u,E,P,A,ln),ps(f,R,B,A,un),t.quadraticCurveTo(ln[1],un[1],ln[2],un[2]);break t}p+=C}t.quadraticCurveTo(E,R,P,B),u=P,f=B;break}case mt.A:var Q=n[S++],tt=n[S++],H=n[S++],N=n[S++],F=n[S++],j=n[S++],W=n[S++],nt=!n[S++],Pt=H>N?H:N,Rt=ur(H-N)>.001,Et=F+j,it=!1;if(c){var C=d[y++];p+C>m&&(Et=F+j*(m-p)/C,it=!0),p+=C}if(Rt&&t.ellipse?t.ellipse(Q,tt,H,N,W,F,Et,nt):t.arc(Q,tt,Pt,F,Et,nt),it)break t;T&&(s=fn(F)*H+Q,l=hn(F)*N+tt),u=fn(Et)*H+Q,f=hn(Et)*N+tt;break;case mt.R:s=u=n[S],l=f=n[S+1],h=n[S++],v=n[S++];var dt=n[S++],jr=n[S++];if(c){var C=d[y++];if(p+C>m){var jt=m-p;t.moveTo(h,v),t.lineTo(h+jl(jt,dt),v),jt-=dt,jt>0&&t.lineTo(h+dt,v+jl(jt,jr)),jt-=jr,jt>0&&t.lineTo(h+Jl(dt-jt,0),v+jr),jt-=dt,jt>0&&t.lineTo(h,v+Jl(jr-jt,0));break t}p+=C}t.rect(h,v,dt,jr);break;case mt.Z:if(c){var C=d[y++];if(p+C>m){var A=(m-p)/C;t.lineTo(u*(1-A)+s*A,f*(1-A)+l*A);break t}p+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=mt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Jn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>i+h&&u>o+h||ut+u&&l>n+u&&l>a+u||lr+u&&s>e+u&&s>i+u||se||f+ui&&(i+=$i);var v=Math.atan2(l,s);return v<0&&(v+=$i),v>=n&&v<=i||v+$i>=n&&v+$i<=i}function cr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Tr=mr.CMD,cn=Math.PI*2,Kx=1e-4;function Qx(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&jx(),c=zt(t,n,a,s,De[0]),v>1&&(d=zt(t,n,a,s,De[1]))),v===2?pt&&s>n&&s>a||s=0&&u<=1){for(var f=0,h=Zt(t,n,a,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=cn-1e-4){n=0,i=cn;var f=a?1:-1;return o>=ee[0]+r&&o<=ee[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=cn,i+=cn);for(var v=0,c=0;c<2;c++){var d=ee[c];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=cn+g),(g>=n&&g<=i||g+cn>=n&&g+cn<=i)&&(g>Math.PI/2&&g1&&(e||(s+=cr(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),g){case Tr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Tr.L:if(e){if(Jn(l,u,a[d],a[d+1],t,n,i))return!0}else s+=cr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.C:if(e){if(Xx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Jx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.Q:if(e){if(qx(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=tT(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.A:var y=a[d++],m=a[d++],_=a[d++],b=a[d++],w=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*b+m,p?(f=v,h=c):s+=cr(l,u,v,c,n,i);var T=(n-y)*b/_+y;if(e){if(Zx(y,m,b,w,w+S,x,t,T,i))return!0}else s+=eT(y,m,b,w,w+S,x,T,i);l=Math.cos(w+S)*_+y,u=Math.sin(w+S)*b+m;break;case Tr.R:f=l=a[d++],h=u=a[d++];var M=a[d++],D=a[d++];if(v=f+M,c=h+D,e){if(Jn(f,h,v,h,t,n,i)||Jn(v,h,v,c,t,n,i)||Jn(v,c,f,c,t,n,i)||Jn(f,c,f,h,t,n,i))return!0}else s+=cr(v,h,v,c,n,i),s+=cr(f,c,f,h,n,i);break;case Tr.Z:if(e){if(Jn(l,u,f,h,t,n,i))return!0}else s+=cr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!Qx(u,h)&&(s+=cr(l,u,f,h,n,i)||0),s!==0}function rT(r,t,e){return om(r,0,!1,t,e)}function nT(r,t,e,n){return om(r,t,!0,e,n)}var sm=lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kn),iT={style:lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xs.style)},ru=La.concat(["invisible","culling","z","z2","zlevel","parent"]),ct=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?gf:n>.2?Rw:yf}else if(e)return yf}return gf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Aa(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&hi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),nT(s,l/u,e,n)))return!0}if(this.hasFill())return rT(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=hi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:z(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&hi)},t.prototype.createStyle=function(e){return Ya(sm,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=z({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},h=Ct(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Ya(aT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=Ph(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ei);lm.prototype.type="tspan";const Tf=lm;var oT=lt({x:0,y:0},kn),sT={style:lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xs.style)};function lT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var um=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ya(oT,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=lT(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return sT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ht(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ei);um.prototype.type="image";const Kr=um;function uT(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var di=Math.round;function fm(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(di(n*2)===di(i*2)&&(r.x1=r.x2=Dn(n,s,!0)),di(a*2)===di(o*2)&&(r.y1=r.y2=Dn(a,s,!0))),r}}function hm(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Dn(n,s,!0),r.y=Dn(i,s,!0),r.width=Math.max(Dn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Dn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Dn(r,t,e){if(!t)return r;var n=di(r*2);return(n+di(t))%2===0?n/2:(n+(e?1:-1))/2}var fT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),hT={},cm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new fT},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=hm(hT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?uT(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ct);cm.prototype.type="rect";const Ft=cm;var Pv={fill:"#000"},Rv=2,cT={style:lt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Xs.style)},vm=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Pv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,A=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,E=0;E=0&&(E=S[L],E.align==="right");)this._placeToken(E,e,T,y,A,"right",_),M-=E.width,A-=E.width,L--;for(C+=(a-(C-p)-(m-A)-M)/2;D<=L;)E=S[D],this._placeToken(E,e,T,y,C+E.width/2,"center",_),C+=E.width,D++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var v=!e.isLineHolder&&nu(u);v&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=Fv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Tf),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,b=Nv("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Bv("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Rv,y.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,S&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Gn,p.opacity=va(u.opacity,n.opacity,1),kv(p,u),w&&(p.lineWidth=va(u.lineWidth,n.lineWidth,_),p.lineDash=ot(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),b&&(p.fill=b);var x=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ht(sa(p.x,x,p.textAlign),ci(p.y,T,p.textBaseline),x,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,v=l&&!h,c=e.borderRadius,d=this,g,p;if(v||e.lineHeight||u&&f){g=this._getOrCreateChild(Ft),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=c,g.dirtyShape()}if(v){var m=g.style;m.fill=l||null,m.fillOpacity=ot(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Kr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ot(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=va(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return gT(e)&&(n=[e.fontStyle,e.fontWeight,pT(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ve(n)||e.textFont||e.font},t}(Ei),vT={left:!0,right:1,center:1},dT={top:1,bottom:1,middle:1},Ev=["fontStyle","fontWeight","fontSize","fontFamily"];function pT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mh+"px":r+"px"}function kv(r,t){for(var e=0;e=0,a=!1;if(r instanceof ct){var o=dm(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ti(s)||ti(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!ti(u.fill)&&ti(s)?(a=!0,n=z({},n),u=z({},u),u.fill=uf(s)):!ti(u.stroke)&&ti(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=uf(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??_T)}return n}function CT(r,t,e){if(e&&e.z2==null){e=z({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??ST)}return e}function MT(r,t,e){var n=yt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:xT(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:n?i:a.opacity*.1},o),e.style=o),e}function iu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return TT(this,r,t,e);if(r==="blur")return MT(this,r,e);if(r==="select")return CT(this,r,e)}return e}function DT(r){r.stateProxy=iu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=iu),e&&(e.stateProxy=iu)}function Wv(r,t){!bm(r,t)&&!r.__highByOuter&&br(r,pm)}function Uv(r,t){!bm(r,t)&&!r.__highByOuter&&br(r,gm)}function _s(r,t){r.__highByOuter|=1<<(t||0),br(r,pm)}function Ss(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&br(r,gm)}function IT(r){br(r,Hh)}function mm(r){br(r,ym)}function _m(r){br(r,bT)}function Sm(r){br(r,wT)}function bm(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wm(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=zh(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){ym(u)}),s&&e.push(a)),o.isBlured=!1}),I(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Cf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function bs(r,t,e){xm(r,!0),br(r,DT),OT(r,t,e)}function kT(r){xm(r,!1)}function ws(r,t,e,n){n?kT(r):bs(r,t,e)}function OT(r,t,e){var n=ut(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var Xv=["emphasis","blur","select"],BT={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Df(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=au(d),s*=au(d));var g=(i===a?-1:1)*au((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=g*o*c/s,y=g*-s*v/o,m=(r+e)/2+mo(h)*p-yo(h)*y,_=(t+n)/2+yo(h)*p+mo(h)*y,b=Qv([1,0],[(v-p)/o,(c-y)/s]),w=[(v-p)/o,(c-y)/s],S=[(-1*v-p)/o,(-1*c-y)/s],x=Qv(w,S);if(Lf(w,S)<=-1&&(x=Wi),Lf(w,S)>=1&&(x=0),x<0){var T=Math.round(x/Wi*1e6)/1e6;x=Wi*2+T%2*Wi}f.addData(u,m,_,o,s,b,x,h,a)}var HT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,VT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $T(r){var t=new mr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=mr.CMD,l=r.match(HT);if(!l)return t;for(var u=0;uE*E+R*R&&(T=D,M=C),{cx:T,cy:M,x0:-f,y0:-h,x1:T*(i/w-1),y1:M*(i/w-1)}}function QT(r){var t;if(V(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function jT(r,t){var e,n=la(t.r,0),i=la(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=Jv(u-l),d=c>ou&&c%ou;if(d>Fe&&(c=d),!(n>Fe))r.moveTo(f,h);else if(c>ou-Fe)r.moveTo(f+n*ri(l),h+n*vn(l)),r.arc(f,h,n,l,u,!v),i>Fe&&(r.moveTo(f+i*ri(u),h+i*vn(u)),r.arc(f,h,i,u,l,v));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,T=void 0,M=void 0,D=void 0,C=void 0,A=void 0,L=void 0,E=void 0,R=n*ri(l),P=n*vn(l),B=i*ri(u),k=i*vn(u),O=c>Fe;if(O){var Q=t.cornerRadius;Q&&(e=QT(Q),g=e[0],p=e[1],y=e[2],m=e[3]);var tt=Jv(n-i)/2;if(_=Ze(tt,y),b=Ze(tt,m),w=Ze(tt,g),S=Ze(tt,p),M=x=la(_,b),D=T=la(w,S),(x>Fe||T>Fe)&&(C=n*ri(u),A=n*vn(u),L=i*ri(l),E=i*vn(l),cFe){var Rt=Ze(y,M),Et=Ze(m,M),it=_o(L,E,R,P,n,Rt,v),dt=_o(C,A,B,k,n,Et,v);r.moveTo(f+it.cx+it.x0,h+it.cy+it.y0),M0&&r.arc(f+it.cx,h+it.cy,Rt,Xt(it.y0,it.x0),Xt(it.y1,it.x1),!v),r.arc(f,h,n,Xt(it.cy+it.y1,it.cx+it.x1),Xt(dt.cy+dt.y1,dt.cx+dt.x1),!v),Et>0&&r.arc(f+dt.cx,h+dt.cy,Et,Xt(dt.y1,dt.x1),Xt(dt.y0,dt.x0),!v))}else r.moveTo(f+R,h+P),r.arc(f,h,n,l,u,!v);if(!(i>Fe)||!O)r.lineTo(f+B,h+k);else if(D>Fe){var Rt=Ze(g,D),Et=Ze(p,D),it=_o(B,k,C,A,i,-Et,v),dt=_o(R,P,L,E,i,-Rt,v);r.lineTo(f+it.cx+it.x0,h+it.cy+it.y0),D0&&r.arc(f+it.cx,h+it.cy,Et,Xt(it.y0,it.x0),Xt(it.y1,it.x1),!v),r.arc(f,h,i,Xt(it.cy+it.y1,it.cx+it.x1),Xt(dt.cy+dt.y1,dt.cx+dt.x1),v),Rt>0&&r.arc(f+dt.cx,h+dt.cy,Rt,Xt(dt.y1,dt.x1),Xt(dt.y0,dt.x0),!v))}else r.lineTo(f+B,h+k),r.arc(f,h,i,u,l,v)}r.closePath()}}}var JT=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Pm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new JT},t.prototype.buildPath=function(e,n){jT(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ct);Pm.prototype.type="sector";const Ur=Pm;var tC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Rm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(ct);Rm.prototype.type="ring";const Uh=Rm;function eC(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(n){var a=eC(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;spn[1]){if(s=!1,a)return s;var f=Math.abs(pn[0]-dn[1]),h=Math.abs(dn[0]-pn[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Yt(r,t,e,n,i,a){qh("update",r,t,e,n,i,a)}function ve(r,t,e,n,i,a){qh("enter",r,t,e,n,i,a)}function _i(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function rd(r){return!r.isGroup}function _C(r){return r.shape!=null}function Qm(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){rd(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _C(o)&&(s.shape=z({},o.shape)),s}var a=n(r);t.traverse(function(o){if(rd(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Yt(o,l,e,ut(o).dataIndex)}}})}function jm(r,t){return K(r,function(e){var n=e[0];n=Cs(n,t.x),n=Ms(n,t.x+t.width);var i=e[1];return i=Cs(i,t.y),i=Ms(i,t.y+t.height),[n,i]})}function Jm(r,t){var e=Cs(r.x,t.x),n=Ms(r.x+r.width,t.x+t.width),i=Cs(r.y,t.y),a=Ms(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function nl(r,t,e){var n=z({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),lt(i,e),new Kr(n)):rl(r.replace("path://",""),n,e,"center")}function SC(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=su(c,d,f,h)/v;return!(p<0||p>1)}function su(r,t,e,n){return r*n-e*t}function bC(r){return r<=1e-6&&r>=-1e-6}function jh(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=q(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&I(Ct(l),function(f){ir(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:lt({content:n,formatterParams:s},i)}}function nd(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function il(r,t){if(r)if(V(r))for(var e=0;e=0&&s.push(l)}),s}}function i0(r,t){return gt(gt({},r,!0),t,!0)}const FC={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},zC={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ds="ZH",Jh="EN",Si=Jh,rs={},tc={},a0=st.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Si).toUpperCase();return r.indexOf(Ds)>-1?Ds:Si}():Si;function ec(r,t){r=r.toUpperCase(),tc[r]=new Gt(t),rs[r]=t}function GC(r){if(q(r)){var t=rs[r.toUpperCase()]||{};return r===Ds||r===Jh?vt(t):gt(vt(t),vt(rs[Si]),!1)}else return gt(vt(r),vt(rs[Si]),!1)}function HC(r){return tc[r]}function VC(){return tc[Si]}ec(Jh,FC);ec(Ds,zC);var rc=1e3,nc=rc*60,Sa=nc*60,Ae=Sa*24,ud=Ae*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},wo="{yyyy}-{MM}-{dd}",fd={year:"{yyyy}",month:"{yyyy}-{MM}",day:wo,hour:wo+" "+ua.hour,minute:wo+" "+ua.minute,second:wo+" "+ua.second,millisecond:ua.none},fu=["year","month","day","hour","minute","second","millisecond"],o0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function re(r,t){return r+="","0000".substr(0,t-r.length)+r}function bi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function $C(r){return r===bi(r)}function WC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var i=Pe(r),a=i[ic(e)](),o=i[wi(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ul(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Oa(e)](),h=(f-1)%12+1,v=i[fl(e)](),c=i[hl(e)](),d=i[cl(e)](),g=n instanceof Gt?n:HC(n||a0)||VC(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),b=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,re(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,re(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,re(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,re(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,re(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,re(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,re(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,re(d,3)).replace(/{S}/g,d+"")}function UC(r,t,e,n,i){var a=null;if(q(e))a=e;else if(rt(e))a=e(r.value,t,{level:r.level});else{var o=z({},ua);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(V(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return ja(new Date(r.value),a,i,n)}function s0(r,t){var e=Pe(r),n=e[wi(t)]()+1,i=e[ul(t)](),a=e[Oa(t)](),o=e[fl(t)](),s=e[hl(t)](),l=e[cl(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function hd(r,t,e){var n=St(r)?Pe(r):r;switch(t=t||s0(r,e),t){case"year":return n[ic(e)]();case"half-year":return n[wi(e)]()>=6?1:0;case"quarter":return Math.floor((n[wi(e)]()+1)/4);case"month":return n[wi(e)]();case"day":return n[ul(e)]();case"half-day":return n[Oa(e)]()/24;case"hour":return n[Oa(e)]();case"minute":return n[fl(e)]();case"second":return n[hl(e)]();case"millisecond":return n[cl(e)]()}}function ic(r){return r?"getUTCFullYear":"getFullYear"}function wi(r){return r?"getUTCMonth":"getMonth"}function ul(r){return r?"getUTCDate":"getDate"}function Oa(r){return r?"getUTCHours":"getHours"}function fl(r){return r?"getUTCMinutes":"getMinutes"}function hl(r){return r?"getUTCSeconds":"getSeconds"}function cl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function YC(r){return r?"setUTCFullYear":"setFullYear"}function l0(r){return r?"setUTCMonth":"setMonth"}function u0(r){return r?"setUTCDate":"setDate"}function f0(r){return r?"setUTCHours":"setHours"}function h0(r){return r?"setUTCMinutes":"setMinutes"}function c0(r){return r?"setUTCSeconds":"setSeconds"}function v0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function XC(r,t,e,n,i,a,o,s){var l=new Ut({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function ac(r){if(!Uy(r))return q(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function oc(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ja=xh;function kf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ve(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Pe(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return us(r)?i(r):St(r)&&a(r)?r+"":"-";var u=yr(r);return a(u)?ac(u):us(r)?i(r):typeof r=="boolean"?r+"":"-"}var cd=["a","b","c","d","e","f","g"],hu=function(r,t){return"{"+r+(t??"")+"}"};function sc(r,t,e){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function qC(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd -yyyy`);var n=Pe(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",re(o,2)).replace("M",o).replace("yyyy",a).replace("yy",re(a%100+"",2)).replace("dd",re(s,2)).replace("d",s).replace("hh",re(l,2)).replace("h",l).replace("mm",re(u,2)).replace("m",u).replace("ss",re(f,2)).replace("s",f).replace("SSS",re(h,3)),r}function ZC(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Vn(r,t){return t=t||"transparent",q(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function vd(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ns=I,KC=["left","right","top","bottom","width","height"],xo=[["width","left","right"],["height","top","bottom"]];function lc(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var g=f.width+(v?-v.x+f.x:0);c=a+g,c>n||l.newline?(a=0,c=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var ba=lc;Ot(lc,"vertical");Ot(lc,"horizontal");function Ci(r,t,e){e=Ja(e||0);var n=t.width,i=t.height,a=$t(r.left,n),o=$t(r.top,i),s=$t(r.right,n),l=$t(r.bottom,i),u=$t(r.width,n),f=$t(r.height,i),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ht(a+e[3],o+e[0],u,f);return d.margin=e,d}function Ba(r){var t=r.layoutMode||r.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function Mi(r,t,e){var n=e&&e.ignoreSize;!V(n)&&(n=[n,n]);var i=o(xo[0],0),a=o(xo[1],1);u(xo[0],r,i),u(xo[1],r,a);function o(f,h){var v={},c=0,d={},g=0,p=2;if(ns(f,function(_){d[_]=r[_]}),ns(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&g++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!c)return d;if(c>=p)return v;for(var y=0;y=0;l--)s=gt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Qa(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Gt);Jy(Oi,Gt);Us(Oi);BC(Oi);NC(Oi,JC);function JC(r){var t=[];return I(Oi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=K(t,function(e){return Je(e).main}),r!=="dataset"&&yt(t,"dataset")<=0&&t.unshift("dataset"),t}const bt=Oi;var p0="";typeof navigator<"u"&&(p0=navigator.platform||"");var ni="rgba(0, 0, 0, 0.2)";const tM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ni,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ni,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ni,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ni,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ni,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ni,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:p0.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var g0=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Oe="original",oe="arrayRows",Ue="objectRows",wr="keyedColumns",Vr="typedArray",y0="unknown",er="column",Bi="row",de={Must:1,Might:2,Not:3},m0=At();function eM(r){m0(r).datasetMap=et()}function rM(r,t,e){var n={},i=_0(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=m0(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),I(r,function(g,p){var y=J(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});I(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===p)c(n[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(g,p,y){for(var m=0;mt)return r[n];return r[e-1]}function lM(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:sM(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function uM(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var To,Ui,pd,gd="\0_ec_inner",fM=1,fc=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Gt(a),this._locale=new Gt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=_d(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,_d(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?pd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&I(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=et(),u=n&&n.replaceMergeMainTypeMap;eM(this),I(e,function(h,v){h!=null&&(bt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?vt(h):gt(i[v],h,!0))}),u&&u.each(function(h,v){bt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),bt.topologicalTravel(s,bt.getAllClassMainTypes(),f,this);function f(h){var v=oM(this,h,Nt(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=sx(c,v,d);dx(g,h,bt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;I(g,function(b,w){var S=b.existing,x=b.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=h==="series",M=bt.getClass(h,b.keyInfo.subType,!T);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=b.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var D=z({componentIndex:w},b.keyInfo);S=new M(x,this,this,D),z(S,D),b.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),y.push(S),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&To(this)}this._seriesIndices||To(this)},t.prototype.getOption=function(){var e=vt(this.option);return I(e,function(n,i){if(bt.hasClass(i)){for(var a=Nt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Ra(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[gd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function SM(r,t){return r.join(",")===t.join(",")}const bM=gM;var Be=I,Na=J,Sd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vu(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Sd.length;e=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=tx(v,m),g=m;break}}}return n[0]=v,n[1]=g,n})})}var pl=function(){function r(t){this.data=t.data||(t.sourceFormat===wr?{}:[]),this.sourceFormat=t.sourceFormat||y0,this.seriesLayoutBy=t.seriesLayoutBy||er,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ng&&(g=_)}c[0]=d,c[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Dd=(t={},t[oe+"_"+er]={pure:!0,appendData:a},t[oe+"_"+Bi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ue]={pure:!0,appendData:a},t[wr]={pure:!0,appendData:function(o){var s=this._data;I(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Oe]={appendData:a},t[Vr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Di(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Pd(r){var t,e;return J(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function wa(r){return new zM(r)}var zM=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c1&&n>0?s:o}};return a;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},HM=function(){function r(t,e){if(!St(e)){var n="";pt(n)}this._opFn=P0[t],this._rvalFloat=yr(e)}return r.prototype.evaluate=function(t){return St(t)?this._opFn(t,this._rvalFloat):this._opFn(yr(t),this._rvalFloat)},r}(),R0=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=St(t)?t:yr(t),i=St(e)?e:yr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=q(t),l=q(e);s&&(n=l?t:0),l&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),VM=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=yr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=yr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function $M(r,t){return r==="eq"||r==="ne"?new VM(r==="eq",t):ir(P0,r)?new HM(r,t):null}var WM=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return is(t,e)},r}();function UM(r,t){var e=new WM,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==er&&pt(o);var s=[],l={},u=r.dimensionsDefine;if(u)I(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";ir(l,y)&&pt(_),l[y]=m}});else for(var f=0;f65535?JM:tD}function ii(){return[1/0,-1/0]}function eD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function kd(r,t,e,n,i){var a=O0[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=v||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(a===2){for(var p=c[i[0]],_=c[i[1]],b=t[i[1]][0],w=t[i[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=x)}else for(var y=0;yt[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(Xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=b)}C>0&&Cf-d&&(l=f-d,s.length=l);for(var g=0;gh[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return is(e[a],this._dimensions[a])}gu={arrayRows:t,objectRows:function(e,n,i,a){return is(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return is(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),B0=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Co(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ae(s)?Vr:Oe,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ot(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=ot(h.sourceHeader,v.sourceHeader),g=ot(h.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||g;i=p?[Of(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Of(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Bd(a)}var o,s=[],l=[];return I(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&Bd(h),s.push(f),l.push(u._getVersionSign())}),n?o=QM(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[PM(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return I(r.blocks,function(i){var a=G0(i);a>=t&&(t=a+ +(n&&(!a||Nf(i)&&!i.noHeader)))}),t}return 0}function iD(r,t,e,n){var i=t.noHeader,a=oD(G0(t)),o=[],s=t.blocks||[];nr(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ir(u,l)){var f=new R0(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}I(s,function(d,g){var p=t.valueFormatter,y=z0(d)(p?z(z({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):Ff(o.join(""),i?e:a.html);if(i)return h;var v=kf(t.header,"ordinal",r.useUTC),c=F0(n,r.renderMode).nameStyle;return r.renderMode==="richText"?H0(r,v,c)+a.richText+h:Ff('
'+ge(v)+"
"+h,e)}function aD(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(b){return b=V(b)?b:[b],K(b,function(w,S){return kf(w,V(c)?c[S]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":kf(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=F0(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":H0(r,v,m))+(o?"":uD(r,d,g,p,_)):Ff((s?"":h)+(a?"":sD(v,!s,m))+(o?"":lD(d,g,p,_)),e)}}function Nd(r,t,e,n,i,a){if(r){var o=z0(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function oD(r){return{html:rD[r],richText:nD[r]}}function Ff(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function sD(r,t,e){var n=t?"margin-left:2px":"";return''+ge(r)+""}function lD(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=V(r)?r:[r],''+K(r,function(o){return ge(o)}).join("  ")+""}function H0(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function uD(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function fD(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Vn(n)}function V0(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var yu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Yy()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=d0({color:e,type:t,renderMode:n,markerId:i});return q(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?I(e,function(a){return z(n,a)}):z(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function hD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=V(s),u=fD(t,e),f,h,v,c;if(o>1||l&&!o){var d=cD(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);c=f=Di(i,e,a[0]),h=g.type}else c=f=l?s[0]:s;var p=Bh(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return Fa("section",{header:y,noHeader:n||!p,sortParam:c,blocks:[Fa("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ve(_),value:f,valueType:h,dataIndex:e})].concat(v||[])})}function cD(r,t,e,n,i){var a=t.getData(),o=rr(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?I(n,function(h){f(Di(a,e,h),h)}):I(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Fa("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Cr=At();function Mo(r,t){return r.getName(t)||r.getId(t)}var as="__universalTransitionEnabled",yl=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=wa({count:dD,reset:pD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Cr(this).sourceManager=new B0(this);a.prepareSource();var o=this.getInitialData(e,i);zd(o,this),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,Fd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ba(this),a=i?vl(e):{},o=this.subType;bt.hasClass(o)&&(o+="Series"),gt(e,n.getTheme().get(this.subType)),gt(e,this.getDefaultOption()),wv(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Mi(e,a,i)},t.prototype.mergeOption=function(e,n){e=gt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Ba(this);i&&Mi(this.option,e,i);var a=Cr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);zd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,Fd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ae(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=uc.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Mo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[as])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return bt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(bt);Ee(yl,FM);Ee(yl,uc);Jy(yl,bt);function Fd(r){var t=r.name;Bh(r)||(r.name=vD(r)||t)}function vD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return I(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function dD(r){return r.model.getRawData().count()}function pD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),gD}function gD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zd(r,t){I(uy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Ot(yD,t))})}function yD(r,t){var e=zf(r);return e&&e.setOutputEnd((t||this).count()),t}function zf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const ar=yl;var pc=function(){function r(){this.group=new Wt,this.uid=ll("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Fh(pc);Us(pc);const be=pc;function gc(){var r=At();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var $0=At(),mD=gc(),yc=function(){function r(){this.group=new Wt,this.uid=ll("viewChart"),this.renderTask=wa({plan:_D,reset:SD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Hd(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Hd(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){il(this.group,t)},r.markUpdateMethod=function(t,e){$0(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Gd(r,t,e){r&&If(r)&&(t==="emphasis"?_s:Ss)(r,e)}function Hd(r,t,e){var n=Hn(r,t),i=t&&t.highlightKey!=null?NT(t.highlightKey):null;n!=null?I(Nt(n),function(a){Gd(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Gd(a,e,i)})}Fh(yc);Us(yc);function _D(r){return mD(r.model)}function SD(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&$0(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),bD[l]}var bD={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Le=yc;var Is="\0__throttleOriginMethod",Vd="\0__throttleRate",$d="\0__throttleType";function ml(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function W0(r,t,e,n){var i=r[t];if(i){var a=i[Is]||i,o=i[$d],s=i[Vd];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=ml(a,e,n==="debounce"),i[Is]=a,i[$d]=n,i[Vd]=e}return i}}function Gf(r,t){var e=r[t];e&&e[Is]&&(e.clear&&e.clear(),r[t]=e[Is])}var Wd=At(),Ud={itemStyle:Ea(n0,!0),lineStyle:Ea(r0,!0)},wD={lineStyle:"stroke",itemStyle:"fill"};function U0(r,t){var e=r.visualStyleMapper||Ud[t];return e||(console.warn("Unknown style type '"+t+"'."),Ud.itemStyle)}function Y0(r,t){var e=r.visualDrawType||wD[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var xD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=U0(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Y0(r,n),u=o[l],f=rt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||rt(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var g=r.getDataParams(d),p=z({},o);p[l]=f(g),c.setItemVisual(d,"style",p)}}}},qi=new Gt,TD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=U0(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){qi.option=l[n];var u=i(qi),f=o.ensureUniqueItemVisual(s,"style");z(f,u),qi.option.decal&&(o.setItemVisual(s,"decal",qi.option.decal),qi.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},CD={performRawSeries:!0,overallReset:function(r){var t=et();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Wd(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Wd(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Y0(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},Do=Math.PI;function MD(r,t){t=t||{},lt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Wt,n=new Ft({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Ut({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ft({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new tl({shape:{startAngle:-Do/2,endAngle:-Do/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Do*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Do*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var X0=function(){function r(t,e,n,i){this._stageTaskMap=et(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=et();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;I(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";nr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;I(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var g=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(g)}),v.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=et(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||wa({plan:PD,reset:RD,count:kD}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||wa({reset:DD});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=et(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";nr(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,I(n.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(v=!0,wa({reset:ID,onDirty:LD})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return rt(t)&&(t={overallReset:t,seriesType:OD(t)}),t.uid=ll("stageHandler"),e&&(t.visualType=e),t},r}();function DD(r){r.overallReset(r.ecModel,r.api,r.payload)}function ID(r){return r.overallProgress&&AD}function AD(){this.agent.dirty(),this.getDownstream().dirty()}function LD(){this.agent&&this.agent.dirty()}function PD(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function RD(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?K(t,function(e,n){return q0(n)}):ED}var ED=q0(0);function q0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Hf=["symbol","symbolSize","symbolRotate","symbolOffset"],Zd=Hf.concat(["symbolKeepAspect"]),zD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&In(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function $f(r,t,e){for(var n=t.type==="radial"?nI(r,t,e):rI(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:St(r)?[r]:V(r)?r:null}function J0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&aI(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=K(e,function(a){return a/i}),n/=i)}return[e,n]}var oI=new mr(!0);function Ls(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Kd(r){return typeof r=="string"&&r!=="none"}function Ps(r){var t=r.fill;return t!=null&&t!=="none"}function Qd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function jd(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Wf(r,t,e){var n=tm(t.image,t.__image,e);if(Ys(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*fy),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function sI(r,t,e,n){var i,a=Ls(e),o=Ps(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||oI,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,g=a&&!!c.colorStops,p=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,b=void 0,w=void 0,S=void 0;(d||g)&&(S=t.getBoundingRect()),d&&(m=h?$f(r,v,S):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?$f(r,c,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=h||!t.__canvasFillPattern?Wf(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=b),y&&(w=h||!t.__canvasStrokePattern?Wf(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?r.fillStyle=m:p&&(b?r.fillStyle=b:o=!1),g?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(i=J0(t),T=i[0],M=i[1]);var D=!0;(u||h&hi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=M),n||(e.strokeFirst?(a&&jd(r,e),o&&Qd(r,e)):(o&&Qd(r,e),a&&jd(r,e))),T&&r.setLineDash([])}function lI(r,t,e){var n=t.__image=tm(e.image,t.__image,t,t.onload);if(!(!n||!Ys(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function uI(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Gn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=J0(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Ls(e)&&r.strokeText(i,e.x,e.y),Ps(e)&&r.fillText(i,e.x,e.y)):(Ps(e)&&r.fillText(i,e.x,e.y),Ls(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Jd=["shadowBlur","shadowOffsetX","shadowOffsetY"],tp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function t_(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){he(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?kn.opacity:o}(n||t.blend!==e.blend)&&(a||(he(r,i),a=!0),r.globalCompositeOperation=t.blend||kn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[qt]){if(this._disposed){this.id;return}var a,o,s;if(J(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qt]=!0,!this._model||n){var l=new bM(this._api),u=this._theme,f=this._model=new fc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Xf);var h={seriesTransition:s,optionChanged:!0};if(i)this[le]={silent:a,updateParams:h},this[qt]=!1,this.getZr().wakeUp();else{try{oi(this),Mr.update.call(this,null,h)}catch(v){throw this[le]=null,this[qt]=!1,v}this._ssr||this._zr.flush(),this[le]=null,this[qt]=!1,Zi.call(this,a),Ki.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||st.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(st.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return I(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;I(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Os[i]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();I(Bn,function(_,b){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(vt(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),v.push({dom:w,left:S.left,top:S.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,g=h-u,p=gr.createCanvas(),y=mf(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return I(v,function(_){var b=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Ft({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),I(v,function(_){var b=new Kr({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(b)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return wu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return wu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ul(i,e);return I(o,function(s,l){l.indexOf("Models")>=0&&I(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Ul(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?HD(s,l,n):VD(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(kI,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ha(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=z({},g.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),I(xa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),I(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),$D(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Ky(this.getDom(),bc,"");var n=this,i=n._api,a=n._model;I(n._componentsViews,function(o){o.dispose(a,i)}),I(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Bn[n.id]},t.prototype.resize=function(e){if(!this[qt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[le]&&(a==null&&(a=this[le].silent),i=!0,this[le]=null),this[qt]=!0;try{i&&oi(this),Mr.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[qt]=!1,o}this[qt]=!1,Zi.call(this,a),Ki.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(J(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!qf[e]){var i=qf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=z({},e);return n.type=xa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(J(n)||(n={silent:!!n}),!!Es[e.type]&&this._model){if(this[qt]){this._pendingActions.push(e);return}var i=n.silent;Tu.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&st.browser.weChat&&this._throttledZrFlush(),Zi.call(this,i),Ki.call(this,i)}},t.prototype.updateLabelLayout=function(){Ge.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){oi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),bu(h,!0),bu(h,!1),v.plan()},bu=function(h,v){for(var c=h._model,d=h._scheduler,g=v?h._componentsViews:h._chartsViews,p=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!st.node&&!st.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(g){return l(g,c,d,-1/0),!0})}}function l(h,v,c,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(_i(y))return;if(y instanceof ct&&FT(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),b=y.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}y.__dirty&&i(y)}})}vp=function(h){return new(function(v){G(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},c.prototype.enterEmphasis=function(d,g){_s(d,g),we(h)},c.prototype.leaveEmphasis=function(d,g){Ss(d,g),we(h)},c.prototype.enterBlur=function(d){IT(d),we(h)},c.prototype.leaveBlur=function(d){mm(d),we(h)},c.prototype.enterSelect=function(d){_m(d),we(h)},c.prototype.leaveSelect=function(d){Sm(d),we(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(b0))(h)},g_=function(h){function v(c,d){for(var g=0;g=0)){pp.push(e);var a=X0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Dc(r,t){qf[r]=t}function $I(r){ey({createCanvas:r})}function x_(r,t,e){var n=o_("registerMap");n&&n(r,t,e)}function WI(r){var t=o_("getMap");return t&&t(r)}var T_=KM;Qr(_c,xD);Qr(_l,TD);Qr(_l,CD);Qr(_c,zD);Qr(_l,GD);Qr(u_,yI);Tc(x0);Cc(xI,AM);Dc("default",MD);Xn({type:On,event:On,update:On},ne);Xn({type:ts,event:ts,update:ts},ne);Xn({type:ya,event:ya,update:ya},ne);Xn({type:es,event:es,update:es},ne);Xn({type:ma,event:ma,update:ma},ne);xc("light",BD);xc("dark",ND);var UI={};function Qi(r){return r==null?0:r.length||1}function gp(r){return r}var YI=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||gp,this._newKeyGetter=i||gp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var ji=J,Dr=K,JI=typeof Int32Array>"u"?Array:Int32Array,tA="e\0\0",yp=-1,eA=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rA=["_approximateExtent"],mp,Eo,Ji,ta,Du,ko,Iu,nA=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;M_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Oe;if(l&&!i.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),V(a)?a=a.slice():ji(a)&&(a=z({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ji(e)?z(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ji(t)?z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;mT(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){I(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Dr(this.dimensions,this._getDimInfo,this),this.hostModel)),Du(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];rt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Vs(arguments)))})},r.internalField=function(){mp=function(t){var e=t._invertedIndicesMap;I(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new JI(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const L_=nA;function iA(r,t){return P_(r,t).dimensions}function P_(r,t){hc(r)||(r=cc(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=et(),a=[],o=oA(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&A_(o),l=n===r.dimensionsDefine,u=l?I_(r):D_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=et(f),v=new k0(o),c=0;c0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function oA(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return I(t,function(a){var o;J(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function sA(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var lA=function(){function r(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return r}();function uA(r){var t=r.get("coordinateSystem"),e=new lA(t),n=fA[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var fA={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",$e).models[0],a=r.getReferringComponents("yAxis",$e).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),si(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),si(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",$e).models[0];t.coordSysDims=["single"],e.set("single",i),si(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",$e).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),si(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),si(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),si(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function si(r){return r.get("type")==="category"}function R_(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;hA(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(I(a,function(m,_){q(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,g=0;I(a,function(m){m.coordDim===c&&g++});var p={name:h,coordDim:c,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function hA(r){return!M_(r.schema)}function Wn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function E_(r,t){return Wn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function cA(r,t){var e=r.get("coordinateSystem"),n=dl.get(e),i;return t&&t.coordSysDims&&(i=K(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=ZI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function vA(r,t,e){var n,i;return e&&I(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function bl(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=cc(r)):(i=n.getSource(),a=i.sourceFormat===Oe);var o=uA(t),s=cA(t,o),l=e.useEncodeDefaulter,u=rt(l)?l:l?Ot(rM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=P_(i,f),v=vA(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=R_(t,{schema:h,store:c}),g=new L_(h,t);g.setCalculationInfo(d);var p=v!=null&&dA(i)?function(y,m,_,b){return b===v?_:this.defaultDimValueGetter(y,m,_,b)}:null;return g.hasItemOption=!1,g.initData(a?i:c,null,p),g}function dA(r){if(r.sourceFormat===Oe){var t=pA(r.data||[]);return!V(Ka(t))}}function pA(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Us(sr);var gA=0,Kf=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gA}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&K(n,yA);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!q(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r}();function yA(r){return J(r)&&r.value!=null?r.value:r+""}function Qf(r){return r.type==="interval"||r.type==="log"}function mA(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Oh(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=k_(o),l=i.niceTickExtent=[Bt(Math.ceil(r[0]/o)*o,s),Bt(Math.floor(r[1]/o)*o,s)];return _A(l,r),i}function Au(r){var t=Math.pow(10,Ws(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Bt(e*t)}function k_(r){return je(r)+2}function _p(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function _A(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),_p(r,0,t),_p(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function wl(r,t){return r>=t[0]&&r<=t[1]}function xl(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Tl(r,t){return r*(t[1]-t[0])+t[0]}var O_=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Kf({})),V(i)&&(i=new Kf({categories:K(i,function(a){return J(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),wl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),xl(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Tl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(sr);sr.registerClass(O_);const B_=O_;var _n=Bt,N_=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wl(e,this._extent)},t.prototype.normalize=function(e){return xl(e,this._extent)},t.prototype.scale=function(e){return Tl(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=k_(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:_n(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function G_(r){var t=wA(r),e=[];return I(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=$t(n.get("barWidth"),s),g=$t(n.get("barMaxWidth"),s),p=$t(n.get("barMinWidth")||(V_(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Ac(a),stackId:Ic(n)})}),xA(e)}function xA(r){var t={};I(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return I(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=$t(s,o),f=$t(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),I(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var b=y.width;m&&(b=Math.min(b,m)),_&&(b=Math.max(b,_)),y.width=b,h-=b+f*b,v--}else{var b=c;m&&mb&&(b=_),b!==c&&(y.width=b,h-=b+f*b,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,g;I(a,function(y,m){y.width||(y.width=c),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;I(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function TA(r,t,e){if(r&&t){var n=r[Ac(t)];return n!=null&&e!=null?n[Ic(e)]:n}}function CA(r,t){var e=z_(r,t),n=G_(e);I(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Ic(i),u=n[Ac(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function MA(r){return{seriesType:r,plan:gc(),reset:function(t){if(H_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Wn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=DA(i,a),d=V_(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,b){for(var w=_.count,S=d&&dr(w*3),x=d&&l&&dr(w*3),T=d&&dr(w),M=n.master.getRect(),D=v?M.width:M.height,C,A=b.getStore(),L=0;(C=_.next())!=null;){var E=A.get(h?p:o,C),R=A.get(s,C),P=c,B=void 0;h&&(B=+E-A.get(o,C));var k=void 0,O=void 0,Q=void 0,tt=void 0;if(v){var H=n.dataToPoint([E,R]);if(h){var N=n.dataToPoint([B,R]);P=N[0]}k=P,O=H[1]+m,Q=H[0]-P,tt=y,Math.abs(Q)>>1;r[i][1]i&&(this._approxInterval=i);var s=Oo.length,l=Math.min(IA(Oo,this._approxInterval,0,s),s-1);this._interval=Oo[l][1],this._minLevelUnit=Oo[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return St(e)?e:+Pe(e)},t.prototype.contain=function(e){return wl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return xl(this.parse(e),this._extent)},t.prototype.scale=function(e){return Tl(e,this._extent)},t.type="time",t}(to),Oo=[["second",rc],["minute",nc],["hour",Sa],["quarter-day",Sa*6],["half-day",Sa*12],["day",Ae*1.2],["half-week",Ae*3.5],["week",Ae*7],["month",Ae*31],["quarter",Ae*95],["half-year",ud/2],["year",ud]];function AA(r,t,e,n){var i=Pe(t),a=Pe(e),o=function(d){return hd(i,d,n)===hd(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function LA(r,t){return r/=Ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function PA(r){var t=30*Ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function RA(r){return r/=Sa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Sp(r,t){return r/=t?nc:rc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function EA(r){return Oh(r,!0)}function kA(r,t,e){var n=new Date(r);switch(bi(t)){case"year":case"month":n[l0(e)](0);case"day":n[u0(e)](1);case"hour":n[f0(e)](0);case"minute":n[h0(e)](0);case"second":n[c0(e)](0),n[v0(e)](0)}return n.getTime()}function OA(r,t,e,n){var i=1e4,a=o0,o=0;function s(D,C,A,L,E,R,P){for(var B=new Date(C),k=C,O=B[L]();k1&&R===0&&A.unshift({value:A[0].value-k})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(p),h>_||r===a[c]))break}f=[]}}}for(var b=It(K(u,function(D){return It(D,function(C){return C.value>=n[0]&&C.value<=n[1]&&!C.notAdd})}),function(D){return D.length>0}),w=[],S=b.length-1,c=0;c0;)a*=10;var s=[Bt(zA(n[0]/a)*a),Bt(FA(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ta.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ne(e)/Ne(this.base),wl(e,this._extent)},t.prototype.normalize=function(e){return e=Ne(e)/Ne(this.base),xl(e,this._extent)},t.prototype.scale=function(e){return e=Tl(e,this._extent),Bo(this.base,e)},t.type="log",t}(sr),W_=Lc.prototype;W_.getMinorTicks=Ta.getMinorTicks;W_.getLabel=Ta.getLabel;function No(r,t){return NA(r,je(t))}sr.registerClass(Lc);const GA=Lc;var HA=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[$A[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=VA[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),VA={min:"_determinedMin",max:"_determinedMax"},$A={min:"_dataMin",max:"_dataMax"};function WA(r,t,e){var n=r.rawExtentInfo;return n||(n=new HA(r,t,e),r.rawExtentInfo=n,n)}function Fo(r,t){return t==null?null:Ma(t)?NaN:r.parse(t)}function U_(r,t){var e=r.type,n=WA(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=z_("bar",o),l=!1;if(I(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=G_(s),f=UA(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function UA(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=TA(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;I(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;I(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function jf(r,t){var e=t,n=U_(r,e),i=n.extent,a=e.get("splitNumber");r instanceof GA&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Y_(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new B_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new BA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(sr.getClass(t)||to)}}function YA(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function eo(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):q(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):rt(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Pc(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Pc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function XA(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof B_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=eo(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(wp.push(r),rt(r)&&(r={install:r}),r.install(r2))}var n2=1e-8;function xp(r,t){return Math.abs(r-t)i&&(n=o,i=l)}if(n)return a2(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return I(o,function(s){s.type==="polygon"?Cp(s.exterior,i,a,e):I(s.points,function(l){Cp(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function Ip(r,t){return r=s2(r),K(It(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Mp(o[0],o.slice(1)));break;case"MultiPolygon":I(i.coordinates,function(l){l[0]&&a.push(new Mp(l[0],l.slice(1)))});break;case"LineString":a.push(new Dp([i.coordinates]));break;case"MultiLineString":a.push(new Dp(i.coordinates))}var s=new o2(n[t||"name"],a,n.cp);return s.properties=n,s})}const l2=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ex,asc:Qw,getPercentWithPrecision:jw,getPixelPrecision:$y,getPrecision:je,getPrecisionSafe:Vy,isNumeric:Uy,isRadianAroundZero:Pa,linearMap:Sf,nice:Oh,numericToNumber:yr,parseDate:Pe,quantile:nx,quantity:Wy,quantityExponent:Ws,reformIntervals:ix,remRadian:kh,round:Bt},Symbol.toStringTag,{value:"Module"})),u2=Object.freeze(Object.defineProperty({__proto__:null,format:ja,parse:Pe},Symbol.toStringTag,{value:"Module"})),f2=Object.freeze(Object.defineProperty({__proto__:null,Arc:tl,BezierCurve:Yh,BoundingRect:ht,Circle:Qs,CompoundPath:zm,Ellipse:Wh,Group:Wt,Image:Kr,IncrementalDisplayable:Vm,Line:Yr,LinearGradient:Xh,Polygon:js,Polyline:Js,RadialGradient:Hm,Rect:Ft,Ring:Uh,Sector:Ur,Text:Ut,clipPointsByRect:jm,clipRectByRect:Jm,createIcon:nl,extendPath:Ym,extendShape:Um,getShapeClass:Xm,getTransform:Km,initProps:ve,makeImage:Zh,makePath:rl,mergePath:Zm,registerShape:ke,resizePath:Kh,updateProps:Yt},Symbol.toStringTag,{value:"Module"})),h2=Object.freeze(Object.defineProperty({__proto__:null,addCommas:ac,capitalFirst:ZC,encodeHTML:ge,formatTime:qC,formatTpl:sc,getTextRect:XC,getTooltipMarker:d0,normalizeCssArray:Ja,toCamelCase:oc,truncateText:em},Symbol.toStringTag,{value:"Module"})),c2=Object.freeze(Object.defineProperty({__proto__:null,bind:Dt,clone:vt,curry:Ot,defaults:lt,each:I,extend:z,filter:It,indexOf:yt,inherits:wh,isArray:V,isFunction:rt,isObject:J,isString:q,map:K,merge:gt,reduce:rr},Symbol.toStringTag,{value:"Module"}));var Ha=At();function v2(r){return r.type==="category"?p2(r):y2(r)}function d2(r,t){return r.type==="category"?g2(r,t):{ticks:K(r.scale.getTicks(),function(e){return e.value})}}function p2(r){var t=r.getLabelModel(),e=Q_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Q_(r,t){var e=j_(r,"labels"),n=Rc(t),i=J_(e,n);if(i)return i;var a,o;return rt(n)?a=r1(r,n):(o=n==="auto"?m2(r):n,a=e1(r,o)),t1(e,n,{labels:a,labelCategoryInterval:o})}function g2(r,t){var e=j_(r,"ticks"),n=Rc(t),i=J_(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),rt(n))a=r1(r,n,!0);else if(n==="auto"){var s=Q_(r,r.getLabelModel());o=s.labelCategoryInterval,a=K(s.labels,function(l){return l.tickValue})}else o=n,a=e1(r,o,!0);return t1(e,n,{ticks:a,tickCategoryInterval:o})}function y2(r){var t=r.scale.getTicks(),e=eo(r);return{labels:K(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function j_(r,t){return Ha(r)[t]||(Ha(r)[t]=[])}function J_(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var d=0,g=0,p=Ph(e({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,v=Math.max(v,d,7),c=Math.max(c,g,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),b=Ha(r.model),w=r.getExtent(),S=b.lastAutoInterval,x=b.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=w[0],b.axisExtent1=w[1]),_}function S2(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function e1(r,t,e){var n=eo(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=X_(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);c&&d-l!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function r1(r,t,e){var n=r.scale,i=eo(r),a=[];return I(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Ap=[0,1],b2=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return $y(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Lp(n,i.count())),Sf(t,Ap,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Lp(n,i.count()));var a=Sf(t,n,Ap,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=d2(this,e),i=n.ticks,a=K(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return w2(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=K(n,function(a){return K(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return v2(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return _2(this)},r}();function Lp(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function w2(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;I(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=Bt(c),d=Bt(d),h?c>d:ci&&(i+=ea);var c=Math.atan2(s,o);if(c<0&&(c+=ea),c>=n&&c<=i||c+ea>=n&&c+ea<=i)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=p,l[1]=y,Math.sqrt(_))}function Jf(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function i1(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var He=[];function L2(r,t,e){var n=i1(t.x,t.y,t.width,t.height,r.x,r.y,He);return e.set(He[0],He[1]),n}function P2(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,h=r.x,v=r.y,c=0;c0){t=t/180*Math.PI,Ln.fromArray(r[0]),Ht.fromArray(r[1]),pe.fromArray(r[2]),at.sub(pi,Ln,Ht),at.sub(ra,pe,Ht);var e=pi.len(),n=ra.len();if(!(e<.001||n<.001)){pi.scale(1/e),ra.scale(1/n);var i=pi.dot(ra),a=Math.cos(t);if(a1&&at.copy(bn,pe),bn.toArray(r[1])}}}}function Ru(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function E2(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=hs(n[0],n[1]),a=hs(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=da([],n[1],n[0],o/i),l=da([],n[1],n[2],o/a),u=da([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&w(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&S(-y,.8),m<0&&S(m,.8),_(),b(y,m,1),b(m,y,-1),_(),y<0&&x(-y),m<0&&x(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function b(T,M,D){if(T<0){var C=Math.min(M,-T);if(C>0){w(C*D,0,o);var A=C+T;A<0&&S(-A*D,1)}else S(-T*D,1)}}function w(T,M,D){T!==0&&(u=!0);for(var C=M;C0)for(var A=0;A0;A--){var P=D[A-1]*R;w(-P,A,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),C=0;C0?w(D,0,C+1):w(-D,o-C-1,o),T-=D,T<=0)return}return u}function B2(r,t,e,n){return o1(r,"x","width",t,e,n)}function N2(r,t,e,n){return o1(r,"y","height",t,e,n)}function s1(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ht(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),yt(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Yt(n,u,e,l)}else if(n.attr(u),!ki(n).valueAnimation){var h=ot(n.style.opacity,1);n.style.opacity=0,ve(n,{style:{opacity:h}},e,l)}if(a.oldLayout=u,n.states.select){var c=a.oldLayoutSelect={};zo(c,u,Go),zo(c,n.states.select,Go)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};zo(d,u,Go),zo(d,n.states.emphasis,Go)}DC(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=G2(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Yt(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,ve(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}(),ku=At();function V2(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=ku(e).labelManager;i||(i=ku(e).labelManager=new H2),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ku(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}const $2=Object.freeze(Object.defineProperty({__proto__:null,Axis:n1,ChartView:Le,ComponentModel:bt,ComponentView:be,List:L_,Model:Gt,PRIORITY:f_,SeriesModel:ar,color:pw,connect:FI,dataTool:UI,dependencies:SI,disConnect:zI,disconnect:m_,dispose:GI,env:st,extendChartView:M2,extendComponentModel:x2,extendComponentView:T2,extendSeriesModel:C2,format:h2,getCoordinateSystemDimensions:VI,getInstanceByDom:wc,getInstanceById:HI,getMap:WI,graphic:f2,helper:e2,init:NI,innerDrawElementOnCanvas:mc,matrix:Vb,number:l2,parseGeoJSON:Ip,parseGeoJson:Ip,registerAction:Xn,registerCoordinateSystem:b_,registerLayout:w_,registerLoading:Dc,registerLocale:ec,registerMap:x_,registerPostInit:__,registerPostUpdate:S_,registerPreprocessor:Tc,registerProcessor:Cc,registerTheme:xc,registerTransform:T_,registerUpdateLifecycle:Sl,registerVisual:Qr,setCanvasCreator:$I,setPlatformAPI:ey,throttle:ml,time:u2,use:Sr,util:c2,vector:Mb,version:_I,zrUtil:gb,zrender:Zw},Symbol.toStringTag,{value:"Module"}));var W2=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Wt,i=$n("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=$n(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ar);const U2=W2;function Ec(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Di(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var kc=function(r){G(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=$n(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Y2,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){_s(this.childAt(0))},t.prototype.downplay=function(){Ss(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Yt(v,c,s,n),Wm(v)}if(this._updateCommon(e,n,l,i,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ve(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,g,p,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),g=sl(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var b=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=j0(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=e.getItemVisual(n,"style"),x=S.fill;if(s instanceof Kr){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(z({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(n,"liftZ"),D=this._z2;M!=null?D==null&&(this._z2=s.z2,s.z2+=M):D!=null&&(s.z2=D,this._z2=null);var C=o&&o.useNameLabel;ol(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:x,defaultOpacity:S.opacity});function A(R){return C?e.getName(R):Ec(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var E=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),ws(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ts(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ts(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return eI(e.getItemVisual(n,"symbolSize"))},t}(Wt);function Y2(r,t){this.parent.drift(r,t)}function Ou(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function kp(r){return r!=null&&!J(r)&&(r={isIgnore:r}),r||{}}function Op(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:sl(t),cursorStyle:t.get("cursor")}}var X2=function(){function r(t){this.group=new Wt,this._SymbolCtor=t||kc}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=kp(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Op(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(Ou(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!Ou(t,d,h,e)){n.remove(c);return}var g=t.getItemVisual(h,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==g)n.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Yt(c,y,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Op(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=kp(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function f1(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function Z2(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function K2(r,t,e,n,i,a,o,s){for(var l=Z2(r,t),u=[],f=[],h=[],v=[],c=[],d=[],g=[],p=u1(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||g<0)break;if(Nn(y,m)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,b=m-f;if(_*_+b*b<.5){g+=a;continue}if(o>0){for(var w=g+a,S=t[w*2],x=t[w*2+1];S===y&&x===m&&p=n||Nn(S,x))c=y,d=m;else{D=S-u,C=x-f;var E=y-u,R=S-y,P=m-f,B=x-m,k=void 0,O=void 0;if(s==="x"){k=Math.abs(E),O=Math.abs(R);var Q=D>0?1:-1;c=y-Q*k*o,d=m,A=y+Q*O*o,L=m}else if(s==="y"){k=Math.abs(P),O=Math.abs(B);var tt=C>0?1:-1;c=y,d=m-tt*k*o,A=y,L=m+tt*O*o}else k=Math.sqrt(E*E+P*P),O=Math.sqrt(R*R+B*B),M=O/(O+k),c=y-D*o*(1-M),d=m-C*o*(1-M),A=y+D*o*M,L=m+C*o*M,A=Ir(A,Ar(S,y)),L=Ir(L,Ar(x,m)),A=Ar(A,Ir(S,y)),L=Ar(L,Ir(x,m)),D=A-y,C=L-m,c=y-D*k/O,d=m-C*k/O,c=Ir(c,Ar(u,y)),d=Ir(d,Ar(f,m)),c=Ar(c,Ir(u,y)),d=Ar(d,Ir(f,m)),D=y-c,C=m-d,A=y+D*O/k,L=m+C*O/k}r.bezierCurveTo(h,v,c,d,y,m),h=A,v=L}else r.lineTo(y,m)}u=y,f=m,g+=a}return p}var h1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),Q2=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new h1},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Nn(i[o*2-2],i[o*2-1]);o--);for(;a=0){var b=u?(d-l)*_+l:(c-s)*_+s;return u?[e,b]:[b,e]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var w=u?ds(s,c,g,y,e,f):ds(l,d,p,m,e,f);if(w>0)for(var S=0;S=0){var b=u?zt(l,d,p,m,x):zt(s,c,g,y,x);return u?[e,b]:[b,e]}}s=y,l=m;break}}},t}(ct),j2=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(h1),J2=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new j2},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Nn(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function nL(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=K(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=rL(u,i==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=v[0].coord-d,p=v[c-1].coord+d,y=p-g;if(y<.001)return"transparent";I(v,function(_){_.offset=(_.coord-g)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new Xh(0,0,0,0,v,!0);return m[i]=g,m[i+"2"]=p,m}}}function iL(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&aL(a,t))){var o=t.mapDimension(a.dim),s={};return I(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function aL(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function oL(r,t){return isNaN(r)||isNaN(t)}function sL(r){for(var t=r.length/2;t>0&&oL(r[t*2-2],r[t*2-1]);t--);return t-1}function Gp(r,t){return[r[t*2],r[t*2+1]]}function lL(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function d1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Q=g.getState("emphasis").style;Q.lineWidth=+g.style.lineWidth+1}ut(g).seriesIndex=e.seriesIndex,ws(g,B,k,O);var tt=zp(e.get("smooth")),H=e.get("smoothMonotone");if(g.setShape({smooth:tt,smoothMonotone:H,connectNulls:T}),p){var N=l.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(lt(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),N&&(F=zp(N.get("smooth"))),p.setShape({smooth:tt,stackedOnSmooth:F,smoothMonotone:H,connectNulls:T}),Df(p,e,"areaStyle"),ut(p).seriesIndex=e.seriesIndex,ws(p,B,k,O)}var j=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=h,this._step=C,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Hn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new kc(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Le.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Hn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Le.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;$v(this._polyline,e),n&&$v(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Q2({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new J2({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");rt(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=rt(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var g=c;if(g){var p=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var b=i,w=n.pointToCoord(p);a?(y=b.startAngle,m=b.endAngle,_=-w[1]/180*Math.PI):(y=b.r0,m=b.r,_=w[0])}else{var S=i;a?(y=S.x,m=S.x+S.width,_=c.x):(y=S.y+S.height,m=S.y,_=c.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var T=rt(h)?h(d):f*x+v,M=g.getSymbolPath(),D=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(d1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ut({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=sL(l);f>=0&&(ol(s,sl(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?l1(o,c):Ec(o,h)},enableTextSetter:!0},uL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,b=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?g:0)*(m?-1:1),S=(y?0:-g)*(m?-1:1),x=y?"x":"y",T=lL(h,b,x),M=T.range,D=M[1]-M[0],C=void 0;if(D>=1){if(D>1&&!c){var A=Gp(h,M[0]);u.attr({x:A[0]+w,y:A[1]+S}),o&&(C=v.getRawValue(M[0]))}else{var A=f.getPointOn(b,x);A&&u.attr({x:A[0]+w,y:A[1]+S});var L=v.getRawValue(M[0]),E=v.getRawValue(M[1]);o&&(C=Qy(i,d,L,E,T.t))}a.lastFrameIndex=M[0]}else{var R=e===1||a.lastFrameIndex>0?M[0]:0,A=Gp(h,R);o&&(C=v.getRawValue(R)),u.attr({x:A[0]+w,y:A[1]+S})}if(o){var P=ki(u);typeof P.setLabelText=="function"&&P.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=K2(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,g=v.next,p=v.stackedOnNext;if(o&&(c=Lr(v.current,i,o,l),d=Lr(v.stackedOnCurrent,i,o,l),g=Lr(v.next,i,o,l),p=Lr(v.stackedOnNext,i,o,l)),Fp(c,g)>3e3||f&&Fp(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:g}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Yt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Yt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,b=0;b<_.length;b++){var w=_[b].cmd;if(w==="="){var S=e.getItemGraphicEl(_[b].idx1);S&&m.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=a,e=i)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},dL=function(r){return Math.round(r.length/2)};function p1(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var d=void 0;q(a)?d=vL[a]:rt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,dL))}}}}}function pL(r){r.registerChartView(hL),r.registerSeriesModel(U2),r.registerLayout(cL("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,p1("line"))}var eh=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)I(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),g=v.getTickModel().get("alignWithLabel"),p=o[c],y=n[c]==="x1"||n[c]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,b=1,w=0;wp){_=(S+m)/2;break}w===1&&(b=x-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ar);ar.registerClass(eh);var gL=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return bl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=i0(eh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(eh);const yL=gL;var mL=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Hp=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new mL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Pf(a,e,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Le),Vp={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Nu(t.x,r.x),s=Fu(t.x+t.width,i),l=Nu(t.y,r.y),u=Fu(t.y+t.height,a),f=si?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Fu(t.r,r.r),a=Nu(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},$p={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Ft({shape:z({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?Hp:Ur,f=new u({shape:n,z2:1});f.name="item";var h=g1(i);if(f.calculateTextPosition=_L(h,{isRoundCap:u===Hp}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Yt:ve)(f,{shape:d},a)}return f}};function TL(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Wp(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Yt:ve)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Yt:ve)(e,{shape:u},f,i)}function Up(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function DL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function g1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Xp(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=bL(n.getModel("itemStyle"),f,!0);z(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=sl(n);ol(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Ec(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var g=r.getTextContent();if(s&&g){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,SL(r,p==="outside"?c:p,g1(o),n.get(["label","rotate"]))}MC(g,d,a.getRawValue(e),function(m){return l1(t,m)});var y=n.getModel(["emphasis"]);ws(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Df(r,n),DL(i)&&(r.style.fill="none",r.style.stroke="none",I(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function IL(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var AL=function(){function r(){}return r}(),qp=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new AL},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function LL(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function y1(r,t,e){if(Oc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function PL(r,t,e){var n=r.type==="polar"?Ur:Ft;return new n({shape:y1(t,e,r),silent:!0,z2:0})}const RL=xL;function EL(r){r.registerChartView(RL),r.registerSeriesModel(yL),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ot(CA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,MA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,p1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var kL=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(bt);const OL=kL;var rh=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$e).models[0]},t.type="cartesian2dAxis",t}(bt);Ee(rh,q_);var m1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},BL=gt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},m1),Bc=gt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},m1),NL=gt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Bc),FL=lt({logBase:10},Bc);const zL={category:BL,value:Bc,time:NL,log:FL};var GL={value:1,category:1,time:1,log:1};function Qp(r,t,e,n){I(GL,function(i,a){var o=gt(gt({},zL[a],!0),n,!0),s=function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Ba(this),c=v?vl(f):{},d=h.getTheme();gt(f,d.get(a+"Axis")),gt(f,this.getDefaultOption()),f.type=jp(f),v&&Mi(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Kf.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",jp)}function jp(r){return r.type||(r.data?"category":"value")}var HL=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return K(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),It(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const VL=HL;var nh=["x","y"];function Jp(r){return r.type==="interval"||r.type==="time"}var $L=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Jp(e)||!Jp(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Ri([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ie(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return ie(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new ht(a,o,s,l)},t}(VL),WL=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(n1);const UL=WL;function ih(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ti(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function tg(r){return r.get("coordinateSystem")==="cartesian2d"}function eg(r){var t={xAxisModel:null,yAxisModel:null};return I(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,$e).models[0];t[n]=a}),t}var zu=Math.log;function YL(r,t,e){var n=to.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=U_(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=zu(r.base);u=[zu(u[0])/v,zu(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=n.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)d=Au(d),g=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Au(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=Bt(p-m),g<0&&u[0]>=0?(g=0,p=Bt(m)):p>0&&u[1]<=0&&(p=0,g=-Bt(m))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*b),n.setInterval.call(r,d),(_||b)&&n.setNiceExtent.call(r,g+d,p-d)}var XL=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nh,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ct(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,g=c.scale;Qf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(jf(g,d),Qf(g)&&(s=c))}f.length&&(s||(s=f.pop(),jf(s.scale,s.model)),I(f,function(p){YL(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};I(n.x,function(o){rg(n,"y",o,a)}),I(n.y,function(o){rg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ci(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(I(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=XA(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),I(this._coordsList,function(u){u.calcAffineTransform()});function l(){I(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),qL(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}J(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Pa(i-Fr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),ig={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ie(s,s,o),ie(l,l,o));var f=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Yr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});ka(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);q(v)&&(v=[v,v]),(q(c)||St(c))&&(c=[c,c]);var d=j0(t.get(["axisLine","symbolOffset"])||0,c),g=c[0],p=c[1];I([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=$n(v[m],-g/2,-p/2,g,p,f.stroke,!0),b=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+b*Math.cos(r.rotation),y:w[1]-b*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=jL(e,n,t,r),a=tP(e,n,t,r);if(QL(t,a,i),JL(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=a1(K(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));s1(o)}},axisName:function(r,t,e,n){var i=Ti(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,og(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*Fr/180);var d;og(a)?v=Fn.innerTextLayout(r.rotation,c??r.rotation,o):(v=KL(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Ti(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ut({x:h[0],y:h[1],rotation:v.rotation,silent:Fn.isLabelSilent(t),style:_r(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(jh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=Fn.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ut(_).eventData=b}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function KL(r,t,e,n){var i=kh(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Pa(i-Fr/2)?(o=l?"bottom":"top",a="center"):Pa(i-Fr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iFr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function QL(r,t,e){if(!X_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];n===!1?(xe(a),xe(u)):ag(a,o)&&(n?(xe(o),xe(f)):(xe(a),xe(u))),i===!1?(xe(s),xe(h)):ag(l,s)&&(i?(xe(l),xe(v)):(xe(s),xe(h)))}}function xe(r){r&&(r.ignore=!0)}function ag(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Xa([]);return $s(i,i,-r.rotation),e.applyTransform(Gr([],i,r.getLocalTransform())),n.applyTransform(Gr([],i,t.getLocalTransform())),e.intersect(n)}}function og(r){return r==="middle"||r==="center"}function _1(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function oP(r){var t=Nc(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=ah(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Nc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Cn(t).pointerEl=new wC[a.type](ug(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Cn(t).labelEl=new Ut(ug(e.label));t.add(a),hg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Cn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Cn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),hg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=nl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){gy(u.event)},onmousedown:Vu(this._onHandleDragMove,this,0,0),drift:Vu(this._onHandleDragMove,this),ondragend:Vu(this._onHandleDragEnd,this)}),n.add(i)),cg(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,W0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){fg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$u(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform($u(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr($u(i)),Cn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Gf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function fg(r,t,e,n){T1(Cn(e).lastProp,n)||(Cn(e).lastProp=n,t?Yt(e,n,r):(e.stopAnimation(),e.attr(n)))}function T1(r,t){if(J(r)&&J(t)){var e=!0;return I(t,function(n,i){e=e&&T1(r[i],n)}),!!e}else return r===t}function hg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $u(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function cg(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const yP=gP;function mP(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function _P(r,t,e,n,i){var a=e.get("value"),o=C1(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ja(s.get("padding")||0),u=s.getFont(),f=Ph(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=c),g==="middle"&&(h[1]-=c/2),SP(h,v,c,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:_r(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function SP(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function C1(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Pc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),q(o)?a=o.replace("{value}",a):rt(o)&&(a=o(s))}return a}function M1(r,t,e){var n=zr();return $s(n,n,e.rotation),cs(n,n,e.position),Qh([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function bP(r,t,e,n,i,a){var o=S1.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),_P(t,n,i,a,{position:M1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wP(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function xP(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var TP=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=vg(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=mP(a),c=CP[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=ih(l.model,i);bP(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=ih(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=M1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(yP);function vg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var CP={line:function(r,t,e){var n=wP([t,e[0]],[t,e[1]],dg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:xP([t-n/2,e[0]],[n,i],dg(r))}}};function dg(r){return r.dim==="x"?0:1}const MP=TP;var DP=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(bt);const IP=DP;var pr=At(),AP=I;function D1(r,t,e){if(!st.node){var n=t.getZr();pr(n).records||(pr(n).records={}),LP(n,t);var i=pr(n).records[r]||(pr(n).records[r]={});i.handler=e}}function LP(r,t){if(pr(r).initialized)return;pr(r).initialized=!0,e("click",Ot(pg,"click")),e("mousemove",Ot(pg,"mousemove")),e("globalout",RP);function e(n,i){r.on(n,function(a){var o=EP(t);AP(pr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),PP(o.pendings,t)})}}function PP(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function RP(r,t,e){r.handler("leave",null,e)}function pg(r,t,e,n){t.handler(r,e,n)}function EP(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function sh(r,t){if(!st.node){var e=t.getZr(),n=(pr(e).records||{})[r];n&&(pr(e).records[r]=null)}}var kP=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";D1("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){sh("axisPointer",n)},t.prototype.dispose=function(e,n){sh("axisPointer",n)},t.type="axisPointer",t}(be);const OP=kP;function I1(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Hn(a,r);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),g=[];g[c]=a.get(d,o),g[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(K(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var gg=At();function BP(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||Dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ss(i)&&(i=I1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ss(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||ss(i),v={},c={},d={list:[],map:{}},g={showPointer:Ot(FP,c),showTooltip:Ot(zP,d)};I(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);I(s.coordSysAxesInfo[m],function(b,w){var S=b.axis,x=$P(u,b);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(i)),T!=null&&yg(b,T,g,!1,v)}})});var p={};return I(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&I(_.axesInfo,function(b,w){var S=c[w];if(b!==y&&S){var x=S.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,mg(b),mg(y)))),p[y.key]=x}})}),I(p,function(y,m){yg(f[m],y,g,!0,v)}),GP(c,f,v),HP(d,i,r,o),VP(f,o,e),v}}function yg(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=NP(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function NP(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),I(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function FP(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function zP(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Va(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function GP(r,t,e){var n=e.axesInfo=[];I(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function HP(r,t,e,n){if(ss(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function VP(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=gg(n)[i]||{},o=gg(n)[i]={};I(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&I(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];I(a,function(u,f){!o[f]&&l.push(u)}),I(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $P(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function mg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ss(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function A1(r){b1.registerAxisPointerClass("CartesianAxisPointer",MP),r.registerComponentModel(IP),r.registerComponentView(OP),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=eP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BP)}function WP(r){Sr(pP),Sr(A1)}function UP(r,t){var e=Ja(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Ft({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var YP=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(bt);const XP=YP;function L1(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function P1(r){if(st.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function tR(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=st.transformSupported?","+Fc+n:",left"+n+",top"+n),KP+":"+i}function _g(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!st.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=st.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Fc+":"+o+";":[["top",0],["left",0],[R1,o]]}function eR(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),I(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function rR(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=V0(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(tR(i,e)),a&&n.push("background-color:"+a),I(["width","color","radius"],function(c){var d="border-"+c,g=oc(d),p=r.get(g);p!=null&&n.push(d+":"+p+(c==="color"?"":"px"))}),n.push(eR(f)),h!=null&&n.push("padding:"+Ja(h).join("px ")+"px"),n.join(";")+";"}function Sg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Ab(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var nR=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,st.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(q(a)?document.querySelector(a):xi(a)?a:rt(a)&&a(t.getDom()));Sg(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Ce(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=ZP(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=QP+rR(t,!this._firstShow,this._longHide)+_g(a[0],a[1],!0)+("border-color:"+Vn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(q(a)&&n.get("trigger")==="item"&&!L1(n)&&(s=JP(n,i,a)),q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||st.node||!i.getDom())){var o=xg(a,i);this._ticket="";var s=a.dataByCoordSys,l=hR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=oR;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=I1(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(xg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=na([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=ut(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ha(i,function(f){if(ut(f).dataIndex!=null)return l=f,!0;if(ut(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=Dt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=na([n.tooltipOption],a),l=this._renderMode,u=[],f=Fa("section",{blocks:[],noHeader:!0}),h=[],v=new yu;I(e,function(m){I(m.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!b||w==null)){var S=C1(w,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Fa("section",{header:S,noHeader:!Ve(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),I(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,C=M.getDataParams(D);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Pc(b.axis,{value:w}),C.axisValueLabel=S,C.marker=v.makeTooltipMarker("item",Vn(C.color),l);var A=Pd(M.formatTooltip(D,!0,null)),L=A.frag;if(L){var E=na([M],a).get("valueFormatter");x.blocks.push(E?z({valueFormatter:E},L):L)}A.text&&h.push(A.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),g=Nd(f,v,l,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?` - -`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,g=na([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new yu;y.marker=m.makeTooltipMarker("item",Vn(y.color),c);var _=Pd(u.formatTooltip(f,!1,h)),b=g.get("order"),w=g.get("valueFormatter"),S=_.frag,x=S?Nd(w?z({valueFormatter:w},S):S,m,c,b,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(q(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,v=na(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",g=new yu;this._showOrMove(v,function(){var p=vt(v.get("formatterParams")||{});this._showTooltipContent(v,c,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(v)if(q(v)){var p=e.ecModel.get("useUTC"),y=V(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ja(y.axisValue,c,p)),c=sc(c,i,!0)}else if(rt(v)){var _=Dt(function(b,w){b===this._ticket&&(h.setContent(w,f,e,g,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||V(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),rt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(n))i=$t(n[0],u),a=$t(n[1],f);else if(J(n)){var g=n;g.width=h[0],g.height=h[1];var p=Ci(g,{width:u,height:f});i=p.x,a=p.y,v=null,c=null}else if(q(n)&&l){var y=fR(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=lR(i,a,o,u,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=Tg(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=Tg(c)?h[1]/2:c==="bottom"?h[1]:0),L1(e)){var y=uR(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&I(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&I(u,function(v,c){var d=h[c]||{},g=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&g.length===p.length,o&&I(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&I(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],b=a[m];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){st.node||!n.getDom()||(Gf(this,"_updatePosition"),this._tooltipContent.dispose(),sh("itemTooltip",n))},t.type="tooltip",t}(be);function na(r,t,e){var n=t.ecModel,i;e?(i=new Gt(e,n,n),i=new Gt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Gt&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new Gt(o,i,n)))}return i}function xg(r,t){return r.dispatchAction||Dt(t.dispatchAction,t)}function lR(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function uR(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function fR(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Tg(r){return r==="center"||r==="middle"}function hR(r,t,e){var n=Nh(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Qa(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const cR=sR;function vR(r){Sr(A1),r.registerComponentModel(XP),r.registerComponentView(cR),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ne),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ne)}var dR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(bt),pR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ot(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ut({style:_r(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new Ut({style:_r(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,c.silent=!g&&!p,d&&f.on("click",function(){vd(d,"_"+e.get("target"))}),g&&c.on("click",function(){vd(g,"_"+e.get("subtarget"))}),ut(f).eventData=ut(c).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ci(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),c.setStyle(b),y=a.getBoundingRect();var w=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var x=new Ft({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(be);function gR(r){r.registerComponentModel(dR),r.registerComponentView(pR)}var yR=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},mR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),V(n)&&I(n,function(a,o){q(a)&&(a={type:a}),n[o]=gt(a,yR(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(bt);const lh=mR;var li=Ot,uh=I,Wo=Wt,_R=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Wo),this.group.add(this._selectorGroup=new Wo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),c=Ci(f,h,v),d=this.layoutInner(e,o,c,a,l,u),g=Ci(lt({width:d.width,height:d.height},f),h,v);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UP(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=et(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),uh(n.getData(),function(c,d){var g=c.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var p=new Wo;p.newline=!0,u.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},b=m.getVisual("legendIcon"),w=m.getVisual("style"),S=this._createItem(y,g,d,c,n,e,_,w,b,h,a);S.on("click",li(Cg,g,null,a,v)).on("mouseover",li(fh,y.name,null,a,v)).on("mouseout",li(hh,y.name,null,a,v)),i.ssr&&S.eachChild(function(x){var T=ut(x);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(g))return;var M=T.indexOfName(g),D=T.getItemVisual(M,"style"),C=T.getItemVisual(M,"legendIcon"),A=_e(D.fill);A&&A[3]===0&&(A[3]=.2,D=z(z({},D),{fill:Zr(A,"rgba")}));var L=this._createItem(x,g,d,c,n,e,{},D,C,h,a);L.on("click",li(Cg,null,g,a,v)).on("mouseover",li(fh,null,g,a,v)).on("mouseout",li(hh,null,g,a,v)),i.ssr&&L.eachChild(function(E){var R=ut(E);R.seriesIndex=x.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();uh(e,function(u){var f=u.type,h=new Ut({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);ol(h,{normal:v,emphasis:c},{defaultText:u.title}),bs(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=SR(f,a,l,u,c,p,v),w=new Wo,S=a.getModel("textStyle");if(rt(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(bR({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,D=o.get("formatter"),C=n;q(D)&&D?C=D.replace("{name}",n??""):rt(D)&&(C=D(n));var A=p?S.getTextColor():a.get("inactiveColor");w.add(new Ut({style:_r(S,{text:C,x:T,y:g/2,fill:A,align:M,verticalAlign:"middle"},{inheritColor:A})}));var L=new Ft({shape:w.getBoundingRect(),style:{fill:"transparent"}}),E=a.getModel("tooltip");return E.get("show")&&jh({el:L,componentModel:o,itemName:n,itemTooltipOption:E.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),bs(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ba(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ba("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?c[g]+=f[p]+d:h[g]+=v[p]+d,c[1-g]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(be);function SR(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),uh(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Uf(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function bR(r){var t=r.icon||"roundRect",e=$n(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Cg(r,t,e,n){hh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),fh(r,t,e,n)}function k1(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-c.x,-c.y];n||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ot(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var b=e.get("pageButtonPosition",!0);b==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],g){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new Ft({shape:S})),h.__rectSize=S[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&Yt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?e:null),this._updatePageInfoView(e,x),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;I(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Wu[o],l=Uu[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=b(h);d.contentPosition[o]=-g.s;for(var p=u+1,y=g,m=g,_=null;p<=v;++p)_=b(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=b(f[p]),(!_||!w(m,_.s))&&y.i=x&&S.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t}(O1);const DR=MR;function IR(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function AR(r){Sr(B1),r.registerComponentModel(CR),r.registerComponentView(DR),IR(r)}function LR(r){Sr(B1),Sr(AR)}var Ig={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PR=function(){function r(t){var e=this._condVal=q(t)?new RegExp(t):ay(t)?t:null;if(e==null){var n="";pt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return q(e)?this._condVal.test(t):St(e)?this._condVal.test(t+""):!1},r}(),RR=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),ER=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[L,E]}function f(L,E,R,P){gi(L,R)&&gi(E,P)||i.push(L,E,R,P,R,P)}function h(L,E,R,P,B,k){var O=Math.abs(E-L),Q=Math.tan(O/4)*4/3,tt=ET:C2&&n.push(i),n}function vh(r,t,e,n,i,a,o,s,l,u){if(gi(r,e)&&gi(t,n)&&gi(i,o)&&gi(a,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-t,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,b=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var M=[],D=[];$r(r,e,i,o,.5,M),$r(t,n,a,s,.5,D),vh(M[0],D[0],M[1],D[1],M[2],D[2],M[3],D[3],l,u),vh(M[4],D[4],M[5],D[5],M[6],D[6],M[7],D[7],l,u)}function XR(r,t){var e=ch(r),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),h=F1([l,u],f?0:1,t),v=(f?s:u)/h.length,c=0;ci,o=F1([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,v=0;v1?null:new at(g*l+r,g*u+t)}function KR(r,t,e){var n=new at;at.sub(n,e,t),n.normalize();var i=new at;at.sub(i,r,t);var a=i.dot(n);return a}function ui(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function QR(r,t,e){for(var n=r.length,i=[],a=0;ao?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),QR(t,u,f)}function Bs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Bs(r,a[0],i,n),Bs(r,a[1],e-i,n)}return n}function jR(r,t){for(var e=[],n=0;n0)for(var w=n/e,S=-n/2;S<=n/2;S+=w){for(var x=Math.sin(S),T=Math.cos(S),M=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function zs(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=K(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=K(a,function(s,l){return{cp:s,z:sE(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function H1(r){return eE(r.path,r.count)}function dh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function lE(r,t,e){var n=[];function i(w){for(var S=0;S=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var fE={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;Bg(r)&&(u=r,f=t),Bg(t)&&(u=t,f=r);function h(y,m,_,b,w){var S=y.many,x=y.one;if(S.length===1&&!w){var T=m?S[0]:x,M=m?x:S[0];if(Ns(T))h({many:[T],one:M},!0,_,b,!0);else{var D=s?lt({delay:s(_,b)},l):l;Gc(T,M,D),a(T,M,T,M,D)}}else for(var C=lt({dividePath:fE[e],individualDelay:s&&function(B,k,O,Q){return s(B+_,b)}},l),A=m?lE(S,x,C):uE(x,S,C),L=A.fromIndividuals,E=A.toIndividuals,R=L.length,P=0;Pt.length,c=u?Ng(f,u):Ng(v?t:r,[v?r:t]),d=0,g=0;gV1))for(var a=n.getIndices(),o=0;o0&&S.group.traverse(function(T){T instanceof ct&&!T.animators.length&&T.animateFrom({style:{opacity:0}},x)})})}function Vg(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function $g(r){return V(r)?r.sort().join(","):r}function Er(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function yE(r,t){var e=et(),n=et(),i=et();return I(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Vg(a),f=$g(u);n.set(f,{dataGroupId:s,data:l}),V(u)&&I(u,function(h){i.set(h,{key:f,dataGroupId:s,data:l})})}),I(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=Vg(a),u=$g(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Er(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Er(s),data:s}]});else if(V(l)){var h=[];I(l,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Er(g.data),data:g.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Er(s)}]})}else{var v=i.get(l);if(v){var c=e.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Er(v.data)}],newSeries:[]},e.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Er(s)})}}}}),e}function Wg(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Er(t.oldData[s]),groupIdDim:o.dimension})}),I(Nt(r.to),function(o){var s=Wg(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Er(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&$1(i,a,n)}function _E(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){I(Nt(n.seriesTransition),function(i){I(Nt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}E.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var D=c.dpr,C=0;C0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Uo:0),this._needsManuallyCompositing),f.__builtin__||Hs("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&ye&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,I(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?gt(n[t],e,!0):n[t]=e;for(var i=0;i{}}},setup(r){let t=null;const{options:e}=Ku(r),n=Lt({echart:wt()}),i=()=>{t=$2.init(n.echart),t.setOption({...e.value})},a=()=>{t.setOption({...e.value}),t.resize()},o=()=>{t&&t.resize()};return ls(()=>e.value,s=>{s&&a()},{deep:!0}),Q1(()=>{window.removeEventListener("resize",o)}),qr(()=>{window.addEventListener("resize",o),i()}),{...Ku(n)}}});function IE(r,t,e,n,i,a){const o=j1;return Y(),Mt(o,{spinning:r.loading,class:"echarts-loading"},{default:$(()=>[U("div",{ref:"echart",style:Qu({width:r.width,height:r.height}),class:"timeline-echarts"},null,4)]),_:1},8,["spinning"])}const Xg=Li(DE,[["render",IE]]),AE=(r={},t=(e,n)=>Number(e)-Number(n))=>{const e=Object.keys(r);if(!e.length)return{};const n={};return e.sort(t).forEach(i=>n[i]=r[i]),n},qg=(r,t)=>{if(!t)return{};t=AE(t);const e=Object.keys(t),n={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:e.map(a=>me(a)),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};r&&(n.title={left:"center",text:r});const i={};return Object.values(t).forEach(a=>{Object.keys(a).forEach(s=>{const l=J1.global.t(s);i[l]||(i[l]=[]),i[l].push(a[s])})}),n.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},n.series=Object.keys(i).map(a=>({name:a,type:"line",symbol:"circle",data:i[a]})),n},LE={class:"branch-selector"},PE={class:"branch-btn-label"},RE={class:"branch-selector-search"},EE=["onClick"],kE={class:"item-icon"},OE={class:"item-label"},BE={key:1,class:"empty-tips"},NE=["onClick"],FE={class:"item-icon"},zE={class:"item-label"},GE={key:1,class:"empty-tips"},HE={class:"g-mr-4"},VE={class:"g-mr-4"},$E={class:"g-ml-24"},WE=Xr({__name:"Selector",props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup(r,{emit:t}){Ii();const e=r,n=ca(()=>e.disabled),i=t,a=wt({value:"",type:lr.BRANCH,label:""}),o=wt(""),s=wt(""),l=wt(lr.BRANCH),u=wt([]),f=wt([]),h=ca(()=>u.value.filter(S=>!o.value||S.label.includes(o.value))),v=ca(()=>f.value.filter(S=>!s.value||S.label.includes(s.value))),c=wt(qn.ALL),d=Lt([qn.ALL,qn.OPTIMIZING,qn.NONOPTIMIZING]),g=S=>{S.stopPropagation()},p=S=>S.parentNode||document.body,y=S=>{a.value=S,c.value=qn.ALL,i("refChange",{ref:S.value,operation:qn.ALL})},m=S=>{i("refChange",{ref:a.value.value,operation:S})},_=async()=>{const S=await yS(e);u.value=(S.list||[]).map(x=>({value:x.name,label:x.name,type:lr.BRANCH})),u.value.length&&y(u.value[0])},b=async()=>{const S=await mS(e);f.value=(S.list||[]).map(x=>({value:x.name,label:x.name,type:lr.TAG}))},w=async()=>{await Promise.all([_(),b()])};return qr(()=>{l.value=lr.BRANCH,w()}),(S,x)=>{const T=eS,M=Wa,D=rS,C=Kg,A=Qg,L=nS,E=aS,R=iS;return Y(),ft("div",LE,[Z(L,{trigger:["click"],placement:"bottomLeft",getPopupContainer:p},{overlay:$(()=>[U("div",null,[U("div",RE,[$c(Z(D,{value:o.value,"onUpdate:value":x[0]||(x[0]=P=>o.value=P),placeholder:S.$t("Filter branches/tags"),onClick:g},null,8,["value","placeholder"]),[[Wc,l.value===Tt(lr).BRANCH]]),$c(Z(D,{value:s.value,"onUpdate:value":x[1]||(x[1]=P=>s.value=P),placeholder:S.$t("Filter branches/tags"),onClick:g},null,8,["value","placeholder"]),[[Wc,l.value===Tt(lr).TAG]])]),Z(A,{activeKey:l.value,"onUpdate:activeKey":x[2]||(x[2]=P=>l.value=P),type:"card"},{default:$(()=>[(Y(),Mt(C,{key:Tt(lr).BRANCH,tab:"Branches"},{default:$(()=>[h.value.length?(Y(!0),ft(Vt,{key:0},Pn(h.value,(P,B)=>(Y(),ft("div",{class:"branch-selector-item",key:B,onClick:k=>y(P)},[U("div",kE,[P.value===a.value.value?(Y(),Mt(Tt(Uc),{key:0})):xt("",!0)]),U("span",OE,X(P.label),1)],8,EE))),128)):(Y(),ft("span",BE,X(S.$t("nothingToShow")),1))]),_:1})),(Y(),Mt(C,{key:Tt(lr).TAG,tab:"Tags"},{default:$(()=>[v.value.length?(Y(!0),ft(Vt,{key:0},Pn(v.value,(P,B)=>(Y(),ft("div",{class:"branch-selector-item",key:B,onClick:k=>y(P)},[U("div",FE,[P.value===a.value.value?(Y(),Mt(Tt(Uc),{key:0})):xt("",!0)]),U("span",zE,X(P.label),1)],8,NE))),128)):(Y(),ft("span",GE,X(S.$t("nothingToShow")),1))]),_:1}))]),_:1},8,["activeKey"])])]),default:$(()=>[Z(M,{class:"branch-btn",disabled:!a.value.value||n.value},{default:$(()=>[Z(T,{className:"branch-selector-icon","icon-class":a.value.type,class:"g-mr-8"},null,8,["icon-class"]),U("span",PE,X(a.value.label),1),Z(Tt(tS))]),_:1},8,["disabled"])]),_:1}),U("div",null,[Z(T,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),U("span",HE,X(u.value.length),1),U("span",null,X(S.$t("branches")),1)]),U("div",null,[Z(T,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),U("span",VE,X(f.value.length),1),U("span",null,X(S.$t("tags")),1)]),U("div",$E,[_t(X(S.$t("operation"))+": ",1),Z(R,{class:"g-ml-8",value:c.value,"onUpdate:value":x[3]||(x[3]=P=>c.value=P),style:{width:"160px"},disabled:n.value,onChange:m},{default:$(()=>[(Y(!0),ft(Vt,null,Pn(d,P=>(Y(),Mt(E,{value:P,key:P},{default:$(()=>[_t(X(P),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","disabled"])])])}}}),UE={class:"table-snapshots"},YE=Xr({__name:"Snapshots",setup(r){const t=wt(!1),{t:e}=Ii(),n=ce([{title:e("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:e("operation"),dataIndex:"operation"},{title:e("records"),dataIndex:"records"},{title:e("fileCount"),dataIndex:"fileCount"},{title:e("commitTime"),dataIndex:"commitTime"}]),i=ce([{title:e("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:e("file"),dataIndex:"file",ellipsis:!0},{title:e("partition"),dataIndex:"partition",width:120},{title:e("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120},{title:e("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:e("path"),dataIndex:"path",ellipsis:!0}]),a=Lt([]),o=Lt([]),s=wt(""),l=wt(!1),u=Lt(zn()),f=Lt(zn()),v=Ai().query,c=Lt({catalog:"",db:"",table:"",...v}),d=wt({}),g=wt({}),p=wt(""),y=wt(""),m=T=>{p.value=T.ref,y.value=T.operation,_()};async function _(){try{l.value=!0,a.length=0;const T=await _S({...c,ref:p.value,operation:y.value,page:u.current,pageSize:u.pageSize}),{list:M=[],total:D}=T,C={},A={};M.forEach(L=>{const{recordsSummaryForChart:E,filesSummaryForChart:R,commitTime:P}=L;C[P]=E||{},A[P]=R||{},L.producer==="OPTIMIZE"&&(L.operation=L.operation+"(optimizing)"),L.commitTime=L.commitTime?me(L.commitTime):"-",a.push(L)}),d.value=qg(e("recordChartTitle"),C),g.value=qg(e("fileChartTitle"),A),u.total=D}catch{}finally{l.value=!1}}function b({current:T=1,pageSize:M=25}){t.value?(f.current=T,M!==f.pageSize&&(f.current=1),f.pageSize=M):(u.current=T,M!==u.pageSize&&(u.current=1),u.pageSize=M),w()}function w(){t.value?S():_()}async function S(){try{o.length=0,l.value=!0;const T={...c,snapshotId:s.value,page:f.current,pageSize:f.pageSize},M=await SS(T),{list:D,total:C}=M;f.total=C,D.forEach(A=>{A.commitTime=A.commitTime?me(A.commitTime):"",o.push(A)})}catch{}finally{l.value=!1}}function x(T){s.value=T.snapshotId,t.value=!t.value,t.value&&(f.current=1,S())}return qr(()=>{t.value=!1}),(T,M)=>{const D=jg,C=Jg,A=Wa,L=$a,E=ph,R=gh,P=yh;return Y(),ft("div",UE,[t.value?(Y(),ft(Vt,{key:1},[Z(R,{separator:">"},{default:$(()=>[Z(E,{onClick:x,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),Z(E,null,{default:$(()=>[_t(X(`${T.$t("snapshotId")} ${s.value}`),1)]),_:1})]),_:1}),Z(L,{rowKey:"file",columns:Tt(i),"data-source":o,pagination:f,loading:l.value,onChange:b,class:"g-mt-8"},{bodyCell:$(({column:B,record:k})=>[B.dataIndex==="path"?(Y(),Mt(P,{key:0},{title:$(()=>[_t(X(k.path),1)]),default:$(()=>[U("span",null,X(k.path),1)]),_:2},1024)):xt("",!0),B.dataIndex==="file"?(Y(),Mt(P,{key:1},{title:$(()=>[_t(X(k.file),1)]),default:$(()=>[U("span",null,X(k.file),1)]),_:2},1024)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),ft(Vt,{key:0},[Z(C,null,{default:$(()=>[Z(D,{span:12},{default:$(()=>[Z(Xg,{loading:l.value,options:d.value},null,8,["loading","options"])]),_:1}),Z(D,{span:12},{default:$(()=>[Z(Xg,{loading:l.value,options:g.value},null,8,["loading","options"])]),_:1})]),_:1}),Z(WE,{catalog:c.catalog,db:c.db,table:c.table,disabled:l.value,onRefChange:m},null,8,["catalog","db","table","disabled"]),Z(L,{rowKey:"snapshotId",columns:Tt(n),"data-source":a,pagination:u,loading:l.value,onChange:b},{bodyCell:$(({column:B,record:k})=>[B.dataIndex==="snapshotId"?(Y(),Mt(A,{key:0,type:"link",onClick:O=>x(k)},{default:$(()=>[_t(X(k.snapshotId),1)]),_:2},1032,["onClick"])):xt("",!0)]),expandedRowRender:$(({record:B})=>[(Y(!0),ft(Vt,null,Pn(B.summary,(k,O)=>(Y(),Mt(C,{type:"flex",gutter:16,key:O},{default:$(()=>[Z(D,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(O)+" :",1)]),_:2},1024),Z(D,{flex:"auto"},{default:$(()=>[_t(X(k),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}}),XE=Li(YE,[["__scopeId","data-v-cc7866b5"]]),ro=r=>(oS("data-v-7a952a9e"),r=r(),sS(),r),qE={class:"table-optimizing"},ZE={class:""},KE=ro(()=>U("div",{class:""},"success / total",-1)),QE={class:""},jE=ro(()=>U("div",{class:""},"size / count",-1)),JE={class:""},tk=ro(()=>U("div",{class:""},"size / count",-1)),ek={key:1,class:"g-flex-ac"},rk={class:"tip-title"},nk={class:""},ik=ro(()=>U("div",{class:""},"size / count",-1)),ak={class:""},ok=ro(()=>U("div",{class:""},"size / count",-1)),sk={key:1,class:"g-flex-ac"},lk={class:"tip-title"},uk=Xr({__name:"Optimizing",setup(r){const t=wt(!1),e=ce({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),n=ce({PLANNED:{title:"PLANNED",color:"#ffcc00"},SCHEDULED:{title:"SCHEDULED",color:"#4169E1"},ACKED:{title:"ACKED",color:"#1890ff"},FAILED:{title:"FAILED",color:"#f5222d"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},CANCELED:{title:"CANCELED",color:"#c9cdd4"}}),{t:i}=Ii(),a=ce([{title:i("processId"),dataIndex:"processId"},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("type"),dataIndex:"optimizingType"},{title:i("status"),dataIndex:"status"},{title:i("duration"),dataIndex:"duration",width:120},{title:i("tasks"),dataIndex:"tasks"},{title:i("finishTime"),dataIndex:"finishTime",width:172},{title:i("input"),dataIndex:"inputFiles"},{title:i("output"),dataIndex:"outputFiles"}]),o=ce([{title:i("taskId"),dataIndex:"taskId",width:82},{title:i("partition"),dataIndex:"partitionData",ellipsis:!0},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("status"),dataIndex:"status",width:124},{title:i("costTime"),dataIndex:"formatCostTime",width:120},{title:i("finishTime"),dataIndex:"endTime",width:172},{title:i("input"),dataIndex:"inputFilesDesc"},{title:i("output"),dataIndex:"outputFilesDesc"}]),s=Lt([]),l=wt(0),u=Lt([]),f=wt(!1),h=wt(!0),v=Lt(zn()),c=Lt(zn()),g=Ai().query,p=Lt({catalog:"",db:"",table:"",...g});async function y(){try{f.value=!0,s.length=0;const x=await xS({...p,page:v.current,pageSize:v.pageSize}),{list:T,total:M=0}=x;v.total=M,s.push(...[...T||[]].map(D=>{const{inputFiles:C={},outputFiles:A={}}=D;return{...D,startTime:D.startTime?me(D.startTime):"-",finishTime:D.finishTime?me(D.finishTime):"-",optimizingType:D.optimizingType?D.optimizingType:"-",duration:Yc(D.duration||"-"),inputFiles:`${no(C.totalSize)} / ${C.fileCnt}`,outputFiles:`${no(A.totalSize)} / ${A.fileCnt}`,tasks:`${D.successTasks||"0"} / ${D.totalTasks||"0"}${D.runningTasks?` (${D.runningTasks} running)`:""}`}}))}catch{}finally{f.value=!1}}async function m(){Zg.confirm({title:i("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{f.value=!0;const x=await bS({...p,processId:l.value});h.value=!0,b()}catch{}finally{f.value=!1}}})}function _({current:x=1,pageSize:T=25}){t.value?(c.current=x,T!==c.pageSize&&(c.current=1),c.pageSize=T):(v.current=x,T!==v.pageSize&&(v.current=1),v.pageSize=T),b()}function b(){t.value?w():y()}async function w(){try{u.length=0,f.value=!0;const x={...p,processId:l.value,page:c.current,pageSize:c.pageSize},T=await wS(x),{list:M,total:D}=T;c.total=D,M.forEach(C=>{C.startTime=C.startTime?me(C.startTime):"-",C.endTime=C.endTime?me(C.endTime):"-",C.formatCostTime=Yc(C.costTime),C.thread=C.optimizerToken?"("+C.threadId+")"+C.optimizerToken:"-",C.partitionData=C.partitionData?C.partitionData:"-",C.inputFilesDesc=`${no(C.inputFiles.totalSize)} / ${C.inputFiles.fileCnt}`,C.outputFilesDesc=`${no(C.outputFiles.totalSize)} / ${C.outputFiles.fileCnt}`,u.push(C)})}catch{}finally{f.value=!1}}function S(x,T){l.value=x,h.value=T!=="RUNNING",t.value=!t.value,t.value&&(c.current=1),b()}return qr(()=>{t.value=!1,b()}),(x,T)=>{const M=Wa,D=yh,C=jg,A=Jg,L=$a,E=ph,R=gh;return Y(),ft("div",qE,[t.value?(Y(),ft(Vt,{key:1},[Z(A,null,{default:$(()=>[Z(C,{span:18},{default:$(()=>[Z(R,{separator:">"},{default:$(()=>[Z(E,{onClick:S,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),Z(E,null,{default:$(()=>[_t(X(`${x.$t("processId")} ${l.value}`),1)]),_:1})]),_:1})]),_:1}),Z(C,{span:6},{default:$(()=>[Z(M,{type:"primary",disabled:h.value,"onUpdate:disabled":T[0]||(T[0]=P=>h.value=P),class:"g-mb-16",onClick:m,style:{float:"right"}},{default:$(()=>[_t(X(Tt(i)("cancelProcess")),1)]),_:1},8,["disabled"])]),_:1})]),_:1}),Z(L,{rowKey:"taskId",columns:Tt(o),"data-source":u,pagination:c,loading:f.value,onChange:_,class:"g-mt-8"},{headerCell:$(({column:P})=>[P.dataIndex==="inputFilesDesc"?(Y(),ft(Vt,{key:0},[U("div",nk,X(P.title),1),ik],64)):xt("",!0),P.dataIndex==="outputFilesDesc"?(Y(),ft(Vt,{key:1},[U("div",ak,X(P.title),1),ok],64)):xt("",!0)]),bodyCell:$(({column:P,record:B})=>[P.dataIndex==="partitionData"?(Y(),Mt(D,{key:0},{title:$(()=>[_t(X(B.partitionData),1)]),default:$(()=>[U("span",null,X(B.partitionData),1)]),_:2},1024)):xt("",!0),P.dataIndex==="status"?(Y(),ft("div",sk,[U("span",{style:Qu({"background-color":(Tt(n)[B.status]||{}).color}),class:"status-icon"},null,4),U("span",null,X(B.status),1),B.status==="FAILED"?(Y(),Mt(D,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:$(()=>[U("div",lk,X(B.failReason),1)]),default:$(()=>[Z(Tt(Xc))]),_:2},1024)):xt("",!0)])):xt("",!0)]),expandedRowRender:$(({record:P})=>[(Y(!0),ft(Vt,null,Pn(P.summary,(B,k)=>(Y(),Mt(A,{type:"flex",gutter:16,key:k},{default:$(()=>[Z(C,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(k)+" :",1)]),_:2},1024),Z(C,{flex:"auto"},{default:$(()=>[_t(X(B),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),Mt(L,{key:0,rowKey:"processId",columns:Tt(a),"data-source":s,pagination:v,loading:f.value,onChange:_},{headerCell:$(({column:P})=>[P.dataIndex==="tasks"?(Y(),ft(Vt,{key:0},[U("div",ZE,X(P.title),1),KE],64)):xt("",!0),P.dataIndex==="inputFiles"?(Y(),ft(Vt,{key:1},[U("div",QE,X(P.title),1),jE],64)):xt("",!0),P.dataIndex==="outputFiles"?(Y(),ft(Vt,{key:2},[U("div",JE,X(P.title),1),tk],64)):xt("",!0)]),bodyCell:$(({record:P,column:B})=>[B.dataIndex==="processId"?(Y(),Mt(M,{key:0,type:"link",onClick:k=>S(P.processId,P.status)},{default:$(()=>[_t(X(P.processId),1)]),_:2},1032,["onClick"])):xt("",!0),B.dataIndex==="status"?(Y(),ft("div",ek,[U("span",{style:Qu({"background-color":(Tt(e)[P.status]||{}).color}),class:"status-icon"},null,4),U("span",null,X(P.status),1),P.status==="FAILED"?(Y(),Mt(D,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:$(()=>[U("div",rk,X(P.failReason),1)]),default:$(()=>[Z(Tt(Xc))]),_:2},1024)):xt("",!0)])):xt("",!0)]),expandedRowRender:$(({record:P})=>[(Y(!0),ft(Vt,null,Pn(P.summary,(B,k)=>(Y(),Mt(A,{type:"flex",gutter:16,key:k},{default:$(()=>[Z(C,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(k)+" :",1)]),_:2},1024),Z(C,{flex:"auto"},{default:$(()=>[_t(X(B),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"]))])}}}),fk=Li(uk,[["__scopeId","data-v-7a952a9e"]]),hk=Xr({name:"Tables",components:{UDetails:GS,UFiles:WS,UOperations:KS,USnapshots:XE,UOptimizing:fk},setup(){const r=lS(),t=Ai(),e=uS(),n=wt(),i=ce([{key:"Snapshots",label:"Snapshots"},{key:"Optimizing",label:"Optimizing"},{key:"Operations",label:"Operations"}]),a=Lt({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),o=ca(()=>a.baseInfo.tableType==="ICEBERG"),s=c=>{a.detailLoaded=!0,a.baseInfo={...c}},l=c=>{const d={...t.query};d.tab=c,r.replace({query:{...d}})},u=()=>{},f=()=>{},h=()=>{e.updateTablesMenu(!1)},v=()=>{a.isSecondaryNav=!1,r.back()};return ls(()=>t.path,()=>{a.isSecondaryNav=t.path.indexOf("create")>-1},{immediate:!0}),ls(()=>t.query,(c,d)=>{const{catalog:g,db:p,table:y}=c,{catalog:m,db:_,table:b}=d;if(`${g}${p}${y}`!=`${m}${_}${b}`){a.activeKey="Details";return}a.activeKey=c.tab}),qr(()=>{var c;a.activeKey=((c=t.query)==null?void 0:c.tab)||"Details",fS(()=>{n.value&&n.value.getTableDetails()})}),{...Ku(a),tabConfigs:i,store:e,isIceberg:o,editTable:u,delTable:f,setBaseDetailInfo:s,hideTablesMenu:h,goBack:v,onChangeTab:l}}}),ck={class:"tables-wrap"},vk={key:0,class:"tables-content"},dk={class:"g-flex-jsb"},pk={class:"g-flex-col"},gk={class:"g-flex"},yk=["title"],mk={key:0,class:"create-time"},_k={class:"table-info g-flex-ac"},Sk={class:"text-color"},bk={class:"text-color"},wk={class:"text-color"},xk={class:"text-color"},Tk={class:"content"};function Ck(r,t,e,n,i,a){const o=hS,s=Yo("u-details"),l=Kg,u=Yo("u-files"),f=Qg,h=Yo("router-view");return Y(),ft("div",ck,[r.isSecondaryNav?(Y(),Mt(h,{key:1,onGoBack:r.goBack},null,8,["onGoBack"])):(Y(),ft("div",vk,[U("div",dk,[U("div",pk,[U("div",gk,[U("span",{title:r.baseInfo.tableName,class:"table-name g-text-nowrap"},X(r.baseInfo.tableName),9,yk),r.isIceberg?xt("",!0):(Y(),ft("span",mk,X(`${r.$t("createTime")}: ${r.baseInfo.createTime}`),1))]),U("div",_k,[U("p",null,[_t(X(`${r.$t("table")}${r.$t("size")}`)+": ",1),U("span",Sk,X(r.baseInfo.size),1)]),Z(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("file"))+": ",1),U("span",bk,X(r.baseInfo.file),1)]),Z(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("averageFileSize"))+": ",1),U("span",wk,X(r.baseInfo.averageFile),1)]),Z(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("tableFormat"))+": ",1),U("span",xk,X(r.baseInfo.tableFormat),1)])])])]),U("div",Tk,[Z(f,{activeKey:r.activeKey,"onUpdate:activeKey":t[0]||(t[0]=v=>r.activeKey=v),destroyInactiveTabPane:"",onChange:r.onChangeTab},{default:$(()=>[Z(l,{key:"Details",tab:"Details",forceRender:""},{default:$(()=>[Z(s,{onSetBaseDetailInfo:r.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]),_:1}),r.detailLoaded?(Y(),Mt(l,{key:"Files",tab:"Files"},{default:$(()=>[Z(u,{hasPartition:r.baseInfo.hasPartition},null,8,["hasPartition"])]),_:1})):xt("",!0),(Y(!0),ft(Vt,null,Pn(r.tabConfigs,v=>(Y(),Mt(l,{key:v.key,tab:`${v.label}`},{default:$(()=>[(Y(),Mt(cS(`U${v.key}`)))]),_:2},1032,["tab"]))),128))]),_:1},8,["activeKey","onChange"])])]))])}const Fk=Li(hk,[["render",Ck],["__scopeId","data-v-dd5ab1ea"]]);export{Fk as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-RrNRkkHx.css b/ams/dashboard/src/main/resources/static/assets/index-EazUZJB8.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index-RrNRkkHx.css rename to ams/dashboard/src/main/resources/static/assets/index-EazUZJB8.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-Bjo7HzMG.js b/ams/dashboard/src/main/resources/static/assets/index-FRoVXioR.js similarity index 94% rename from ams/dashboard/src/main/resources/static/assets/index-Bjo7HzMG.js rename to ams/dashboard/src/main/resources/static/assets/index-FRoVXioR.js index 6091a10851..58bca0ff09 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-Bjo7HzMG.js +++ b/ams/dashboard/src/main/resources/static/assets/index-FRoVXioR.js @@ -17,7 +17,7 @@ * limitations under the License. */ -import{v as A,a7 as oe,ak as le,a3 as ue,n as $e,aF as Le,aG as J,aH as ne,o as a,e as d,q as V,x as U,V as ae,y as l,c as y,ad as E,aI as ie,g as b,J as W,aJ as re,z as S,l as z,F as I,i as D,D as f,a2 as R,C as B,s as Oe,a8 as N,r as M,u as q,h as F,d as Ie,Y as Re,E as Me,A as De,a6 as He,a5 as Te,a1 as Ee}from"./index-DlWIyNCI.js";/* empty css *//* empty css *//* empty css */import{d as ce}from"./common.type-BewOZShK.js";import{g as Fe}from"./table.service-Ca4OvdR2.js";import{u as Ve}from"./usePlaceholder-DDgQeLdU.js";const Be={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},Ne=Object.assign({},Be,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1}),ze=A({__name:"index",props:{sqlValue:{},options:{},readOnly:{type:Boolean}},emits:["save","update:value","change"],setup(e,{expose:s,emit:g}){let n;const r=e;let h="";const v={},o=g;oe(()=>r.sqlValue,i=>{i&&h!==i&&n&&n.setValue(i)}),window.addEventListener("resize",c);function c(){n&&n.layout()}s({executeCommand(i){const p=v[i],w=n;p&&w&&w._commandService.executeCommand(p)},updateOptions(i={}){n&&n.updateOptions(i)}}),le(()=>{window.removeEventListener("resize",c),n&&n.dispose()}),ue(()=>{const i=document.getElementsByClassName("m-sql-editor")[0];$e(()=>{const p=n=Le.create(i,{...Ne,...r.options});_(),p.setValue(r.sqlValue||""),p.onDidChangeModelContent(w=>{const C=n.getValue();o("update:value",C),o("change",C),h=C})})});function _(){if(n){const i=n.addCommand(J.CtrlCmd|ne.KEY_S,()=>{o("save")});v.save=i;const p=n.addCommand(J.Alt|J.Shift|ne.KEY_F,()=>{O()});v.format=p}}function O(){const i=n&&n.getAction("editor.action.formatDocument");i&&i.run()}return(i,p)=>(a(),d("div",{class:V(["m-sql-editor",{disabled:i.readOnly}]),style:{height:"100%",width:"100%"}},null,2))}}),de=U(ze,[["__scopeId","data-v-2c827eb8"]]),Ae={class:"sql-result-wrap"},Ue={class:"g-ml-8"},Pe={key:0,class:"empty"},Ke={key:1,class:"result-wrap"},Ye={class:"ant-table sql-result-table",style:{width:"100%"}},je={class:"ant-table-thead"},Je={class:"ant-table-tbody"},We=["title"],Ge=A({__name:"sql-result",props:{info:{}},setup(e){const s=e,g=ae(()=>{var r;return!s.info||!((r=s.info)!=null&&r.columns)}),n=ae(()=>{var r;return(r=s.info)==null?void 0:r.status});return(r,h)=>(a(),d("div",Ae,[l("div",{class:"result-status",style:z({background:E(ce)[n.value]})},[n.value==="Running"?(a(),y(E(ie),{key:0,style:{color:"#1890ff"}})):b("",!0),n.value==="Canceled"||n.value==="Failed"?(a(),y(E(W),{key:1,style:{color:"#ff4d4f"}})):b("",!0),n.value==="Finished"?(a(),y(E(re),{key:2,style:{color:"#52c41a"}})):b("",!0),n.value==="Created"?(a(),y(E(W),{key:3,style:{color:"#333"}})):b("",!0),l("span",Ue,S(n.value),1)],4),g.value?(a(),d("div",Pe,S(r.$t("noResult")),1)):(a(),d("div",Ke,[l("table",Ye,[l("thead",je,[l("tr",null,[(a(!0),d(I,null,D(s.info.columns,v=>(a(),d("th",{key:v},S(v),1))),128))])]),l("tbody",Je,[(a(!0),d(I,null,D(s.info.rowData,(v,o)=>(a(),d("tr",{key:o+1},[(a(!0),d(I,null,D(v,(c,_)=>(a(),d("td",{key:o+c+_},[l("span",{class:"td-val",title:c},S(c),9,We)]))),128))]))),128))])])]))]))}}),Qe=U(Ge,[["__scopeId","data-v-8a52ce46"]]),Xe={class:"sql-log"},Ze=["innerHTML"],xe=A({__name:"sql-log",setup(e,{expose:s}){const g=f("");return s({initData(n){g.value=n}}),(n,r)=>(a(),d("div",Xe,[l("div",{innerHTML:g.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,Ze)]))}}),et=U(xe,[["__scopeId","data-v-084da96e"]]);function tt(e){return R.get(`ams/v1/terminal/${e}/result`)}function st(){return R.get("ams/v1/terminal/examples")}function nt(e){return R.get(`ams/v1/terminal/examples/${e}`)}function at(e){const{catalog:s,sql:g}=e;return R.post(`ams/v1/terminal/catalogs/${s}/execute`,{sql:g})}function ot(e){return R.put(`ams/v1/terminal/${e}/stop`)}function lt(e){return R.get(`ams/v1/terminal/${e}/logs`)}function ut(){return R.get("ams/v1/terminal/latestInfos")}const it=A({name:"Terminal",components:{SqlEditor:de,SqlResult:Qe,SqlLog:et,CheckCircleOutlined:re,CloseCircleOutlined:W,LoadingOutlined:ie},setup(){const e=B(Ve()),s=f(!1),g=f(null),n=f(null),r=f(!1),h=f(""),v=f(!1),o=f(""),c=f(),_=f(!1),O=f(!1),i=f("log"),p=B([]),w=B([]),C=f(""),k=f(),$=B([]),u=f(476),P=Oe(ce),G="easylake-sql-source",Q="easylake-use-catalog";oe(()=>r,()=>{g.value.updateOptions({readOnly:r})});const ge=t=>{if(t==="debug"){ye();return}if(t==="format"){g.value&&g.value.executeCommand("format");return}t==="pause"&&_e()},ve=async()=>{if((await Fe()||[]).forEach(m=>{p.push({value:m.catalogName,label:m.catalogName})}),p.length){const m=se(Q),L=p.findIndex(j=>j.value===m);C.value=L>-1?m:p[0].value}},pe=async()=>{const t=await st();w.push(...t||[])},me=()=>{te(Q,C.value)},fe=()=>{_.value=!_.value},he=()=>{O.value=!O.value},K=()=>{$.length=0,n.value.initData("")},ye=async()=>{try{if(!C.value){N.error(e.selectClPh);return}v.value=!0,K(),o.value="Running";const t=await at({catalog:C.value,sql:h.value});c.value=t.sessionId||"0",Y()}catch(t){o.value="Failed",N.error(t.message||"error")}},_e=async()=>{c.value&&(i.value="log",k.value&&clearTimeout(k.value),v.value=!1,o.value="Canceling",K(),r.value=!0,await ot(c.value).then(()=>{o.value="Canceled"}).catch(()=>{o.value="Failed"}).finally(()=>{r.value=!1}))},Ce=async()=>{try{$.length=0;const t=await tt(c.value||"0");t&&t.length&&$.push(...t)}catch{}},Y=async()=>{if(k.value&&clearTimeout(k.value),o.value==="Running"&&c.value){const t=await lt(c.value);i.value="log";const{logStatus:m,logs:L}=t||{};if(L!=null&&L.length&&n.value.initData(L.join(` +import{v as A,a7 as oe,ak as le,a3 as ue,n as $e,aF as Le,aG as J,aH as ne,o as a,e as d,q as V,x as U,V as ae,z as l,c as y,ad as E,aI as ie,g as b,J as W,aJ as re,y as S,l as z,F as I,k as D,D as f,a2 as R,C as B,s as Oe,a8 as N,r as M,u as q,h as F,d as Ie,Y as Re,E as Me,A as De,a6 as He,a5 as Te,a1 as Ee}from"./index-bS3EFDLG.js";/* empty css *//* empty css *//* empty css */import{d as ce}from"./common.type-LfySSiiQ.js";import{g as Fe}from"./table.service-dNBck7IJ.js";import{u as Ve}from"./usePlaceholder--xdljq8Y.js";const Be={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},Ne=Object.assign({},Be,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1}),ze=A({__name:"index",props:{sqlValue:{},options:{},readOnly:{type:Boolean}},emits:["save","update:value","change"],setup(e,{expose:s,emit:g}){let n;const r=e;let h="";const v={},o=g;oe(()=>r.sqlValue,i=>{i&&h!==i&&n&&n.setValue(i)}),window.addEventListener("resize",c);function c(){n&&n.layout()}s({executeCommand(i){const p=v[i],w=n;p&&w&&w._commandService.executeCommand(p)},updateOptions(i={}){n&&n.updateOptions(i)}}),le(()=>{window.removeEventListener("resize",c),n&&n.dispose()}),ue(()=>{const i=document.getElementsByClassName("m-sql-editor")[0];$e(()=>{const p=n=Le.create(i,{...Ne,...r.options});_(),p.setValue(r.sqlValue||""),p.onDidChangeModelContent(w=>{const C=n.getValue();o("update:value",C),o("change",C),h=C})})});function _(){if(n){const i=n.addCommand(J.CtrlCmd|ne.KEY_S,()=>{o("save")});v.save=i;const p=n.addCommand(J.Alt|J.Shift|ne.KEY_F,()=>{O()});v.format=p}}function O(){const i=n&&n.getAction("editor.action.formatDocument");i&&i.run()}return(i,p)=>(a(),d("div",{class:V(["m-sql-editor",{disabled:i.readOnly}]),style:{height:"100%",width:"100%"}},null,2))}}),de=U(ze,[["__scopeId","data-v-02d7d6cc"]]),Ae={class:"sql-result-wrap"},Ue={class:"g-ml-8"},Pe={key:0,class:"empty"},Ke={key:1,class:"result-wrap"},Ye={class:"ant-table sql-result-table",style:{width:"100%"}},je={class:"ant-table-thead"},Je={class:"ant-table-tbody"},We=["title"],Ge=A({__name:"sql-result",props:{info:{}},setup(e){const s=e,g=ae(()=>{var r;return!s.info||!((r=s.info)!=null&&r.columns)}),n=ae(()=>{var r;return(r=s.info)==null?void 0:r.status});return(r,h)=>(a(),d("div",Ae,[l("div",{class:"result-status",style:z({background:E(ce)[n.value]})},[n.value==="Running"?(a(),y(E(ie),{key:0,style:{color:"#1890ff"}})):b("",!0),n.value==="Canceled"||n.value==="Failed"?(a(),y(E(W),{key:1,style:{color:"#ff4d4f"}})):b("",!0),n.value==="Finished"?(a(),y(E(re),{key:2,style:{color:"#52c41a"}})):b("",!0),n.value==="Created"?(a(),y(E(W),{key:3,style:{color:"#333"}})):b("",!0),l("span",Ue,S(n.value),1)],4),g.value?(a(),d("div",Pe,S(r.$t("noResult")),1)):(a(),d("div",Ke,[l("table",Ye,[l("thead",je,[l("tr",null,[(a(!0),d(I,null,D(s.info.columns,v=>(a(),d("th",{key:v},S(v),1))),128))])]),l("tbody",Je,[(a(!0),d(I,null,D(s.info.rowData,(v,o)=>(a(),d("tr",{key:o+1},[(a(!0),d(I,null,D(v,(c,_)=>(a(),d("td",{key:o+c+_},[l("span",{class:"td-val",title:c},S(c),9,We)]))),128))]))),128))])])]))]))}}),Qe=U(Ge,[["__scopeId","data-v-b9506e1e"]]),Xe={class:"sql-log"},Ze=["innerHTML"],xe=A({__name:"sql-log",setup(e,{expose:s}){const g=f("");return s({initData(n){g.value=n}}),(n,r)=>(a(),d("div",Xe,[l("div",{innerHTML:g.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,Ze)]))}}),et=U(xe,[["__scopeId","data-v-8ca0e67b"]]);function tt(e){return R.get(`ams/v1/terminal/${e}/result`)}function st(){return R.get("ams/v1/terminal/examples")}function nt(e){return R.get(`ams/v1/terminal/examples/${e}`)}function at(e){const{catalog:s,sql:g}=e;return R.post(`ams/v1/terminal/catalogs/${s}/execute`,{sql:g})}function ot(e){return R.put(`ams/v1/terminal/${e}/stop`)}function lt(e){return R.get(`ams/v1/terminal/${e}/logs`)}function ut(){return R.get("ams/v1/terminal/latestInfos")}const it=A({name:"Terminal",components:{SqlEditor:de,SqlResult:Qe,SqlLog:et,CheckCircleOutlined:re,CloseCircleOutlined:W,LoadingOutlined:ie},setup(){const e=B(Ve()),s=f(!1),g=f(null),n=f(null),r=f(!1),h=f(""),v=f(!1),o=f(""),c=f(),_=f(!1),O=f(!1),i=f("log"),p=B([]),w=B([]),C=f(""),k=f(),$=B([]),u=f(476),P=Oe(ce),G="easylake-sql-source",Q="easylake-use-catalog";oe(()=>r,()=>{g.value.updateOptions({readOnly:r})});const ge=t=>{if(t==="debug"){ye();return}if(t==="format"){g.value&&g.value.executeCommand("format");return}t==="pause"&&_e()},ve=async()=>{if((await Fe()||[]).forEach(m=>{p.push({value:m.catalogName,label:m.catalogName})}),p.length){const m=se(Q),L=p.findIndex(j=>j.value===m);C.value=L>-1?m:p[0].value}},pe=async()=>{const t=await st();w.push(...t||[])},me=()=>{te(Q,C.value)},fe=()=>{_.value=!_.value},he=()=>{O.value=!O.value},K=()=>{$.length=0,n.value.initData("")},ye=async()=>{try{if(!C.value){N.error(e.selectClPh);return}v.value=!0,K(),o.value="Running";const t=await at({catalog:C.value,sql:h.value});c.value=t.sessionId||"0",Y()}catch(t){o.value="Failed",N.error(t.message||"error")}},_e=async()=>{c.value&&(i.value="log",k.value&&clearTimeout(k.value),v.value=!1,o.value="Canceling",K(),r.value=!0,await ot(c.value).then(()=>{o.value="Canceled"}).catch(()=>{o.value="Failed"}).finally(()=>{r.value=!1}))},Ce=async()=>{try{$.length=0;const t=await tt(c.value||"0");t&&t.length&&$.push(...t)}catch{}},Y=async()=>{if(k.value&&clearTimeout(k.value),o.value==="Running"&&c.value){const t=await lt(c.value);i.value="log";const{logStatus:m,logs:L}=t||{};if(L!=null&&L.length&&n.value.initData(L.join(` `)),o.value!=="Canceled"&&(o.value=m),await Ce(),m==="Finished"||m==="Canceled")$.length&&(i.value=$[0].id);else{if(o.value==="Canceled")return;k.value=setTimeout(()=>{Y()},1500)}}},be=async t=>{try{if(i.value="log",o.value==="Running")return;clearTimeout(k.value),s.value=!0;const m=await nt(t);h.value=h.value+` -- SQL shortcut generated -`+m,v.value=!1,o.value="",K()}catch(m){N.error(m.message)}finally{s.value=!1}},qe=()=>document.body,Se=async()=>{try{g.value&&(h.value=se(G)),s.value=!0;const t=await ut();c.value=t.sessionId,t.sessionId>"0"&&(g.value&&!h.value&&(h.value=t.sql||""),o.value="Running",v.value=!0,Y())}catch(t){N.error(t.message)}finally{s.value=!1}},H={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48};let X=0,Z=0;const ke=t=>{X=t.clientY,Z=u.value,window.addEventListener("mousemove",x),window.addEventListener("mouseup",ee)},x=t=>{const L=t.clientY-X,j=_.value?0:H.topbarHeight,we=o.value?H.runStatusHeight:0;let T=Z+L;T=Math.max(T,H.optionHeight+we),T=Math.min(T,window.innerHeight-j-(_.value?0:H.gap)-H.optionHeight-4),u.value=T},ee=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",ee)},te=(t,m)=>{localStorage.setItem(t,m)},se=t=>localStorage.getItem(t)||"";return le(()=>{clearTimeout(k.value),te(G,h.value),console.log("onBeforeUnmount",h.value)}),ue(()=>{Se(),pe(),ve()}),{loading:s,bgcMap:P,sqlLogRef:n,sqlEditorRef:g,fullscreen:_,resultFullscreen:O,operationActive:i,resultTabList:$,runStatus:o,shortcuts:w,curCatalog:C,catalogOptions:p,handleIconClick:ge,handleFull:fe,resultFull:he,showDebug:v,sqlSource:h,readOnly:r,generateCode:be,getPopupContainer:qe,sqlResultHeight:u,dragMounseDown:ke,changeUseCatalog:me}}}),rt={class:"console-wrap"},ct={class:"sql-block"},dt={class:"top-ops g-flex-jsb"},gt={class:"title-left g-flex-ac"},vt={class:"select-catalog g-mr-12"},pt={class:"label"},mt={class:"title-right"},ft={class:"sql-content"},ht={class:"sql-raw"},yt={class:"g-ml-12"},_t={class:"sql-shortcuts"},Ct={class:"shortcuts"},bt={class:"tab-operation"},qt={class:"tab"},St=["onClick"],kt={class:"debug-result"};function wt(e,s,g,n,r,h){const v=Me,o=De,c=He,_=de,O=M("loading-outlined"),i=M("close-circle-outlined"),p=M("check-circle-outlined"),w=Ee,C=M("sql-log"),k=M("sql-result"),$=M("u-loading");return a(),d("div",rt,[l("div",{class:V(["console-content",{fullscreen:e.fullscreen}])},[l("div",{style:z({height:`${e.sqlResultHeight}px`}),class:"sql-wrap"},[l("div",ct,[l("div",dt,[l("div",gt,[l("div",vt,[l("span",pt,S(e.$t("use")),1),q(v,{value:e.curCatalog,"onUpdate:value":s[0]||(s[0]=u=>e.curCatalog=u),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),e.runStatus==="Running"?(a(),y(c,{key:0,title:e.$t("pause"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg","icon-class":"sqlpause",onClick:s[1]||(s[1]=u=>e.handleIconClick("pause")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])):(a(),y(c,{key:1,title:e.$t("run"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg","icon-class":"sqldebug",onClick:s[2]||(s[2]=u=>e.handleIconClick("debug")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])),q(c,{title:e.$t("format"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:s[3]||(s[3]=u=>e.handleIconClick("format")),disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])]),l("div",mt,[q(c,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:F(()=>[q(o,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]),_:1},8,["title","getPopupContainer"])])]),l("div",ft,[l("div",ht,[q(_,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":s[4]||(s[4]=u=>e.sqlSource=u),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(a(),d("div",{key:0,class:"run-status",style:z({background:e.bgcMap[e.runStatus]})},[e.runStatus==="Running"||e.runStatus==="Canceling"?(a(),y(O,{key:0,style:{color:"#1890ff"}})):b("",!0),e.runStatus==="Canceled"||e.runStatus==="Failed"?(a(),y(i,{key:1,style:{color:"#ff4d4f"}})):b("",!0),e.runStatus==="Finished"?(a(),y(p,{key:2,style:{color:"#52c41a"}})):b("",!0),e.runStatus==="Created"?(a(),y(i,{key:3,style:{color:"#333"}})):b("",!0),l("span",yt,S(e.$t(e.runStatus)),1)],4)):b("",!0)])]),l("div",_t,[l("div",Ct,S(e.$t("sqlShortcuts")),1),(a(!0),d(I,null,D(e.shortcuts,u=>(a(),y(w,{key:u,type:"link",disabled:e.runStatus==="Running"||e.runStatus==="Canceling",onClick:P=>e.generateCode(u),class:"code"},{default:F(()=>[Te(S(u),1)]),_:2},1032,["disabled","onClick"]))),128))])],4),l("div",{class:V(["sql-result",e.resultFullscreen?"result-full":""]),style:z({height:`calc(100% - ${e.sqlResultHeight}px)`})},[l("span",{class:"drag-line",onMousedown:s[5]||(s[5]=(...u)=>e.dragMounseDown&&e.dragMounseDown(...u))},[q(o,{class:"icon","icon-class":"slide"})],32),l("div",bt,[l("div",qt,[l("span",{class:V([{active:e.operationActive==="log"},"tab-item"]),onClick:s[6]||(s[6]=u=>e.operationActive="log")},S(e.$t("log")),3),(a(!0),d(I,null,D(e.resultTabList,u=>(a(),d("span",{key:u.id,class:V([{active:e.operationActive===u.id},"tab-item"]),onClick:P=>e.operationActive=u.id},S(u.id),11,St))),128))])]),l("div",kt,[Ie(q(C,{ref:"sqlLogRef"},null,512),[[Re,e.operationActive==="log"]]),(a(!0),d(I,null,D(e.resultTabList,u=>(a(),d(I,{key:u.id},[e.operationActive===u.id?(a(),y(k,{key:0,info:u},null,8,["info"])):b("",!0)],64))),128))])],6)],2),e.loading?(a(),y($,{key:0})):b("",!0)])}const Ht=U(it,[["render",wt],["__scopeId","data-v-aa71aff6"]]);export{Ht as default}; +`+m,v.value=!1,o.value="",K()}catch(m){N.error(m.message)}finally{s.value=!1}},qe=()=>document.body,Se=async()=>{try{g.value&&(h.value=se(G)),s.value=!0;const t=await ut();c.value=t.sessionId,t.sessionId>"0"&&(g.value&&!h.value&&(h.value=t.sql||""),o.value="Running",v.value=!0,Y())}catch(t){N.error(t.message)}finally{s.value=!1}},H={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48};let X=0,Z=0;const ke=t=>{X=t.clientY,Z=u.value,window.addEventListener("mousemove",x),window.addEventListener("mouseup",ee)},x=t=>{const L=t.clientY-X,j=_.value?0:H.topbarHeight,we=o.value?H.runStatusHeight:0;let T=Z+L;T=Math.max(T,H.optionHeight+we),T=Math.min(T,window.innerHeight-j-(_.value?0:H.gap)-H.optionHeight-4),u.value=T},ee=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",ee)},te=(t,m)=>{localStorage.setItem(t,m)},se=t=>localStorage.getItem(t)||"";return le(()=>{clearTimeout(k.value),te(G,h.value),console.log("onBeforeUnmount",h.value)}),ue(()=>{Se(),pe(),ve()}),{loading:s,bgcMap:P,sqlLogRef:n,sqlEditorRef:g,fullscreen:_,resultFullscreen:O,operationActive:i,resultTabList:$,runStatus:o,shortcuts:w,curCatalog:C,catalogOptions:p,handleIconClick:ge,handleFull:fe,resultFull:he,showDebug:v,sqlSource:h,readOnly:r,generateCode:be,getPopupContainer:qe,sqlResultHeight:u,dragMounseDown:ke,changeUseCatalog:me}}}),rt={class:"console-wrap"},ct={class:"sql-block"},dt={class:"top-ops g-flex-jsb"},gt={class:"title-left g-flex-ac"},vt={class:"select-catalog g-mr-12"},pt={class:"label"},mt={class:"title-right"},ft={class:"sql-content"},ht={class:"sql-raw"},yt={class:"g-ml-12"},_t={class:"sql-shortcuts"},Ct={class:"shortcuts"},bt={class:"tab-operation"},qt={class:"tab"},St=["onClick"],kt={class:"debug-result"};function wt(e,s,g,n,r,h){const v=Me,o=De,c=He,_=de,O=M("loading-outlined"),i=M("close-circle-outlined"),p=M("check-circle-outlined"),w=Ee,C=M("sql-log"),k=M("sql-result"),$=M("u-loading");return a(),d("div",rt,[l("div",{class:V(["console-content",{fullscreen:e.fullscreen}])},[l("div",{style:z({height:`${e.sqlResultHeight}px`}),class:"sql-wrap"},[l("div",ct,[l("div",dt,[l("div",gt,[l("div",vt,[l("span",pt,S(e.$t("use")),1),q(v,{value:e.curCatalog,"onUpdate:value":s[0]||(s[0]=u=>e.curCatalog=u),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),e.runStatus==="Running"?(a(),y(c,{key:0,title:e.$t("pause"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg","icon-class":"sqlpause",onClick:s[1]||(s[1]=u=>e.handleIconClick("pause")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])):(a(),y(c,{key:1,title:e.$t("run"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg","icon-class":"sqldebug",onClick:s[2]||(s[2]=u=>e.handleIconClick("debug")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])),q(c,{title:e.$t("format"),placement:"bottom"},{default:F(()=>[q(o,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:s[3]||(s[3]=u=>e.handleIconClick("format")),disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])]),l("div",mt,[q(c,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:F(()=>[q(o,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]),_:1},8,["title","getPopupContainer"])])]),l("div",ft,[l("div",ht,[q(_,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":s[4]||(s[4]=u=>e.sqlSource=u),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(a(),d("div",{key:0,class:"run-status",style:z({background:e.bgcMap[e.runStatus]})},[e.runStatus==="Running"||e.runStatus==="Canceling"?(a(),y(O,{key:0,style:{color:"#1890ff"}})):b("",!0),e.runStatus==="Canceled"||e.runStatus==="Failed"?(a(),y(i,{key:1,style:{color:"#ff4d4f"}})):b("",!0),e.runStatus==="Finished"?(a(),y(p,{key:2,style:{color:"#52c41a"}})):b("",!0),e.runStatus==="Created"?(a(),y(i,{key:3,style:{color:"#333"}})):b("",!0),l("span",yt,S(e.$t(e.runStatus)),1)],4)):b("",!0)])]),l("div",_t,[l("div",Ct,S(e.$t("sqlShortcuts")),1),(a(!0),d(I,null,D(e.shortcuts,u=>(a(),y(w,{key:u,type:"link",disabled:e.runStatus==="Running"||e.runStatus==="Canceling",onClick:P=>e.generateCode(u),class:"code"},{default:F(()=>[Te(S(u),1)]),_:2},1032,["disabled","onClick"]))),128))])],4),l("div",{class:V(["sql-result",e.resultFullscreen?"result-full":""]),style:z({height:`calc(100% - ${e.sqlResultHeight}px)`})},[l("span",{class:"drag-line",onMousedown:s[5]||(s[5]=(...u)=>e.dragMounseDown&&e.dragMounseDown(...u))},[q(o,{class:"icon","icon-class":"slide"})],32),l("div",bt,[l("div",qt,[l("span",{class:V([{active:e.operationActive==="log"},"tab-item"]),onClick:s[6]||(s[6]=u=>e.operationActive="log")},S(e.$t("log")),3),(a(!0),d(I,null,D(e.resultTabList,u=>(a(),d("span",{key:u.id,class:V([{active:e.operationActive===u.id},"tab-item"]),onClick:P=>e.operationActive=u.id},S(u.id),11,St))),128))])]),l("div",kt,[Ie(q(C,{ref:"sqlLogRef"},null,512),[[Re,e.operationActive==="log"]]),(a(!0),d(I,null,D(e.resultTabList,u=>(a(),d(I,{key:u.id},[e.operationActive===u.id?(a(),y(k,{key:0,info:u},null,8,["info"])):b("",!0)],64))),128))])],6)],2),e.loading?(a(),y($,{key:0})):b("",!0)])}const Ht=U(it,[["render",wt],["__scopeId","data-v-636c83e0"]]);export{Ht as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-XWqLvTvc.css b/ams/dashboard/src/main/resources/static/assets/index-G_r8hvfU.css similarity index 65% rename from ams/dashboard/src/main/resources/static/assets/index-XWqLvTvc.css rename to ams/dashboard/src/main/resources/static/assets/index-G_r8hvfU.css index 7c98aa165d..d8b78282b1 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-XWqLvTvc.css +++ b/ams/dashboard/src/main/resources/static/assets/index-G_r8hvfU.css @@ -17,4 +17,4 @@ * limitations under the License. */ -.hive-table-detail .left-content[data-v-91bb5742]{padding:0 24px 12px;width:66%}.hive-table-detail .table-attrs[data-v-91bb5742]{margin-top:16px}.hive-table-detail .attr-title[data-v-91bb5742]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.upgrade-error .msg[data-v-d22cfcf0]{min-height:172px;max-height:320px;overflow-y:auto}.hive-tables-wrap[data-v-d8f8a737]{border:1px solid #e8e8f0;padding:12px 0;display:flex;height:100%;flex:1;flex-direction:column}.hive-tables-wrap .table-top[data-v-d8f8a737]{padding:0 12px}.hive-tables-wrap .table-top .right-btn[data-v-d8f8a737]{position:relative}.hive-tables-wrap .table-top .fail-msg[data-v-d8f8a737]{position:absolute;bottom:-30px;right:0;z-index:1;font-size:12px;width:90px;color:#ff4d4f;text-align:center;text-decoration-line:underline;cursor:pointer}.hive-tables-wrap .table-name[data-v-d8f8a737]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:12px}.hive-tables-wrap[data-v-d8f8a737] .ant-tabs-nav{padding-left:24px;margin-bottom:0} +.hive-table-detail .left-content[data-v-da53acfb]{padding:0 24px 12px;width:66%}.hive-table-detail .table-attrs[data-v-da53acfb]{margin-top:16px}.hive-table-detail .attr-title[data-v-da53acfb]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.upgrade-error .msg[data-v-1ba381f3]{min-height:172px;max-height:320px;overflow-y:auto}.hive-tables-wrap[data-v-c9782a1f]{border:1px solid #e8e8f0;padding:12px 0;display:flex;height:100%;flex:1;flex-direction:column}.hive-tables-wrap .table-top[data-v-c9782a1f]{padding:0 12px}.hive-tables-wrap .table-top .right-btn[data-v-c9782a1f]{position:relative}.hive-tables-wrap .table-top .fail-msg[data-v-c9782a1f]{position:absolute;bottom:-30px;right:0;z-index:1;font-size:12px;width:90px;color:#ff4d4f;text-align:center;text-decoration-line:underline;cursor:pointer}.hive-tables-wrap .table-name[data-v-c9782a1f]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:12px}.hive-tables-wrap[data-v-c9782a1f] .ant-tabs-nav{padding-left:24px;margin-bottom:0} diff --git a/ams/dashboard/src/main/resources/static/assets/index-hyzR3Ge3.css b/ams/dashboard/src/main/resources/static/assets/index-Ics0dxnt.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index-hyzR3Ge3.css rename to ams/dashboard/src/main/resources/static/assets/index-Ics0dxnt.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-pblPB3fl.css b/ams/dashboard/src/main/resources/static/assets/index-KW5Twd35.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index-pblPB3fl.css rename to ams/dashboard/src/main/resources/static/assets/index-KW5Twd35.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-NfUB2q2-.js b/ams/dashboard/src/main/resources/static/assets/index-NfUB2q2-.js new file mode 100644 index 0000000000..b42ea4684f --- /dev/null +++ b/ams/dashboard/src/main/resources/static/assets/index-NfUB2q2-.js @@ -0,0 +1,64 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import{v as Yr,U as Mi,L as Di,V as fa,a7 as ls,C as Lt,a3 as Xr,s as he,r as Uo,o as Y,e as ut,z as U,y as X,u as q,ad as Tt,g as xt,c as Mt,ae as me,af as Va,x as Ai,D as wt,F as Vt,R as $1,h as $,J as W1,S as U1,a5 as _t,T as Y1,a1 as $a,ag as hh,ah as ch,a6 as vh,ai as X1,aj as q1,a8 as Z1,M as Wg,P as Zu,ak as K1,l as Ku,al as Q1,am as j1,d as Fc,Y as zc,k as Ln,an as J1,A as tS,I as eS,ao as Ug,ap as Yg,aq as rS,E as nS,ar as Gc,as as iS,at as Xg,au as qg,av as Hc,aw as ro,p as aS,a as oS,K as sS,N as lS,n as uS,ax as fS,i as hS}from"./index-bS3EFDLG.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{c as cS,d as vS,e as dS,f as pS,h as gS,i as yS,j as mS,k as _S,l as SS,m as bS,n as wS}from"./table.service-dNBck7IJ.js";import{Q as Vc}from"./QuestionCircleOutlined-JJ5I9CjY.js";import{u as Fn}from"./usePagination-nbhDV7a3.js";/* empty css */import{b as sr,o as qn}from"./common.type-LfySSiiQ.js";const xS={class:"table-detail g-flex"},TS={class:"left-content"},CS={key:0,class:"table-attrs"},MS={class:"attr-title"},DS={key:1,class:"table-attrs"},AS={class:"attr-title"},IS={class:"table-attrs"},LS={class:"attr-title"},PS={class:"right-content"},RS={key:0,class:"table-attrs"},ES={class:"attr-title"},kS={class:"table-attrs"},OS={class:"attr-title"},BS={class:"table-attrs"},NS={class:"attr-title"},FS=Yr({__name:"Details",emits:["setBaseDetailInfo"],setup(r,{expose:t,emit:e}){const{t:n}=Mi(),i=e,a=Di(),o=fa(()=>({...a.query}));ls(()=>a.query,p=>{p!=null&&p.catalog&&a.path==="/tables"&&h()});const s={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},l={...s,baseWatermark:"Base Watermark"},u={...s,tableWatermark:"Table Watermark"},f=Lt({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),h=async()=>{try{const{catalog:g,db:m,table:_}=o.value;if(!g||!m||!_)return;f.detailLoading=!0;const S=await cS({...o.value}),{pkList:w=[],tableType:b,partitionColumnList:x=[],properties:T,changeMetrics:M,schema:D,createTime:C,tableIdentifier:I,baseMetrics:L,tableSummary:E}=S;f.baseDetailInfo={...E,tableType:b,tableName:(I==null?void 0:I.tableName)||"",createTime:C?me(C):"",hasPartition:!!(x!=null&&x.length)},f.pkList=w||[],f.partitionColumnList=x||[],f.schema=D||[],f.changeMetrics=Object.keys(u||{}).map(R=>({metric:u[R],value:R==="lastCommitTime"||R==="tableWatermark"?(M||{})[R]?me((M||{})[R]):"":(M||{})[R]})).filter(R=>R.value),f.baseMetrics=Object.keys(l||{}).map(R=>({metric:l[R],value:R==="lastCommitTime"||R==="baseWatermark"?(L||{})[R]?me((L||{})[R]):"":(L||{})[R]})),f.properties=Object.keys(T||{}).map(R=>({key:R,value:T[R]})),p()}catch{}finally{f.detailLoading=!1}function p(){i("setBaseDetailInfo",f.baseDetailInfo)}};Xr(()=>{h()}),t({getTableDetails:h});const v=he([{title:n("field"),dataIndex:"field",width:"30%"},{title:n("type"),dataIndex:"type",width:"20%"},{title:n("required"),dataIndex:"required",width:"20%",customRender:p=>String(p==null?void 0:p.value)},{title:n("description"),dataIndex:"comment",ellipsis:!0}]),c=he([{title:n("field"),dataIndex:"field",width:"30%"},{title:n("sourceField"),dataIndex:"sourceField",width:"30%"},{title:n("transform"),dataIndex:"transform",ellipsis:!0}]),d=he([{title:n("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:n("value"),dataIndex:"value",ellipsis:!0}]),y=he([{title:n("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:n("value"),dataIndex:"value",ellipsis:!0}]);return(p,g)=>{const m=Va,_=Uo("u-loading");return Y(),ut("div",xS,[U("div",TS,[f.pkList&&f.pkList.length?(Y(),ut("div",CS,[U("p",MS,X(p.$t("primaryKey")),1),q(m,{rowKey:"field",columns:Tt(v),"data-source":f.pkList,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),f.partitionColumnList&&f.partitionColumnList.length?(Y(),ut("div",DS,[U("p",AS,X(p.$t("partitionKey")),1),q(m,{rowKey:"field",columns:Tt(c),"data-source":f.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),U("div",IS,[U("p",LS,X(p.$t("schema")),1),q(m,{rowKey:"field",columns:Tt(v),"data-source":f.schema,pagination:!1},null,8,["columns","data-source"])])]),U("div",PS,[f.changeMetrics&&f.changeMetrics.length?(Y(),ut("div",RS,[U("p",ES,X(p.$t("changeTableMetrics")),1),q(m,{columns:Tt(d),"data-source":f.changeMetrics,pagination:!1},null,8,["columns","data-source"])])):xt("",!0),U("div",kS,[U("p",OS,X(p.$t("baseTableMetrics")),1),q(m,{columns:Tt(d),"data-source":f.baseMetrics,pagination:!1},null,8,["columns","data-source"])]),U("div",BS,[U("p",NS,X(p.$t("properties")),1),q(m,{columns:Tt(y),"data-source":f.properties,pagination:!1},null,8,["columns","data-source"])])]),f.detailLoading?(Y(),Mt(_,{key:0})):xt("",!0)])}}}),zS=Ai(FS,[["__scopeId","data-v-1dc148eb"]]),GS={class:"table-partitons"},HS={class:"filter-wrap"},VS=Yr({__name:"Files",props:{hasPartition:{type:Boolean}},setup(r){const t=wt(!1),{t:e}=Mi(),n=he([{title:e("partition"),dataIndex:"partition",ellipsis:!0},{title:e("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120,ellipsis:!0},{title:e("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),i=he([{title:e("file"),dataIndex:"file",ellipsis:!0},{title:e("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120,ellipsis:!0},{title:e("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:e("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:e("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),a=r,o=Lt([]),s=Lt([]),l=wt(""),u=wt(0),f=wt(!1),h=Lt(Fn()),v=Lt(Fn()),d=Di().query,y=Lt({catalog:"",db:"",table:"",...d}),p=wt("");async function g(x){p.value=x,await m()}async function m(){try{f.value=!0,o.length=0;const x=await vS({...y,filter:p.value,page:h.current,pageSize:h.pageSize}),{list:T,total:M}=x;h.total=M,(T||[]).forEach(D=>{D.lastCommitTime=D.lastCommitTime?me(D.lastCommitTime):"",o.push(D)})}catch{}finally{f.value=!1}}function _({current:x=1,pageSize:T=25}){!t.value&&a.hasPartition?(h.current=x,T!==h.pageSize&&(h.current=1),h.pageSize=T):(v.current=x,T!==v.pageSize&&(v.current=1),v.pageSize=T),S()}function S(){if(!a.hasPartition){w();return}t.value?w():m()}async function w(){try{s.length=0,f.value=!0;const x={...y,partition:a.hasPartition?encodeURIComponent(l.value):null,specId:u.value,page:v.current,pageSize:v.pageSize},T=await dS(x),{list:M,total:D}=T;v.total=D,(M||[]).forEach(C=>{C.commitTime=C.commitTime?me(C.commitTime):"",s.push(C)})}catch{}finally{f.value=!1}}function b(x){l.value=x.partition,u.value=x.specId,t.value=!t.value,t.value&&(v.current=1,w())}return Xr(()=>{t.value=!1,a.hasPartition?m():w()}),(x,T)=>{const M=Y1,D=$a,C=Va,I=hh,L=ch,E=vh;return Y(),ut("div",GS,[!t.value&&x.hasPartition?(Y(),ut(Vt,{key:0},[U("div",HS,[q(M,{value:p.value,"onUpdate:value":T[1]||(T[1]=R=>p.value=R),placeholder:x.$t("fileSearchPlaceholder"),onSearch:T[2]||(T[2]=R=>g(R)),style:{width:"350px"}},$1({prefix:$(()=>[q(Tt(U1))]),_:2},[p.value?{name:"suffix",fn:$(()=>[q(Tt(W1),{onClick:T[0]||(T[0]=R=>g("")),class:"input-clear-icon"})]),key:"0"}:void 0]),1032,["value","placeholder"])]),q(C,{rowKey:"partiton",columns:Tt(n),"data-source":o,pagination:h,onChange:_,loading:f.value},{bodyCell:$(({column:R,record:P})=>[R.dataIndex==="partition"?(Y(),Mt(D,{key:0,type:"link",onClick:B=>b(P)},{default:$(()=>[_t(X(P.partition),1)]),_:2},1032,["onClick"])):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),ut(Vt,{key:1},[x.hasPartition?(Y(),Mt(L,{key:0,separator:">"},{default:$(()=>[q(I,{onClick:b,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),q(I,null,{default:$(()=>[_t(X(`${x.$t("partition")} ${l.value}`),1)]),_:1})]),_:1})):xt("",!0),q(C,{rowKey:"file",columns:Tt(i),"data-source":s,pagination:v,onChange:_,loading:f.value},{bodyCell:$(({column:R,record:P})=>[R.dataIndex==="file"?(Y(),Mt(E,{key:0},{title:$(()=>[_t(X(P.file),1)]),default:$(()=>[U("span",null,X(P.file),1)]),_:2},1024)):xt("",!0),R.dataIndex==="path"?(Y(),Mt(E,{key:1},{title:$(()=>[_t(X(P.path),1)]),default:$(()=>[U("span",null,X(P.path),1)]),_:2},1024)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}}),$S=Ai(VS,[["__scopeId","data-v-062584cd"]]);var Zg={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(r,t){(function(n,i){r.exports=i()})(q1,function(){return function(){var e={686:function(a,o,s){s.d(o,{default:function(){return tt}});var l=s(279),u=s.n(l),f=s(370),h=s.n(f),v=s(817),c=s.n(v);function d(H){try{return document.execCommand(H)}catch{return!1}}var y=function(N){var F=c()(N);return d("cut"),F},p=y;function g(H){var N=document.documentElement.getAttribute("dir")==="rtl",F=document.createElement("textarea");F.style.fontSize="12pt",F.style.border="0",F.style.padding="0",F.style.margin="0",F.style.position="absolute",F.style[N?"right":"left"]="-9999px";var j=window.pageYOffset||document.documentElement.scrollTop;return F.style.top="".concat(j,"px"),F.setAttribute("readonly",""),F.value=H,F}var m=function(N,F){var j=g(N);F.container.appendChild(j);var W=c()(j);return d("copy"),j.remove(),W},_=function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},j="";return typeof N=="string"?j=m(N,F):N instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(N==null?void 0:N.type)?j=m(N.value,F):(j=c()(N),d("copy")),j},S=_;function w(H){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(F){return typeof F}:w=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},w(H)}var b=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=N.action,j=F===void 0?"copy":F,W=N.container,et=N.target,Pt=N.text;if(j!=="copy"&&j!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(et!==void 0)if(et&&w(et)==="object"&&et.nodeType===1){if(j==="copy"&&et.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(j==="cut"&&(et.hasAttribute("readonly")||et.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Pt)return S(Pt,{container:W});if(et)return j==="cut"?p(et):S(et,{container:W})},x=b;function T(H){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(F){return typeof F}:T=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},T(H)}function M(H,N){if(!(H instanceof N))throw new TypeError("Cannot call a class as a function")}function D(H,N){for(var F=0;F"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(H){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},k(H)}function O(H,N){var F="data-clipboard-".concat(H);if(N.hasAttribute(F))return N.getAttribute(F)}var Q=function(H){I(F,H);var N=E(F);function F(j,W){var et;return M(this,F),et=N.call(this),et.resolveOptions(W),et.listenClick(j),et}return C(F,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=T(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var et=this;this.listener=h()(W,"click",function(Pt){return et.onClick(Pt)})}},{key:"onClick",value:function(W){var et=W.delegateTarget||W.currentTarget,Pt=this.action(et)||"copy",Rt=x({action:Pt,container:this.container,target:this.target(et),text:this.text(et)});this.emit(Rt?"success":"error",{action:Pt,text:Rt,trigger:et,clearSelection:function(){et&&et.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(W){return O("action",W)}},{key:"defaultTarget",value:function(W){var et=O("target",W);if(et)return document.querySelector(et)}},{key:"defaultText",value:function(W){return O("text",W)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(W){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(W,et)}},{key:"cut",value:function(W){return p(W)}},{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],et=typeof W=="string"?[W]:W,Pt=!!document.queryCommandSupported;return et.forEach(function(Rt){Pt=Pt&&!!document.queryCommandSupported(Rt)}),Pt}}]),F}(u()),tt=Q},828:function(a){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(u,f){for(;u&&u.nodeType!==o;){if(typeof u.matches=="function"&&u.matches(f))return u;u=u.parentNode}}a.exports=l},438:function(a,o,s){var l=s(828);function u(v,c,d,y,p){var g=h.apply(this,arguments);return v.addEventListener(d,g,p),{destroy:function(){v.removeEventListener(d,g,p)}}}function f(v,c,d,y,p){return typeof v.addEventListener=="function"?u.apply(null,arguments):typeof d=="function"?u.bind(null,document).apply(null,arguments):(typeof v=="string"&&(v=document.querySelectorAll(v)),Array.prototype.map.call(v,function(g){return u(g,c,d,y,p)}))}function h(v,c,d,y){return function(p){p.delegateTarget=l(p.target,c),p.delegateTarget&&y.call(v,p)}}a.exports=f},879:function(a,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}},370:function(a,o,s){var l=s(879),u=s(438);function f(d,y,p){if(!d&&!y&&!p)throw new Error("Missing required arguments");if(!l.string(y))throw new TypeError("Second argument must be a String");if(!l.fn(p))throw new TypeError("Third argument must be a Function");if(l.node(d))return h(d,y,p);if(l.nodeList(d))return v(d,y,p);if(l.string(d))return c(d,y,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(d,y,p){return d.addEventListener(y,p),{destroy:function(){d.removeEventListener(y,p)}}}function v(d,y,p){return Array.prototype.forEach.call(d,function(g){g.addEventListener(y,p)}),{destroy:function(){Array.prototype.forEach.call(d,function(g){g.removeEventListener(y,p)})}}}function c(d,y,p){return u(document.body,d,y,p)}a.exports=f},817:function(a){function o(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var u=s.hasAttribute("readonly");u||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),u||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var f=window.getSelection(),h=document.createRange();h.selectNodeContents(s),f.removeAllRanges(),f.addRange(h),l=f.toString()}return l}a.exports=o},279:function(a){function o(){}o.prototype={on:function(s,l,u){var f=this.e||(this.e={});return(f[s]||(f[s]=[])).push({fn:l,ctx:u}),this},once:function(s,l,u){var f=this;function h(){f.off(s,h),l.apply(u,arguments)}return h._=l,this.on(s,h,u)},emit:function(s){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[s]||[]).slice(),f=0,h=u.length;for(f;f{const t=(r==null?void 0:r.appendToBody)===void 0?!0:r.appendToBody;return{toClipboard(e,n){return new Promise((i,a)=>{const o=document.createElement("button"),s=new US(o,{text:()=>e,action:()=>"copy",container:n!==void 0?n:document.body});s.on("success",l=>{s.destroy(),i(l)}),s.on("error",l=>{s.destroy(),a(l)}),t&&document.body.appendChild(o),o.click(),t&&document.body.removeChild(o)})}}},XS={class:"table-operations"},qS=["onClick"],ZS=Yr({__name:"Operations",setup(r){const{toClipboard:t}=YS(),{t:e}=Mi(),n=he([{title:e("time"),dataIndex:"ts",width:"30%"},{title:e("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),i=wt(!1),a=wt(""),o=Lt([]),s=wt(!1),l=Lt(Fn()),f=Di().query,h=Lt({catalog:"",db:"",table:"",...f});async function v(){try{s.value=!0,o.length=0;const g=await pS({...h,page:l.current,pageSize:l.pageSize}),{total:m,list:_}=g;l.total=m,(_||[]).forEach(S=>{S.ts=S.ts?me(S.ts):"",o.push(S)})}catch{}finally{s.value=!1}}function c({current:g=1,pageSize:m=25}=l){l.current=g,m!==l.pageSize&&(l.current=1),l.pageSize=m,v()}function d(g){i.value=!0,a.value=g.operation}function y(){i.value=!1}async function p(){try{await t(a.value),Z1.success(e("copySuccess")),y()}catch{}}return Xr(()=>{v()}),(g,m)=>{const _=Va,S=$a,w=Wg;return Y(),ut(Vt,null,[U("div",XS,[q(_,{rowKey:"partiton",columns:Tt(n),"data-source":o,pagination:l,onChange:c,loading:s.value},{bodyCell:$(({column:b,record:x})=>[b.dataIndex==="operation"?(Y(),ut("span",{key:0,class:"text-active g-max-line-3",onClick:T=>d(x)},X(x.operation),9,qS)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),q(w,{visible:i.value,width:560,title:`${g.$t("operationDetails")}`,onCancel:y,class:"operation-wrap"},{footer:$(()=>[q(S,{type:"primary",onClick:p},{default:$(()=>[_t(X(g.$t("copy")),1)]),_:1})]),default:$(()=>[_t(X(a.value)+" ",1)]),_:1},8,["visible","title"])],64)}}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Qu=function(r,t){return Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Qu(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var KS=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),QS=function(){function r(){this.browser=new KS,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),wn=new QS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(wn.wxa=!0,wn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?wn.worker=!0:typeof navigator>"u"?(wn.node=!0,wn.svgSupported=!0):jS(navigator.userAgent,wn);function jS(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const ot=wn;var dh=12,JS="sans-serif",zn=dh+"px "+JS,tb=20,eb=100,rb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nb(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Rb(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?Wc(s,o):Wc(o,s))}function fy(r){return r.nodeName.toUpperCase()==="CANVAS"}var Eb=/([&<>"'])/g,kb={"&":"&","<":"<",">":">",'"':""","'":"'"};function ge(r){return r==null?"":(r+"").replace(Eb,function(t,e){return kb[e]})}var Ob=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ml=[],Bb=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function rf(r,t,e,n){return e=e||{},n?Yc(r,t,e):Bb&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Yc(r,t,e),e}function Yc(r,t,e){if(ot.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fy(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(ef(Ml,r,n,i)){e.zrX=Ml[0],e.zrY=Ml[1];return}}e.zrX=e.zrY=0}function xh(r){return r||window.event}function Ce(r,t,e){if(t=xh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&rf(r,o,t,e)}else{rf(r,t,t,e);var a=Nb(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ob.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Nb(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Fb(r,t,e,n){r.addEventListener(t,e,n)}function zb(r,t,e,n){r.removeEventListener(t,e,n)}var hy=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Gb=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Xc(n)/Xc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Hb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Gn(){return[1,0,0,1,0,0]}function Ya(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Th(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function zr(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function cs(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function $s(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function cy(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Li(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function Vb(r){var t=Gn();return Th(t,r),t}const $b=Object.freeze(Object.defineProperty({__proto__:null,clone:Vb,copy:Th,create:Gn,identity:Ya,invert:Li,mul:zr,rotate:$s,scale:cy,translate:cs},Symbol.toStringTag,{value:"Module"}));var Wb=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const nt=Wb;var io=Math.min,ao=Math.max,jr=new nt,Jr=new nt,tn=new nt,en=new nt,Oi=new nt,Bi=new nt,Ub=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=io(t.x,this.x),n=io(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ao(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ao(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Gn();return cs(a,a,[-e.x,-e.y]),cy(a,a,[n,i]),cs(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(ad&&(d=_,yd&&(d=S,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}jr.x=tn.x=e.x,jr.y=en.y=e.y,Jr.x=en.x=e.x+e.width,Jr.y=tn.y=e.y+e.height,jr.transform(n),en.transform(n),Jr.transform(n),tn.transform(n),t.x=io(jr.x,Jr.x,tn.x,en.x),t.y=io(jr.y,Jr.y,tn.y,en.y);var l=ao(jr.x,Jr.x,tn.x,en.x),u=ao(jr.y,Jr.y,tn.y,en.y);t.width=l-t.x,t.height=u-t.y},r}();const ft=Ub;var vy="silent";function Yb(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Xb}}function Xb(){hy(this.event)}var qb=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(or),Ni=function(){function r(t,e){this.x=t,this.y=e}return r}(),Zb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Al=new ft(0,0,0,0),dy=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ni(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new qb,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Db(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(Zb,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=py(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ni(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ni(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=Yb(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Ni(e,n);if(qc(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ft(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Al.copy(v.getBoundingRect()),v.transform&&Al.applyTransform(v.transform),Al.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,y=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Kb(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?vy:!0}return!1}function qc(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=Kb(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==vy)){t.target=o;break}}}function py(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const Qb=dy;var gy=32,Fi=7;function jb(r){for(var t=0;r>=gy;)t|=r&1,r>>=1;return r+t}function Zc(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function Jb(r,t,e){for(e--;t>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Il(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function Ll(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function tw(r,t){var e=Fi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]=Fi||x>=Fi);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(g=0;g=0;g--)r[b+g]=r[w+g];r[S]=o[_];return}for(var x=e;;){var T=0,M=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],M++,T=0,--p===1){D=!0;break}while((T|M)=0;g--)r[b+g]=r[w+g];if(d===0){D=!0;break}}if(r[S--]=o[_--],--p===1){D=!0;break}if(M=p-Il(r[m],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,b=S+1,w=_+1,g=0;g=Fi||M>=Fi);if(D)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,b=S+1,w=m+1,g=d-1;g>=0;g--)r[b+g]=r[w+g];r[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),g=0;gs&&(l=s),Kc(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ye=1,na=2,hi=4,Qc=!1;function Pl(){Qc||(Qc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jc(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var ew=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jc}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Pl(),f.z=0),isNaN(f.z2)&&(Pl(),f.z2=0),isNaN(f.zlevel)&&(Pl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const rw=ew;var yy;yy=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const nf=yy;var qo={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-qo.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?qo.bounceIn(r*2)*.5:qo.bounceOut(r*2-1)*.5+.5}};const my=qo;var oo=Math.pow,Gr=Math.sqrt,vs=1e-8,_y=1e-4,Jc=Gr(3),so=1/3,Qe=Un(),Ae=Un(),mi=Un();function Br(r){return r>-vs&&rvs||r<-vs}function zt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function tv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ds(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Br(f)&&Br(h))if(Br(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var y=h*h-4*f*v;if(Br(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(y>0){var m=Gr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-oo(-_,so):_=oo(_,so),S<0?S=-oo(-S,so):S=oo(S,so);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Gr(f*f*f)),b=Math.acos(w)/3,x=Gr(f),T=Math.cos(b),d=(-s-2*x*T)/(3*o),g=(-s+x*(T+Jc*Math.sin(b)))/(3*o),M=(-s+x*(T-Jc*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),M>=0&&M<=1&&(a[c++]=M)}}return c}function by(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Br(o)){if(Sy(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Br(f))i[0]=-a/(2*o);else if(f>0){var h=Gr(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Vr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function wy(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,y,p,g;Qe[0]=l,Qe[1]=u;for(var m=0;m<1;m+=.05)Ae[0]=zt(r,e,i,o,m),Ae[1]=zt(t,n,a,s,m),p=Pn(Qe,Ae),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Br(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Gr(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function xy(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function ps(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Ty(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Qe[0]=o,Qe[1]=s;for(var v=0;v<1;v+=.05){Ae[0]=Zt(r,e,i,v),Ae[1]=Zt(t,n,a,v);var c=Pn(Qe,Ae);c=0&&c=1?1:ds(0,n,a,1,l,s)&&zt(0,i,o,1,s[0])}}}var sw=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ne,this.ondestroy=t.ondestroy||ne,this.onrestart=t.onrestart||ne,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=it(t)?t:my[t]||Cy(t)},r}();const lw=sw;var My=function(){function r(t){this.value=t}return r}(),uw=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new My(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),fw=function(){function r(t){this._list=new uw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new My(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Xa=fw;var rv={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function We(r){return r=Math.round(r),r<0?0:r>255?255:r}function hw(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ma(r){return r<0?0:r>1?1:r}function Rl(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?We(parseFloat(t)/100*255):We(parseInt(t,10))}function Rn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ma(parseFloat(t)/100):Ma(parseFloat(t))}function El(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Nr(r,t,e){return r+(t-r)*e}function Te(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function af(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Dy=new Xa(20),lo=null;function Kn(r,t){lo&&af(lo,t),lo=Dy.put(r,lo||t.slice())}function _e(r,t){if(r){t=t||[];var e=Dy.get(r);if(e)return af(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in rv)return af(t,rv[n]),Kn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Te(t,0,0,0,1);return}return Te(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Kn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Te(t,0,0,0,1);return}return Te(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Kn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Te(t,+u[0],+u[1],+u[2],1):Te(t,0,0,0,1);f=Rn(u.pop());case"rgb":if(u.length>=3)return Te(t,Rl(u[0]),Rl(u[1]),Rl(u[2]),u.length===3?f:Rn(u[3])),Kn(r,t),t;Te(t,0,0,0,1);return;case"hsla":if(u.length!==4){Te(t,0,0,0,1);return}return u[3]=Rn(u[3]),of(u,t),Kn(r,t),t;case"hsl":if(u.length!==3){Te(t,0,0,0,1);return}return of(u,t),Kn(r,t),t;default:return}}Te(t,0,0,0,1)}}function of(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Rn(r[1]),i=Rn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Te(t,We(El(o,a,e+1/3)*255),We(El(o,a,e)*255),We(El(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function cw(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:e===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function sf(r,t){var e=_e(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return qr(e,e.length===4?"rgba":"rgb")}}function vw(r){var t=_e(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ay(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=We(Nr(o[0],s[0],l)),e[1]=We(Nr(o[1],s[1],l)),e[2]=We(Nr(o[2],s[2],l)),e[3]=Ma(Nr(o[3],s[3],l)),e}}var dw=Ay;function Ch(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=_e(t[i]),s=_e(t[a]),l=n-i,u=qr([We(Nr(o[0],s[0],l)),We(Nr(o[1],s[1],l)),We(Nr(o[2],s[2],l)),Ma(Nr(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var pw=Ch;function gw(r,t,e,n){var i=_e(r);if(r)return i=cw(i),t!=null&&(i[0]=hw(t)),e!=null&&(i[1]=Rn(e)),n!=null&&(i[2]=Rn(n)),qr(of(i),"rgba")}function yw(r,t){var e=_e(r);if(e&&t!=null)return e[3]=Ma(t),qr(e,"rgba")}function qr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Da(r,t){var e=_e(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function mw(){return qr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const _w=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Ay,fastMapToColor:dw,lerp:Ch,lift:sf,lum:Da,mapToColor:pw,modifyAlpha:yw,modifyHSL:gw,parse:_e,random:mw,stringify:qr,toHex:vw},Symbol.toStringTag,{value:"Module"}));function Sw(r){return r.type==="linear"}function bw(r){return r.type==="radial"}(function(){return ot.hasGlobalWindow&&it(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var lf=Array.prototype.slice;function fr(r,t,e){return(t-r)*e+r}function kl(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=iv,l=e;if(Qt(e)){var u=Cw(e);s=u,(u===1&&!St(e[0])||u===2&&!St(e[0][0]))&&(o=!0)}else if(St(e)&&!Ta(e))s=fo;else if(K(e))if(!isNaN(+e))s=fo;else{var f=_e(e);f&&(l=f,s=ia)}else if(Wa(e)){var h=z({},l);h.colorStops=Z(e.colorStops,function(c){return{offset:c.offset,color:_e(c.color)}}),Sw(e)?s=uf:bw(e)&&(s=ff),l=h}a===0?this.valType=s:(s!==this.valType||s===iv)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=it(n)?n:my[n]||Cy(n)),i.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(y,p){return y.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ho(i),u=av(i),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;fe);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-c.percent,g=p===0?1:v((e-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=n?this._additiveValue:u?zi:t[l];if((ho(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=g<1?c.rawValue:d.rawValue;else if(ho(a))a===Qo?kl(m,c[i],d[i],g):ww(m,c[i],d[i],g);else if(av(a)){var _=c[i],S=d[i],w=a===uf;t[l]={type:w?"linear":"radial",x:fr(_.x,S.x,g),y:fr(_.y,S.y,g),colorStops:Z(_.colorStops,function(x,T){var M=S.colorStops[T];return{offset:fr(x.offset,M.offset,g),color:Ko(kl([],x.color,M.color,g))}}),global:S.global},w?(t[l].x2=fr(_.x2,S.x2,g),t[l].y2=fr(_.y2,S.y2,g)):t[l].r=fr(_.r,S.r,g)}else if(u)kl(m,c[i],d[i],g),n||(t[l]=Ko(m));else{var b=fr(c[i],d[i],g);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===fo?t[n]=t[n]+i:e===ia?(_e(t[n],zi),uo(zi,zi,i,1),t[n]=Ko(zi)):e===Qo?uo(t[n],t[n],i,1):e===Iy&&nv(t[n],t[n],i,1)},r}(),Dw=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Hs("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ct(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Zo(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Zo(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Mh=Dw;function vi(){return new Date().getTime()}var Aw=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(nf(n),!e._paused&&e.update())}nf(n)},t.prototype.start=function(){this._running||(this._time=vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Mh(e,n.loop);return this.addAnimator(i),i},t}(or);const Iw=Aw;var Lw=300,Ol=ot.domSupported,Bl=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),ov={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sv=!1;function hf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Pw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Nl(r){r&&(r.zrByTouch=!0)}function Rw(r,t){return Ce(r.dom,new Ew(r,t),!0)}function Ly(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Ew=function(){function r(t,e){this.stopPropagation=ne,this.stopImmediatePropagation=ne,this.preventDefault=ne,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ze={mousedown:function(r){r=Ce(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ce(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ce(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ce(this.dom,r);var t=r.toElement||r.relatedTarget;Ly(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){sv=!0,r=Ce(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){sv||(r=Ce(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ce(this.dom,r),Nl(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ze.mousemove.call(this,r),ze.mousedown.call(this,r)},touchmove:function(r){r=Ce(this.dom,r),Nl(r),this.handler.processGesture(r,"change"),ze.mousemove.call(this,r)},touchend:function(r){r=Ce(this.dom,r),Nl(r),this.handler.processGesture(r,"end"),ze.mouseup.call(this,r),+new Date-+this.__lastTouchMomentfv||r<-fv}var nn=[],Qn=[],zl=Gn(),Gl=Math.abs,zw=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return rn(this.rotation)||rn(this.x)||rn(this.y)||rn(this.scaleX-1)||rn(this.scaleY-1)||rn(this.skewX)||rn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(uv(n),this.invTransform=null);return}n=n||Gn(),e?this.getLocalTransform(n):uv(n),t&&(e?zr(n,t,n):Th(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(nn);var n=nn[0]<0?-1:1,i=nn[1]<0?-1:1,a=((nn[0]-n)*e+n)/nn[0]||0,o=((nn[1]-i)*e+i)/nn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Gn(),Li(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(zr(Qn,t.invTransform,e),e=Qn);var n=this.originX,i=this.originY;(n||i)&&(zl[4]=n,zl[5]=i,zr(Qn,e,zl),Qn[4]-=n,Qn[5]-=i,e=Qn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ie(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ie(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Gl(t[0]-1)>1e-10&&Gl(t[3]-1)>1e-10?Math.sqrt(Gl(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Gw(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,y=i+l;e[4]=-d*a-v*y*o,e[5]=-y*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&$s(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Aa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Gw(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function ys(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=$r(n[0],e.width),u+=$r(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Hl="__zr_normal__",Vl=Aa.concat(["ignore"]),Hw=rr(Aa,function(r,t){return r[t]=!0,r},{ignore:!1}),jn={},Vw=new ft(0,0,0,0),Ih=function(){function r(t){this.id=yh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=Vw;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(jn,n,f):ys(jn,n,f),a.x=jn.x,a.y=jn.y,o=jn.align,s=jn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=$r(h[0],f.width),c=$r(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var y=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;y&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=n.outsideFill,m=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ye,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pf:df},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&_e(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,qr(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},z(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(J(t))for(var n=t,i=Ct(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Hl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===Hl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Hs("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,n,f),v&&v.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ye),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,e,v),p&&p.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ye)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=yt(i,t),o=yt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var v=0;v0||i.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},v&&(T={});for(var S=0;S<_;S++){var g=y[S];M[g]=e[g],v?T[g]=n[g]:e[g]=n[g]}}else if(v){D={};for(var S=0;S<_;S++){var g=y[S];D[g]=Zo(e[g]),Ww(e,n,g)}}var w=new Mh(e,!1,!1,h?At(d,function(I){return I.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),v&&T&&w.whenWithKeys(0,T,y),D&&w.whenWithKeys(0,D,y),w.whenWithKeys(u??500,s?M:n,y).delay(f||0),r.addAnimator(w,t),o.push(w)}}const Ey=Ih;var ky=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=yt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=yt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function $t(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return K(r)?ex(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Bt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),By),r=(+r).toFixed(t),e?r:+r}function rx(r){return r.sort(function(t,e){return t-e}),r}function je(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Ny(r)}function Ny(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Fy(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function nx(r,t,e){if(!r[t])return 0;var n=ix(r,e);return n[t]||0}function ix(r,t){var e=rr(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=Z(r,function(c){return(isNaN(c)?0:c)/e*n*100}),a=n*100,o=Z(i,function(c){return Math.floor(c)}),s=rr(o,function(c,d){return c+d},0),l=Z(i,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return Z(o,function(c){return c/n})}function ax(r,t){var e=Math.max(je(r),je(t)),n=r+t;return e>By?n:Bt(n,e)}var ox=9007199254740991;function Lh(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-vv&&r=10&&t++,t}function Ph(r,t){var e=Ws(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function lx(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function ux(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||a&&yt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Ex=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kx=Pa(Ex),Ox=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return kx(this,t,e)},r}(),mf=new Xa(50);function Bx(r){if(typeof r=="string"){var t=mf.get(r);return t&&t.image}else return r}function Zy(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=mf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ys(t)&&a.pending.push(o)):(t=pr.loadImage(r,mv,mv),t.__zrImageSrc=r,mf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function mv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Se(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function jy(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=Se(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?Nx(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=Se(r,n)}return r===""&&(r=t.placeholder),r}function Nx(r,t,e,n){for(var i=0,a=0,o=r.length;ac&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var y=Qy(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&Xl(e,r.substring(s,u),t,o),Xl(e,l[2],t,o,l[1]),s=Yl.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var I=x.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,f.push(b),b.contentWidth=Se(b.text,D);else{if(L){var E=x.backgroundColor,R=E&&E.image;R&&(R=Bx(R),Ys(R)&&(b.width=Math.max(b.width,R.width*C/R.height)))}var P=d&&n!=null?n-S:null;P!=null&&P0&&d+n.accumWidth>n.width&&(f=t.split(` +`),u=!0),n.accumWidth=d}else{var y=Jy(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=y.accumWidth+c,h=y.linesWidths,f=y.lines}}else f=t.split(` +`);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $x=rr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Wx(r){return Vx(r)?!!$x[r]:!0}function Jy(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he:i+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var _f="__zr_style_"+Math.round(Math.random()*10),En={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};En[_f]=!0;var Sv=["z","z2","invisible"],Ux=["invisible"],Yx=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ct(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(co[0]=Ql(i)*e+r,co[1]=Kl(i)*n+t,vo[0]=Ql(a)*e+r,vo[1]=Kl(a)*n+t,u(s,co,vo),f(l,co,vo),i=i%on,i<0&&(i=i+on),a=a%on,a<0&&(a=a+on),i>a&&!o?a+=on:ii&&(po[0]=Ql(c)*e+r,po[1]=Kl(c)*n+t,u(s,po,s),f(l,po,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sn=[],ln=[],Ye=[],xr=[],Xe=[],qe=[],jl=Math.min,Jl=Math.max,un=Math.cos,fn=Math.sin,lr=Math.abs,Sf=Math.PI,Pr=Sf*2,tu=typeof Float32Array<"u",Gi=[];function eu(r){var t=Math.round(r/Sf*1e8)/1e8;return t%2*Sf}function Qx(r,t){var e=eu(r[0]);e<0&&(e+=Pr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Pr?i=e+Pr:t&&e-i>=Pr?i=e-Pr:!t&&e>i?i=e+(Pr-eu(e-i)):t&&e0&&(this._ux=lr(n/gs/t)||0,this._uy=lr(n/gs/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(mt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=lr(t-this._xi),i=lr(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(mt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(mt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Gi[0]=i,Gi[1]=a,Qx(Gi,o),i=Gi[0],a=Gi[1];var s=a-i;return this.addData(mt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=un(a)*n+t,this._yi=fn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(mt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&tu&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ye[0]=Ye[1]=Xe[0]=Xe[1]=Number.MAX_VALUE,xr[0]=xr[1]=qe[0]=qe[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||lr(_)>i||v===e-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break}case mt.C:{var S=t[v++],w=t[v++],p=t[v++],g=t[v++],b=t[v++],x=t[v++];y=nw(a,o,S,w,p,g,b,x,10),a=b,o=x;break}case mt.Q:{var S=t[v++],w=t[v++],p=t[v++],g=t[v++];y=aw(a,o,S,w,p,g,10),a=p,o=g;break}case mt.A:var T=t[v++],M=t[v++],D=t[v++],C=t[v++],I=t[v++],L=t[v++],E=L+I;v+=1,t[v++],d&&(s=un(I)*D+T,l=fn(I)*C+M),y=Jl(D,C)*jl(Pr,Math.abs(L)),a=un(E)*D+T,o=fn(E)*C+M;break;case mt.R:{s=a=t[v++],l=o=t[v++];var R=t[v++],P=t[v++];y=R*2+P*2;break}case mt.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[h++]=y,f+=y)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,y,p=0,g=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=e*y,!m)))t:for(var b=0;b0&&(t.lineTo(S,w),_=0),x){case mt.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case mt.L:{h=n[b++],v=n[b++];var M=lr(h-u),D=lr(v-f);if(M>i||D>a){if(c){var C=d[g++];if(p+C>m){var I=(m-p)/C;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}p+=C}t.lineTo(h,v),u=h,f=v,_=0}else{var L=M*M+D*D;L>_&&(S=h,w=v,_=L)}break}case mt.C:{var E=n[b++],R=n[b++],P=n[b++],B=n[b++],k=n[b++],O=n[b++];if(c){var C=d[g++];if(p+C>m){var I=(m-p)/C;Vr(u,E,P,k,I,sn),Vr(f,R,B,O,I,ln),t.bezierCurveTo(sn[1],ln[1],sn[2],ln[2],sn[3],ln[3]);break t}p+=C}t.bezierCurveTo(E,R,P,B,k,O),u=k,f=O;break}case mt.Q:{var E=n[b++],R=n[b++],P=n[b++],B=n[b++];if(c){var C=d[g++];if(p+C>m){var I=(m-p)/C;ps(u,E,P,I,sn),ps(f,R,B,I,ln),t.quadraticCurveTo(sn[1],ln[1],sn[2],ln[2]);break t}p+=C}t.quadraticCurveTo(E,R,P,B),u=P,f=B;break}case mt.A:var Q=n[b++],tt=n[b++],H=n[b++],N=n[b++],F=n[b++],j=n[b++],W=n[b++],et=!n[b++],Pt=H>N?H:N,Rt=lr(H-N)>.001,Et=F+j,rt=!1;if(c){var C=d[g++];p+C>m&&(Et=F+j*(m-p)/C,rt=!0),p+=C}if(Rt&&t.ellipse?t.ellipse(Q,tt,H,N,W,F,Et,et):t.arc(Q,tt,Pt,F,Et,et),rt)break t;T&&(s=un(F)*H+Q,l=fn(F)*N+tt),u=un(Et)*H+Q,f=fn(Et)*N+tt;break;case mt.R:s=u=n[b],l=f=n[b+1],h=n[b++],v=n[b++];var vt=n[b++],Qr=n[b++];if(c){var C=d[g++];if(p+C>m){var jt=m-p;t.moveTo(h,v),t.lineTo(h+jl(jt,vt),v),jt-=vt,jt>0&&t.lineTo(h+vt,v+jl(jt,Qr)),jt-=Qr,jt>0&&t.lineTo(h+Jl(vt-jt,0),v+Qr),jt-=vt,jt>0&&t.lineTo(h,v+Jl(Qr-jt,0));break t}p+=C}t.rect(h,v,vt,Qr);break;case mt.Z:if(c){var C=d[g++];if(p+C>m){var I=(m-p)/C;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}p+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=mt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const yr=jx;function Jn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>i+h&&u>o+h||ut+u&&l>n+u&&l>a+u||lr+u&&s>e+u&&s>i+u||se||f+ui&&(i+=Hi);var v=Math.atan2(l,s);return v<0&&(v+=Hi),v>=n&&v<=i||v+Hi>=n&&v+Hi<=i}function hr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Tr=yr.CMD,hn=Math.PI*2,rT=1e-4;function nT(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&iT(),c=zt(t,n,a,s,De[0]),v>1&&(d=zt(t,n,a,s,De[1]))),v===2?pt&&s>n&&s>a||s=0&&u<=1){for(var f=0,h=Zt(t,n,a,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=hn-1e-4){n=0,i=hn;var f=a?1:-1;return o>=ee[0]+r&&o<=ee[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=hn,i+=hn);for(var v=0,c=0;c<2;c++){var d=ee[c];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=hn+y),(y>=n&&y<=i||y+hn>=n&&y+hn<=i)&&(y>Math.PI/2&&y1&&(e||(s+=hr(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),y){case Tr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Tr.L:if(e){if(Jn(l,u,a[d],a[d+1],t,n,i))return!0}else s+=hr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.C:if(e){if(Jx(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=aT(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.Q:if(e){if(tT(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=oT(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);v=Math.cos(w)*_+g,c=Math.sin(w)*S+m,p?(f=v,h=c):s+=hr(l,u,v,c,n,i);var T=(n-g)*S/_+g;if(e){if(eT(g,m,S,w,w+b,x,t,T,i))return!0}else s+=sT(g,m,S,w,w+b,x,T,i);l=Math.cos(w+b)*_+g,u=Math.sin(w+b)*S+m;break;case Tr.R:f=l=a[d++],h=u=a[d++];var M=a[d++],D=a[d++];if(v=f+M,c=h+D,e){if(Jn(f,h,v,h,t,n,i)||Jn(v,h,v,c,t,n,i)||Jn(v,c,f,c,t,n,i)||Jn(f,c,f,h,t,n,i))return!0}else s+=hr(v,h,v,c,n,i),s+=hr(f,c,f,h,n,i);break;case Tr.Z:if(e){if(Jn(l,u,f,h,t,n,i))return!0}else s+=hr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!nT(u,h)&&(s+=hr(l,u,f,h,n,i)||0),s!==0}function lT(r,t,e){return em(r,0,!1,t,e)}function uT(r,t,e,n){return em(r,t,!0,e,n)}var rm=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},En),fT={style:st({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xs.style)},ru=Aa.concat(["invisible","culling","z","z2","zlevel","parent"]),hT=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?df:n>.2?Fw:pf}else if(e)return pf}return df},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(K(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Da(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&hi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uT(s,l/u,e,n)))return!0}if(this.hasFill())return lT(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=hi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:z(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&hi)},t.prototype.createStyle=function(e){return Ua(rm,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=z({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=z({},i.shape),z(u,n.shape)):(u=z({},a?this.shape:i.shape),z(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=z({},this.shape);for(var f={},h=Ct(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Ua(cT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=Dh(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Pi);nm.prototype.type="tspan";const bf=nm;var vT=st({x:0,y:0},En),dT={style:st({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xs.style)};function pT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var im=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ua(vT,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=pT(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return dT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ft(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Pi);im.prototype.type="image";const Zr=im;function gT(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var di=Math.round;function am(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(di(n*2)===di(i*2)&&(r.x1=r.x2=Mn(n,s,!0)),di(a*2)===di(o*2)&&(r.y1=r.y2=Mn(a,s,!0))),r}}function om(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Mn(n,s,!0),r.y=Mn(i,s,!0),r.width=Math.max(Mn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Mn(i+o,s,!1)-r.y,o===0?0:1)),r}}function Mn(r,t,e){if(!t)return r;var n=di(r*2);return(n+di(t))%2===0?n/2:(n+(e?1:-1))/2}var yT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),mT={},sm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new yT},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=om(mT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?gT(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ht);sm.prototype.type="rect";const Ft=sm;var Cv={fill:"#000"},Mv=2,_T={style:st({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Xs.style)},lm=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,E=0;E=0&&(E=b[L],E.align==="right");)this._placeToken(E,e,T,g,I,"right",_),M-=E.width,I-=E.width,L--;for(C+=(a-(C-p)-(m-I)-M)/2;D<=L;)E=b[D],this._placeToken(E,e,T,g,C+E.width/2,"center",_),C+=E.width,D++;g+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var v=!e.isLineHolder&&nu(u);v&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=Rv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(bf),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=Pv("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,g.fill)),w=Lv("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!g.autoStroke||m)?(_=Mv,g.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,b&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||zn,p.opacity=ha(u.opacity,n.opacity,1),Av(p,u),w&&(p.lineWidth=ha(u.lineWidth,n.lineWidth,_),p.lineDash=lt(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var x=e.contentWidth,T=e.contentHeight;y.setBoundingRect(new ft(aa(p.x,x,p.textAlign),ci(p.y,T,p.textBaseline),x,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,v=l&&!h,c=e.borderRadius,d=this,y,p;if(v||e.lineHeight||u&&f){y=this._getOrCreateChild(Ft),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=c,y.dirtyShape()}if(v){var m=y.style;m.fill=l||null,m.fillOpacity=lt(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Zr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=lt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(y||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=ha(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return xT(e)&&(n=[e.fontStyle,e.fontWeight,wT(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ve(n)||e.textFont||e.font},t}(Pi),ST={left:!0,right:1,center:1},bT={top:1,bottom:1,middle:1},Dv=["fontStyle","fontWeight","fontSize","fontFamily"];function wT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?dh+"px":r+"px"}function Av(r,t){for(var e=0;e=0,a=!1;if(r instanceof ht){var o=um(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ti(s)||ti(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=z({},n),u=z({},u),u.fill=s):!ti(u.fill)&&ti(s)?(a=!0,n=z({},n),u=z({},u),u.fill=Nv(s)):!ti(u.stroke)&&ti(l)&&(a||(n=z({},n),u=z({},u)),u.stroke=Nv(l)),n.style=u}}if(n&&n.z2==null){a||(n=z({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??MT)}return n}function RT(r,t,e){if(e&&e.z2==null){e=z({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??DT)}return e}function ET(r,t,e){var n=yt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:LT(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=z({},e),o=z({opacity:n?i:a.opacity*.1},o),e.style=o),e}function iu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return PT(this,r,t,e);if(r==="blur")return ET(this,r,e);if(r==="select")return RT(this,r,e)}return e}function kT(r){r.stateProxy=iu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=iu),e&&(e.stateProxy=iu)}function Gv(r,t){!gm(r,t)&&!r.__highByOuter&&Sr(r,fm)}function Hv(r,t){!gm(r,t)&&!r.__highByOuter&&Sr(r,hm)}function _s(r,t){r.__highByOuter|=1<<(t||0),Sr(r,fm)}function Ss(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Sr(r,hm)}function OT(r){Sr(r,Nh)}function vm(r){Sr(r,cm)}function dm(r){Sr(r,AT)}function pm(r){Sr(r,IT)}function gm(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function ym(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=Oh(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){cm(u)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function wf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function bs(r,t,e){mm(r,!0),Sr(r,kT),VT(r,t,e)}function HT(r){mm(r,!1)}function ws(r,t,e,n){n?HT(r):bs(r,t,e)}function VT(r,t,e){var n=pt(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var $v=["emphasis","blur","select"],$T={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Tf(r,t,e,n){e=e||"itemStyle";for(var i=0;i<$v.length;i++){var a=$v[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[$T[e]]()}}function mm(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Cf(r){return!!(r&&r.__highDownDispatcher)}function WT(r){var t=Ov[r];return t==null&&kv<=32&&(t=Ov[r]=kv++),t}function Mf(r){var t=r.type;return t===da||t===es||t===pa}function Wv(r){var t=r.type;return t===kn||t===ts}function UT(r){var t=um(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ei=yr.CMD,YT=[[],[],[]],Uv=Math.sqrt,XT=Math.atan2;function _m(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=ei.M,h=ei.C,v=ei.L,c=ei.R,d=ei.A,y=ei.Q;for(o=0,s=0;o1&&(o*=au(d),s*=au(d));var y=(i===a?-1:1)*au((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=y*o*c/s,g=y*-s*v/o,m=(r+e)/2+yo(h)*p-go(h)*g,_=(t+n)/2+go(h)*p+yo(h)*g,S=Xv([1,0],[(v-p)/o,(c-g)/s]),w=[(v-p)/o,(c-g)/s],b=[(-1*v-p)/o,(-1*c-g)/s],x=Xv(w,b);if(Df(w,b)<=-1&&(x=Vi),Df(w,b)>=1&&(x=0),x<0){var T=Math.round(x/Vi*1e6)/1e6;x=Vi*2+T%2*Vi}f.addData(u,m,_,o,s,S,x,h,a)}var qT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ZT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KT(r){var t=new yr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=yr.CMD,l=r.match(qT);if(!l)return t;for(var u=0;uE*E+R*R&&(T=D,M=C),{cx:T,cy:M,x0:-f,y0:-h,x1:T*(i/w-1),y1:M*(i/w-1)}}function iC(r){var t;if(V(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function aC(r,t){var e,n=oa(t.r,0),i=oa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=Zv(u-l),d=c>ou&&c%ou;if(d>Fe&&(c=d),!(n>Fe))r.moveTo(f,h);else if(c>ou-Fe)r.moveTo(f+n*ri(l),h+n*cn(l)),r.arc(f,h,n,l,u,!v),i>Fe&&(r.moveTo(f+i*ri(u),h+i*cn(u)),r.arc(f,h,i,u,l,v));else{var y=void 0,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,T=void 0,M=void 0,D=void 0,C=void 0,I=void 0,L=void 0,E=void 0,R=n*ri(l),P=n*cn(l),B=i*ri(u),k=i*cn(u),O=c>Fe;if(O){var Q=t.cornerRadius;Q&&(e=iC(Q),y=e[0],p=e[1],g=e[2],m=e[3]);var tt=Zv(n-i)/2;if(_=Ze(tt,g),S=Ze(tt,m),w=Ze(tt,y),b=Ze(tt,p),M=x=oa(_,S),D=T=oa(w,b),(x>Fe||T>Fe)&&(C=n*ri(u),I=n*cn(u),L=i*ri(l),E=i*cn(l),cFe){var Rt=Ze(g,M),Et=Ze(m,M),rt=mo(L,E,R,P,n,Rt,v),vt=mo(C,I,B,k,n,Et,v);r.moveTo(f+rt.cx+rt.x0,h+rt.cy+rt.y0),M0&&r.arc(f+rt.cx,h+rt.cy,Rt,Xt(rt.y0,rt.x0),Xt(rt.y1,rt.x1),!v),r.arc(f,h,n,Xt(rt.cy+rt.y1,rt.cx+rt.x1),Xt(vt.cy+vt.y1,vt.cx+vt.x1),!v),Et>0&&r.arc(f+vt.cx,h+vt.cy,Et,Xt(vt.y1,vt.x1),Xt(vt.y0,vt.x0),!v))}else r.moveTo(f+R,h+P),r.arc(f,h,n,l,u,!v);if(!(i>Fe)||!O)r.lineTo(f+B,h+k);else if(D>Fe){var Rt=Ze(y,D),Et=Ze(p,D),rt=mo(B,k,C,I,i,-Et,v),vt=mo(R,P,L,E,i,-Rt,v);r.lineTo(f+rt.cx+rt.x0,h+rt.cy+rt.y0),D0&&r.arc(f+rt.cx,h+rt.cy,Et,Xt(rt.y0,rt.x0),Xt(rt.y1,rt.x1),!v),r.arc(f,h,i,Xt(rt.cy+rt.y1,rt.cx+rt.x1),Xt(vt.cy+vt.y1,vt.cx+vt.x1),v),Rt>0&&r.arc(f+vt.cx,h+vt.cy,Rt,Xt(vt.y1,vt.x1),Xt(vt.y0,vt.x0),!v))}else r.lineTo(f+B,h+k),r.arc(f,h,i,u,l,v)}r.closePath()}}}var oC=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Mm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new oC},t.prototype.buildPath=function(e,n){aC(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ht);Mm.prototype.type="sector";const Wr=Mm;var sC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Dm=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(ht);Dm.prototype.type="ring";const Hh=Dm;function lC(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(n){var a=lC(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sdn[1]){if(s=!1,a)return s;var f=Math.abs(dn[0]-vn[1]),h=Math.abs(vn[0]-dn[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Yt(r,t,e,n,i,a){Wh("update",r,t,e,n,i,a)}function ve(r,t,e,n,i,a){Wh("enter",r,t,e,n,i,a)}function _i(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function jv(r){return!r.isGroup}function DC(r){return r.shape!=null}function Ym(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){jv(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return DC(o)&&(s.shape=z({},o.shape)),s}var a=n(r);t.traverse(function(o){if(jv(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Yt(o,l,e,pt(o).dataIndex)}}})}function Xm(r,t){return Z(r,function(e){var n=e[0];n=Cs(n,t.x),n=Ms(n,t.x+t.width);var i=e[1];return i=Cs(i,t.y),i=Ms(i,t.y+t.height),[n,i]})}function qm(r,t){var e=Cs(r.x,t.x),n=Ms(r.x+r.width,t.x+t.width),i=Cs(r.y,t.y),a=Ms(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function nl(r,t,e){var n=z({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),st(i,e),new Zr(n)):rl(r.replace("path://",""),n,e,"center")}function AC(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=su(c,d,f,h)/v;return!(p<0||p>1)}function su(r,t,e,n){return r*n-e*t}function IC(r){return r<=1e-6&&r>=-1e-6}function qh(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=K(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Ct(l),function(f){ir(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=pt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:st({content:n,formatterParams:s},i)}}function Jv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function il(r,t){if(r)if(V(r))for(var e=0;e=0&&s.push(l)}),s}}function Jm(r,t){return gt(gt({},r,!0),t,!0)}const YC={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},XC={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ds="ZH",Zh="EN",Ea=Zh,rs={},Kh={},t0=ot.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ds)>-1?Ds:Ea}():Ea;function Qh(r,t){r=r.toUpperCase(),Kh[r]=new Gt(t),rs[r]=t}function qC(r){if(K(r)){var t=rs[r.toUpperCase()]||{};return r===Ds||r===Zh?ct(t):gt(ct(t),ct(rs[Ea]),!1)}else return gt(ct(r),ct(rs[Ea]),!1)}function ZC(r){return Kh[r]}function KC(){return Kh[Ea]}Qh(Zh,YC);Qh(Ds,XC);var jh=1e3,Jh=jh*60,ya=Jh*60,Ie=ya*24,ad=Ie*365,sa={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},bo="{yyyy}-{MM}-{dd}",od={year:"{yyyy}",month:"{yyyy}-{MM}",day:bo,hour:bo+" "+sa.hour,minute:bo+" "+sa.minute,second:bo+" "+sa.second,millisecond:sa.none},fu=["year","month","day","hour","minute","second","millisecond"],e0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function re(r,t){return r+="","0000".substr(0,t-r.length)+r}function Si(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function QC(r){return r===Si(r)}function jC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qa(r,t,e,n){var i=Pe(r),a=i[tc(e)](),o=i[bi(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ul(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[ka(e)](),h=(f-1)%12+1,v=i[fl(e)](),c=i[hl(e)](),d=i[cl(e)](),y=n instanceof Gt?n:ZC(n||t0)||KC(),p=y.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,re(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,re(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,re(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,re(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,re(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,re(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,re(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,re(d,3)).replace(/{S}/g,d+"")}function JC(r,t,e,n,i){var a=null;if(K(e))a=e;else if(it(e))a=e(r.value,t,{level:r.level});else{var o=z({},sa);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(V(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Qa(new Date(r.value),a,i,n)}function r0(r,t){var e=Pe(r),n=e[bi(t)]()+1,i=e[ul(t)](),a=e[ka(t)](),o=e[fl(t)](),s=e[hl(t)](),l=e[cl(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function sd(r,t,e){var n=St(r)?Pe(r):r;switch(t=t||r0(r,e),t){case"year":return n[tc(e)]();case"half-year":return n[bi(e)]()>=6?1:0;case"quarter":return Math.floor((n[bi(e)]()+1)/4);case"month":return n[bi(e)]();case"day":return n[ul(e)]();case"half-day":return n[ka(e)]()/24;case"hour":return n[ka(e)]();case"minute":return n[fl(e)]();case"second":return n[hl(e)]();case"millisecond":return n[cl(e)]()}}function tc(r){return r?"getUTCFullYear":"getFullYear"}function bi(r){return r?"getUTCMonth":"getMonth"}function ul(r){return r?"getUTCDate":"getDate"}function ka(r){return r?"getUTCHours":"getHours"}function fl(r){return r?"getUTCMinutes":"getMinutes"}function hl(r){return r?"getUTCSeconds":"getSeconds"}function cl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function tM(r){return r?"setUTCFullYear":"setFullYear"}function n0(r){return r?"setUTCMonth":"setMonth"}function i0(r){return r?"setUTCDate":"setDate"}function a0(r){return r?"setUTCHours":"setHours"}function o0(r){return r?"setUTCMinutes":"setMinutes"}function s0(r){return r?"setUTCSeconds":"setSeconds"}function l0(r){return r?"setUTCMilliseconds":"setMilliseconds"}function eM(r,t,e,n,i,a,o,s){var l=new Ut({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function ec(r){if(!Gy(r))return K(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function rc(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ja=_h;function Pf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ve(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Pe(r):r;if(isNaN(+l)){if(s)return"-"}else return Qa(l,n,e)}if(t==="ordinal")return us(r)?i(r):St(r)&&a(r)?r+"":"-";var u=gr(r);return a(u)?ec(u):us(r)?i(r):typeof r=="boolean"?r+"":"-"}var ld=["a","b","c","d","e","f","g"],hu=function(r,t){return"{"+r+(t??"")+"}"};function nc(r,t,e){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function rM(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd +yyyy`);var n=Pe(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",re(o,2)).replace("M",o).replace("yyyy",a).replace("yy",re(a%100+"",2)).replace("dd",re(s,2)).replace("d",s).replace("hh",re(l,2)).replace("h",l).replace("mm",re(u,2)).replace("m",u).replace("ss",re(f,2)).replace("s",f).replace("SSS",re(h,3)),r}function nM(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Vn(r,t){return t=t||"transparent",K(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ud(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ns=A,iM=["left","right","top","bottom","width","height"],wo=[["width","left","right"],["height","top","bottom"]];function ic(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var y=f.width+(v?-v.x+f.x:0);c=a+y,c>n||l.newline?(a=0,c=y,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var ma=ic;Ot(ic,"vertical");Ot(ic,"horizontal");function xi(r,t,e){e=ja(e||0);var n=t.width,i=t.height,a=$t(r.left,n),o=$t(r.top,i),s=$t(r.right,n),l=$t(r.bottom,i),u=$t(r.width,n),f=$t(r.height,i),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ft(a+e[3],o+e[0],u,f);return d.margin=e,d}function Oa(r){var t=r.layoutMode||r.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function Ti(r,t,e){var n=e&&e.ignoreSize;!V(n)&&(n=[n,n]);var i=o(wo[0],0),a=o(wo[1],1);u(wo[0],r,i),u(wo[1],r,a);function o(f,h){var v={},c=0,d={},y=0,p=2;if(ns(f,function(_){d[_]=r[_]}),ns(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&y++}),n[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(y===p||!c)return d;if(c>=p)return v;for(var g=0;g=0;l--)s=gt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ka(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Gt);qy(Ei,Gt);Us(Ei);WC(Ei);UC(Ei,sM);function sM(r){var t=[];return A(Ei.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return Je(e).main}),r!=="dataset"&&yt(t,"dataset")<=0&&t.unshift("dataset"),t}const bt=Ei;var f0="";typeof navigator<"u"&&(f0=navigator.platform||"");var ni="rgba(0, 0, 0, 0.2)";const lM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ni,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ni,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ni,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ni,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ni,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ni,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:f0.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var h0=at(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Oe="original",ae="arrayRows",Ue="objectRows",br="keyedColumns",Hr="typedArray",c0="unknown",er="column",ki="row",de={Must:1,Might:2,Not:3},v0=It();function uM(r){v0(r).datasetMap=at()}function fM(r,t,e){var n={},i=d0(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=v0(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(y,p){var g=J(y)?y:r[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(y,p){var g=y.name,m=d(y);if(f==null){var _=v.valueWayDim;c(n[g],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===p)c(n[g],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[g],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(y,p,g){for(var m=0;mt)return r[n];return r[e-1]}function gM(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:pM(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function yM(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var xo,$i,hd,cd="\0_ec_inner",mM=1,g0=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Gt(a),this._locale=new Gt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=pd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,pd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?hd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=at(),u=n&&n.replaceMergeMainTypeMap;uM(this),A(e,function(h,v){h!=null&&(bt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?ct(h):gt(i[v],h,!0))}),u&&u.each(function(h,v){bt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),bt.topologicalTravel(s,bt.getAllClassMainTypes(),f,this);function f(h){var v=dM(this,h,Nt(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=cx(c,v,d);_x(y,h,bt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],m=0,_;A(y,function(S,w){var b=S.existing,x=S.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=h==="series",M=bt.getClass(h,S.keyInfo.subType,!T);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===M)b.name=S.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var D=z({componentIndex:w},S.keyInfo);b=new M(x,this,this,D),z(b,D),S.brandNew&&(b.__requireNewView=!0),b.init(x,this,this),b.optionUpdated(null,!0)}}b?(p.push(b.option),g.push(b),m++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,m),h==="series"&&xo(this)}this._seriesIndices||xo(this)},t.prototype.getOption=function(){var e=ct(this.option);return A(e,function(n,i){if(bt.hasClass(i)){for(var a=Nt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!La(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[cd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function IM(r,t){return r.join(",")===t.join(",")}const LM=CM;var Be=A,Ba=J,gd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vu(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=gd.length;e=0;p--){var g=r[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=ax(v,m),y=m;break}}}return n[0]=v,n[1]=y,n})})}var pl=function(){function r(t){this.data=t.data||(t.sourceFormat===br?{}:[]),this.sourceFormat=t.sourceFormat||c0,this.seriesLayoutBy=t.seriesLayoutBy||er,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ny&&(y=_)}c[0]=d,c[1]=y}},i=function(){return this._data?this._data.length/this._dimSize:0};xd=(t={},t[ae+"_"+er]={pure:!0,appendData:a},t[ae+"_"+ki]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ue]={pure:!0,appendData:a},t[br]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Oe]={appendData:a},t[Hr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return Ci(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Dd(r){var t,e;return J(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function _a(r){return new qM(r)}var qM=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c1&&n>0?s:o}};return a;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},KM=function(){function r(t,e){if(!St(e)){var n="";dt(n)}this._opFn=A0[t],this._rvalFloat=gr(e)}return r.prototype.evaluate=function(t){return St(t)?this._opFn(t,this._rvalFloat):this._opFn(gr(t),this._rvalFloat)},r}(),I0=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=St(t)?t:gr(t),i=St(e)?e:gr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=K(t),l=K(e);s&&(n=l?t:0),l&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),QM=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=gr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=gr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function jM(r,t){return r==="eq"||r==="ne"?new QM(r==="eq",t):ir(A0,r)?new KM(r,t):null}var JM=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return is(t,e)},r}();function tD(r,t){var e=new JM,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==er&&dt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};if(s.push(m),g!=null){var _="";ir(l,g)&&dt(_),l[g]=m}});else for(var f=0;f65535?lD:uD}function ii(){return[1/0,-1/0]}function fD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Ld(r,t,e,n,i){var a=R0[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;up[1]&&(p[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),f=0;fg[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=v||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var p=c[i[0]],_=c[i[1]],S=t[i[1]][0],w=t[i[1]][1],g=0;g=h&&m<=v||isNaN(m))&&(b>=S&&b<=w||isNaN(b))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g=h&&m<=v||isNaN(m))&&(l[u++]=x)}else for(var g=0;gt[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(Ui(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}C>0&&Cf-d&&(l=f-d,s.length=l);for(var y=0;yh[1]&&(h[1]=g),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return is(e[a],this._dimensions[a])}gu={arrayRows:t,objectRows:function(e,n,i,a){return is(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return is(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const Ef=hD;var E0=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(To(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=ce(s)?Hr:Oe,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=lt(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=lt(h.sourceHeader,v.sourceHeader),y=lt(h.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||y;i=p?[Rf(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:y},l)]:[]}else{var g=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);i=[Rf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Rd(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&Rd(h),s.push(f),l.push(u._getVersionSign())}),n?o=oD(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[GM(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=N0(i);a>=t&&(t=a+ +(n&&(!a||kf(i)&&!i.noHeader)))}),t}return 0}function dD(r,t,e,n){var i=t.noHeader,a=gD(N0(t)),o=[],s=t.blocks||[];nr(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ir(u,l)){var f=new I0(u[l],null);s.sort(function(d,y){return f.evaluate(d.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,y){var p=t.valueFormatter,g=B0(d)(p?z(z({},r),{valueFormatter:p}):r,d,y>0?a.html:0,n);g!=null&&o.push(g)});var h=r.renderMode==="richText"?o.join(a.richText):Of(o.join(""),i?e:a.html);if(i)return h;var v=Pf(t.header,"ordinal",r.useUTC),c=O0(n,r.renderMode).nameStyle;return r.renderMode==="richText"?F0(r,v,c)+a.richText+h:Of('
'+ge(v)+"
"+h,e)}function pD(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=V(S)?S:[S],Z(S,function(w,b){return Pf(w,V(c)?c[b]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":Pf(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value),y=!s||!a,p=!s&&a,g=O0(n,i),m=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":F0(r,v,m))+(o?"":_D(r,d,y,p,_)):Of((s?"":h)+(a?"":yD(v,!s,m))+(o?"":mD(d,y,p,_)),e)}}function Ed(r,t,e,n,i,a){if(r){var o=B0(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function gD(r){return{html:cD[r],richText:vD[r]}}function Of(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function yD(r,t,e){var n=t?"margin-left:2px":"";return''+ge(r)+""}function mD(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=V(r)?r:[r],''+Z(r,function(o){return ge(o)}).join("  ")+""}function F0(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function _D(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function SD(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Vn(n)}function z0(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var yu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Hy()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=u0({color:e,type:t,renderMode:n,markerId:i});return K(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};V(e)?A(e,function(a){return z(n,a)}):z(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function bD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=V(s),u=SD(t,e),f,h,v,c;if(o>1||l&&!o){var d=wD(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var y=i.getDimensionInfo(a[0]);c=f=Ci(i,e,a[0]),h=y.type}else c=f=l?s[0]:s;var p=Rh(t),g=p&&t.name||"",m=i.getName(e),_=n?g:m;return Na("section",{header:g,noHeader:n||!p,sortParam:c,blocks:[Na("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ve(_),value:f,valueType:h})].concat(v||[])})}function wD(r,t,e,n,i){var a=t.getData(),o=rr(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(h){f(Ci(a,e,h),h)}):A(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Na("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Cr=It();function Co(r,t){return r.getName(t)||r.getId(t)}var as="__universalTransitionEnabled",yl=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=_a({count:TD,reset:CD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Cr(this).sourceManager=new E0(this);a.prepareSource();var o=this.getInitialData(e,i);Od(o,this),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,kd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Oa(this),a=i?vl(e):{},o=this.subType;bt.hasClass(o)&&(o+="Series"),gt(e,n.getTheme().get(this.subType)),gt(e,this.getDefaultOption()),gv(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ti(e,a,i)},t.prototype.mergeOption=function(e,n){e=gt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Oa(this);i&&Ti(this.option,e,i);var a=Cr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Od(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Cr(this).dataBeforeProcessed=o,kd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ce(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=ac.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Co(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[as])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return bt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(bt);Ee(yl,XM);Ee(yl,ac);qy(yl,bt);function kd(r){var t=r.name;Rh(r)||(r.name=xD(r)||t)}function xD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function TD(r){return r.model.getRawData().count()}function CD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),MD}function MD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Od(r,t){A(iy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Ot(DD,t))})}function DD(r,t){var e=Bf(r);return e&&e.setOutputEnd((t||this).count()),t}function Bf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const ar=yl;var fc=function(){function r(){this.group=new Wt,this.uid=ll("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();kh(fc);Us(fc);const be=fc;function hc(){var r=It();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var G0=It(),AD=hc(),cc=function(){function r(){this.group=new Wt,this.uid=ll("viewChart"),this.renderTask=_a({plan:ID,reset:LD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Nd(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Nd(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){il(this.group,t)},r.markUpdateMethod=function(t,e){G0(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Bd(r,t,e){r&&Cf(r)&&(t==="emphasis"?_s:Ss)(r,e)}function Nd(r,t,e){var n=Hn(r,t),i=t&&t.highlightKey!=null?WT(t.highlightKey):null;n!=null?A(Nt(n),function(a){Bd(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Bd(a,e,i)})}kh(cc);Us(cc);function ID(r){return AD(r.model)}function LD(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&G0(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),PD[l]}var PD={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Le=cc;var As="\0__throttleOriginMethod",Fd="\0__throttleRate",zd="\0__throttleType";function ml(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function H0(r,t,e,n){var i=r[t];if(i){var a=i[As]||i,o=i[zd],s=i[Fd];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=ml(a,e,n==="debounce"),i[As]=a,i[zd]=n,i[Fd]=e}return i}}function Nf(r,t){var e=r[t];e&&e[As]&&(e.clear&&e.clear(),r[t]=e[As])}var Gd=It(),Hd={itemStyle:Pa(jm,!0),lineStyle:Pa(Qm,!0)},RD={lineStyle:"stroke",itemStyle:"fill"};function V0(r,t){var e=r.visualStyleMapper||Hd[t];return e||(console.warn("Unknown style type '"+t+"'."),Hd.itemStyle)}function $0(r,t){var e=r.visualDrawType||RD[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var ED={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=V0(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=$0(r,n),u=o[l],f=it(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||it(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||it(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var y=r.getDataParams(d),p=z({},o);p[l]=f(y),c.setItemVisual(d,"style",p)}}}},Yi=new Gt,kD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=V0(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Yi.option=l[n];var u=i(Yi),f=o.ensureUniqueItemVisual(s,"style");z(f,u),Yi.option.decal&&(o.setItemVisual(s,"decal",Yi.option.decal),Yi.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},OD={performRawSeries:!0,overallReset:function(r){var t=at();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Gd(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Gd(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=$0(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},Mo=Math.PI;function BD(r,t){t=t||{},st(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Wt,n=new Ft({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Ut({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ft({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new tl({shape:{startAngle:-Mo/2,endAngle:-Mo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Mo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Mo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var ND=function(){function r(t,e,n,i){this._stageTaskMap=at(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=at();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";nr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var y=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(y)}),v.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=at(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||_a({plan:VD,reset:$D,count:UD}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||_a({reset:FD});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=at(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";nr(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(y){var p=y.uid,g=l.set(p,s&&s.get(p)||(v=!0,_a({reset:zD,onDirty:HD})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return it(t)&&(t={overallReset:t,seriesType:YD(t)}),t.uid=ll("stageHandler"),e&&(t.visualType=e),t},r}();function FD(r){r.overallReset(r.ecModel,r.api,r.payload)}function zD(r){return r.overallProgress&&GD}function GD(){this.agent.dirty(),this.getDownstream().dirty()}function HD(){this.agent&&this.agent.dirty()}function VD(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function $D(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Nt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,n){return W0(n)}):WD}var WD=W0(0);function W0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Ff=["symbol","symbolSize","symbolRotate","symbolOffset"],Ud=Ff.concat(["symbolKeepAspect"]),KD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Dn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Gf(r,t,e){for(var n=t.type==="radial"?pA(r,t,e):dA(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:St(r)?[r]:V(r)?r:null}function K0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&yA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Z(e,function(a){return a/i}),n/=i)}return[e,n]}var mA=new yr(!0);function Ls(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Yd(r){return typeof r=="string"&&r!=="none"}function Ps(r){var t=r.fill;return t!=null&&t!=="none"}function Xd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function qd(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Hf(r,t,e){var n=Zy(t.image,t.__image,e);if(Ys(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ay),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function _A(r,t,e,n){var i,a=Ls(e),o=Ps(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||mA,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,y=a&&!!c.colorStops,p=o&&!!v.image,g=a&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0;(d||y)&&(b=t.getBoundingRect()),d&&(m=h?Gf(r,v,b):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?Gf(r,c,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?Hf(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),g&&(w=h||!t.__canvasStrokePattern?Hf(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),y?r.strokeStyle=_:g&&(w?r.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(i=K0(t),T=i[0],M=i[1]);var D=!0;(u||h&hi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=M),n||(e.strokeFirst?(a&&qd(r,e),o&&Xd(r,e)):(o&&Xd(r,e),a&&qd(r,e))),T&&r.setLineDash([])}function SA(r,t,e){var n=t.__image=Zy(e.image,t.__image,t,t.onload);if(!(!n||!Ys(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function bA(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||zn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=K0(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Ls(e)&&r.strokeText(i,e.x,e.y),Ps(e)&&r.fillText(i,e.x,e.y)):(Ps(e)&&r.fillText(i,e.x,e.y),Ls(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Zd=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Q0(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){fe(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?En.opacity:o}(n||t.blend!==e.blend)&&(a||(fe(r,i),a=!0),r.globalCompositeOperation=t.blend||En.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[qt]){if(this._disposed){this.id;return}var a,o,s;if(J(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qt]=!0,!this._model||n){var l=new LM(this._api),u=this._theme,f=this._model=new y0;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Wf);var h={seriesTransition:s,optionChanged:!0};if(i)this[se]={silent:a,updateParams:h},this[qt]=!1,this.getZr().wakeUp();else{try{oi(this),Mr.update.call(this,null,h)}catch(v){throw this[se]=null,this[qt]=!1,v}this._ssr||this._zr.flush(),this[se]=null,this[qt]=!1,Xi.call(this,a),qi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(ot.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Os[i]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();A(On,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ct(e)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),h=o(b.bottom,h),v.push({dom:w,left:b.left,top:b.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,y=h-u,p=pr.createCanvas(),g=gf(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:y}),n){var m="";return A(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Ft({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new Zr({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return wu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return wu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ul(i,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Ul(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?jD(s,l,n):JD(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(XA,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ua(s,function(d){var y=pt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=z({},y.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(Sa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),tA(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Uy(this.getDom(),gc,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete On[n.id]},t.prototype.resize=function(e){if(!this[qt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[se]&&(a==null&&(a=this[se].silent),i=!0,this[se]=null),this[qt]=!0;try{i&&oi(this),Mr.update.call(this,{type:"resize",animation:z({duration:0},e&&e.animation)})}catch(o){throw this[qt]=!1,o}this[qt]=!1,Xi.call(this,a),qi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(J(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Uf[e]){var i=Uf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=z({},e);return n.type=Sa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(J(n)||(n={silent:!!n}),!!Es[e.type]&&this._model){if(this[qt]){this._pendingActions.push(e);return}var i=n.silent;Tu.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&ot.browser.weChat&&this._throttledZrFlush(),Xi.call(this,i),qi.call(this,i)}},t.prototype.updateLabelLayout=function(){Ge.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){oi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),bu(h,!0),bu(h,!1),v.plan()},bu=function(h,v){for(var c=h._model,d=h._scheduler,y=v?h._componentsViews:h._chartsViews,p=v?h._componentsMap:h._chartsMap,g=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(y){return l(y,c,d,-1/0),!0})}}function l(h,v,c,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var m=h.childrenRef(),_=0;_0?{duration:y,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(_i(g))return;if(g instanceof ht&&UT(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=p;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&i(g)}})}up=function(h){return new(function(v){G(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},c.prototype.enterEmphasis=function(d,y){_s(d,y),we(h)},c.prototype.leaveEmphasis=function(d,y){Ss(d,y),we(h)},c.prototype.enterBlur=function(d){OT(d),we(h)},c.prototype.leaveBlur=function(d){vm(d),we(h)},c.prototype.enterSelect=function(d){dm(d),we(h)},c.prototype.leaveSelect=function(d){pm(d),we(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(m0))(h)},v_=function(h){function v(c,d){for(var y=0;y=0)){hp.push(e);var a=X0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function wc(r,t){Uf[r]=t}function rI(r){Kg({createCanvas:r})}function S_(r,t,e){var n=n_("registerMap");n&&n(r,t,e)}function nI(r){var t=n_("getMap");return t&&t(r)}var b_=aD;Kr(dc,ED);Kr(_l,kD);Kr(_l,OD);Kr(dc,KD);Kr(_l,QD);Kr(o_,IA);_c(S0);Sc(BA,FM);wc("default",BD);Xn({type:kn,event:kn,update:kn},ne);Xn({type:ts,event:ts,update:ts},ne);Xn({type:da,event:da,update:da},ne);Xn({type:es,event:es,update:es},ne);Xn({type:pa,event:pa,update:pa},ne);mc("light",XD);mc("dark",qD);var iI={};function Zi(r){return r==null?0:r.length||1}function cp(r){return r}var aI=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||cp,this._newKeyGetter=i||cp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Ki=J,Dr=Z,vI=typeof Int32Array>"u"?Array:Int32Array,dI="e\0\0",vp=-1,pI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gI=["_approximateExtent"],dp,Ro,Qi,ji,Du,Eo,Au,yI=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;x_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Oe;if(l&&!i.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),V(a)?a=a.slice():Ki(a)&&(a=z({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ki(e)?z(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ki(t)?z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;CT(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Dr(this.dimensions,this._getDimInfo,this),this.hostModel)),Du(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];it(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Vs(arguments)))})},r.internalField=function(){dp=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new vI(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const D_=yI;function mI(r,t){return A_(r,t).dimensions}function A_(r,t){oc(r)||(r=sc(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=at(),a=[],o=SI(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&M_(o),l=n===r.dimensionsDefine,u=l?C_(r):T_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=at(f),v=new P0(o),c=0;c0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function SI(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;J(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function bI(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var wI=function(){function r(t){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=t}return r}();function xI(r){var t=r.get("coordinateSystem"),e=new wI(t),n=TI[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var TI={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",$e).models[0],a=r.getReferringComponents("yAxis",$e).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),si(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),si(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",$e).models[0];t.coordSysDims=["single"],e.set("single",i),si(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",$e).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),si(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),si(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),si(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function si(r){return r.get("type")==="category"}function I_(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;CI(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(a,function(m,_){K(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,y=0;A(a,function(m){m.coordDim===c&&y++});var p={name:h,coordDim:c,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function CI(r){return!x_(r.schema)}function Wn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function L_(r,t){return Wn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function MI(r,t){var e=r.get("coordinateSystem"),n=dl.get(e),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=lI(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function DI(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function bl(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=sc(r)):(i=n.getSource(),a=i.sourceFormat===Oe);var o=xI(t),s=MI(t,o),l=e.useEncodeDefaulter,u=it(l)?l:l?Ot(fM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=A_(i,f),v=DI(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=I_(t,{schema:h,store:c}),y=new D_(h,t);y.setCalculationInfo(d);var p=v!=null&&AI(i)?function(g,m,_,S){return S===v?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?i:c,null,p),y}function AI(r){if(r.sourceFormat===Oe){var t=II(r.data||[]);return!V(Za(t))}}function II(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Us(P_);const wr=P_;var LI=0,PI=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LI}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&Z(n,RI);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!K(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=at(this.categories))},r}();function RI(r){return J(r)&&r.value!=null?r.value:r+""}const Xf=PI;function qf(r){return r.type==="interval"||r.type==="log"}function EI(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Ph(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=R_(o),l=i.niceTickExtent=[Bt(Math.ceil(r[0]/o)*o,s),Bt(Math.floor(r[1]/o)*o,s)];return kI(l,r),i}function Iu(r){var t=Math.pow(10,Ws(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Bt(e*t)}function R_(r){return je(r)+2}function pp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function kI(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),pp(r,0,t),pp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function wl(r,t){return r>=t[0]&&r<=t[1]}function xl(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Tl(r,t){return r*(t[1]-t[0])+t[0]}var E_=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Xf({})),V(i)&&(i=new Xf({categories:Z(i,function(a){return J(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:K(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),wl(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),xl(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Tl(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wr);wr.registerClass(E_);const k_=E_;var mn=Bt,O_=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wl(e,this._extent)},t.prototype.normalize=function(e){return xl(e,this._extent)},t.prototype.scale=function(e){return Tl(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=R_(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:mn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function F_(r){var t=NI(r),e=[];return A(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=$t(n.get("barWidth"),s),y=$t(n.get("barMaxWidth"),s),p=$t(n.get("barMinWidth")||(G_(n)?.5:1),s),g=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:Tc(a),stackId:xc(n)})}),FI(e)}function FI(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=$t(s,o),f=$t(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(g.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,y;A(a,function(g,m){g.width||(g.width=c),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;A(a,function(g,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),e}function zI(r,t,e){if(r&&t){var n=r[Tc(t)];return n!=null&&e!=null?n[xc(e)]:n}}function GI(r,t){var e=N_(r,t),n=F_(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=xc(i),u=n[Tc(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function HI(r){return{seriesType:r,plan:hc(),reset:function(t){if(z_(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Wn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=VI(i,a),d=G_(t),y=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),g=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=d&&vr(w*3),x=d&&l&&vr(w*3),T=d&&vr(w),M=n.master.getRect(),D=v?M.width:M.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var E=I.get(h?p:o,C),R=I.get(s,C),P=c,B=void 0;h&&(B=+E-I.get(o,C));var k=void 0,O=void 0,Q=void 0,tt=void 0;if(v){var H=n.dataToPoint([E,R]);if(h){var N=n.dataToPoint([B,R]);P=N[0]}k=P,O=H[1]+m,Q=H[0]-P,tt=g,Math.abs(Q)>>1;r[i][1]i&&(this._approxInterval=i);var s=ko.length,l=Math.min($I(ko,this._approxInterval,0,s),s-1);this._interval=ko[l][1],this._minLevelUnit=ko[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return St(e)?e:+Pe(e)},t.prototype.contain=function(e){return wl(this.parse(e),this._extent)},t.prototype.normalize=function(e){return xl(this.parse(e),this._extent)},t.prototype.scale=function(e){return Tl(e,this._extent)},t.type="time",t}(Ja),ko=[["second",jh],["minute",Jh],["hour",ya],["quarter-day",ya*6],["half-day",ya*12],["day",Ie*1.2],["half-week",Ie*3.5],["week",Ie*7],["month",Ie*31],["quarter",Ie*95],["half-year",ad/2],["year",ad]];function WI(r,t,e,n){var i=Pe(t),a=Pe(e),o=function(d){return sd(i,d,n)===sd(a,d,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function UI(r,t){return r/=Ie,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function YI(r){var t=30*Ie;return r/=t,r>6?6:r>3?3:r>2?2:1}function XI(r){return r/=ya,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function gp(r,t){return r/=t?Jh:jh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function qI(r){return Ph(r,!0)}function ZI(r,t,e){var n=new Date(r);switch(Si(t)){case"year":case"month":n[n0(e)](0);case"day":n[i0(e)](1);case"hour":n[a0(e)](0);case"minute":n[o0(e)](0);case"second":n[s0(e)](0),n[l0(e)](0)}return n.getTime()}function KI(r,t,e,n){var i=1e4,a=e0,o=0;function s(D,C,I,L,E,R,P){for(var B=new Date(C),k=C,O=B[L]();k1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(p),h>_||r===a[c]))break}f=[]}}}for(var S=At(Z(u,function(D){return At(D,function(C){return C.value>=n[0]&&C.value<=n[1]&&!C.notAdd})}),function(D){return D.length>0}),w=[],b=S.length-1,c=0;c0;)a*=10;var s=[Bt(t2(n[0]/a)*a),Bt(JI(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ba.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Ne(e)/Ne(this.base),wl(e,this._extent)},t.prototype.normalize=function(e){return e=Ne(e)/Ne(this.base),xl(e,this._extent)},t.prototype.scale=function(e){return e=Tl(e,this._extent),Oo(this.base,e)},t.type="log",t}(wr),V_=Cc.prototype;V_.getMinorTicks=ba.getMinorTicks;V_.getLabel=ba.getLabel;function Bo(r,t){return jI(r,je(t))}wr.registerClass(Cc);const e2=Cc;var r2=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[i2[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=n2[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),n2={min:"_determinedMin",max:"_determinedMax"},i2={min:"_dataMin",max:"_dataMax"};function a2(r,t,e){var n=r.rawExtentInfo;return n||(n=new r2(r,t,e),r.rawExtentInfo=n,n)}function No(r,t){return t==null?null:Ta(t)?NaN:r.parse(t)}function $_(r,t){var e=r.type,n=a2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=N_("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=F_(s),f=o2(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function o2(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=zI(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function Zf(r,t){var e=t,n=$_(r,e),i=n.extent,a=e.get("splitNumber");r instanceof e2&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function W_(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new k_({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new QI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wr.getClass(t)||Ja)}}function s2(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function to(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):K(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):it(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Mc(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Mc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function l2(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof k_?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=to(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f=0||(mp.push(r),it(r)&&(r={install:r}),r.install(y2))}var m2=1e-8;function _p(r,t){return Math.abs(r-t)i&&(n=o,i=l)}if(n)return S2(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?bp(s.exterior,i,a,e):A(s.points,function(l){bp(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ft(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function Tp(r,t){return r=w2(r),Z(At(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new wp(o[0],o.slice(1)));break;case"MultiPolygon":A(i.coordinates,function(l){l[0]&&a.push(new wp(l[0],l.slice(1)))});break;case"LineString":a.push(new xp([i.coordinates]));break;case"MultiLineString":a.push(new xp(i.coordinates))}var s=new b2(n[t||"name"],a,n.cp);return s.properties=n,s})}const x2=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ox,asc:rx,getPercentWithPrecision:nx,getPixelPrecision:Fy,getPrecision:je,getPrecisionSafe:Ny,isNumeric:Gy,isRadianAroundZero:Ia,linearMap:yf,nice:Ph,numericToNumber:gr,parseDate:Pe,quantile:lx,quantity:zy,quantityExponent:Ws,reformIntervals:ux,remRadian:Lh,round:Bt},Symbol.toStringTag,{value:"Module"})),T2=Object.freeze(Object.defineProperty({__proto__:null,format:Qa,parse:Pe},Symbol.toStringTag,{value:"Module"})),C2=Object.freeze(Object.defineProperty({__proto__:null,Arc:tl,BezierCurve:Vh,BoundingRect:ft,Circle:Qs,CompoundPath:km,Ellipse:Gh,Group:Wt,Image:Zr,IncrementalDisplayable:Nm,Line:Ur,LinearGradient:$h,Polygon:js,Polyline:Js,RadialGradient:Bm,Rect:Ft,Ring:Hh,Sector:Wr,Text:Ut,clipPointsByRect:Xm,clipRectByRect:qm,createIcon:nl,extendPath:Hm,extendShape:Gm,getShapeClass:Vm,getTransform:Um,initProps:ve,makeImage:Uh,makePath:rl,mergePath:Wm,registerShape:ke,resizePath:Yh,updateProps:Yt},Symbol.toStringTag,{value:"Module"})),M2=Object.freeze(Object.defineProperty({__proto__:null,addCommas:ec,capitalFirst:nM,encodeHTML:ge,formatTime:rM,formatTpl:nc,getTextRect:eM,getTooltipMarker:u0,normalizeCssArray:ja,toCamelCase:rc,truncateText:Ky},Symbol.toStringTag,{value:"Module"})),D2=Object.freeze(Object.defineProperty({__proto__:null,bind:Dt,clone:ct,curry:Ot,defaults:st,each:A,extend:z,filter:At,indexOf:yt,inherits:mh,isArray:V,isFunction:it,isObject:J,isString:K,map:Z,merge:gt,reduce:rr},Symbol.toStringTag,{value:"Module"}));var Ga=It();function A2(r){return r.type==="category"?L2(r):R2(r)}function I2(r,t){return r.type==="category"?P2(r,t):{ticks:Z(r.scale.getTicks(),function(e){return e.value})}}function L2(r){var t=r.getLabelModel(),e=Z_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Z_(r,t){var e=K_(r,"labels"),n=Dc(t),i=Q_(e,n);if(i)return i;var a,o;return it(n)?a=t1(r,n):(o=n==="auto"?E2(r):n,a=J_(r,o)),j_(e,n,{labels:a,labelCategoryInterval:o})}function P2(r,t){var e=K_(r,"ticks"),n=Dc(t),i=Q_(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),it(n))a=t1(r,n,!0);else if(n==="auto"){var s=Z_(r,r.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=J_(r,o,!0);return j_(e,n,{ticks:a,tickCategoryInterval:o})}function R2(r){var t=r.scale.getTicks(),e=to(r);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function K_(r,t){return Ga(r)[t]||(Ga(r)[t]=[])}function Q_(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var d=0,y=0,p=Dh(e({value:l}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,v=Math.max(v,d,7),c=Math.max(c,y,7)}var g=v/f,m=c/h;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),S=Ga(r.model),w=r.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function O2(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function J_(r,t,e){var n=to(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=U_(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&y(a[0]);for(var d=u;d<=a[1];d+=l)y(d);c&&d-l!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(e?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p})}return s}function t1(r,t,e){var n=r.scale,i=to(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Cp=[0,1],B2=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Fy(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Mp(n,i.count())),yf(t,Cp,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Mp(n,i.count()));var a=yf(t,n,Cp,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=I2(this,e),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return N2(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return A2(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return k2(this)},r}();function Mp(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function N2(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=Bt(c),d=Bt(d),h?c>d:ci&&(i+=Ji);var c=Math.atan2(s,o);if(c<0&&(c+=Ji),c>=n&&c<=i||c+Ji>=n&&c+Ji<=i)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(n)+r,y=e*Math.sin(n)+t,p=e*Math.cos(i)+r,g=e*Math.sin(i)+t,m=(d-o)*(d-o)+(y-s)*(y-s),_=(p-o)*(p-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=y,Math.sqrt(m)):(l[0]=p,l[1]=g,Math.sqrt(_))}function Kf(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var y=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((y-i)*(y-i)+(p-a)*(p-a))}function r1(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var He=[];function U2(r,t,e){var n=r1(t.x,t.y,t.width,t.height,r.x,r.y,He);return e.set(He[0],He[1]),n}function Y2(r,t,e){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=t.data,h=r.x,v=r.y,c=0;c0){t=t/180*Math.PI,In.fromArray(r[0]),Ht.fromArray(r[1]),pe.fromArray(r[2]),nt.sub(pi,In,Ht),nt.sub(ta,pe,Ht);var e=pi.len(),n=ta.len();if(!(e<.001||n<.001)){pi.scale(1/e),ta.scale(1/n);var i=pi.dot(ta),a=Math.cos(t);if(a1&&nt.copy(Sn,pe),Sn.toArray(r[1])}}}}function Ip(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function q2(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=hs(n[0],n[1]),a=hs(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=ca([],n[1],n[0],o/i),l=ca([],n[1],n[2],o/a),u=ca([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&w(-f/o,0,o);var y=r[0],p=r[o-1],g,m;_(),g<0&&b(-g,.8),m<0&&b(m,.8),_(),S(g,m,1),S(m,g,-1),_(),g<0&&x(-g),m<0&&x(m);function _(){g=y.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function S(T,M,D){if(T<0){var C=Math.min(M,-T);if(C>0){w(C*D,0,o);var I=C+T;I<0&&b(-I*D,1)}else b(-T*D,1)}}function w(T,M,D){T!==0&&(u=!0);for(var C=M;C0)for(var I=0;I0;I--){var P=D[I-1]*R;w(-P,I,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),C=0;C0?w(D,0,C+1):w(-D,o-C-1,o),T-=D,T<=0)return}return u}function Q2(r,t,e,n){return i1(r,"x","width",t,e,n)}function j2(r,t,e,n){return i1(r,"y","height",t,e,n)}function a1(r){var t=[];r.sort(function(y,p){return p.priority-y.priority});var e=new ft(0,0,0,0);function n(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),yt(v,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Yt(n,u,e,l)}else if(n.attr(u),!Ri(n).valueAnimation){var h=lt(n.style.opacity,1);n.style.opacity=0,ve(n,{style:{opacity:h}},e,l)}if(a.oldLayout=u,n.states.select){var c=a.oldLayoutSelect={};Fo(c,u,zo),Fo(c,n.states.select,zo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Fo(d,u,zo),Fo(d,n.states.emphasis,zo)}OC(n,l,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=eL(i),o=a.oldLayout,y={points:i.shape.points};o?(i.attr({shape:o}),Yt(i,{shape:y},e)):(i.setShape(y),i.style.strokePercent=0,ve(i,{style:{strokePercent:1}},e)),a.oldLayout=y}},r}();const nL=rL;var Eu=It();function iL(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Eu(e).labelManager;i||(i=Eu(e).labelManager=new nL),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Eu(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}const aL=Object.freeze(Object.defineProperty({__proto__:null,Axis:e1,ChartView:Le,ComponentModel:bt,ComponentView:be,List:D_,Model:Gt,PRIORITY:s_,SeriesModel:ar,color:_w,connect:QA,dataTool:iI,dependencies:EA,disConnect:jA,disconnect:p_,dispose:JA,env:ot,extendChartView:H2,extendComponentModel:F2,extendComponentView:z2,extendSeriesModel:G2,format:M2,getCoordinateSystemDimensions:eI,getInstanceByDom:yc,getInstanceById:tI,getMap:nI,graphic:C2,helper:g2,init:KA,innerDrawElementOnCanvas:vc,matrix:$b,number:x2,parseGeoJSON:Tp,parseGeoJson:Tp,registerAction:Xn,registerCoordinateSystem:m_,registerLayout:__,registerLoading:wc,registerLocale:Qh,registerMap:S_,registerPostInit:g_,registerPostUpdate:y_,registerPreprocessor:_c,registerProcessor:Sc,registerTheme:mc,registerTransform:b_,registerUpdateLifecycle:Sl,registerVisual:Kr,setCanvasCreator:rI,setPlatformAPI:Kg,throttle:ml,time:T2,use:_r,util:D2,vector:Cb,version:RA,zrUtil:pb,zrender:tx},Symbol.toStringTag,{value:"Module"}));var oL=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Wt,i=$n("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=$n(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ar);const sL=oL;function Ac(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ci(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var lL=function(r){G(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=$n(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=uL,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){_s(this.childAt(0))},t.prototype.downplay=function(){Ss(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Yt(v,c,s,n),zm(v)}if(this._updateCommon(e,n,l,i,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,ve(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,y,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,y=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),y=sl(m),p=_.getShallow("scale"),g=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Z0(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var b=e.getItemVisual(n,"style"),x=b.fill;if(s instanceof Zr){var T=s.style;s.useStyle(z({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(z({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(n,"liftZ"),D=this._z2;M!=null?D==null&&(this._z2=s.z2,s.z2+=M):D!=null&&(s.z2=D,this._z2=null);var C=o&&o.useNameLabel;ol(s,y,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:x,defaultOpacity:b.opacity});function I(R){return C?e.getName(R):Ac(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var E=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),ws(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=pt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ts(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ts(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return vA(e.getItemVisual(n,"symbolSize"))},t}(Wt);function uL(r,t){this.parent.drift(r,t)}const Ic=lL;function ku(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Pp(r){return r!=null&&!J(r)&&(r={isIgnore:r}),r||{}}function Rp(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:sl(t),cursorStyle:t.get("cursor")}}var fL=function(){function r(t){this.group=new Wt,this._SymbolCtor=t||Ic}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Pp(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Rp(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(ku(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!ku(t,d,h,e)){n.remove(c);return}var y=t.getItemVisual(h,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==y)n.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var g={x:d[0],y:d[1]};s?c.attr(g):Yt(c,g,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Rp(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Pp(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function l1(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function vL(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function dL(r,t,e,n,i,a,o,s){for(var l=vL(r,t),u=[],f=[],h=[],v=[],c=[],d=[],y=[],p=s1(i,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||y<0)break;if(Bn(g,m)){if(l){y+=a;continue}break}if(y===e)r[a>0?"moveTo":"lineTo"](g,m),h=g,v=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){y+=a;continue}if(o>0){for(var w=y+a,b=t[w*2],x=t[w*2+1];b===g&&x===m&&p=n||Bn(b,x))c=g,d=m;else{D=b-u,C=x-f;var E=g-u,R=b-g,P=m-f,B=x-m,k=void 0,O=void 0;if(s==="x"){k=Math.abs(E),O=Math.abs(R);var Q=D>0?1:-1;c=g-Q*k*o,d=m,I=g+Q*O*o,L=m}else if(s==="y"){k=Math.abs(P),O=Math.abs(B);var tt=C>0?1:-1;c=g,d=m-tt*k*o,I=g,L=m+tt*O*o}else k=Math.sqrt(E*E+P*P),O=Math.sqrt(R*R+B*B),M=O/(O+k),c=g-D*o*(1-M),d=m-C*o*(1-M),I=g+D*o*M,L=m+C*o*M,I=Ar(I,Ir(b,g)),L=Ar(L,Ir(x,m)),I=Ir(I,Ar(b,g)),L=Ir(L,Ar(x,m)),D=I-g,C=L-m,c=g-D*k/O,d=m-C*k/O,c=Ar(c,Ir(u,g)),d=Ar(d,Ir(f,m)),c=Ir(c,Ar(u,g)),d=Ir(d,Ar(f,m)),D=g-c,C=m-d,I=g+D*O/k,L=m+C*O/k}r.bezierCurveTo(h,v,c,d,g,m),h=I,v=L}else r.lineTo(g,m)}u=g,f=m,y+=a}return p}var u1=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),pL=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new u1},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Bn(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[e,S]:[S,e]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],y=a[h++],p=a[h++],g=a[h++],m=a[h++];var w=u?ds(s,c,y,g,e,f):ds(l,d,p,m,e,f);if(w>0)for(var b=0;b=0){var S=u?zt(l,d,p,m,x):zt(s,c,y,g,x);return u?[e,S]:[S,e]}}s=g,l=m;break}}},t}(ht),gL=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(u1),yL=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new gL},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Bn(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function bL(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=SL(u,i==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,y=v[0].coord-d,p=v[c-1].coord+d,g=p-y;if(g<.001)return"transparent";A(v,function(_){_.offset=(_.coord-y)/g}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new $h(0,0,0,0,v,!0);return m[i]=y,m[i+"2"]=p,m}}}function wL(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&xL(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function xL(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function TL(r,t){return isNaN(r)||isNaN(t)}function CL(r){for(var t=r.length/2;t>0&&TL(r[t*2-2],r[t*2-1]);t--);return t-1}function Np(r,t){return[r[t*2],r[t*2+1]]}function ML(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function c1(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Q=y.getState("emphasis").style;Q.lineWidth=+y.style.lineWidth+1}pt(y).seriesIndex=e.seriesIndex,ws(y,B,k,O);var tt=Bp(e.get("smooth")),H=e.get("smoothMonotone");if(y.setShape({smooth:tt,smoothMonotone:H,connectNulls:T}),p){var N=l.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(st(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),N&&(F=Bp(N.get("smooth"))),p.setShape({smooth:tt,stackedOnSmooth:F,smoothMonotone:H,connectNulls:T}),Tf(p,e,"areaStyle"),pt(p).seriesIndex=e.seriesIndex,ws(p,B,k,O)}var j=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=h,this._step=C,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,y),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){pt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Hn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel")||0,c=e.get("z")||0;u=new Ic(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Le.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Hn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Le.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;zv(this._polyline,e),n&&zv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new pL({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yL({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");it(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=it(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var y=c;if(y){var p=[c.x,c.y],g=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(p);a?(g=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(g=S.r0,m=S.r,_=w[0])}else{var b=i;a?(g=b.x,m=b.x+b.width,_=c.x):(g=b.y+b.height,m=b.y,_=c.y)}var x=m===g?0:(_-g)/(m-g);l&&(x=1-x);var T=it(h)?h(d):f*x+v,M=y.getSymbolPath(),D=M.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(c1(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ut({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=CL(l);f>=0&&(ol(s,sl(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?o1(o,c):Ac(o,h)},enableTextSetter:!0},DL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?y:0)*(m?-1:1),b=(g?0:-y)*(m?-1:1),x=g?"x":"y",T=ML(h,S,x),M=T.range,D=M[1]-M[0],C=void 0;if(D>=1){if(D>1&&!c){var I=Np(h,M[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(C=v.getRawValue(M[0]))}else{var I=f.getPointOn(S,x);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=v.getRawValue(M[0]),E=v.getRawValue(M[1]);o&&(C=Yy(i,d,L,E,T.t))}a.lastFrameIndex=M[0]}else{var R=e===1||a.lastFrameIndex>0?M[0]:0,I=Np(h,R);o&&(C=v.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+b})}if(o){var P=Ri(u);typeof P.setLabelText=="function"&&P.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=dL(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,y=v.next,p=v.stackedOnNext;if(o&&(c=Lr(v.current,i,o,l),d=Lr(v.stackedOnCurrent,i,o,l),y=Lr(v.next,i,o,l),p=Lr(v.stackedOnNext,i,o,l)),Op(c,y)>3e3||f&&Op(d,p)>3e3){u.stopAnimation(),u.setShape({points:y}),f&&(f.stopAnimation(),f.setShape({points:y,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var g={shape:{points:y}};v.current!==c&&(g.shape.__points=v.next),u.stopAnimation(),Yt(u,g,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Yt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var d=void 0;K(a)?d=PL[a]:it(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,RL))}}}}}function EL(r){r.registerChartView(IL),r.registerSeriesModel(sL),r.registerLayout(LL("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,v1("line"))}var d1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),y=o[c],p=n[c]==="x1"||n[c]==="y1";if(p&&(y+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[p?1:0]);return}for(var g=void 0,m=void 0,_=1,S=0;Sy){m=(w+g)/2;break}S===1&&(_=b-d[0].tickValue)}m==null&&(g?g&&(m=d[d.length-1].coord):m=d[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ar);ar.registerClass(d1);const Fp=d1;var kL=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return bl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Jm(Fp.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Fp);const OL=kL;var BL=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),NL=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new BL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Af(a,e,pt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Le),Gp={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Bu(t.x,r.x),s=Nu(t.x+t.width,i),l=Bu(t.y,r.y),u=Nu(t.y+t.height,a),f=si?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Nu(t.r,r.r),a=Bu(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Hp={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Ft({shape:z({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?zp:Wr,f=new u({shape:n,z2:1});f.name="item";var h=p1(i);if(f.calculateTextPosition=FL(h,{isRoundCap:u===zp}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Yt:ve)(f,{shape:d},a)}return f}};function $L(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Vp(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Yt:ve)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?Yt:ve)(e,{shape:u},f,i)}function $p(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function YL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function p1(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Up(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=GL(n.getModel("itemStyle"),f,!0);z(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=sl(n);ol(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Ac(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var y=r.getTextContent();if(s&&y){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,zL(r,p==="outside"?c:p,p1(o),n.get(["label","rotate"]))}kC(y,d,a.getRawValue(e),function(m){return o1(t,m)});var g=n.getModel(["emphasis"]);ws(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Tf(r,n),YL(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function XL(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var qL=function(){function r(){}return r}(),Yp=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new qL},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function ZL(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function g1(r,t,e){if(Lc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function KL(r,t,e){var n=r.type==="polar"?Wr:Ft;return new n({shape:g1(t,e,r),silent:!0,z2:0})}const QL=VL;function jL(r){r.registerChartView(QL),r.registerSeriesModel(OL),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ot(GI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,v1("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var JL=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(bt);const tP=JL;var jf=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$e).models[0]},t.type="cartesian2dAxis",t}(bt);Ee(jf,Y_);var y1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},eP=gt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},y1),Pc=gt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},y1),rP=gt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pc),nP=st({logBase:10},Pc);const iP={category:eP,value:Pc,time:rP,log:nP};var aP={value:1,category:1,time:1,log:1};function Zp(r,t,e,n){A(aP,function(i,a){var o=gt(gt({},iP[a],!0),n,!0),s=function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Oa(this),c=v?vl(f):{},d=h.getTheme();gt(f,d.get(a+"Axis")),gt(f,this.getDefaultOption()),f.type=Kp(f),v&&Ti(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Xf.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Kp)}function Kp(r){return r.type||(r.data?"category":"value")}var oP=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),At(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const sP=oP;var Jf=["x","y"];function Qp(r){return r.type==="interval"||r.type==="time"}var lP=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Jf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Qp(e)||!Qp(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Li([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ft(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ie(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return ie(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new ft(i,a,o,s)},t}(sP),uP=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(e1);const fP=uP;function th(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),wi(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function jp(r){return r.get("coordinateSystem")==="cartesian2d"}function Jp(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,$e).models[0];t[n]=a}),t}var Fu=Math.log;function hP(r,t,e){var n=Ja.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=$_(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Fu(r.base);u=[Fu(u[0])/v,Fu(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=n.getInterval.call(r),y=u[0],p=u[1];if(f&&h)d=(p-y)/o;else if(f)for(p=u[0]+d*o;pu[0]&&isFinite(y)&&isFinite(u[0]);)d=Iu(d),y=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=Iu(d));var m=d*o;p=Math.ceil(u[1]/d)*d,y=Bt(p-m),y<0&&u[0]>=0?(y=0,p=Bt(m)):p>0&&u[1]<=0&&(p=0,y=-Bt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,y+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,y+d,p-d)}var cP=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Jf,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ct(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,y=c.scale;qf(y)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(Zf(y,d),qf(y)&&(s=c))}f.length&&(s||(s=f.pop(),Zf(s.scale,s.model)),A(f,function(p){hP(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){tg(n,"y",o,a)}),A(n.y,function(o){tg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=xi(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=l2(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),vP(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}J(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Ia(i-Fr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),rg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ie(s,s,o),ie(l,l,o));var f=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ur({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ra(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);K(v)&&(v=[v,v]),(K(c)||St(c))&&(c=[c,c]);var d=Z0(t.get(["axisLine","symbolOffset"])||0,c),y=c[0],p=c[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(v[m]!=="none"&&v[m]!=null){var _=$n(v[m],-y/2,-p/2,y,p,f.stroke,!0),S=g.r+g.offset,w=u?l:s;_.attr({rotation:g.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=yP(e,n,t,r),a=_P(e,n,t,r);if(gP(t,a,i),mP(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=n1(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));a1(o)}},axisName:function(r,t,e,n){var i=wi(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,ig(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*Fr/180);var d;ig(a)?v=Nn.innerTextLayout(r.rotation,c??r.rotation,o):(v=pP(r.rotation,a,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=wi(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ut({x:h[0],y:h[1],rotation:v.rotation,silent:Nn.isLabelSilent(t),style:mr(s,{text:i,font:y,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(qh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Nn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,pt(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function pP(r,t,e,n){var i=Lh(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ia(i-Fr/2)?(o=l?"bottom":"top",a="center"):Ia(i-Fr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iFr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function gP(r,t,e){if(!U_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];n===!1?(xe(a),xe(u)):ng(a,o)&&(n?(xe(o),xe(f)):(xe(a),xe(u))),i===!1?(xe(s),xe(h)):ng(l,s)&&(i?(xe(l),xe(v)):(xe(s),xe(h)))}}function xe(r){r&&(r.ignore=!0)}function ng(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Ya([]);return $s(i,i,-r.rotation),e.applyTransform(zr([],i,r.getLocalTransform())),n.applyTransform(zr([],i,t.getLocalTransform())),e.intersect(n)}}function ig(r){return r==="middle"||r==="center"}function m1(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function CP(r){var t=Rc(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=eh(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Rc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Tn(t).pointerEl=new LC[a.type](sg(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Tn(t).labelEl=new Ut(sg(e.label));t.add(a),ug(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Tn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Tn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),ug(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=nl(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){hy(u.event)},onmousedown:Hu(this._onHandleDragMove,this,0,0),drift:Hu(this._onHandleDragMove,this),ondragend:Hu(this._onHandleDragEnd,this)}),n.add(i)),fg(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,H0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){lg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Vu(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Vu(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Vu(i)),Tn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Nf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function lg(r,t,e,n){x1(Tn(e).lastProp,n)||(Tn(e).lastProp=n,t?Yt(e,n,r):(e.stopAnimation(),e.attr(n)))}function x1(r,t){if(J(r)&&J(t)){var e=!0;return A(t,function(n,i){e=e&&x1(r[i],n)}),!!e}else return r===t}function ug(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Vu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function fg(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const NP=BP;function FP(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function zP(r,t,e,n,i){var a=e.get("value"),o=T1(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ja(s.get("padding")||0),u=s.getFont(),f=Dh(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var y=i.verticalAlign;y==="bottom"&&(h[1]-=c),y==="middle"&&(h[1]-=c/2),GP(h,v,c,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:mr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function GP(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function T1(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Mc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),K(o)?a=o.replace("{value}",a):it(o)&&(a=o(s))}return a}function C1(r,t,e){var n=Gn();return $s(n,n,e.rotation),cs(n,n,e.position),Xh([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function HP(r,t,e,n,i,a){var o=_1.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),zP(t,n,i,a,{position:C1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function VP(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function $P(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var WP=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=hg(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=FP(a),c=UP[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=th(l.model,i);HP(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=th(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=C1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=hg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(NP);function hg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var UP={line:function(r,t,e){var n=VP([t,e[0]],[t,e[1]],cg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:$P([t-n/2,e[0]],[n,i],cg(r))}}};function cg(r){return r.dim==="x"?0:1}const YP=WP;var XP=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(bt);const qP=XP;var dr=It(),ZP=A;function M1(r,t,e){if(!ot.node){var n=t.getZr();dr(n).records||(dr(n).records={}),KP(n,t);var i=dr(n).records[r]||(dr(n).records[r]={});i.handler=e}}function KP(r,t){if(dr(r).initialized)return;dr(r).initialized=!0,e("click",Ot(vg,"click")),e("mousemove",Ot(vg,"mousemove")),e("globalout",jP);function e(n,i){r.on(n,function(a){var o=JP(t);ZP(dr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),QP(o.pendings,t)})}}function QP(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function jP(r,t,e){r.handler("leave",null,e)}function vg(r,t,e,n){t.handler(r,e,n)}function JP(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function nh(r,t){if(!ot.node){var e=t.getZr(),n=(dr(e).records||{})[r];n&&(dr(e).records[r]=null)}}var tR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";M1("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){nh("axisPointer",n)},t.prototype.dispose=function(e,n){nh("axisPointer",n)},t.type="axisPointer",t}(be);const eR=tR;function D1(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Hn(a,r);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),y=[];y[c]=a.get(d,o),y[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(y)||[]}else e=l.dataToPoint(a.getValues(Z(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var dg=It();function rR(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||Dt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ss(i)&&(i=D1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ss(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||ss(i),v={},c={},d={list:[],map:{}},y={showPointer:Ot(iR,c),showTooltip:Ot(aR,d)};A(s.coordSysMap,function(g,m){var _=l||g.containPoint(i);A(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=uR(u,S);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&pg(S,T,y,!1,v)}})});var p={};return A(f,function(g,m){var _=g.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,w){var b=c[w];if(S!==g&&b){var x=b.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,gg(S),gg(g)))),p[g.key]=x}})}),A(p,function(g,m){pg(f[m],g,y,!0,v)}),oR(c,f,v),sR(d,i,r,o),lR(f,o,e),v}}function pg(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=nR(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&z(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function nR(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,y=Math.abs(d);y<=o&&((y=0&&s<0)&&(o=y,s=d,i=h,a.length=0),A(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function iR(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function aR(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ha(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function oR(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function sR(r,t,e,n){if(ss(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function lR(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=dg(n)[i]||{},o=dg(n)[i]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function uR(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function gg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ss(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function A1(r){S1.registerAxisPointerClass("CartesianAxisPointer",YP),r.registerComponentModel(qP),r.registerComponentView(eR),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!V(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=SP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},rR)}function fR(r){_r(OP),_r(A1)}function hR(r,t){var e=ja(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Ft({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var cR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(bt);const vR=cR;function I1(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function L1(r){if(ot.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function SR(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=ot.transformSupported?","+Ec+n:",left"+n+",top"+n),gR+":"+i}function yg(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ot.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ot.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Ec+":"+o+";":[["top",0],["left",0],[P1,o]]}function bR(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function wR(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=z0(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(SR(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(c){var d="border-"+c,y=rc(d),p=r.get(y);p!=null&&n.push(d+":"+p+(c==="color"?"":"px"))}),n.push(bR(f)),h!=null&&n.push("padding:"+ja(h).join("px ")+"px"),n.join(";")+";"}function mg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Lb(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var xR=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;mg(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Ce(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=pR(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=yR+wR(t,!this._firstShow,this._longHide)+yg(a[0],a[1],!0)+("border-color:"+Vn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(K(a)&&n.get("trigger")==="item"&&!I1(n)&&(s=_R(n,i,a)),K(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||ot.node||!i.getDom())){var o=bg(a,i);this._ticket="";var s=a.dataByCoordSys,l=RR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=DR;f.x=a.x,f.y=a.y,f.update(),pt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=D1(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(bg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ea([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;ua(i,function(u){if(pt(u).dataIndex!=null)return s=u,!0;if(pt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=Dt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ea([n.tooltipOption],a),l=this._renderMode,u=[],f=Na("section",{blocks:[],noHeader:!0}),h=[],v=new yu;A(e,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=T1(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Na("section",{header:b,noHeader:!Ve(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,C=M.getDataParams(D);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=Mc(S.axis,{value:w}),C.axisValueLabel=b,C.marker=v.makeTooltipMarker("item",Vn(C.color),l);var I=Dd(M.formatTooltip(D,!0,null)),L=I.frag;if(L){var E=ea([M],a).get("valueFormatter");x.blocks.push(E?z({valueFormatter:E},L):L)}I.text&&h.push(I.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),y=Ed(f,v,l,d,i.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var p=l==="richText"?` + +`:"
",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=pt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,y=ea([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),m=new yu;g.marker=m.makeTooltipMarker("item",Vn(g.color),c);var _=Dd(u.formatTooltip(f,!1,h)),S=y.get("order"),w=y.get("valueFormatter"),b=_.frag,x=b?Ed(w?z({valueFormatter:w},b):b,m,c,S,a.get("useUTC"),y.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,g,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=pt(n),o=a.tooltipConfig,s=o.option||{};if(K(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,v=ea(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",y=new yu;this._showOrMove(v,function(){var p=ct(v.get("formatterParams")||{});this._showTooltipContent(v,c,p,d,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),y=d.color;if(v)if(K(v)){var p=e.ecModel.get("useUTC"),g=V(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=v,m&&(c=Qa(g.axisValue,c,p)),c=nc(c,i,!0)}else if(it(v)){var _=Dt(function(S,w){S===this._ticket&&(h.setContent(w,f,e,y,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,e,y,l),h.show(e,y),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||V(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),it(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),V(n))i=$t(n[0],u),a=$t(n[1],f);else if(J(n)){var y=n;y.width=h[0],y.height=h[1];var p=xi(y,{width:u,height:f});i=p.x,a=p.y,v=null,c=null}else if(K(n)&&l){var g=PR(n,d,h,e.get("borderWidth"));i=g[0],a=g[1]}else{var g=IR(i,a,o,u,f,v?null:20,c?null:20);i=g[0],a=g[1]}if(v&&(i-=wg(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=wg(c)?h[1]/2:c==="bottom"?h[1]:0),I1(e)){var g=LR(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var d=h[c]||{},y=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&y.length===p.length,o&&A(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&A(v.seriesDataIndices,function(g){var m=g.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){ot.node||!n.getDom()||(Nf(this,"_updatePosition"),this._tooltipContent.dispose(),nh("itemTooltip",n))},t.type="tooltip",t}(be);function ea(r,t,e){var n=t.ecModel,i;e?(i=new Gt(e,n,n),i=new Gt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Gt&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(i=new Gt(o,i,n)))}return i}function bg(r,t){return r.dispatchAction||Dt(t.dispatchAction,t)}function IR(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function LR(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function PR(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function wg(r){return r==="center"||r==="middle"}function RR(r,t,e){var n=Eh(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ka(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=pt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const ER=AR;function kR(r){_r(A1),r.registerComponentModel(vR),r.registerComponentView(ER),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ne),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ne)}var OR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(bt),BR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=lt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ut({style:mr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new Ut({style:mr(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),y=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,c.silent=!y&&!p,d&&f.on("click",function(){ud(d,"_"+e.get("target"))}),y&&c.on("click",function(){ud(y,"_"+e.get("subtarget"))}),pt(f).eventData=pt(c).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var g=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=xi(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),g=a.getBoundingRect();var w=_.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var x=new Ft({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(be);function NR(r){r.registerComponentModel(OR),r.registerComponentView(BR)}var FR=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},zR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),V(n)&&A(n,function(a,o){K(a)&&(a={type:a}),n[o]=gt(a,FR(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(bt);const ih=zR;var li=Ot,ah=A,$o=Wt,GR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new $o),this.group.add(this._selectorGroup=new $o),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),c=xi(f,h,v),d=this.layoutInner(e,o,c,a,l,u),y=xi(st({width:d.width,height:d.height},f),h,v);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hR(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=at(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),ah(n.getData(),function(c,d){var y=c.get("name");if(!this.newlineDisabled&&(y===""||y===` +`)){var p=new $o;p.newline=!0,u.add(p);return}var g=i.getSeriesByName(y)[0];if(!f.get(y))if(g){var m=g.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(g,y,d,c,n,e,_,w,S,h,a);b.on("click",li(xg,y,null,a,v)).on("mouseover",li(oh,g.name,null,a,v)).on("mouseout",li(sh,g.name,null,a,v)),f.set(y,!0)}else i.eachRawSeries(function(x){if(!f.get(y)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(y))return;var M=T.indexOfName(y),D=T.getItemVisual(M,"style"),C=T.getItemVisual(M,"legendIcon"),I=_e(D.fill);I&&I[3]===0&&(I[3]=.2,D=z(z({},D),{fill:qr(I,"rgba")}));var L=this._createItem(x,y,d,c,n,e,{},D,C,h,a);L.on("click",li(xg,null,y,a,v)).on("mouseover",li(oh,null,y,a,v)).on("mouseout",li(sh,null,y,a,v)),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();ah(e,function(u){var f=u.type,h=new Ut({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);ol(h,{normal:v,emphasis:c},{defaultText:u.title}),bs(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=HR(f,a,l,u,c,p,v),w=new $o,b=a.getModel("textStyle");if(it(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;w.add(VR({itemWidth:d,itemHeight:y,icon:f,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,D=o.get("formatter"),C=n;K(D)&&D?C=D.replace("{name}",n??""):it(D)&&(C=D(n));var I=p?b.getTextColor():a.get("inactiveColor");w.add(new Ut({style:mr(b,{text:C,x:T,y:y/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new Ft({shape:w.getBoundingRect(),invisible:!0}),E=a.getModel("tooltip");return E.get("show")&&qh({el:L,componentModel:o,itemName:n,itemTooltipOption:E.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),bs(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ma(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ma("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),y=e.getOrient().index,p=y===0?"width":"height",g=y===0?"height":"width",m=y===0?"y":"x";s==="end"?c[y]+=f[p]+d:h[y]+=v[p]+d,c[1-y]+=f[g]/2-v[g]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[g]=Math.max(f[g],v[g]),_[m]=Math.min(0,v[m]+c[1-y]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(be);function HR(r,t,e,n,i,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),ah(p,function(m,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Vf(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),y=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&y?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function VR(r){var t=r.icon||"roundRect",e=$n(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function xg(r,t,e,n){sh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),oh(r,t,e,n)}function E1(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-c.x,-c.y];n||(p[a]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=lt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:g[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),v.setPosition(m);var w={x:0,y:0};if(w[o]=y?i[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],y){var b={x:0,y:0};b[o]=Math.max(i[o]-d[o]-_,0),b[s]=w[s],h.setClipPath(new Ft({shape:b})),h.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&Yt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},y?e:null),this._updatePageInfoView(e,x),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",K(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=$u[o],l=Wu[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var y=S(h);d.contentPosition[o]=-y.s;for(var p=u+1,g=y,m=y,_=null;p<=v;++p)_=S(f[p]),(!_&&m.e>g.s+a||_&&!w(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var p=u-1,g=y,m=y,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(m,_.s))&&g.i=x&&b.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t}(k1);const qR=XR;function ZR(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function KR(r){_r(O1),r.registerComponentModel(YR),r.registerComponentView(qR),ZR(r)}function QR(r){_r(O1),_r(KR)}var Mg={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jR=function(){function r(t){var e=this._condVal=K(t)?new RegExp(t):ty(t)?t:null;if(e==null){var n="";dt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return K(e)?this._condVal.test(t):St(e)?this._condVal.test(t+""):!1},r}(),JR=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),tE=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[L,E]}function f(L,E,R,P){gi(L,R)&&gi(E,P)||i.push(L,E,R,P,R,P)}function h(L,E,R,P,B,k){var O=Math.abs(E-L),Q=Math.tan(O/4)*4/3,tt=ET:C2&&n.push(i),n}function uh(r,t,e,n,i,a,o,s,l,u){if(gi(r,e)&&gi(t,n)&&gi(i,o)&&gi(a,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-t,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var y=e-r,p=n-t,g=i-o,m=a-s,_=y*y+p*p,S=g*g+m*m;if(_=0&&T=0){l.push(o,s);return}var M=[],D=[];Vr(r,e,i,o,.5,M),Vr(t,n,a,s,.5,D),uh(M[0],D[0],M[1],D[1],M[2],D[2],M[3],D[3],l,u),uh(M[4],D[4],M[5],D[5],M[6],D[6],M[7],D[7],l,u)}function dE(r,t){var e=lh(r),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),h=N1([l,u],f?0:1,t),v=(f?s:u)/h.length,c=0;ci,o=N1([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,v=0;v1?null:new nt(y*l+r,y*u+t)}function yE(r,t,e){var n=new nt;nt.sub(n,e,t),n.normalize();var i=new nt;nt.sub(i,r,t);var a=i.dot(n);return a}function ui(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function mE(r,t,e){for(var n=r.length,i=[],a=0;ao?(u.x=f.x=s+a/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+a),mE(t,u,f)}function Bs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Bs(r,a[0],i,n),Bs(r,a[1],e-i,n)}return n}function _E(r,t){for(var e=[],n=0;n0)for(var w=n/e,b=-n/2;b<=n/2;b+=w){for(var x=Math.sin(b),T=Math.cos(b),M=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function zs(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=Z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=Z(a,function(s,l){return{cp:s,z:AE(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function G1(r){return wE(r.path,r.count)}function fh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function IE(r,t,e){var n=[];function i(w){for(var b=0;b=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var PE={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;kg(r)&&(u=r,f=t),kg(t)&&(u=t,f=r);function h(g,m,_,S,w){var b=g.many,x=g.one;if(b.length===1&&!w){var T=m?b[0]:x,M=m?x:b[0];if(Ns(T))h({many:[T],one:M},!0,_,S,!0);else{var D=s?st({delay:s(_,S)},l):l;Oc(T,M,D),a(T,M,T,M,D)}}else for(var C=st({dividePath:PE[e],individualDelay:s&&function(B,k,O,Q){return s(B+_,S)}},l),I=m?IE(b,x,C):LE(x,b,C),L=I.fromIndividuals,E=I.toIndividuals,R=L.length,P=0;Pt.length,c=u?Og(f,u):Og(v?t:r,[v?r:t]),d=0,y=0;yH1))for(var i=n.getIndices(),a=EE(n),o=0;o0&&S.group.traverse(function(b){b instanceof ht&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function Ng(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Fg(r){return V(r)?r.sort().join(","):r}function Er(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function BE(r,t){var e=at(),n=at(),i=at();return A(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=Ng(a),f=Fg(u);n.set(f,{dataGroupId:s,data:l}),V(u)&&A(u,function(h){i.set(h,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=Ng(a),u=Fg(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Er(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Er(s),data:s}]});else if(V(l)){var h=[];A(l,function(d){var y=n.get(d);y.data&&h.push({dataGroupId:y.dataGroupId,divide:Er(y.data),data:y.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Er(s)}]})}else{var v=i.get(l);if(v){var c=e.get(v.key);c||(c={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Er(v.data)}],newSeries:[]},e.set(v.key,c)),c.newSeries.push({dataGroupId:o,data:s,divide:Er(s)})}}}}),e}function zg(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Er(t.oldData[s]),dim:o.dimension})}),A(Nt(r.to),function(o){var s=zg(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Er(l),dim:o.dimension})}}),i.length>0&&a.length>0&&V1(i,a,n)}function FE(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){A(Nt(n.seriesTransition),function(i){A(Nt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}E.prevElClipPaths&&g.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var D=c.dpr,C=0;C0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Wo:0),this._needsManuallyCompositing),f.__builtin__||Hs("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&ye&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?gt(n[t],e,!0):n[t]=e;for(var i=0;i{}}},setup(r){let t=null;const{options:e}=Zu(r),n=Lt({echart:wt()}),i=()=>{t=aL.init(n.echart),t.setOption({...e.value})},a=()=>{t.setOption({...e.value}),t.resize()},o=()=>{t&&t.resize()};return ls(()=>e.value,s=>{s&&a()},{deep:!0}),K1(()=>{window.removeEventListener("resize",o)}),Xr(()=>{window.addEventListener("resize",o),i()}),{...Zu(n)}}});function XE(r,t,e,n,i,a){const o=Q1;return Y(),Mt(o,{spinning:r.loading,class:"echarts-loading"},{default:$(()=>[U("div",{ref:"echart",style:Ku({width:r.width,height:r.height}),class:"timeline-echarts"},null,4)]),_:1},8,["spinning"])}const Vg=Ai(YE,[["render",XE]]),qE=(r={},t=(e,n)=>Number(e)-Number(n))=>{const e=Object.keys(r);if(!e.length)return{};const n={};return e.sort(t).forEach(i=>n[i]=r[i]),n},$g=(r,t)=>{if(!t)return{};t=qE(t);const e=Object.keys(t),n={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:e.map(a=>me(a)),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};r&&(n.title={left:"center",text:r});const i={};return Object.values(t).forEach(a=>{Object.keys(a).forEach(s=>{const l=j1.global.t(s);i[l]||(i[l]=[]),i[l].push(a[s])})}),n.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},n.series=Object.keys(i).map(a=>({name:a,type:"line",symbol:"circle",data:i[a]})),n},ZE={class:"branch-selector"},KE={class:"branch-btn-label"},QE={class:"branch-selector-search"},jE=["onClick"],JE={class:"item-icon"},tk={class:"item-label"},ek={key:1,class:"empty-tips"},rk=["onClick"],nk={class:"item-icon"},ik={class:"item-label"},ak={key:1,class:"empty-tips"},ok={class:"g-mr-4"},sk={class:"g-mr-4"},lk={class:"g-ml-24"},uk=Yr({__name:"Selector",props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup(r,{emit:t}){Mi();const e=r,n=fa(()=>e.disabled),i=t,a=wt({value:"",type:sr.BRANCH,label:""}),o=wt(""),s=wt(""),l=wt(sr.BRANCH),u=wt([]),f=wt([]),h=fa(()=>u.value.filter(b=>!o.value||b.label.includes(o.value))),v=fa(()=>f.value.filter(b=>!s.value||b.label.includes(s.value))),c=wt(qn.ALL),d=Lt([qn.ALL,qn.OPTIMIZING,qn.NONOPTIMIZING]),y=b=>{b.stopPropagation()},p=b=>b.parentNode||document.body,g=b=>{a.value=b,c.value=qn.ALL,i("refChange",{ref:b.value,operation:qn.ALL})},m=b=>{i("refChange",{ref:a.value.value,operation:b})},_=async()=>{const b=await gS(e);u.value=(b.list||[]).map(x=>({value:x.name,label:x.name,type:sr.BRANCH})),u.value.length&&g(u.value[0])},S=async()=>{const b=await yS(e);f.value=(b.list||[]).map(x=>({value:x.name,label:x.name,type:sr.TAG}))},w=async()=>{await Promise.all([_(),S()])};return Xr(()=>{l.value=sr.BRANCH,w()}),(b,x)=>{const T=tS,M=$a,D=eS,C=Ug,I=Yg,L=rS,E=iS,R=nS;return Y(),ut("div",ZE,[q(L,{trigger:["click"],placement:"bottomLeft",getPopupContainer:p},{overlay:$(()=>[U("div",null,[U("div",QE,[Fc(q(D,{value:o.value,"onUpdate:value":x[0]||(x[0]=P=>o.value=P),placeholder:b.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[zc,l.value===Tt(sr).BRANCH]]),Fc(q(D,{value:s.value,"onUpdate:value":x[1]||(x[1]=P=>s.value=P),placeholder:b.$t("Filter branches/tags"),onClick:y},null,8,["value","placeholder"]),[[zc,l.value===Tt(sr).TAG]])]),q(I,{activeKey:l.value,"onUpdate:activeKey":x[2]||(x[2]=P=>l.value=P),type:"card"},{default:$(()=>[(Y(),Mt(C,{key:Tt(sr).BRANCH,tab:"Branches"},{default:$(()=>[h.value.length?(Y(!0),ut(Vt,{key:0},Ln(h.value,(P,B)=>(Y(),ut("div",{class:"branch-selector-item",key:B,onClick:k=>g(P)},[U("div",JE,[P.value===a.value.value?(Y(),Mt(Tt(Gc),{key:0})):xt("",!0)]),U("span",tk,X(P.label),1)],8,jE))),128)):(Y(),ut("span",ek,X(b.$t("nothingToShow")),1))]),_:1})),(Y(),Mt(C,{key:Tt(sr).TAG,tab:"Tags"},{default:$(()=>[v.value.length?(Y(!0),ut(Vt,{key:0},Ln(v.value,(P,B)=>(Y(),ut("div",{class:"branch-selector-item",key:B,onClick:k=>g(P)},[U("div",nk,[P.value===a.value.value?(Y(),Mt(Tt(Gc),{key:0})):xt("",!0)]),U("span",ik,X(P.label),1)],8,rk))),128)):(Y(),ut("span",ak,X(b.$t("nothingToShow")),1))]),_:1}))]),_:1},8,["activeKey"])])]),default:$(()=>[q(M,{class:"branch-btn",disabled:!a.value.value||n.value},{default:$(()=>[q(T,{className:"branch-selector-icon","icon-class":a.value.type,class:"g-mr-8"},null,8,["icon-class"]),U("span",KE,X(a.value.label),1),q(Tt(J1))]),_:1},8,["disabled"])]),_:1}),U("div",null,[q(T,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),U("span",ok,X(u.value.length),1),U("span",null,X(b.$t("branches")),1)]),U("div",null,[q(T,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),U("span",sk,X(f.value.length),1),U("span",null,X(b.$t("tags")),1)]),U("div",lk,[_t(X(b.$t("operation"))+": ",1),q(R,{class:"g-ml-8",value:c.value,"onUpdate:value":x[3]||(x[3]=P=>c.value=P),style:{width:"160px"},disabled:n.value,onChange:m},{default:$(()=>[(Y(!0),ut(Vt,null,Ln(d,P=>(Y(),Mt(E,{value:P,key:P},{default:$(()=>[_t(X(P),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","disabled"])])])}}}),fk={class:"table-snapshots"},hk=Yr({__name:"Snapshots",setup(r){const t=wt(!1),{t:e}=Mi(),n=he([{title:e("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:e("operation"),dataIndex:"operation"},{title:e("records"),dataIndex:"records"},{title:e("fileCount"),dataIndex:"fileCount"},{title:e("commitTime"),dataIndex:"commitTime"}]),i=he([{title:e("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:e("file"),dataIndex:"file",ellipsis:!0},{title:e("partition"),dataIndex:"partition",width:120},{title:e("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:e("size"),dataIndex:"size",width:120},{title:e("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:e("path"),dataIndex:"path",ellipsis:!0}]),a=Lt([]),o=Lt([]),s=wt(""),l=wt(!1),u=Lt(Fn()),f=Lt(Fn()),v=Di().query,c=Lt({catalog:"",db:"",table:"",...v}),d=wt({}),y=wt({}),p=wt(""),g=wt(""),m=T=>{p.value=T.ref,g.value=T.operation,_()};async function _(){try{l.value=!0,a.length=0;const T=await mS({...c,ref:p.value,operation:g.value,page:u.current,pageSize:u.pageSize}),{list:M=[],total:D}=T,C={},I={};M.forEach(L=>{const{recordsSummaryForChart:E,filesSummaryForChart:R,commitTime:P}=L;C[P]=E||{},I[P]=R||{},L.producer==="OPTIMIZE"&&(L.operation=L.operation+"(optimizing)"),L.commitTime=L.commitTime?me(L.commitTime):"-",a.push(L)}),d.value=$g(e("recordChartTitle"),C),y.value=$g(e("fileChartTitle"),I),u.total=D}catch{}finally{l.value=!1}}function S({current:T=1,pageSize:M=25}){t.value?(f.current=T,M!==f.pageSize&&(f.current=1),f.pageSize=M):(u.current=T,M!==u.pageSize&&(u.current=1),u.pageSize=M),w()}function w(){t.value?b():_()}async function b(){try{o.length=0,l.value=!0;const T={...c,snapshotId:s.value,page:f.current,pageSize:f.pageSize},M=await _S(T),{list:D,total:C}=M;f.total=C,D.forEach(I=>{I.commitTime=I.commitTime?me(I.commitTime):"",o.push(I)})}catch{}finally{l.value=!1}}function x(T){s.value=T.snapshotId,t.value=!t.value,t.value&&(f.current=1,b())}return Xr(()=>{t.value=!1}),(T,M)=>{const D=Xg,C=qg,I=$a,L=Va,E=hh,R=ch,P=vh;return Y(),ut("div",fk,[t.value?(Y(),ut(Vt,{key:1},[q(R,{separator:">"},{default:$(()=>[q(E,{onClick:x,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),q(E,null,{default:$(()=>[_t(X(`${T.$t("snapshotId")} ${s.value}`),1)]),_:1})]),_:1}),q(L,{rowKey:"file",columns:Tt(i),"data-source":o,pagination:f,loading:l.value,onChange:S,class:"g-mt-8"},{bodyCell:$(({column:B,record:k})=>[B.dataIndex==="path"?(Y(),Mt(P,{key:0},{title:$(()=>[_t(X(k.path),1)]),default:$(()=>[U("span",null,X(k.path),1)]),_:2},1024)):xt("",!0),B.dataIndex==="file"?(Y(),Mt(P,{key:1},{title:$(()=>[_t(X(k.file),1)]),default:$(()=>[U("span",null,X(k.file),1)]),_:2},1024)):xt("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),ut(Vt,{key:0},[q(C,null,{default:$(()=>[q(D,{span:12},{default:$(()=>[q(Vg,{loading:l.value,options:d.value},null,8,["loading","options"])]),_:1}),q(D,{span:12},{default:$(()=>[q(Vg,{loading:l.value,options:y.value},null,8,["loading","options"])]),_:1})]),_:1}),q(uk,{catalog:c.catalog,db:c.db,table:c.table,disabled:l.value,onRefChange:m},null,8,["catalog","db","table","disabled"]),q(L,{rowKey:"snapshotId",columns:Tt(n),"data-source":a,pagination:u,loading:l.value,onChange:S},{bodyCell:$(({column:B,record:k})=>[B.dataIndex==="snapshotId"?(Y(),Mt(I,{key:0,type:"link",onClick:O=>x(k)},{default:$(()=>[_t(X(k.snapshotId),1)]),_:2},1032,["onClick"])):xt("",!0)]),expandedRowRender:$(({record:B})=>[(Y(!0),ut(Vt,null,Ln(B.summary,(k,O)=>(Y(),Mt(C,{type:"flex",gutter:16,key:O},{default:$(()=>[q(D,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(O)+" :",1)]),_:2},1024),q(D,{flex:"auto"},{default:$(()=>[_t(X(k),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}}),ck=Ai(hk,[["__scopeId","data-v-f3326f3d"]]),eo=r=>(aS("data-v-68760c72"),r=r(),oS(),r),vk={class:"table-optimizing"},dk={class:""},pk=eo(()=>U("div",{class:""},"success / total",-1)),gk={class:""},yk=eo(()=>U("div",{class:""},"size / count",-1)),mk={class:""},_k=eo(()=>U("div",{class:""},"size / count",-1)),Sk={key:1,class:"g-flex-ac"},bk={class:"tip-title"},wk={class:""},xk=eo(()=>U("div",{class:""},"size / count",-1)),Tk={class:""},Ck=eo(()=>U("div",{class:""},"size / count",-1)),Mk={key:1,class:"g-flex-ac"},Dk={class:"tip-title"},Ak=Yr({__name:"Optimizing",setup(r){const t=wt(!1),e=he({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),n=he({PLANNED:{title:"PLANNED",color:"#ffcc00"},SCHEDULED:{title:"SCHEDULED",color:"#4169E1"},ACKED:{title:"ACKED",color:"#1890ff"},FAILED:{title:"FAILED",color:"#f5222d"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},CANCELED:{title:"CANCELED",color:"#c9cdd4"}}),{t:i}=Mi(),a=he([{title:i("processId"),dataIndex:"processId"},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("type"),dataIndex:"optimizingType"},{title:i("status"),dataIndex:"status"},{title:i("duration"),dataIndex:"duration",width:120},{title:i("tasks"),dataIndex:"tasks"},{title:i("finishTime"),dataIndex:"finishTime",width:172},{title:i("input"),dataIndex:"inputFiles"},{title:i("output"),dataIndex:"outputFiles"}]),o=he([{title:i("taskId"),dataIndex:"taskId",width:82},{title:i("partition"),dataIndex:"partitionData",ellipsis:!0},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("status"),dataIndex:"status",width:124},{title:i("costTime"),dataIndex:"formatCostTime",width:120},{title:i("finishTime"),dataIndex:"endTime",width:172},{title:i("input"),dataIndex:"inputFilesDesc"},{title:i("output"),dataIndex:"outputFilesDesc"}]),s=Lt([]),l=wt(0),u=Lt([]),f=wt(!1),h=wt(!0),v=Lt(Fn()),c=Lt(Fn()),y=Di().query,p=Lt({catalog:"",db:"",table:"",...y});async function g(){try{f.value=!0,s.length=0;const x=await wS({...p,page:v.current,pageSize:v.pageSize}),{list:T,total:M=0}=x;v.total=M,s.push(...[...T||[]].map(D=>{const{inputFiles:C={},outputFiles:I={}}=D;return{...D,startTime:D.startTime?me(D.startTime):"-",finishTime:D.finishTime?me(D.finishTime):"-",optimizingType:D.optimizingType?D.optimizingType:"-",duration:Hc(D.duration||"-"),inputFiles:`${ro(C.totalSize)} / ${C.fileCnt}`,outputFiles:`${ro(I.totalSize)} / ${I.fileCnt}`,tasks:`${D.successTasks||"0"} / ${D.totalTasks||"0"}${D.runningTasks?` (${D.runningTasks} running)`:""}`}}))}catch{}finally{f.value=!1}}async function m(){Wg.confirm({title:i("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{f.value=!0;const x=await SS({...p,processId:l.value});h.value=!0,S()}catch{}finally{f.value=!1}}})}function _({current:x=1,pageSize:T=25}){t.value?(c.current=x,T!==c.pageSize&&(c.current=1),c.pageSize=T):(v.current=x,T!==v.pageSize&&(v.current=1),v.pageSize=T),S()}function S(){t.value?w():g()}async function w(){try{u.length=0,f.value=!0;const x={...p,processId:l.value,page:c.current,pageSize:c.pageSize},T=await bS(x),{list:M,total:D}=T;c.total=D,M.forEach(C=>{C.startTime=C.startTime?me(C.startTime):"-",C.endTime=C.endTime?me(C.endTime):"-",C.formatCostTime=Hc(C.costTime),C.thread=C.optimizerToken?"("+C.threadId+")"+C.optimizerToken:"-",C.partitionData=C.partitionData?C.partitionData:"-",C.inputFilesDesc=`${ro(C.inputFiles.totalSize)} / ${C.inputFiles.fileCnt}`,C.outputFilesDesc=`${ro(C.outputFiles.totalSize)} / ${C.outputFiles.fileCnt}`,u.push(C)})}catch{}finally{f.value=!1}}function b(x,T){l.value=x,h.value=T!=="RUNNING",t.value=!t.value,t.value&&(c.current=1),S()}return Xr(()=>{t.value=!1,S()}),(x,T)=>{const M=$a,D=vh,C=Xg,I=qg,L=Va,E=hh,R=ch;return Y(),ut("div",vk,[t.value?(Y(),ut(Vt,{key:1},[q(I,null,{default:$(()=>[q(C,{span:18},{default:$(()=>[q(R,{separator:">"},{default:$(()=>[q(E,{onClick:b,class:"text-active"},{default:$(()=>[_t("All")]),_:1}),q(E,null,{default:$(()=>[_t(X(`${x.$t("processId")} ${l.value}`),1)]),_:1})]),_:1})]),_:1}),q(C,{span:6},{default:$(()=>[q(M,{type:"primary",disabled:h.value,"onUpdate:disabled":T[0]||(T[0]=P=>h.value=P),class:"g-mb-16",onClick:m,style:{float:"right"}},{default:$(()=>[_t(X(Tt(i)("cancelProcess")),1)]),_:1},8,["disabled"])]),_:1})]),_:1}),q(L,{rowKey:"taskId",columns:Tt(o),"data-source":u,pagination:c,loading:f.value,onChange:_,class:"g-mt-8"},{headerCell:$(({column:P})=>[P.dataIndex==="inputFilesDesc"?(Y(),ut(Vt,{key:0},[U("div",wk,X(P.title),1),xk],64)):xt("",!0),P.dataIndex==="outputFilesDesc"?(Y(),ut(Vt,{key:1},[U("div",Tk,X(P.title),1),Ck],64)):xt("",!0)]),bodyCell:$(({column:P,record:B})=>[P.dataIndex==="partitionData"?(Y(),Mt(D,{key:0},{title:$(()=>[_t(X(B.partitionData),1)]),default:$(()=>[U("span",null,X(B.partitionData),1)]),_:2},1024)):xt("",!0),P.dataIndex==="status"?(Y(),ut("div",Mk,[U("span",{style:Ku({"background-color":(Tt(n)[B.status]||{}).color}),class:"status-icon"},null,4),U("span",null,X(B.status),1),B.status==="FAILED"?(Y(),Mt(D,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:$(()=>[U("div",Dk,X(B.failReason),1)]),default:$(()=>[q(Tt(Vc))]),_:2},1024)):xt("",!0)])):xt("",!0)]),expandedRowRender:$(({record:P})=>[(Y(!0),ut(Vt,null,Ln(P.summary,(B,k)=>(Y(),Mt(I,{type:"flex",gutter:16,key:k},{default:$(()=>[q(C,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(k)+" :",1)]),_:2},1024),q(C,{flex:"auto"},{default:$(()=>[_t(X(B),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Y(),Mt(L,{key:0,rowKey:"processId",columns:Tt(a),"data-source":s,pagination:v,loading:f.value,onChange:_},{headerCell:$(({column:P})=>[P.dataIndex==="tasks"?(Y(),ut(Vt,{key:0},[U("div",dk,X(P.title),1),pk],64)):xt("",!0),P.dataIndex==="inputFiles"?(Y(),ut(Vt,{key:1},[U("div",gk,X(P.title),1),yk],64)):xt("",!0),P.dataIndex==="outputFiles"?(Y(),ut(Vt,{key:2},[U("div",mk,X(P.title),1),_k],64)):xt("",!0)]),bodyCell:$(({record:P,column:B})=>[B.dataIndex==="processId"?(Y(),Mt(M,{key:0,type:"link",onClick:k=>b(P.processId,P.status)},{default:$(()=>[_t(X(P.processId),1)]),_:2},1032,["onClick"])):xt("",!0),B.dataIndex==="status"?(Y(),ut("div",Sk,[U("span",{style:Ku({"background-color":(Tt(e)[P.status]||{}).color}),class:"status-icon"},null,4),U("span",null,X(P.status),1),P.status==="FAILED"?(Y(),Mt(D,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:$(()=>[U("div",bk,X(P.failReason),1)]),default:$(()=>[q(Tt(Vc))]),_:2},1024)):xt("",!0)])):xt("",!0)]),expandedRowRender:$(({record:P})=>[(Y(!0),ut(Vt,null,Ln(P.summary,(B,k)=>(Y(),Mt(I,{type:"flex",gutter:16,key:k},{default:$(()=>[q(C,{flex:"220px",style:{"text-align":"right"}},{default:$(()=>[_t(X(k)+" :",1)]),_:2},1024),q(C,{flex:"auto"},{default:$(()=>[_t(X(B),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"]))])}}}),Ik=Ai(Ak,[["__scopeId","data-v-68760c72"]]),Lk=Yr({name:"Tables",components:{UDetails:zS,UFiles:$S,UOperations:ZS,USnapshots:ck,UOptimizing:Ik},setup(){const r=sS(),t=Di(),e=lS(),n=wt(),i=he([{key:"Snapshots",label:"Snapshots"},{key:"Optimizing",label:"Optimizing"},{key:"Operations",label:"Operations"}]),a=Lt({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),o=fa(()=>a.baseInfo.tableType==="ICEBERG"),s=c=>{a.detailLoaded=!0,a.baseInfo={...c}},l=c=>{const d={...t.query};d.tab=c,r.replace({query:{...d}})},u=()=>{},f=()=>{},h=()=>{e.updateTablesMenu(!1)},v=()=>{a.isSecondaryNav=!1,r.back()};return ls(()=>t.path,()=>{a.isSecondaryNav=t.path.indexOf("create")>-1},{immediate:!0}),ls(()=>t.query,(c,d)=>{const{catalog:y,db:p,table:g}=c,{catalog:m,db:_,table:S}=d;if(`${y}${p}${g}`!=`${m}${_}${S}`){a.activeKey="Details";return}a.activeKey=c.tab}),Xr(()=>{var c;a.activeKey=((c=t.query)==null?void 0:c.tab)||"Details",uS(()=>{n.value&&n.value.getTableDetails()})}),{...Zu(a),tabConfigs:i,store:e,isIceberg:o,editTable:u,delTable:f,setBaseDetailInfo:s,hideTablesMenu:h,goBack:v,onChangeTab:l}}}),Pk={class:"tables-wrap"},Rk={key:0,class:"tables-content"},Ek={class:"g-flex-jsb"},kk={class:"g-flex-col"},Ok={class:"g-flex"},Bk=["title"],Nk={key:0,class:"create-time"},Fk={class:"table-info g-flex-ac"},zk={class:"text-color"},Gk={class:"text-color"},Hk={class:"text-color"},Vk={class:"text-color"},$k={class:"content"};function Wk(r,t,e,n,i,a){const o=fS,s=Uo("u-details"),l=Ug,u=Uo("u-files"),f=Yg,h=Uo("router-view");return Y(),ut("div",Pk,[r.isSecondaryNav?(Y(),Mt(h,{key:1,onGoBack:r.goBack},null,8,["onGoBack"])):(Y(),ut("div",Rk,[U("div",Ek,[U("div",kk,[U("div",Ok,[U("span",{title:r.baseInfo.tableName,class:"table-name g-text-nowrap"},X(r.baseInfo.tableName),9,Bk),r.isIceberg?xt("",!0):(Y(),ut("span",Nk,X(`${r.$t("createTime")}: ${r.baseInfo.createTime}`),1))]),U("div",Fk,[U("p",null,[_t(X(`${r.$t("table")}${r.$t("size")}`)+": ",1),U("span",zk,X(r.baseInfo.size),1)]),q(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("file"))+": ",1),U("span",Gk,X(r.baseInfo.file),1)]),q(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("averageFileSize"))+": ",1),U("span",Hk,X(r.baseInfo.averageFile),1)]),q(o,{type:"vertical"}),U("p",null,[_t(X(r.$t("tableFormat"))+": ",1),U("span",Vk,X(r.baseInfo.tableFormat),1)])])])]),U("div",$k,[q(f,{activeKey:r.activeKey,"onUpdate:activeKey":t[0]||(t[0]=v=>r.activeKey=v),destroyInactiveTabPane:"",onChange:r.onChangeTab},{default:$(()=>[q(l,{key:"Details",tab:"Details",forceRender:""},{default:$(()=>[q(s,{onSetBaseDetailInfo:r.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]),_:1}),r.detailLoaded?(Y(),Mt(l,{key:"Files",tab:"Files"},{default:$(()=>[q(u,{hasPartition:r.baseInfo.hasPartition},null,8,["hasPartition"])]),_:1})):xt("",!0),(Y(!0),ut(Vt,null,Ln(r.tabConfigs,v=>(Y(),Mt(l,{key:v.key,tab:`${v.label}`},{default:$(()=>[(Y(),Mt(hS(`U${v.key}`)))]),_:2},1032,["tab"]))),128))]),_:1},8,["activeKey","onChange"])])]))])}const nO=Ai(Lk,[["render",Wk],["__scopeId","data-v-c4190384"]]);export{nO as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-mIXv5212.css b/ams/dashboard/src/main/resources/static/assets/index-O3zRyKCi.css similarity index 55% rename from ams/dashboard/src/main/resources/static/assets/index-mIXv5212.css rename to ams/dashboard/src/main/resources/static/assets/index-O3zRyKCi.css index 3dd7a8b197..23e6e5eeb3 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-mIXv5212.css +++ b/ams/dashboard/src/main/resources/static/assets/index-O3zRyKCi.css @@ -17,4 +17,4 @@ * limitations under the License. */ -.list-wrap .primary-link[data-v-d9e15342]{color:#1890ff}.list-wrap .primary-link[data-v-d9e15342]:hover{cursor:pointer}.list-wrap .primary-link.disabled[data-v-d9e15342]{color:#999}.list-wrap .primary-link.disabled[data-v-d9e15342]:hover{cursor:not-allowed}.list-wrap .status-icon[data-v-d9e15342]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.list-wrap .filter-form[data-v-04c00ee0]{width:100%;margin-bottom:16px}.list-wrap .primary-link[data-v-04c00ee0]{color:#1890ff}.list-wrap .primary-link[data-v-04c00ee0]:hover{cursor:pointer}.list-wrap .primary-link.disabled[data-v-04c00ee0]{color:#999}.list-wrap .primary-link.disabled[data-v-04c00ee0]:hover{cursor:not-allowed}.list-wrap .status-icon[data-v-04c00ee0]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.group-modal .ant-modal-body{max-height:600px;overflow:auto}.border-wrap[data-v-193b9dbf]{padding:16px 24px;height:100%}.resource-wrap[data-v-193b9dbf]{height:100%;overflow-y:auto}.resource-wrap .status-icon[data-v-193b9dbf]{width:8px;height:8px;border-radius:8px}.resource-wrap .tabs[data-v-193b9dbf]{height:32px;display:flex;align-items:center;margin-bottom:12px;padding:0 12px;border:1px solid #e5e5e5}.resource-wrap .table-name[data-v-193b9dbf]{color:#1890ff}.resource-wrap .table-name[data-v-193b9dbf]:hover{cursor:pointer} +.list-wrap .primary-link[data-v-46b3e914]{color:#1890ff}.list-wrap .primary-link[data-v-46b3e914]:hover{cursor:pointer}.list-wrap .primary-link.disabled[data-v-46b3e914]{color:#999}.list-wrap .primary-link.disabled[data-v-46b3e914]:hover{cursor:not-allowed}.list-wrap .status-icon[data-v-46b3e914]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.ant-space{display:inline-flex}.ant-space-vertical{flex-direction:column}.ant-space-align-center{align-items:center}.ant-space-align-start{align-items:flex-start}.ant-space-align-end{align-items:flex-end}.ant-space-align-baseline{align-items:baseline}.ant-space-item:empty{display:none}.ant-space-rtl{direction:rtl}.list-wrap .filter-form[data-v-cd107afb]{width:100%;margin-bottom:16px}.list-wrap .primary-link[data-v-cd107afb]{color:#1890ff}.list-wrap .primary-link[data-v-cd107afb]:hover{cursor:pointer}.list-wrap .primary-link.disabled[data-v-cd107afb]{color:#999}.list-wrap .primary-link.disabled[data-v-cd107afb]:hover{cursor:not-allowed}.list-wrap .status-icon[data-v-cd107afb]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.group-modal .ant-modal-body{max-height:600px;overflow:auto}.border-wrap[data-v-9dd54e51]{padding:16px 24px;height:100%}.resource-wrap[data-v-9dd54e51]{height:100%;overflow-y:auto}.resource-wrap .status-icon[data-v-9dd54e51]{width:8px;height:8px;border-radius:8px}.resource-wrap .tabs[data-v-9dd54e51]{height:32px;display:flex;align-items:center;margin-bottom:12px;padding:0 12px;border:1px solid #e5e5e5}.resource-wrap .table-name[data-v-9dd54e51]{color:#1890ff}.resource-wrap .table-name[data-v-9dd54e51]:hover{cursor:pointer} diff --git a/ams/dashboard/src/main/resources/static/assets/index--RLxQK15.css b/ams/dashboard/src/main/resources/static/assets/index-PkS8UCte.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index--RLxQK15.css rename to ams/dashboard/src/main/resources/static/assets/index-PkS8UCte.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-QO7atDR1.js b/ams/dashboard/src/main/resources/static/assets/index-QO7atDR1.js deleted file mode 100644 index 0049855ea0..0000000000 --- a/ams/dashboard/src/main/resources/static/assets/index-QO7atDR1.js +++ /dev/null @@ -1,20 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import{v as he,U as ve,L as ye,C as P,D as L,V as O,a7 as De,a3 as Ce,r as Ke,o as l,e as d,y as T,u as m,h as i,z as c,c as p,g as b,F as J,i as Q,a5 as B,M as oe,a8 as K,G as He,I as qe,E as ze,a9 as Xe,a1 as _e,H as xe,q as le,aa as je,ab as Ve,x as be,K as We,_ as fe,ac as Ze,ad as Je}from"./index-DlWIyNCI.js";/* empty css *//* empty css */import{g as Qe}from"./table.service-Ca4OvdR2.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Ye,c as ea,s as aa,d as ta,a as oa}from"./setting.services-D6jcsF9r.js";import{_ as me,g as la}from"./optimize.service-gp8YzoRE.js";import{u as sa}from"./usePlaceholder-DDgQeLdU.js";const na={class:"detail-wrap"},ia={class:"detail-content-wrap"},ra={class:"content-wrap"},ua={class:"header"},ca={key:1,class:"config-value"},pa={key:1},da={key:1},ga={key:1},fa={class:"header"},ma={key:1,class:"config-value"},ha={key:1,class:"config-value"},va={key:1,class:"config-value"},ya={key:3},Ca=["onClick"],_a={class:"header"},ba={key:1,class:"config-value"},ka={key:1,class:"config-value"},Ea={key:1,class:"config-value"},Ia={key:6},wa=["onClick","title"],Na={key:1,class:"config-value"},$a={key:1,class:"config-value"},Ma={class:"header"},Sa={class:"header"},Ra={key:0,class:"footer-btn"},Pa={key:1,class:"footer-btn"},Ta=he({__name:"Detail",props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup(se,{emit:H}){const N={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},Y=se,y=H,{t:g}=ve(),$=ye(),S=P(sa()),x=L(""),r=O(()=>Y.isEdit),j=O(()=>"/ams/v1/files"),I=O(()=>{var t;const a=(((t=$.query)==null?void 0:t.catalogname)||"").toString();return decodeURIComponent(a)==="new catalog"}),U=O(()=>e.catalog.type==="hive");O(()=>e.catalog.type==="ams");const A=L(!1),F=L(),D=L(),q=L(),h={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},f={[h.ICEBERG]:"Iceberg",[h.MIXED_HIVE]:"Mixed Hive",[h.MIXED_ICEBERG]:"Mixed Iceberg",[h.PAIMON]:"Paimon"},C={ams:[h.MIXED_ICEBERG,h.ICEBERG],hive:[h.MIXED_HIVE,h.MIXED_ICEBERG,h.ICEBERG,h.PAIMON],hadoop:[h.MIXED_ICEBERG,h.ICEBERG,h.PAIMON],glue:[h.MIXED_ICEBERG,h.ICEBERG],custom:[h.MIXED_ICEBERG,h.ICEBERG]},_={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},R={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},w=L([{label:N["Internal Catalog"],value:N["Internal Catalog"]},{label:N["External Catalog"],value:N["External Catalog"]}]),e=P({catalog:{name:"",type:"ams",typeshow:N["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),V=P([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),z=P([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),ne={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},ke={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ee={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};De(()=>$.query,a=>{a&&Ee()},{immediate:!0,deep:!0});const W=P([]),ie=L([]);function Ee(){ae()}const Ie=async()=>{const t=(await la()||[]).map(s=>({lable:s.resourceGroup.name,value:s.resourceGroup.name}));ie.value=t};async function we(){(await Ye()||[]).forEach(t=>{t.value!=="ams"&&W.push({label:t.display,value:t.value})}),re()}function re(){x.value=(W.find(a=>a.value===e.catalog.type)||{}).label}async function ae(){try{A.value=!0;const{catalogname:a,type:t}=$.query;if(!a)return;if(I.value){e.catalog.name="",e.catalog.type=t||"ams",e.catalog.optimizerGroup=void 0,e.tableFormat=h.MIXED_ICEBERG,e.authConfig={...R.authConfig},e.storageConfig={...R.storageConfig};const n=ee[e.catalog.type]||[];e.properties={},n.forEach(v=>{e.properties[v]=""}),e.tableProperties={},e.storageConfigArray.length=0,e.authConfigArray.length=0}else{const n=await oa(a);if(!n)return;const{name:v,type:E,tableFormatList:k,storageConfig:G,authConfig:X,properties:te,tableProperties:o,optimizerGroup:M}=n;e.catalog.name=v,e.catalog.type=E,e.catalog.optimizerGroup=M,e.tableFormat=k.join(""),e.authConfig=X,e.storageConfig=G,e.properties=te||{},e.tableProperties=o||{},e.storageConfigArray.length=0,e.authConfigArray.length=0,re()}e.catalog.typeshow=e.catalog.type==="ams"?N["Internal Catalog"]:N["External Catalog"];const{storageConfig:s,authConfig:u}=e;Object.keys(s).forEach(n=>{var E,k,G;const v=["hadoop.core.site","hadoop.hdfs.site"];if(U.value&&v.push("hive.site"),v.includes(n)){const X={key:n,label:ne[n],value:(E=s[n])==null?void 0:E.fileName,fileName:(k=s[n])==null?void 0:k.fileName,fileUrl:(G=s[n])==null?void 0:G.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};e.storageConfigArray.push(X)}}),Object.keys(u).forEach(n=>{var v,E,k;if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(n)){const G={key:n,label:ke[n],value:(v=u[n])==null?void 0:v.fileName,fileName:(E=u[n])==null?void 0:E.fileName,fileUrl:(k=u[n])==null?void 0:k.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};e.authConfigArray.push(G)}})}catch{}finally{A.value=!1}}const Ne=a=>{a===N["Internal Catalog"]?e.catalog.type="ams":e.catalog.type=W[0].value,pe()},ue=O(()=>{const a=e.catalog.type;return C[a]||[]});async function ce(){const a=await D.value.getPropertiesWithoputValidation(),t=ee[e.catalog.type]||[];t.forEach(u=>{u&&!a[u]&&(a[u]="")});const s=ee[e.tableFormat]||[];s.forEach(u=>{u&&!a[u]&&(a[u]="")});for(const u in a)!a[u]&&!t.includes(u)&&!s.includes(u)&&delete a[u];e.properties=a}const $e=P([{label:"S3",value:"S3"}]),Me=P([{label:"Hadoop",value:"Hadoop"}]),Se=P([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),Re=O(()=>{const a=e.catalog.type;return a==="ams"||a==="custom"?Se:a==="glue"?$e:a==="hive"||a==="hadoop"?Me:null}),Pe=O(()=>{const a=e.storageConfig["storage.type"];return a==="Hadoop"?V:a==="S3"?z:null});async function pe(){if(e.tableFormat=ue.value[0],!I.value)return;const a=e.storageConfigArray.findIndex(t=>t.key==="hive.site");if(U.value){if(a>-1)return;e.storageConfigArray.push({key:"hive.site",label:ne["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),e.storageConfig["hive.site"]=""}else a>-1&&(e.storageConfigArray.splice(a,1),delete e.storageConfig["hive.site"]);await ce()}async function Te(){await ce()}function Ue(){y("updateEdit",!0)}async function Ge(){if(await ea(e.catalog.name)){Fe();return}oe.confirm({title:g("cannotDeleteModalTitle"),content:g("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"})}async function Le(a,t){return t?/^[a-zA-Z][\w-]*$/.test(t)?Promise.resolve():Promise.reject(new Error(g("invalidInput"))):Promise.reject(new Error(g("inputPlaceholder")))}function Ae(){const{storageConfig:a,authConfig:t,storageConfigArray:s,authConfigArray:u}=e;Object.keys(t).forEach(n=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(n)){const v=(u.find(E=>E.key===n)||{}).fileId;t[n]=v}}),Object.keys(a).forEach(n=>{if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(n)){const v=(s.find(E=>E.key===n)||{}).fileId;a[n]=v}})}function Oe(){F.value.validateFields().then(async()=>{const{catalog:a,tableFormat:t,storageConfig:s,authConfig:u}=e,n=await D.value.getProperties(),v=await q.value.getProperties();if(!n||!v)return;A.value=!0;const{typeshow:E,...k}=a;Ae(),await aa({isCreate:I.value,...k,tableFormatList:[t],storageConfig:s,authConfig:u,properties:n,tableProperties:v}).then(()=>{K.success(`${g("save")} ${g("success")}`),y("updateEdit",!1,{catalogName:a.name,catalogType:a.type}),ae(),F.value.resetFields()}).catch(()=>{K.error(`${g("save")} ${g("failed")}`)}).finally(()=>{A.value=!1})}).catch(()=>{})}function Be(){F.value.resetFields(),y("updateEdit",!1),ae()}async function Fe(){oe.confirm({title:g("deleteCatalogModalTitle"),onOk:async()=>{await ta(e.catalog.name),K.success(`${g("remove")} ${g("success")}`),y("updateEdit",!1,{})}})}function de(a,t,s){try{if(a.file.status==="uploading"?t.uploadLoading=!0:t.uploadLoading=!1,a.file.status==="done"){const{code:u}=a.file.response;if(u!==200)throw new Error("failed");const{url:n,id:v}=a.file.response.result;t.isSuccess=!0,t.fileName=s==="STORAGE"?_[t.key]:a.file.name,t.fileUrl=n,t.fileId=v,K.success(`${a.file.name} ${g("uploaded")} ${g("success")}`)}else a.file.status==="error"&&(t.isSuccess=!1,K.error(`${a.file.name} ${g("uploaded")} ${g("failed")}`))}catch{K.error(`${g("uploaded")} ${g("failed")}`)}}function ge(a){a&&window.open(a)}return Ce(()=>{we(),Ie()}),(a,t)=>{const s=He,u=qe,n=ze,v=je,E=Xe,k=_e,G=Ve,X=xe,te=Ke("u-loading");return l(),d("div",na,[T("div",ia,[T("div",ra,[m(X,{ref_key:"formRef",ref:F,model:e,class:"catalog-form"},{default:i(()=>[m(s,null,{default:i(()=>[T("p",ua,c(a.$t("basic")),1)]),_:1}),m(s,{label:a.$t("name"),name:["catalog","name"],rules:[{required:r.value&&I.value,validator:Le}]},{default:i(()=>[r.value&&I.value?(l(),p(u,{key:0,value:e.catalog.name,"onUpdate:value":t[0]||(t[0]=o=>e.catalog.name=o)},null,8,["value"])):(l(),d("span",ca,c(e.catalog.name),1))]),_:1},8,["label","rules"]),m(s,{label:a.$t("type"),name:["catalog","typeshow"]},{default:i(()=>[r.value&&I.value?(l(),p(n,{key:0,value:e.catalog.typeshow,"onUpdate:value":t[1]||(t[1]=o=>e.catalog.typeshow=o),options:w.value,placeholder:S.selectPh,onChange:Ne},null,8,["value","options","placeholder"])):(l(),d("span",pa,c(e.catalog.typeshow),1))]),_:1},8,["label"]),e.catalog.typeshow===N["External Catalog"]?(l(),p(s,{key:0,label:a.$t("metastore"),name:["catalog","type"],rules:[{required:r.value&&I.value}]},{default:i(()=>[r.value&&I.value?(l(),p(n,{key:0,value:e.catalog.type,"onUpdate:value":t[2]||(t[2]=o=>e.catalog.type=o),options:W,placeholder:S.selectPh,onChange:pe},null,8,["value","options","placeholder"])):(l(),d("span",da,c(x.value),1))]),_:1},8,["label","rules"])):b("",!0),m(s,{label:a.$t("tableFormat"),name:["tableFormat"],rules:[{required:r.value&&I.value}]},{default:i(()=>[m(E,{disabled:!r.value||!I.value,value:e.tableFormat,"onUpdate:value":t[3]||(t[3]=o=>e.tableFormat=o),name:"radioGroup",onChange:Te},{default:i(()=>[(l(!0),d(J,null,Q(ue.value,o=>(l(),p(v,{key:o,value:o},{default:i(()=>[B(c(f[o]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["disabled","value"])]),_:1},8,["label","rules"]),m(s,{label:a.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(n,{key:0,value:e.catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=o=>e.catalog.optimizerGroup=o),options:ie.value,placeholder:S.selectPh},null,8,["value","options","placeholder"])):(l(),d("span",ga,c(e.catalog.optimizerGroup),1))]),_:1},8,["label","rules"]),m(s,null,{default:i(()=>[T("p",fa,c(a.$t("storageConfigName")),1)]),_:1}),m(s,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(n,{key:0,value:e.storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=o=>e.storageConfig["storage.type"]=o),placeholder:S.selectPh,options:Re.value},null,8,["value","placeholder","options"])):(l(),d("span",ma,c(e.storageConfig["storage.type"]),1))]),_:1},8,["name","rules"]),e.storageConfig["storage.type"]==="S3"?(l(),p(s,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=o=>e.storageConfig["storage.s3.endpoint"]=o)},null,8,["value"])):(l(),d("span",ha,c(e.storageConfig["storage.s3.endpoint"]),1))]),_:1},8,["name"])):b("",!0),e.storageConfig["storage.type"]==="S3"?(l(),p(s,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=o=>e.storageConfig["storage.s3.region"]=o)},null,8,["value"])):(l(),d("span",va,c(e.storageConfig["storage.s3.region"]),1))]),_:1},8,["name"])):b("",!0),e.storageConfig["storage.type"]==="Hadoop"?(l(),d("div",ya,[(l(!0),d(J,null,Q(e.storageConfigArray,o=>(l(),p(s,{key:o.label,label:o.label,class:"g-flex-ac"},{default:i(()=>[r.value?(l(),p(G,{key:0,"file-list":o.fileList,"onUpdate:fileList":M=>o.fileList=M,name:"file",accept:".xml",showUploadList:!1,action:j.value,disabled:o.uploadLoading,onChange:M=>de(M,o,"STORAGE")},{default:i(()=>[m(k,{type:"primary",ghost:"",loading:o.uploadLoading,class:"g-mr-12"},{default:i(()=>[B(c(a.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:fileList","action","disabled","onChange"])):b("",!0),o.isSuccess||o.fileName?(l(),d("span",{key:1,class:le(["config-value",{"view-active":!!o.fileUrl}]),onClick:M=>ge(o.fileUrl)},c(o.fileName),11,Ca)):b("",!0)]),_:2},1032,["label"]))),128))])):b("",!0),m(s,null,{default:i(()=>[T("p",_a,c(a.$t("authenticationConfig")),1)]),_:1}),m(s,{label:"Type",name:["authConfig","auth.type"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(n,{key:0,value:e.authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=o=>e.authConfig["auth.type"]=o),placeholder:S.selectPh,options:Pe.value},null,8,["value","placeholder","options"])):(l(),d("span",ba,c(e.authConfig["auth.type"]),1))]),_:1},8,["name","rules"]),e.authConfig["auth.type"]==="SIMPLE"?(l(),p(s,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=o=>e.authConfig["auth.simple.hadoop_username"]=o)},null,8,["value"])):(l(),d("span",ka,c(e.authConfig["auth.simple.hadoop_username"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="KERBEROS"?(l(),p(s,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=o=>e.authConfig["auth.kerberos.principal"]=o)},null,8,["value"])):(l(),d("span",Ea,c(e.authConfig["auth.kerberos.principal"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="KERBEROS"?(l(),d("div",Ia,[(l(!0),d(J,null,Q(e.authConfigArray,o=>(l(),p(s,{key:o.label,label:o.label,class:"g-flex-ac"},{default:i(()=>[r.value?(l(),p(G,{key:0,"file-list":o.fileList,"onUpdate:fileList":M=>o.fileList=M,name:"file",accept:o.key==="auth.kerberos.keytab"?".keytab":".conf",showUploadList:!1,action:j.value,disabled:o.uploadLoading,onChange:M=>de(M,o)},{default:i(()=>[m(k,{type:"primary",ghost:"",loading:o.uploadLoading,class:"g-mr-12"},{default:i(()=>[B(c(a.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:fileList","accept","action","disabled","onChange"])):b("",!0),o.isSuccess||o.fileName?(l(),d("span",{key:1,class:le(["config-value auth-filename",{"view-active":!!o.fileUrl}]),onClick:M=>ge(o.fileUrl),title:o.fileName},c(o.fileName),11,wa)):b("",!0)]),_:2},1032,["label"]))),128))])):b("",!0),e.authConfig["auth.type"]==="AK/SK"?(l(),p(s,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=o=>e.authConfig["auth.ak_sk.access_key"]=o)},null,8,["value"])):(l(),d("span",Na,c(e.authConfig["auth.ak_sk.access_key"]),1))]),_:1},8,["name","rules"])):b("",!0),e.authConfig["auth.type"]==="AK/SK"?(l(),p(s,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:r.value}]},{default:i(()=>[r.value?(l(),p(u,{key:0,value:e.authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=o=>e.authConfig["auth.ak_sk.secret_key"]=o)},null,8,["value"])):(l(),d("span",$a,c(e.authConfig["auth.ak_sk.secret_key"]),1))]),_:1},8,["name","rules"])):b("",!0),m(s,null,{default:i(()=>[T("p",Ma,c(a.$t("properties")),1)]),_:1}),m(s,null,{default:i(()=>[m(me,{propertiesObj:e.properties,isEdit:r.value,ref_key:"propertiesRef",ref:D},null,8,["propertiesObj","isEdit"])]),_:1}),m(s,null,{default:i(()=>[T("p",Sa,c(a.$t("tableProperties")),1)]),_:1}),m(s,null,{default:i(()=>[m(me,{propertiesObj:e.tableProperties,isEdit:r.value,ref_key:"tablePropertiesRef",ref:q},null,8,["propertiesObj","isEdit"])]),_:1})]),_:1},8,["model"])])]),r.value?(l(),d("div",Ra,[m(k,{type:"primary",onClick:Oe,class:"save-btn g-mr-12"},{default:i(()=>[B(c(a.$t("save")),1)]),_:1}),m(k,{onClick:Be},{default:i(()=>[B(c(a.$t("cancel")),1)]),_:1})])):b("",!0),r.value?b("",!0):(l(),d("div",Pa,[m(k,{type:"primary",onClick:Ue,class:"edit-btn g-mr-12"},{default:i(()=>[B(c(a.$t("edit")),1)]),_:1}),m(k,{onClick:Ge,class:"remove-btn"},{default:i(()=>[B(c(a.$t("remove")),1)]),_:1})])),A.value?(l(),p(te,{key:2})):b("",!0)])}}}),Ua=be(Ta,[["__scopeId","data-v-d745e85e"]]),Ga={class:"catalogs-wrap g-flex"},La={class:"catalog-list-left"},Aa={class:"catalog-header"},Oa={key:0,class:"catalog-list"},Ba=["onClick"],Fa={class:"catalog-detail"},Z="new catalog",Da=he({__name:"index",setup(se){const{t:H}=ve(),N=We(),Y=ye(),y=P([]),g=P({}),$=L(!1),S=L(!1),x=fe.PRESENTED_IMAGE_SIMPLE;async function r(){try{S.value=!0;const f=await Qe();y.length=0,(f||[]).forEach(C=>{y.push({catalogName:C.catalogName,catalogType:C.catalogType})})}finally{S.value=!1}}function j(){var R,w;const{catalogname:f="",type:C}=Y.query,_={};if(decodeURIComponent(f)===Z){D();return}f?(_.catalogName=f,_.catalogType=C):(_.catalogName=(R=y[0])==null?void 0:R.catalogName,_.catalogType=(w=y[0])==null?void 0:w.catalogType),U(_)}function I(f){$.value?h(()=>{U(f),$.value=!1,A(!1)}):U(f)}async function U(f){const{catalogName:C,catalogType:_}=f;g.catalogName=C||"",g.catalogType=_||"",await N.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(g.catalogName),type:g.catalogType}})}async function A(f,C){var R,w,e,V;$.value=f,C&&(await F(),C!=null&&C.catalogName||(C.catalogName=(R=y[0])==null?void 0:R.catalogName,C.catalogType=(w=y[0])==null?void 0:w.catalogType));const _=y.findIndex(z=>z.catalogName===Z);if(_>-1){y.splice(_);const z={catalogName:(e=y[0])==null?void 0:e.catalogName,catalogType:(V=y[0])==null?void 0:V.catalogType};U(z);return}C&&U(C)}async function F(){await r()}function D(){$.value?h(()=>{q()}):q()}async function q(){const f={catalogName:Z,catalogType:""};await U(f),y.push(f),$.value=!0}Ce(async()=>{await r(),j()});function h(f){oe.confirm({title:H("leavePageModalTitle"),content:H("leavePageModalContent"),okText:H("leave"),onOk:async()=>{f&&await f()}})}return Ze((f,C,_)=>{$.value?h(()=>{_()}):_()}),(f,C)=>{const _=_e,R=fe;return l(),d("div",Ga,[T("div",La,[T("div",Aa,c(`${f.$t("catalog")} ${f.$t("list")}`),1),y.length&&!S.value?(l(),d("ul",Oa,[(l(!0),d(J,null,Q(y,w=>(l(),d("li",{key:w.catalogName,class:le(["catalog-item g-text-nowrap",{active:w.catalogName===g.catalogName}]),onClick:e=>I(w)},c(w.catalogName),11,Ba))),128))])):b("",!0),m(_,{onClick:D,disabled:g.catalogName===Z,class:"add-btn"},{default:i(()=>[B("+")]),_:1},8,["disabled"])]),T("div",Fa,[!y.length&&!S.value?(l(),p(R,{key:0,image:Je(x),class:"detail-empty"},null,8,["image"])):(l(),p(Ua,{key:1,isEdit:$.value,onUpdateEdit:A,onUpdateCatalogs:F},null,8,["isEdit"]))])])}}}),Ya=be(Da,[["__scopeId","data-v-518e7269"]]);export{Ya as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-W3OAzaQz.js b/ams/dashboard/src/main/resources/static/assets/index-W3OAzaQz.js new file mode 100644 index 0000000000..b7a49b9000 --- /dev/null +++ b/ams/dashboard/src/main/resources/static/assets/index-W3OAzaQz.js @@ -0,0 +1,20 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import{u as a,B as S,v as U,K as $,C as g,V as k,a3 as j,N as B,a4 as I,a8 as _,x as V,r as v,o as z,e as C,z as u,h as s,a5 as M,y as N,I as F,G as A,aK as D,a1 as E,H,p as q,a as x}from"./index-bS3EFDLG.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{u as R}from"./usePlaceholder--xdljq8Y.js";var G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const J=G;function O(e){for(var t=1;t{try{const l=B(),i=await I.login({user:d.username,password:d.password});if(i.code!==200){_.error(i.message);return}const{path:c,query:p}=l.historyPathInfo;e.replace({path:c||"/",query:p})}catch(l){_.error(l.message)}},o=k(()=>!(t.username&&t.password));return j(()=>{}),{placeholder:n,formState:t,onFinish:r,disabled:o}}}),ee=""+new URL("logo-all1-dEJDZh0B.svg",import.meta.url).href,y=e=>(q("data-v-522b5c60"),e=e(),x(),e),te={class:"login-wrap g-flex-jc"},ne={class:"login-content"},re=y(()=>u("div",{class:"img-logo"},[u("img",{src:ee,class:"arctic-logo",alt:""})],-1)),oe=y(()=>u("div",{class:"content-title"},"Lakehouse management system",-1));function ae(e,t,n,r,o,d){const l=v("UserOutlined"),i=F,c=A,p=v("LockOutlined"),w=D,P=E,L=H;return z(),C("div",te,[u("div",ne,[re,oe,a(L,{model:e.formState,name:"normal_login",class:"login-form label-120",onFinish:e.onFinish},{default:s(()=>[a(c,{label:"",name:"username",rules:[{required:!0,message:e.placeholder.usernamePh}]},{default:s(()=>[a(i,{value:e.formState.username,"onUpdate:value":t[0]||(t[0]=m=>e.formState.username=m),placeholder:e.placeholder.usernamePh,style:{height:"48px",background:"#fff"}},{prefix:s(()=>[a(l,{class:"site-form-item-icon"})]),_:1},8,["value","placeholder"])]),_:1},8,["rules"]),a(c,{label:"",name:"password",rules:[{required:!0,message:e.placeholder.passwordPh}]},{default:s(()=>[a(w,{value:e.formState.password,"onUpdate:value":t[1]||(t[1]=m=>e.formState.password=m),placeholder:e.placeholder.passwordPh,style:{height:"48px"}},{prefix:s(()=>[a(p,{class:"site-form-item-icon"})]),_:1},8,["value","placeholder"])]),_:1},8,["rules"]),a(c,null,{default:s(()=>[a(P,{disabled:e.disabled,type:"primary","html-type":"submit",class:"login-form-button"},{default:s(()=>[M(N(e.$t("signin")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["model","onFinish"])])])}const me=V(K,[["render",ae],["__scopeId","data-v-522b5c60"]]);export{me as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-_IAmf6sY.js b/ams/dashboard/src/main/resources/static/assets/index-XBEiiZ9V.js similarity index 92% rename from ams/dashboard/src/main/resources/static/assets/index-_IAmf6sY.js rename to ams/dashboard/src/main/resources/static/assets/index-XBEiiZ9V.js index 339c1324a1..c32b90cc8d 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-_IAmf6sY.js +++ b/ams/dashboard/src/main/resources/static/assets/index-XBEiiZ9V.js @@ -17,4 +17,4 @@ * limitations under the License. */ -import{v as n,a3 as c,x as d,o as i,e as s,y as e,F as l,i as g,a5 as r,z as o,p as B,a as u}from"./index-DlWIyNCI.js";const p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJoSURBVEiJzZUxTBNhFMd/7+MGpGs1jNA4dGAgakvd2oQBJwdxFLyEwd2hmEhoAiQwOZtoLjAxaOJAQhxIbzCB2oWxg4GORBktOpR7DleKhXL9enbwn1wu9733fb9733vf+4R8yaExvoKwACTpT6co70gcL+GXmjYTHBqpFUQX+wRdKImwSCMF8MoOKLoAgAQPqbgHfeGmvBxq9ltrWAENF9vYL6xzjnUqTN+Qf5RzbSSzVUY0HzlLxac6V4gD7BKhSu9pNj7ddT3C6nw+7mI2+k9zaJuzzNZLRF8Ad69Y2g3iOrBrfixylvVKoMs3WNsNYoA5NMsgTTh/ylf3U4fprwbRJcIruu+lGTKPUU339FVdonoFBmGDyG4CJKOBD7w8xuwCw0jPXX1LdX69l1M00Jg3wDAq23D+OcLzkKp72IP1uzcQJgBIHD2zvX5ulIhrAwztNrB8yeEsVQSdBdJADeQDI0cb+KUmlbltGNTBDy/xXdBVYBIYDt+6SmN8l3ypHZgBOQXgnpeLDTxLFRGmgTomKPA9uIUJCkAdYTqMPJQD+h4o4pj9VunGkM6Gvx+4HLg+AHV8cp5LYMot+xqAYeT4NbDRjjSewjN6Quclfvk9cTHktApisfV0KruplsAaMEmSHHX89miSME3Ct0vgIKT6EZFJjPHIbD3nx3mF20NTiHpte0uDqdJEfR3VPWAMUZ875heiPjAWAuUJGW/UAmhZwX6pSaI+g+oScAjSRKiBrqHUENJgymS80egGmd1cB4qRPvAT4RGV+S9drRlvFEw5hLITHeEgKrjqnkBQAHYIZC/2OnH1BwPH1Fm0EMoMAAAAAElFTkSuQmCC",m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI4SURBVEiJpZa/ixNBFMc/E/easOUVue5idWelnlk9OCFXitcI12jhKpjCTistLALXaGdjdcKxEQTBQvAgZe7wCk3I3xALwYApvSBckrHY3WSzM/tjkm+1vDdvvvPe++68EZig0mghZDXHyhHwlLb7Pu4oGBHmIwOwgENuevvKFkaEjicBaLvpceE6GDFml657FrrMMjSHxSWaOI0bixFKTpGcGqz/BNggv7J1tAGmJc2LsKTF3grD9S8g7gI/kZNtC4Bq3eK8fIDgCbCafmr5ls6j5xmUfaDEsHwRsa0jCk2/pOeXDxC8zCQDEOIZFe8D1bqVsqoWkMZx1S+p4/0BVhGTbX48/q7dYqa8v4ANfKbYu89JfZR5yEh8KBo/sySyKMbcAQbAPsNyiyvv7FyEAVSVVhotHE/ieJJKo6X4u+4Z48lt/JLtYNtNtj5mtyKApg9S6L8DIcxKG2KHwsU3YHMxwo5bTVhbAw6BkuIRbOQh0xMmoe0eA2uKXc3YkDBtIkhxQufhbsz6D386LEg437dsn5zcQxRyV8qkhyocb4+wr44HvrBqQflzEpohLqJSYFN7HVz6y/bQJwvnoy8gVcUwrZxmPBn20BDL9VB/Gegu7SmWnfjxqdAPbInIFk1UidFN2+7x9DKYvXXWsuLyZJikxIXi8vwWeiXqrjSdLRYXZCgGAFw/upXjAEshZH8NvIjYfzFeuUb3wQDH+436b/Xn+qVDQpyfYbH3CngzzXT+MWesxLS4/zlnwVtng8N+AAAAAElFTkSuQmCC",h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAASuSURBVEiJnZZBaBRnFMd/75uxLGsOHjwoBBohBykrRN1JVmpxCykK7UFoDwnEmKEWAyrVQ++RHqWEokVFw5hESXsQcqjYUku3NMXdzYYGKjaHQFKag4ccPGxCIDvzepjJ7E6yG0sfDMzM997//773ve+9JzRK3kuxZn+MCc6g5AAbZQNhEaSICQoUh35P2OQevEtg8qA5lE6EFFBDKBKYH9hbe0zB3dhSl9iwx8uhZgroYHdZRuUWojYw/J/0Jein5BbrhCHZb4ANVEDG8P0Ce9hgkxS2yaCcAvqA/Uk8WQGdRviVWvAitrGsPOinQDbccfAeJbco5L0U6+avyNO7pJcuUxipNfU1P2Kz9nYvYr6MgADm8YN+5tyFpvrrh24BF4FF0sERwRkfQJgEKqSXTsRkOa8D3/IQzaFSxPJdiu5yDNbtnQUzGjm6AcE1yu6dFqSzQBfKOYPhdBSascTO1PIQzQMpRPOo5SWAyu401eoR0DEgBeY2zoNR8iN2Qq8wUgO5C4DhtEHJAOD7hYSi6slt37kd3r+8VKU8dAHlHEgNkausH1qie3wTZ+IXcl5HAlvJGGAfAHuIUzfyciUBLlLcQbgls+cf4uv7wAbQDtiJqNSx9xmgGnoREQOsddwgPhupIVJAfLclIcDc+RmQZDhVs9uwqzawAGTAZIB5ur1hkKsgNXz9gLnBmV2JGkWYQcnXv6USvphM9GfBRoM5xHyC0MNxrxJlHqi6odcN0nOvHX1rFCJQ1WeYzS8ofRaGX3wXLA/VHCLFOCpCT6gfzEl06Z8Tntkq0AU6RnnoQpLsYTvq/8GOi88qYh2lNLBCMwmvxRLQDuIYSm4RZSH8QRewTHXt6g5D9UdDMn2CBgfR4CDoE2A/QXCjKRnA+qEzQDvKAuXBionQxuoawTVeXqo28zVU1QvMuq+YdV+hGkZBtLclofB5I4fZtlyh7E63smwtu6ypJMpkSChyKfq+3tpQfw51zT0c7wCOdwAx98LF4MfWdv7XjRyNSbNKeulgy8L9f5MGoHviH9B2JDhhUHMq+v1tSzKA0sAKYh1F+Q5kNXz00RvJwm2Gx6TmlM1Wm1FK8brjdWHMDWpcT9zFELivKeZu3UUpIVwGsgY4HFoEL2JjIYfSi8VTjnk7i3bTTezWXWLswwZoA8Didbye/vs+qo+BNmzzE85467SPCXd0l2z8XsduqxfvTVKxQmGkxt7lPlQfAW0IT3HGB1qSOd4QkDz/uI4msF8bhPnIi3zCoDBSY3ZoANWvABthEmd8ki6v3lXe+aaN7ge3EeMBqbBiNekulgkjJLwQsl4fxkwB86SXnKaZ6kwMIXqTMPzLwJVo5SZxG+MK5fP3d9g2jhhB0L81RP0JdILeIb18pSnpsclO7GCK+vC0JW8YojpuggwTD1EA3RNZ4DmoDcwjch9fnuGbDezNNpAMwkngLGGRb5QVYBplBjELbJrXWEEKS3tRHQYyIDXgBOXBSr0Idk9kQafCne4iygImCIeiwFxEtq5VS1kE6ac8WIHtVTfvpahyFst8GI/6UAVZRIM50O+ZdecTNo7XBfIRYo6DdhJm9QZQwQ+e0MZ046j/L27W/AWxXHaNAAAAAElFTkSuQmCC",I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJ8SURBVEiJtZZBaxNREMd/8xJCUAMeIvbiweLB6iVWE+stIn4Dj9ptoCCiPXmwYIuFWNoeelIRoWVNz34BsdDcmiat9CQehAoerJiDhxRCbPZ52G03aXbTTbP+YWH3zbz57by3M2+F43TDzKLUU2DEGSlhWYts5orHzvWQdLVmzBlQL3ymTlEenQ0PaGe2BrKPbk5jNZYAULFxJJIHHcWybndkml5ZQ3TWM6aWYtQXaC8j6OY0ldx8i2WetAmi5hyfdiC6y6pp8Qce7NlBZq2yGktE4nO4++qqYmS7xER1scW7TezBJzBw2/aIjXfOcsa0bPYKFLIzUfYu5hHGgaSHT51m/QJbD6sAXH+XJBL/gXd2VTRLnN6Zpjiz7wVU7A3mESZ9YCBSIvHzz+FzIlYDvvokkESYZG8w759hpvDbdrRusZEr+TkG0k1zBK3WgSpl4xzQXiZaioqDzPqFtcdoWa3WMuleFuHoSJm4wPT7O6BSKOpgldgY2/offBcosgoaNIBAeqVIpJmjlPseJlABded+F3jtXLuIzmKpT1x5cyZcoLYeofUiDWuIsjFB2ZigYQ0Bm8AlEonnYQL9G637iW9TNq4FjpgpaADKhh3boyy89ctpbXA5MMxTQcviPCn7A/LtKsHUURZpcwzUVf5as2zn7BaWMs+i1SvH52NfwCOKIuotECem7pMpfHDG7wEDwDdqtZfhAt2uPwA8ObRoKaLUA748roUNdADcBZ1CpA5SojLa81nXG7BirAKroRMCl0Vo6igLqYJOMmyO8LnPI2rYdH6qpHo41nla6GXgGVG1TqbQF8+VXvazKE7tTAELbW91YkkVWHBieuofBYTQEaZmpj4AAAAASUVORK5CYII=",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI9SURBVEiJvZYxaBNRGMd/3+XUktyg0kLFKUWlOJXWSy1UiJuDS6GCQjWNdijo0ILQDhUDUqiDOLRFBEtyOoigk4OLkDiUas+Km4vQDA4OWYS0ii33OZjGFtvLnVz8wy2P9/1+9927u/eEdM5kLXkHYQRopTmpoDwisXorRtvVaYRJIN4kGUAcoZ+fh/ebiI4AIF4faiwBsJyRSDQpR3ewRUcMth7ju+zbSCS75Q+71WiaZI+YkZFOzltYVhGVKu6Vs3tNi6bDdM7Esp4CpxD/Nz28sPvJsb/GvnfcBs4DFTZlIDphKj+K6X0i5UzUx2xnCNUpkE2US3y4/NkPEXwNe51BlNlazQy9hU429CHCg98TdBw387oRJliHPU4/Sh4wUZ4BVVSGMY0lwAJdYDkzFwTVWNiT78TgJWChOo+buYh6Z4AvACiLxMujgW68odDOtxMziggHUX1BojwGgJv9iHo28By8QUq5zaBC/zUU4xXQjrJIQod2gN3sV+BCUNFW/DtUvgHvWaueo5T9ERa+W/w7dDPpKCTb89//pQZIBYDu/OmmWepsqQgpZwaY8C2ILndjHO8qsXHoAEgnTdv1pQLMEl+dag4/8tiFFezCyr+UxkLNTudM2rLTIIMgRzg60MKJrjeUS15QRLgdfz15H+HGtpFJ1jpagPGgCMF+XEQ0HUosXh9A/ZQXNColA7x9oYoANmpX6KiEO3/ahTlEru9k6D3c4ZtBEeHWMFEeYz1ZBblWsy2QKIf6tn4BVvOkjCh2JC4AAAAASUVORK5CYII=",C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE9SURBVEiJzZXPSsNAEIe/SYNCPCn6AB4Ej0VorSBYX8Si5B30YEEQQc9ehRJfxHjyTx+iL5CrFwXXiy1p2Em3abb0OwVmM7+d/c3uCN2bkK/dW4QY2MYPGYYnNkb9BjsXdwhXQORJDCBCOOZ7ay1ETAyA/B7xcf7uRe5w0MEEb4iJhXZiAPjsiRexMf86gVcRC6EaaT2/IKYLgJGU4dlp6Zoiyj96hflEWlJMiQ32mF6hC8OeshEdvULDq/V7QXTB/O4rVDK/oCcW87CIQ2e7CY4fh5nklimdvWJHOu9z10pShBNA7ex6PXTo5qUfaQCSAXAw6HhTmeSWTGgn98ClN7FpHhrsNVN+NtdB9vE29SUDHolG137yrxLu96zCsLXhfi3UITwjVlmwJpYuOO1hmU9VKfgbFKO1illy/gEfF1wCMcdGNAAAAABJRU5ErkJggg==",E=n({name:"Introduce",components:{},setup(){return c(()=>{}),{features:[{title:"Self-optimizing",desc:"Continuously optimizing tables, including compacting small files, change files, regularly delete expired files to keep high query performance and reducing storage costs.",icon:p},{title:"Multiple Formats",desc:"Support different table formats such as Iceberg, Mixed-Iceberg and Mixed-Hive to meet different scenario requirements and provide them with unified management capabilities.",icon:m},{title:"Catalog Service",desc:"Provide an unified catalog service for all compute engines, which can also used with existing metadata store service such as Hive Metastore and AWS Glue.",icon:h},{title:"Rich Plugins",desc:"Provide various plugins to integrate with other systems, like continuously optimizing with Flink and data analysis with Spark and Kyuubi.",icon:I},{title:"Management Tools",desc:"Provide a variety of management tools, including WEB UI and standard SQL command line, to help you get started faster and integrate with other systems more easily.",icon:w},{title:"Infrastructure Independent",desc:"Can be easily deployed and used in private environments, cloud environments, hybrid cloud environments, and multi-cloud environments.",icon:C}]}}}),S=""+new URL("home-content-iEWjcHtP.png",import.meta.url).href,a=A=>(B("data-v-a14c4a5e"),A=A(),u(),A),Q={class:"introduce-content"},U=a(()=>e("section",{class:"home-section"},[e("div",{class:"content"},[e("div",{class:"title"}," Amoro builds lake-native data warehouse and architecture for users, platforms and products "),e("img",{class:"img",src:S})])],-1)),v={class:"home-feature"},f={class:"content"},D=a(()=>e("div",{class:"title"},"Key Features",-1)),N={class:"features"},R={class:"item-title"},z=["src"],Y={class:"item-desc"};function H(A,k,y,X,b,x){return i(),s("div",Q,[U,e("div",v,[e("div",f,[D,e("div",N,[(i(!0),s(l,null,g(A.features,t=>(i(),s("div",{class:"feature-item",key:t.title},[e("div",R,[e("img",{src:t.icon},null,8,z),r(" "+o(t.title),1)]),e("div",Y,o(t.desc),1)]))),128))])])])])}const J=d(E,[["render",H],["__scopeId","data-v-a14c4a5e"]]);export{J as default}; +import{v as n,a3 as c,x as d,o as i,e as s,z as e,F as l,k as g,a5 as r,y as o,p as B,a as u}from"./index-bS3EFDLG.js";const p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJoSURBVEiJzZUxTBNhFMd/7+MGpGs1jNA4dGAgakvd2oQBJwdxFLyEwd2hmEhoAiQwOZtoLjAxaOJAQhxIbzCB2oWxg4GORBktOpR7DleKhXL9enbwn1wu9733fb9733vf+4R8yaExvoKwACTpT6co70gcL+GXmjYTHBqpFUQX+wRdKImwSCMF8MoOKLoAgAQPqbgHfeGmvBxq9ltrWAENF9vYL6xzjnUqTN+Qf5RzbSSzVUY0HzlLxac6V4gD7BKhSu9pNj7ddT3C6nw+7mI2+k9zaJuzzNZLRF8Ad69Y2g3iOrBrfixylvVKoMs3WNsNYoA5NMsgTTh/ylf3U4fprwbRJcIruu+lGTKPUU339FVdonoFBmGDyG4CJKOBD7w8xuwCw0jPXX1LdX69l1M00Jg3wDAq23D+OcLzkKp72IP1uzcQJgBIHD2zvX5ulIhrAwztNrB8yeEsVQSdBdJADeQDI0cb+KUmlbltGNTBDy/xXdBVYBIYDt+6SmN8l3ypHZgBOQXgnpeLDTxLFRGmgTomKPA9uIUJCkAdYTqMPJQD+h4o4pj9VunGkM6Gvx+4HLg+AHV8cp5LYMot+xqAYeT4NbDRjjSewjN6Quclfvk9cTHktApisfV0KruplsAaMEmSHHX89miSME3Ct0vgIKT6EZFJjPHIbD3nx3mF20NTiHpte0uDqdJEfR3VPWAMUZ875heiPjAWAuUJGW/UAmhZwX6pSaI+g+oScAjSRKiBrqHUENJgymS80egGmd1cB4qRPvAT4RGV+S9drRlvFEw5hLITHeEgKrjqnkBQAHYIZC/2OnH1BwPH1Fm0EMoMAAAAAElFTkSuQmCC",h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI4SURBVEiJpZa/ixNBFMc/E/easOUVue5idWelnlk9OCFXitcI12jhKpjCTistLALXaGdjdcKxEQTBQvAgZe7wCk3I3xALwYApvSBckrHY3WSzM/tjkm+1vDdvvvPe++68EZig0mghZDXHyhHwlLb7Pu4oGBHmIwOwgENuevvKFkaEjicBaLvpceE6GDFml657FrrMMjSHxSWaOI0bixFKTpGcGqz/BNggv7J1tAGmJc2LsKTF3grD9S8g7gI/kZNtC4Bq3eK8fIDgCbCafmr5ls6j5xmUfaDEsHwRsa0jCk2/pOeXDxC8zCQDEOIZFe8D1bqVsqoWkMZx1S+p4/0BVhGTbX48/q7dYqa8v4ANfKbYu89JfZR5yEh8KBo/sySyKMbcAQbAPsNyiyvv7FyEAVSVVhotHE/ieJJKo6X4u+4Z48lt/JLtYNtNtj5mtyKApg9S6L8DIcxKG2KHwsU3YHMxwo5bTVhbAw6BkuIRbOQh0xMmoe0eA2uKXc3YkDBtIkhxQufhbsz6D386LEg437dsn5zcQxRyV8qkhyocb4+wr44HvrBqQflzEpohLqJSYFN7HVz6y/bQJwvnoy8gVcUwrZxmPBn20BDL9VB/Gegu7SmWnfjxqdAPbInIFk1UidFN2+7x9DKYvXXWsuLyZJikxIXi8vwWeiXqrjSdLRYXZCgGAFw/upXjAEshZH8NvIjYfzFeuUb3wQDH+436b/Xn+qVDQpyfYbH3CngzzXT+MWesxLS4/zlnwVtng8N+AAAAAElFTkSuQmCC",m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAASuSURBVEiJnZZBaBRnFMd/75uxLGsOHjwoBBohBykrRN1JVmpxCykK7UFoDwnEmKEWAyrVQ++RHqWEokVFw5hESXsQcqjYUku3NMXdzYYGKjaHQFKag4ccPGxCIDvzepjJ7E6yG0sfDMzM997//773ve+9JzRK3kuxZn+MCc6g5AAbZQNhEaSICQoUh35P2OQevEtg8qA5lE6EFFBDKBKYH9hbe0zB3dhSl9iwx8uhZgroYHdZRuUWojYw/J/0Jein5BbrhCHZb4ANVEDG8P0Ce9hgkxS2yaCcAvqA/Uk8WQGdRviVWvAitrGsPOinQDbccfAeJbco5L0U6+avyNO7pJcuUxipNfU1P2Kz9nYvYr6MgADm8YN+5tyFpvrrh24BF4FF0sERwRkfQJgEKqSXTsRkOa8D3/IQzaFSxPJdiu5yDNbtnQUzGjm6AcE1yu6dFqSzQBfKOYPhdBSascTO1PIQzQMpRPOo5SWAyu401eoR0DEgBeY2zoNR8iN2Qq8wUgO5C4DhtEHJAOD7hYSi6slt37kd3r+8VKU8dAHlHEgNkausH1qie3wTZ+IXcl5HAlvJGGAfAHuIUzfyciUBLlLcQbgls+cf4uv7wAbQDtiJqNSx9xmgGnoREQOsddwgPhupIVJAfLclIcDc+RmQZDhVs9uwqzawAGTAZIB5ur1hkKsgNXz9gLnBmV2JGkWYQcnXv6USvphM9GfBRoM5xHyC0MNxrxJlHqi6odcN0nOvHX1rFCJQ1WeYzS8ofRaGX3wXLA/VHCLFOCpCT6gfzEl06Z8Tntkq0AU6RnnoQpLsYTvq/8GOi88qYh2lNLBCMwmvxRLQDuIYSm4RZSH8QRewTHXt6g5D9UdDMn2CBgfR4CDoE2A/QXCjKRnA+qEzQDvKAuXBionQxuoawTVeXqo28zVU1QvMuq+YdV+hGkZBtLclofB5I4fZtlyh7E63smwtu6ypJMpkSChyKfq+3tpQfw51zT0c7wCOdwAx98LF4MfWdv7XjRyNSbNKeulgy8L9f5MGoHviH9B2JDhhUHMq+v1tSzKA0sAKYh1F+Q5kNXz00RvJwm2Gx6TmlM1Wm1FK8brjdWHMDWpcT9zFELivKeZu3UUpIVwGsgY4HFoEL2JjIYfSi8VTjnk7i3bTTezWXWLswwZoA8Didbye/vs+qo+BNmzzE85467SPCXd0l2z8XsduqxfvTVKxQmGkxt7lPlQfAW0IT3HGB1qSOd4QkDz/uI4msF8bhPnIi3zCoDBSY3ZoANWvABthEmd8ki6v3lXe+aaN7ge3EeMBqbBiNekulgkjJLwQsl4fxkwB86SXnKaZ6kwMIXqTMPzLwJVo5SZxG+MK5fP3d9g2jhhB0L81RP0JdILeIb18pSnpsclO7GCK+vC0JW8YojpuggwTD1EA3RNZ4DmoDcwjch9fnuGbDezNNpAMwkngLGGRb5QVYBplBjELbJrXWEEKS3tRHQYyIDXgBOXBSr0Idk9kQafCne4iygImCIeiwFxEtq5VS1kE6ac8WIHtVTfvpahyFst8GI/6UAVZRIM50O+ZdecTNo7XBfIRYo6DdhJm9QZQwQ+e0MZ046j/L27W/AWxXHaNAAAAAElFTkSuQmCC",I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJ8SURBVEiJtZZBaxNREMd/8xJCUAMeIvbiweLB6iVWE+stIn4Dj9ptoCCiPXmwYIuFWNoeelIRoWVNz34BsdDcmiat9CQehAoerJiDhxRCbPZ52G03aXbTTbP+YWH3zbz57by3M2+F43TDzKLUU2DEGSlhWYts5orHzvWQdLVmzBlQL3ymTlEenQ0PaGe2BrKPbk5jNZYAULFxJJIHHcWybndkml5ZQ3TWM6aWYtQXaC8j6OY0ldx8i2WetAmi5hyfdiC6y6pp8Qce7NlBZq2yGktE4nO4++qqYmS7xER1scW7TezBJzBw2/aIjXfOcsa0bPYKFLIzUfYu5hHGgaSHT51m/QJbD6sAXH+XJBL/gXd2VTRLnN6Zpjiz7wVU7A3mESZ9YCBSIvHzz+FzIlYDvvokkESYZG8w759hpvDbdrRusZEr+TkG0k1zBK3WgSpl4xzQXiZaioqDzPqFtcdoWa3WMuleFuHoSJm4wPT7O6BSKOpgldgY2/offBcosgoaNIBAeqVIpJmjlPseJlABded+F3jtXLuIzmKpT1x5cyZcoLYeofUiDWuIsjFB2ZigYQ0Bm8AlEonnYQL9G637iW9TNq4FjpgpaADKhh3boyy89ctpbXA5MMxTQcviPCn7A/LtKsHUURZpcwzUVf5as2zn7BaWMs+i1SvH52NfwCOKIuotECem7pMpfHDG7wEDwDdqtZfhAt2uPwA8ObRoKaLUA748roUNdADcBZ1CpA5SojLa81nXG7BirAKroRMCl0Vo6igLqYJOMmyO8LnPI2rYdH6qpHo41nla6GXgGVG1TqbQF8+VXvazKE7tTAELbW91YkkVWHBieuofBYTQEaZmpj4AAAAASUVORK5CYII=",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI9SURBVEiJvZYxaBNRGMd/3+XUktyg0kLFKUWlOJXWSy1UiJuDS6GCQjWNdijo0ILQDhUDUqiDOLRFBEtyOoigk4OLkDiUas+Km4vQDA4OWYS0ii33OZjGFtvLnVz8wy2P9/1+9927u/eEdM5kLXkHYQRopTmpoDwisXorRtvVaYRJIN4kGUAcoZ+fh/ebiI4AIF4faiwBsJyRSDQpR3ewRUcMth7ju+zbSCS75Q+71WiaZI+YkZFOzltYVhGVKu6Vs3tNi6bDdM7Esp4CpxD/Nz28sPvJsb/GvnfcBs4DFTZlIDphKj+K6X0i5UzUx2xnCNUpkE2US3y4/NkPEXwNe51BlNlazQy9hU429CHCg98TdBw387oRJliHPU4/Sh4wUZ4BVVSGMY0lwAJdYDkzFwTVWNiT78TgJWChOo+buYh6Z4AvACiLxMujgW68odDOtxMziggHUX1BojwGgJv9iHo28By8QUq5zaBC/zUU4xXQjrJIQod2gN3sV+BCUNFW/DtUvgHvWaueo5T9ERa+W/w7dDPpKCTb89//pQZIBYDu/OmmWepsqQgpZwaY8C2ILndjHO8qsXHoAEgnTdv1pQLMEl+dag4/8tiFFezCyr+UxkLNTudM2rLTIIMgRzg60MKJrjeUS15QRLgdfz15H+HGtpFJ1jpagPGgCMF+XEQ0HUosXh9A/ZQXNColA7x9oYoANmpX6KiEO3/ahTlEru9k6D3c4ZtBEeHWMFEeYz1ZBblWsy2QKIf6tn4BVvOkjCh2JC4AAAAASUVORK5CYII=",C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE9SURBVEiJzZXPSsNAEIe/SYNCPCn6AB4Ej0VorSBYX8Si5B30YEEQQc9ehRJfxHjyTx+iL5CrFwXXiy1p2Em3abb0OwVmM7+d/c3uCN2bkK/dW4QY2MYPGYYnNkb9BjsXdwhXQORJDCBCOOZ7ay1ETAyA/B7xcf7uRe5w0MEEb4iJhXZiAPjsiRexMf86gVcRC6EaaT2/IKYLgJGU4dlp6Zoiyj96hflEWlJMiQ32mF6hC8OeshEdvULDq/V7QXTB/O4rVDK/oCcW87CIQ2e7CY4fh5nklimdvWJHOu9z10pShBNA7ex6PXTo5qUfaQCSAXAw6HhTmeSWTGgn98ClN7FpHhrsNVN+NtdB9vE29SUDHolG137yrxLu96zCsLXhfi3UITwjVlmwJpYuOO1hmU9VKfgbFKO1illy/gEfF1wCMcdGNAAAAABJRU5ErkJggg==",S=n({name:"Introduce",components:{},setup(){return c(()=>{}),{features:[{title:"Self-optimizing",desc:"Continuously optimizing tables, including compacting small files, change files, regularly delete expired files to keep high query performance and reducing storage costs.",icon:p},{title:"Multiple Formats",desc:"Support different table formats such as Iceberg, Mixed-Iceberg and Mixed-Hive to meet different scenario requirements and provide them with unified management capabilities.",icon:h},{title:"Catalog Service",desc:"Provide an unified catalog service for all compute engines, which can also used with existing metadata store service such as Hive Metastore and AWS Glue.",icon:m},{title:"Rich Plugins",desc:"Provide various plugins to integrate with other systems, like continuously optimizing with Flink and data analysis with Spark and Kyuubi.",icon:I},{title:"Management Tools",desc:"Provide a variety of management tools, including WEB UI and standard SQL command line, to help you get started faster and integrate with other systems more easily.",icon:w},{title:"Infrastructure Independent",desc:"Can be easily deployed and used in private environments, cloud environments, hybrid cloud environments, and multi-cloud environments.",icon:C}]}}}),E=""+new URL("home-content-IhFo3B7T.png",import.meta.url).href,a=A=>(B("data-v-acb8e2f8"),A=A(),u(),A),Q={class:"introduce-content"},U=a(()=>e("section",{class:"home-section"},[e("div",{class:"content"},[e("div",{class:"title"}," Amoro builds lake-native data warehouse and architecture for users, platforms and products "),e("img",{class:"img",src:E})])],-1)),v={class:"home-feature"},f={class:"content"},D=a(()=>e("div",{class:"title"},"Key Features",-1)),N={class:"features"},R={class:"item-title"},z=["src"],Y={class:"item-desc"};function H(A,k,y,X,b,x){return i(),s("div",Q,[U,e("div",v,[e("div",f,[D,e("div",N,[(i(!0),s(l,null,g(A.features,t=>(i(),s("div",{class:"feature-item",key:t.title},[e("div",R,[e("img",{src:t.icon},null,8,z),r(" "+o(t.title),1)]),e("div",Y,o(t.desc),1)]))),128))])])])])}const J=d(S,[["render",H],["__scopeId","data-v-acb8e2f8"]]);export{J as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-BgUGsUZ9.css b/ams/dashboard/src/main/resources/static/assets/index-YFBrFGfW.css similarity index 100% rename from ams/dashboard/src/main/resources/static/assets/index-BgUGsUZ9.css rename to ams/dashboard/src/main/resources/static/assets/index-YFBrFGfW.css diff --git a/ams/dashboard/src/main/resources/static/assets/index-Dq3nmUzZ.js b/ams/dashboard/src/main/resources/static/assets/index-Yt5cl6Gm.js similarity index 82% rename from ams/dashboard/src/main/resources/static/assets/index-Dq3nmUzZ.js rename to ams/dashboard/src/main/resources/static/assets/index-Yt5cl6Gm.js index 9915c3a77f..d1ad2a99f2 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-Dq3nmUzZ.js +++ b/ams/dashboard/src/main/resources/static/assets/index-Yt5cl6Gm.js @@ -17,4 +17,4 @@ * limitations under the License. */ -import{v as D,U as N,K as O,L as P,D as K,C as v,a7 as T,r as U,o,e as b,y as s,u as d,h as l,c,g as S,F as C,i as E,af as V,ao as F,aD as L,ap as R,z as u,aE as G,x as H}from"./index-DlWIyNCI.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{b as J,e as Q}from"./setting.services-D6jcsF9r.js";const W={class:"setting-wrap"},X={class:"system-setting"},Y={class:"container-setting"},Z={class:"content"},ee={class:"item"},te={class:"left"},ae={class:"right"},se={key:0,class:"item"},ne={class:"left"},oe={class:"right"},re={class:"g-mb-12 g-mt-12"},ie={class:"g-mb-12 g-mt-12"},le=D({__name:"index",setup(ce){const{t:r}=N(),j=O(),I=P(),p=K(!1),h=v([]),f=v([]);v([{title:r("name"),dataIndex:"name",width:340,ellipsis:!0},{title:r("propertiesMemory",{type:"taskmanager"}),dataIndex:"tmMemory",width:"50%",ellipsis:!0},{title:r("propertiesMemory",{type:"jobmanager"}),dataIndex:"jmMemory",width:"50%",ellipsis:!0}]);const k=v([{title:r("key"),dataIndex:"key",width:340,ellipsis:!0},{title:r("value"),dataIndex:"value"}]),g=K([]),i={system:{title:r("systemSetting"),key:"system"},container:{title:r("containerSetting"),key:"container"}},m=K(i.system.key);T(()=>I,t=>{var e;m.value=((e=t.query)==null?void 0:e.tab)||i.system.key,x(m.value)},{immediate:!0});async function M(){try{p.value=!0;const t=await J();if(!t)return;h.length=0,Object.keys(t).forEach(e=>{h.push({key:e,value:t[e]})})}finally{p.value=!1}}async function $(){try{p.value=!0;const t=await Q();g.value=[],f.length=0,(t||[]).forEach((e,_)=>{e.propertiesArray=[],g.value.push(e.name),f.push(e),Object.keys(e.properties||{}).forEach(n=>{f[_].propertiesArray.push({key:n,value:e.properties[n]})}),(e.optimizeGroup||[]).forEach(n=>{n.innerPropertiesArray=[],Object.keys(n.properties||{}).forEach(y=>{n.innerPropertiesArray.push({key:y,value:n.properties[y]})})})})}finally{p.value=!1}}function x(t){const e={...I.query};e.tab=t,j.replace({query:{...e}}),q()}function q(){m.value===i.system.key?M():$()}return(t,e)=>{const _=V,n=F,y=G,A=L,z=R,B=U("u-loading");return o(),b(C,null,[s("div",W,[d(z,{activeKey:m.value,"onUpdate:activeKey":e[1]||(e[1]=a=>m.value=a),onChange:x},{default:l(()=>[(o(),c(n,{key:i.system.key,tab:i.system.title},{default:l(()=>[s("div",X,[h.length?(o(),c(_,{key:0,rowKey:"key",columns:k,"data-source":h,pagination:!1},null,8,["columns","data-source"])):S("",!0)])]),_:1},8,["tab"])),(o(),c(n,{key:i.container.key,tab:i.container.title},{default:l(()=>[s("div",Y,[d(A,{activeKey:g.value,"onUpdate:activeKey":e[0]||(e[0]=a=>g.value=a)},{default:l(()=>[(o(!0),b(C,null,E(f,a=>(o(),c(y,{key:a.name,header:a.name},{default:l(()=>[s("ul",Z,[s("li",ee,[s("h3",te,u(t.$t("name")),1),s("span",ae,u(a.name),1)]),a.classpath?(o(),b("li",se,[s("h3",ne,u(t.$t("implementation")),1),s("span",oe,u(a.classpath),1)])):S("",!0)]),s("h3",re,u(t.$t("properties")),1),d(_,{rowKey:"key",columns:k,"data-source":a.propertiesArray,pagination:!1},null,8,["columns","data-source"]),s("h3",ie,u(t.$t("optimizerGroups")),1),d(A,null,{default:l(()=>[(o(!0),b(C,null,E(a.optimizeGroup,w=>(o(),c(y,{key:w.name,header:w.name},{default:l(()=>[d(_,{rowKey:"name",columns:k,"data-source":w.innerPropertiesArray,pagination:!1},null,8,["columns","data-source"])]),_:2},1032,["header"]))),128))]),_:2},1024)]),_:2},1032,["header"]))),128))]),_:1},8,["activeKey"])])]),_:1},8,["tab"]))]),_:1},8,["activeKey"])]),p.value?(o(),c(B,{key:0})):S("",!0)],64)}}}),ge=H(le,[["__scopeId","data-v-71ab550c"]]);export{ge as default}; +import{v as D,U as N,K as O,L as P,D as K,C as v,a7 as T,r as U,o,e as k,z as s,u as d,h as l,c,g as S,F as C,k as E,af as V,ao as F,aD as L,ap as R,y as u,aE as G,x as H}from"./index-bS3EFDLG.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{b as J,e as Q}from"./setting.services-JdWe7Vb7.js";const W={class:"setting-wrap"},X={class:"system-setting"},Y={class:"container-setting"},Z={class:"content"},ee={class:"item"},te={class:"left"},ae={class:"right"},se={key:0,class:"item"},ne={class:"left"},oe={class:"right"},re={class:"g-mb-12 g-mt-12"},ie={class:"g-mb-12 g-mt-12"},le=D({__name:"index",setup(ce){const{t:r}=N(),j=O(),I=P(),p=K(!1),h=v([]),f=v([]);v([{title:r("name"),dataIndex:"name",width:340,ellipsis:!0},{title:r("propertiesMemory",{type:"taskmanager"}),dataIndex:"tmMemory",width:"50%",ellipsis:!0},{title:r("propertiesMemory",{type:"jobmanager"}),dataIndex:"jmMemory",width:"50%",ellipsis:!0}]);const b=v([{title:r("key"),dataIndex:"key",width:340,ellipsis:!0},{title:r("value"),dataIndex:"value"}]),g=K([]),i={system:{title:r("systemSetting"),key:"system"},container:{title:r("containerSetting"),key:"container"}},m=K(i.system.key);T(()=>I,t=>{var e;m.value=((e=t.query)==null?void 0:e.tab)||i.system.key,x(m.value)},{immediate:!0});async function M(){try{p.value=!0;const t=await J();if(!t)return;h.length=0,Object.keys(t).forEach(e=>{h.push({key:e,value:t[e]})})}finally{p.value=!1}}async function $(){try{p.value=!0;const t=await Q();g.value=[],f.length=0,(t||[]).forEach((e,_)=>{e.propertiesArray=[],g.value.push(e.name),f.push(e),Object.keys(e.properties||{}).forEach(n=>{f[_].propertiesArray.push({key:n,value:e.properties[n]})}),(e.optimizeGroup||[]).forEach(n=>{n.innerPropertiesArray=[],Object.keys(n.properties||{}).forEach(y=>{n.innerPropertiesArray.push({key:y,value:n.properties[y]})})})})}finally{p.value=!1}}function x(t){const e={...I.query};e.tab=t,j.replace({query:{...e}}),q()}function q(){m.value===i.system.key?M():$()}return(t,e)=>{const _=V,n=F,y=G,A=L,z=R,B=U("u-loading");return o(),k(C,null,[s("div",W,[d(z,{activeKey:m.value,"onUpdate:activeKey":e[1]||(e[1]=a=>m.value=a),onChange:x},{default:l(()=>[(o(),c(n,{key:i.system.key,tab:i.system.title},{default:l(()=>[s("div",X,[h.length?(o(),c(_,{key:0,rowKey:"key",columns:b,"data-source":h,pagination:!1},null,8,["columns","data-source"])):S("",!0)])]),_:1},8,["tab"])),(o(),c(n,{key:i.container.key,tab:i.container.title},{default:l(()=>[s("div",Y,[d(A,{activeKey:g.value,"onUpdate:activeKey":e[0]||(e[0]=a=>g.value=a)},{default:l(()=>[(o(!0),k(C,null,E(f,a=>(o(),c(y,{key:a.name,header:a.name},{default:l(()=>[s("ul",Z,[s("li",ee,[s("h3",te,u(t.$t("name")),1),s("span",ae,u(a.name),1)]),a.classpath?(o(),k("li",se,[s("h3",ne,u(t.$t("implementation")),1),s("span",oe,u(a.classpath),1)])):S("",!0)]),s("h3",re,u(t.$t("properties")),1),d(_,{rowKey:"key",columns:b,"data-source":a.propertiesArray,pagination:!1},null,8,["columns","data-source"]),s("h3",ie,u(t.$t("optimizerGroups")),1),d(A,null,{default:l(()=>[(o(!0),k(C,null,E(a.optimizeGroup,w=>(o(),c(y,{key:w.name,header:w.name},{default:l(()=>[d(_,{rowKey:"name",columns:b,"data-source":w.innerPropertiesArray,pagination:!1},null,8,["columns","data-source"])]),_:2},1032,["header"]))),128))]),_:2},1024)]),_:2},1032,["header"]))),128))]),_:1},8,["activeKey"])])]),_:1},8,["tab"]))]),_:1},8,["activeKey"])]),p.value?(o(),c(B,{key:0})):S("",!0)],64)}}}),ge=H(le,[["__scopeId","data-v-fc61ecef"]]);export{ge as default}; diff --git a/ams/dashboard/src/main/resources/static/assets/index-DlWIyNCI.js b/ams/dashboard/src/main/resources/static/assets/index-bS3EFDLG.js similarity index 61% rename from ams/dashboard/src/main/resources/static/assets/index-DlWIyNCI.js rename to ams/dashboard/src/main/resources/static/assets/index-bS3EFDLG.js index 719ac35322..68f3ac2d05 100644 --- a/ams/dashboard/src/main/resources/static/assets/index-DlWIyNCI.js +++ b/ams/dashboard/src/main/resources/static/assets/index-bS3EFDLG.js @@ -17,42 +17,20 @@ * limitations under the License. */ -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./Home-C66Dh-wI.js","./QuestionCircleOutlined-BsAdzrND.js","./QuestionCircleOutlined-BjpJO9pY.css","./common.type-BewOZShK.js","./usePlaceholder-DDgQeLdU.js","./table.service-Ca4OvdR2.js","./Home-BVx4TYHz.css","./index-hyzR3Ge3.css","./index-Df_5A3gy.css","./index-Btpcwc4_.css","./index--RLxQK15.css","./index-RrNRkkHx.css","./index-BgUGsUZ9.css","./404-Cfg0Wzoe.js","./404-6Zzsn426.css","./index-QO7atDR1.js","./setting.services-D6jcsF9r.js","./optimize.service-gp8YzoRE.js","./optimize-DFb8yrlB.css","./index-pblPB3fl.css","./index-CBlaEa6X.css","./index-Dt04o-8L.js","./usePagination-flyrWnsD.js","./index-CmZEm_Zd.css","./index-DCSSQW8n.css","./index-DL_oEwV3.js","./index-XWqLvTvc.css","./upgrade-DQoaXczL.js","./upgrade-B5IwYnbA.css","./create-CMcV8tL0.js","./create-CmP2qTs8.css","./index-Dq3nmUzZ.js","./index-BbPIP2jN.css","./index-Bjo7HzMG.js","./index-Dq0y8BTZ.css","./index-BjI98gEp.js","./index-Cavyp6vq.css","./index-_IAmf6sY.js","./index-SXqAZhkD.css","./index-CIrzahzi.js","./index-mIXv5212.css","./javascript-BhEWbzVX.js","./typescript-TCW5qV2A.js"] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();/** -* @vue/shared v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function NT(n,e){const t=new Set(n.split(","));return e?r=>t.has(r.toLowerCase()):r=>t.has(r)}const Jn={},Tf=[],Uo=()=>{},jG=()=>!1,Tb=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),AT=n=>n.startsWith("onUpdate:"),Dr=Object.assign,DT=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},zG=Object.prototype.hasOwnProperty,pn=(n,e)=>zG.call(n,e),It=Array.isArray,xf=n=>xb(n)==="[object Map]",WW=n=>xb(n)==="[object Set]",$t=n=>typeof n=="function",gr=n=>typeof n=="string",Sh=n=>typeof n=="symbol",qn=n=>n!==null&&typeof n=="object",VW=n=>(qn(n)||$t(n))&&$t(n.then)&&$t(n.catch),HW=Object.prototype.toString,xb=n=>HW.call(n),KG=n=>xb(n).slice(8,-1),UW=n=>xb(n)==="[object Object]",RT=n=>gr(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,jp=NT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ob=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},GG=/-(\w)/g,Io=Ob(n=>n.replace(GG,(e,t)=>t?t.toUpperCase():"")),qG=/\B([A-Z])/g,Eh=Ob(n=>n.replace(qG,"-$1").toLowerCase()),Nb=Ob(n=>n.charAt(0).toUpperCase()+n.slice(1)),__=Ob(n=>n?`on${Nb(n)}`:""),gu=(n,e)=>!Object.is(n,e),N0=(n,e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},YG=n=>{const e=parseFloat(n);return isNaN(e)?n:e},XG=n=>{const e=gr(n)?Number(n):NaN;return isNaN(e)?n:e};let eR;const $W=()=>eR||(eR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function PT(n){if(It(n)){const e={};for(let t=0;t{if(t){const r=t.split(QG);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Sg(n){let e="";if(gr(n))e=n;else if(It(n))for(let t=0;tgr(n)?n:n==null?"":It(n)||qn(n)&&(n.toString===HW||!$t(n.toString))?JSON.stringify(n,zW,2):String(n),zW=(n,e)=>e&&e.__v_isRef?zW(n,e.value):xf(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,i],o)=>(t[A0(r,o)+" =>"]=i,t),{})}:WW(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>A0(t))}:Sh(e)?A0(e):qn(e)&&!It(e)&&!UW(e)?String(e):e,A0=(n,e="")=>{var t;return Sh(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/** -* @vue/reactivity v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let go;class KW{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=go,!e&&go&&(this.index=(go.scopes||(go.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=go;try{return go=this,e()}finally{go=t}}}on(){go=this}off(){go=this.parent}stop(e){if(this._active){let t,r;for(t=0,r=this.effects.length;t=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),dd()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=eu,t=Rc;try{return eu=!0,Rc=this,this._runnings++,tR(this),this.fn()}finally{nR(this),this._runnings--,Rc=t,eu=e}}stop(){var e;this.active&&(tR(this),nR(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function oq(n){return n.value}function tR(n){n._trackId++,n._depsLength=0}function nR(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e{const t=new Map;return t.cleanup=n,t.computed=e,t},ny=new WeakMap,Pc=Symbol(""),g1=Symbol("");function to(n,e,t){if(eu&&Rc){let r=ny.get(n);r||ny.set(n,r=new Map);let i=r.get(t);i||r.set(t,i=QW(()=>r.delete(t))),XW(Rc,i)}}function Zs(n,e,t,r,i,o){const a=ny.get(n);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(t==="length"&&It(n)){const l=Number(r);a.forEach((u,c)=>{(c==="length"||!Sh(c)&&c>=l)&&s.push(u)})}else switch(t!==void 0&&s.push(a.get(t)),e){case"add":It(n)?RT(t)&&s.push(a.get("length")):(s.push(a.get(Pc)),xf(n)&&s.push(a.get(g1)));break;case"delete":It(n)||(s.push(a.get(Pc)),xf(n)&&s.push(a.get(g1)));break;case"set":xf(n)&&s.push(a.get(Pc));break}FT();for(const l of s)l&&ZW(l,4);BT()}function aq(n,e){var t;return(t=ny.get(n))==null?void 0:t.get(e)}const sq=NT("__proto__,__v_isRef,__isVue"),JW=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Sh)),rR=lq();function lq(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const r=Tt(this);for(let o=0,a=this.length;o{n[e]=function(...t){cd(),FT();const r=Tt(this)[e].apply(this,t);return BT(),dd(),r}}),n}function uq(n){const e=Tt(this);return to(e,"has",n),e.hasOwnProperty(n)}class e5{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){const i=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return o;if(t==="__v_raw")return r===(i?o?wq:i5:o?r5:n5).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=It(e);if(!i){if(a&&pn(rR,t))return Reflect.get(rR,t,r);if(t==="hasOwnProperty")return uq}const s=Reflect.get(e,t,r);return(Sh(t)?JW.has(t):sq(t))||(i||to(e,"get",t),o)?s:mr(s)?a&&RT(t)?s:s.value:qn(s)?i?a5(s):Rn(s):s}}class t5 extends e5{constructor(e=!1){super(!1,e)}set(e,t,r,i){let o=e[t];if(!this._isShallow){const l=Gf(o);if(!ry(r)&&!Gf(r)&&(o=Tt(o),r=Tt(r)),!It(e)&&mr(o)&&!mr(r))return l?!1:(o.value=r,!0)}const a=It(e)&&RT(t)?Number(t)n,Ab=n=>Reflect.getPrototypeOf(n);function um(n,e,t=!1,r=!1){n=n.__v_raw;const i=Tt(n),o=Tt(e);t||(gu(e,o)&&to(i,"get",e),to(i,"get",o));const{has:a}=Ab(i),s=r?WT:t?UT:Ev;if(a.call(i,e))return s(n.get(e));if(a.call(i,o))return s(n.get(o));n!==i&&n.get(e)}function cm(n,e=!1){const t=this.__v_raw,r=Tt(t),i=Tt(n);return e||(gu(n,i)&&to(r,"has",n),to(r,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function dm(n,e=!1){return n=n.__v_raw,!e&&to(Tt(n),"iterate",Pc),Reflect.get(n,"size",n)}function iR(n){n=Tt(n);const e=Tt(this);return Ab(e).has.call(e,n)||(e.add(n),Zs(e,"add",n,n)),this}function oR(n,e){e=Tt(e);const t=Tt(this),{has:r,get:i}=Ab(t);let o=r.call(t,n);o||(n=Tt(n),o=r.call(t,n));const a=i.call(t,n);return t.set(n,e),o?gu(e,a)&&Zs(t,"set",n,e):Zs(t,"add",n,e),this}function aR(n){const e=Tt(this),{has:t,get:r}=Ab(e);let i=t.call(e,n);i||(n=Tt(n),i=t.call(e,n)),r&&r.call(e,n);const o=e.delete(n);return i&&Zs(e,"delete",n,void 0),o}function sR(){const n=Tt(this),e=n.size!==0,t=n.clear();return e&&Zs(n,"clear",void 0,void 0),t}function fm(n,e){return function(r,i){const o=this,a=o.__v_raw,s=Tt(a),l=e?WT:n?UT:Ev;return!n&&to(s,"iterate",Pc),a.forEach((u,c)=>r.call(i,l(u),l(c),o))}}function hm(n,e,t){return function(...r){const i=this.__v_raw,o=Tt(i),a=xf(o),s=n==="entries"||n===Symbol.iterator&&a,l=n==="keys"&&a,u=i[n](...r),c=t?WT:e?UT:Ev;return!e&&to(o,"iterate",l?g1:Pc),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function vl(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function pq(){const n={get(o){return um(this,o)},get size(){return dm(this)},has:cm,add:iR,set:oR,delete:aR,clear:sR,forEach:fm(!1,!1)},e={get(o){return um(this,o,!1,!0)},get size(){return dm(this)},has:cm,add:iR,set:oR,delete:aR,clear:sR,forEach:fm(!1,!0)},t={get(o){return um(this,o,!0)},get size(){return dm(this,!0)},has(o){return cm.call(this,o,!0)},add:vl("add"),set:vl("set"),delete:vl("delete"),clear:vl("clear"),forEach:fm(!0,!1)},r={get(o){return um(this,o,!0,!0)},get size(){return dm(this,!0)},has(o){return cm.call(this,o,!0)},add:vl("add"),set:vl("set"),delete:vl("delete"),clear:vl("clear"),forEach:fm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=hm(o,!1,!1),t[o]=hm(o,!0,!1),e[o]=hm(o,!1,!0),r[o]=hm(o,!0,!0)}),[n,t,e,r]}const[vq,gq,mq,_q]=pq();function VT(n,e){const t=e?n?_q:mq:n?gq:vq;return(r,i,o)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?r:Reflect.get(pn(t,i)&&i in r?t:r,i,o)}const yq={get:VT(!1,!1)},bq={get:VT(!1,!0)},Cq={get:VT(!0,!1)},n5=new WeakMap,r5=new WeakMap,i5=new WeakMap,wq=new WeakMap;function Sq(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Eq(n){return n.__v_skip||!Object.isExtensible(n)?0:Sq(KG(n))}function Rn(n){return Gf(n)?n:HT(n,!1,dq,yq,n5)}function o5(n){return HT(n,!1,hq,bq,r5)}function a5(n){return HT(n,!0,fq,Cq,i5)}function HT(n,e,t,r,i){if(!qn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=i.get(n);if(o)return o;const a=Eq(n);if(a===0)return n;const s=new Proxy(n,a===2?r:t);return i.set(n,s),s}function tu(n){return Gf(n)?tu(n.__v_raw):!!(n&&n.__v_isReactive)}function Gf(n){return!!(n&&n.__v_isReadonly)}function ry(n){return!!(n&&n.__v_isShallow)}function s5(n){return tu(n)||Gf(n)}function Tt(n){const e=n&&n.__v_raw;return e?Tt(e):n}function Db(n){return Object.isExtensible(n)&&ty(n,"__v_skip",!0),n}const Ev=n=>qn(n)?Rn(n):n,UT=n=>qn(n)?a5(n):n;class l5{constructor(e,t,r,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new kT(()=>e(this._value),()=>y_(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Tt(this);return(!e._cacheable||e.effect.dirty)&&gu(e._value,e._value=e.effect.run())&&y_(e,4),u5(e),e.effect._dirtyLevel>=2&&y_(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Lq(n,e,t=!1){let r,i;const o=$t(n);return o?(r=n,i=Uo):(r=n.get,i=n.set),new l5(r,i,o||!i,t)}function u5(n){var e;eu&&Rc&&(n=Tt(n),XW(Rc,(e=n.dep)!=null?e:n.dep=QW(()=>n.dep=void 0,n instanceof l5?n:void 0)))}function y_(n,e=4,t){n=Tt(n);const r=n.dep;r&&ZW(r,e)}function mr(n){return!!(n&&n.__v_isRef===!0)}function J(n){return c5(n,!1)}function Yt(n){return c5(n,!0)}function c5(n,e){return mr(n)?n:new Iq(n,e)}class Iq{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Tt(e),this._value=t?e:Ev(e)}get value(){return u5(this),this._value}set value(e){const t=this.__v_isShallow||ry(e)||Gf(e);e=t?e:Tt(e),gu(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ev(e),y_(this,4))}}function vr(n){return mr(n)?n.value:n}const Tq={get:(n,e,t)=>vr(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const i=n[e];return mr(i)&&!mr(t)?(i.value=t,!0):Reflect.set(n,e,t,r)}};function d5(n){return tu(n)?n:new Proxy(n,Tq)}function zp(n){const e=It(n)?new Array(n.length):{};for(const t in n)e[t]=f5(n,t);return e}class xq{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return aq(Tt(this._object),this._key)}}class Oq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function vn(n,e,t){return mr(n)?n:$t(n)?new Oq(n):qn(n)&&arguments.length>1?f5(n,e,t):J(n)}function f5(n,e,t){const r=n[e];return mr(r)?r:new xq(n,e,t)}/** -* @vue/runtime-core v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function nu(n,e,t,r){try{return r?n(...r):n()}catch(i){Rb(i,e,t)}}function $o(n,e,t,r){if($t(n)){const o=nu(n,e,t,r);return o&&VW(o)&&o.catch(a=>{Rb(a,e,t)}),o}const i=[];for(let o=0;o>>1,i=_i[r],o=Iv(i);oWa&&_i.splice(e,1)}function Rq(n){It(n)?Of.push(...n):(!Fl||!Fl.includes(n,n.allowRecurse?pc+1:pc))&&Of.push(n),p5()}function lR(n,e,t=Lv?Wa+1:0){for(;t<_i.length;t++){const r=_i[t];if(r&&r.pre){if(n&&r.id!==n.uid)continue;_i.splice(t,1),t--,r()}}}function v5(n){if(Of.length){const e=[...new Set(Of)].sort((t,r)=>Iv(t)-Iv(r));if(Of.length=0,Fl){Fl.push(...e);return}for(Fl=e,pc=0;pcn.id==null?1/0:n.id,Pq=(n,e)=>{const t=Iv(n)-Iv(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function g5(n){m1=!1,Lv=!0,_i.sort(Pq);try{for(Wa=0;Wa<_i.length;Wa++){const e=_i[Wa];e&&e.active!==!1&&nu(e,null,14)}}finally{Wa=0,_i.length=0,v5(),Lv=!1,$T=null,(_i.length||Of.length)&&g5()}}function Mq(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||Jn;let i=t;const o=e.startsWith("update:"),a=o&&e.slice(7);if(a&&a in r){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:d,trim:f}=r[c]||Jn;f&&(i=t.map(h=>gr(h)?h.trim():h)),d&&(i=t.map(YG))}let s,l=r[s=__(e)]||r[s=__(Io(e))];!l&&o&&(l=r[s=__(Eh(e))]),l&&$o(l,n,6,i);const u=r[s+"Once"];if(u){if(!n.emitted)n.emitted={};else if(n.emitted[s])return;n.emitted[s]=!0,$o(u,n,6,i)}}function m5(n,e,t=!1){const r=e.emitsCache,i=r.get(n);if(i!==void 0)return i;const o=n.emits;let a={},s=!1;if(!$t(n)){const l=u=>{const c=m5(u,e,!0);c&&(s=!0,Dr(a,c))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!s?(qn(n)&&r.set(n,null),null):(It(o)?o.forEach(l=>a[l]=null):Dr(a,o),qn(n)&&r.set(n,a),a)}function Pb(n,e){return!n||!Tb(e)?!1:(e=e.slice(2).replace(/Once$/,""),pn(n,e[0].toLowerCase()+e.slice(1))||pn(n,Eh(e))||pn(n,e))}let Or=null,Mb=null;function iy(n){const e=Or;return Or=n,Mb=n&&n.type.__scopeId||null,e}function _9e(n){Mb=n}function y9e(){Mb=null}const b9e=n=>zT;function zT(n,e=Or,t){if(!e||n._n)return n;const r=(...i)=>{r._d&&wR(-1);const o=iy(e);let a;try{a=n(...i)}finally{iy(o),r._d&&wR(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function D0(n){const{type:e,vnode:t,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:h,ctx:p,inheritAttrs:v}=n;let m,g;const _=iy(n);try{if(t.shapeFlag&4){const b=i||r,w=b;m=Ba(c.call(w,b,d,o,h,f,p)),g=l}else{const b=e;m=Ba(b.length>1?b(o,{attrs:l,slots:s,emit:u}):b(o,null)),g=e.props?l:kq(l)}}catch(b){Yp.length=0,Rb(b,n,1),m=I(So)}let y=m;if(g&&v!==!1){const b=Object.keys(g),{shapeFlag:w}=y;b.length&&w&7&&(a&&b.some(AT)&&(g=Fq(g,a)),y=ji(y,g))}return t.dirs&&(y=ji(y),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&(y.transition=t.transition),m=y,iy(_),m}const kq=n=>{let e;for(const t in n)(t==="class"||t==="style"||Tb(t))&&((e||(e={}))[t]=n[t]);return e},Fq=(n,e)=>{const t={};for(const r in n)(!AT(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function Bq(n,e,t){const{props:r,children:i,component:o}=n,{props:a,children:s,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return r?uR(r,a,u):!!a;if(l&8){const c=e.dynamicProps;for(let d=0;dn.__isSuspense;function jq(n,e){e&&e.pendingBranch?It(n)?e.effects.push(...n):e.effects.push(n):Rq(n)}const zq=Symbol.for("v-scx"),Kq=()=>yt(zq);function Ft(n,e){return qT(n,null,e)}const pm={};function Ve(n,e,t){return qT(n,e,t)}function qT(n,e,{immediate:t,deep:r,flush:i,once:o,onTrack:a,onTrigger:s}=Jn){if(e&&o){const C=e;e=(...S)=>{C(...S),w()}}const l=ei,u=C=>r===!0?C:Ec(C,r===!1?1:void 0);let c,d=!1,f=!1;if(mr(n)?(c=()=>n.value,d=ry(n)):tu(n)?(c=()=>u(n),d=!0):It(n)?(f=!0,d=n.some(C=>tu(C)||ry(C)),c=()=>n.map(C=>{if(mr(C))return C.value;if(tu(C))return u(C);if($t(C))return nu(C,l,2)})):$t(n)?e?c=()=>nu(n,l,2):c=()=>(h&&h(),$o(n,l,3,[p])):c=Uo,e&&r){const C=c;c=()=>Ec(C())}let h,p=C=>{h=y.onStop=()=>{nu(C,l,4),h=y.onStop=void 0}},v;if(Wb)if(p=Uo,e?t&&$o(e,l,3,[c(),f?[]:void 0,p]):c(),i==="sync"){const C=Kq();v=C.__watcherHandles||(C.__watcherHandles=[])}else return Uo;let m=f?new Array(n.length).fill(pm):pm;const g=()=>{if(!(!y.active||!y.dirty))if(e){const C=y.run();(r||d||(f?C.some((S,L)=>gu(S,m[L])):gu(C,m)))&&(h&&h(),$o(e,l,3,[C,m===pm?void 0:f&&m[0]===pm?[]:m,p]),m=C)}else y.run()};g.allowRecurse=!!e;let _;i==="sync"?_=g:i==="post"?_=()=>Xi(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),_=()=>jT(g));const y=new kT(c,Uo,_),b=GW(),w=()=>{y.stop(),b&&DT(b.effects,y)};return e?t?g():m=y.run():i==="post"?Xi(y.run.bind(y),l&&l.suspense):y.run(),v&&v.push(w),w}function Gq(n,e,t){const r=this.proxy,i=gr(n)?n.includes(".")?y5(r,n):()=>r[n]:n.bind(r,r);let o;$t(e)?o=e:(o=e.handler,t=e);const a=Lg(this),s=qT(i,o.bind(r),t);return a(),s}function y5(n,e){const t=e.split(".");return()=>{let r=n;for(let i=0;i0){if(t>=e)return n;t++}if(r=r||new Set,r.has(n))return n;if(r.add(n),mr(n))Ec(n.value,e,t,r);else if(It(n))for(let i=0;i{Ec(i,e,t,r)});else if(UW(n))for(const i in n)Ec(n[i],e,t,r);return n}function Ki(n,e){if(Or===null)return n;const t=Vb(Or)||Or.proxy,r=n.dirs||(n.dirs=[]);for(let i=0;i{n.isMounted=!0}),Zt(()=>{n.isUnmounting=!0}),n}const Ro=[Function,Array],C5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ro,onEnter:Ro,onAfterEnter:Ro,onEnterCancelled:Ro,onBeforeLeave:Ro,onLeave:Ro,onAfterLeave:Ro,onLeaveCancelled:Ro,onBeforeAppear:Ro,onAppear:Ro,onAfterAppear:Ro,onAppearCancelled:Ro},qq={name:"BaseTransition",props:C5,setup(n,{slots:e}){const t=Rr(),r=b5();return()=>{const i=e.default&&YT(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const f of i)if(f.type!==So){o=f;break}}const a=Tt(n),{mode:s}=a;if(r.isLeaving)return R0(o);const l=dR(o);if(!l)return R0(o);const u=Tv(l,a,r,t);xv(l,u);const c=t.subTree,d=c&&dR(c);if(d&&d.type!==So&&!vc(l,d)){const f=Tv(d,a,r,t);if(xv(d,f),s==="out-in")return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,t.update.active!==!1&&(t.effect.dirty=!0,t.update())},R0(o);s==="in-out"&&l.type!==So&&(f.delayLeave=(h,p,v)=>{const m=w5(r,d);m[String(d.key)]=d,h[Bl]=()=>{p(),h[Bl]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return o}}},Yq=qq;function w5(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function Tv(n,e,t,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,y=String(n.key),b=w5(t,n),w=(L,E)=>{L&&$o(L,r,9,E)},C=(L,E)=>{const T=E[1];w(L,E),It(L)?L.every(P=>P.length<=1)&&T():L.length<=1&&T()},S={mode:o,persisted:a,beforeEnter(L){let E=s;if(!t.isMounted)if(i)E=v||s;else return;L[Bl]&&L[Bl](!0);const T=b[y];T&&vc(n,T)&&T.el[Bl]&&T.el[Bl](),w(E,[L])},enter(L){let E=l,T=u,P=c;if(!t.isMounted)if(i)E=m||l,T=g||u,P=_||c;else return;let A=!1;const D=L[vm]=M=>{A||(A=!0,M?w(P,[L]):w(T,[L]),S.delayedLeave&&S.delayedLeave(),L[vm]=void 0)};E?C(E,[L,D]):D()},leave(L,E){const T=String(n.key);if(L[vm]&&L[vm](!0),t.isUnmounting)return E();w(d,[L]);let P=!1;const A=L[Bl]=D=>{P||(P=!0,E(),D?w(p,[L]):w(h,[L]),L[Bl]=void 0,b[T]===n&&delete b[T])};b[T]=n,f?C(f,[L,A]):A()},clone(L){return Tv(L,e,t,r)}};return S}function R0(n){if(kb(n))return n=ji(n),n.children=null,n}function dR(n){return kb(n)?n.children?n.children[0]:void 0:n}function xv(n,e){n.shapeFlag&6&&n.component?xv(n.component.subTree,e):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function YT(n,e=!1,t){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!n.type.__asyncLoader,kb=n=>n.type.__isKeepAlive;function XT(n,e){E5(n,"a",e)}function S5(n,e){E5(n,"da",e)}function E5(n,e,t=ei){const r=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(Fb(e,r,t),t){let i=t.parent;for(;i&&i.parent;)kb(i.parent.vnode)&&Xq(r,e,t,i),i=i.parent}}function Xq(n,e,t,r){const i=Fb(e,n,r,!0);Ia(()=>{DT(r[e],i)},t)}function Fb(n,e,t=ei,r=!1){if(t){const i=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...a)=>{if(t.isUnmounted)return;cd();const s=Lg(t),l=$o(e,t,n,a);return s(),dd(),l});return r?i.unshift(o):i.push(o),o}}const ul=n=>(e,t=ei)=>(!Wb||n==="sp")&&Fb(n,(...r)=>e(...r),t),ZT=ul("bm"),Wt=ul("m"),L5=ul("bu"),Zo=ul("u"),Zt=ul("bum"),Ia=ul("um"),Zq=ul("sp"),Qq=ul("rtg"),Jq=ul("rtc");function eY(n,e=ei){Fb("ec",n,e)}function w9e(n,e,t,r){let i;const o=t&&t[r];if(It(n)||gr(n)){i=new Array(n.length);for(let a=0,s=n.length;ae(a,s,void 0,o&&o[s]));else{const a=Object.keys(n);i=new Array(a.length);for(let s=0,l=a.length;s{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return n}function I5(n,e,t={},r,i){if(Or.isCE||Or.parent&&Kp(Or.parent)&&Or.parent.isCE)return e!=="default"&&(t.name=e),I("slot",t,r&&r());let o=n[e];o&&o._c&&(o._d=!1),Eg();const a=o&&T5(o(t)),s=nx(kt,{key:t.key||a&&a.key||`_${e}`},a||(r?r():[]),a&&n._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function T5(n){return n.some(e=>Ui(e)?!(e.type===So||e.type===kt&&!T5(e.children)):!0)?n:null}function E9e(n,e){const t={};for(const r in n)t[e&&/[A-Z]/.test(r)?`on:${r}`:__(r)]=n[r];return t}const _1=n=>n?V5(n)?Vb(n)||n.proxy:_1(n.parent):null,Gp=Dr(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>_1(n.parent),$root:n=>_1(n.root),$emit:n=>n.emit,$options:n=>QT(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,jT(n.update)}),$nextTick:n=>n.n||(n.n=en.bind(n.proxy)),$watch:n=>Gq.bind(n)}),P0=(n,e)=>n!==Jn&&!n.__isScriptSetup&&pn(n,e),tY={get({_:n},e){const{ctx:t,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=n;let u;if(e[0]!=="$"){const h=a[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return i[e];case 4:return t[e];case 3:return o[e]}else{if(P0(r,e))return a[e]=1,r[e];if(i!==Jn&&pn(i,e))return a[e]=2,i[e];if((u=n.propsOptions[0])&&pn(u,e))return a[e]=3,o[e];if(t!==Jn&&pn(t,e))return a[e]=4,t[e];y1&&(a[e]=0)}}const c=Gp[e];let d,f;if(c)return e==="$attrs"&&to(n,"get",e),c(n);if((d=s.__cssModules)&&(d=d[e]))return d;if(t!==Jn&&pn(t,e))return a[e]=4,t[e];if(f=l.config.globalProperties,pn(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:i,ctx:o}=n;return P0(i,e)?(i[e]=t,!0):r!==Jn&&pn(r,e)?(r[e]=t,!0):pn(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!t[a]||n!==Jn&&pn(n,a)||P0(e,a)||(s=o[0])&&pn(s,a)||pn(r,a)||pn(Gp,a)||pn(i.config.globalProperties,a)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:pn(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function fR(n){return It(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let y1=!0;function nY(n){const e=QT(n),t=n.proxy,r=n.ctx;y1=!1,e.beforeCreate&&hR(e.beforeCreate,n,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:C,renderTriggered:S,errorCaptured:L,serverPrefetch:E,expose:T,inheritAttrs:P,components:A,directives:D,filters:M}=e;if(u&&rY(u,r,null),a)for(const B in a){const F=a[B];$t(F)&&(r[B]=F.bind(t))}if(i){const B=i.call(t,t);qn(B)&&(n.data=Rn(B))}if(y1=!0,o)for(const B in o){const F=o[B],W=$t(F)?F.bind(t,t):$t(F.get)?F.get.bind(t,t):Uo,$=!$t(F)&&$t(F.set)?F.set.bind(t):Uo,j=V({get:W,set:$});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>j.value,set:X=>j.value=X})}if(s)for(const B in s)x5(s[B],r,t,B);if(l){const B=$t(l)?l.call(t):l;Reflect.ownKeys(B).forEach(F=>{qt(F,B[F])})}c&&hR(c,n,"c");function k(B,F){It(F)?F.forEach(W=>B(W.bind(t))):F&&B(F.bind(t))}if(k(ZT,d),k(Wt,f),k(L5,h),k(Zo,p),k(XT,v),k(S5,m),k(eY,L),k(Jq,C),k(Qq,S),k(Zt,_),k(Ia,b),k(Zq,E),It(T))if(T.length){const B=n.exposed||(n.exposed={});T.forEach(F=>{Object.defineProperty(B,F,{get:()=>t[F],set:W=>t[F]=W})})}else n.exposed||(n.exposed={});w&&n.render===Uo&&(n.render=w),P!=null&&(n.inheritAttrs=P),A&&(n.components=A),D&&(n.directives=D)}function rY(n,e,t=Uo){It(n)&&(n=b1(n));for(const r in n){const i=n[r];let o;qn(i)?"default"in i?o=yt(i.from||r,i.default,!0):o=yt(i.from||r):o=yt(i),mr(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[r]=o}}function hR(n,e,t){$o(It(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function x5(n,e,t,r){const i=r.includes(".")?y5(t,r):()=>t[r];if(gr(n)){const o=e[n];$t(o)&&Ve(i,o)}else if($t(n))Ve(i,n.bind(t));else if(qn(n))if(It(n))n.forEach(o=>x5(o,e,t,r));else{const o=$t(n.handler)?n.handler.bind(t):e[n.handler];$t(o)&&Ve(i,o,n)}}function QT(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=n.appContext,s=o.get(e);let l;return s?l=s:!i.length&&!t&&!r?l=e:(l={},i.length&&i.forEach(u=>oy(l,u,a,!0)),oy(l,e,a)),qn(e)&&o.set(e,l),l}function oy(n,e,t,r=!1){const{mixins:i,extends:o}=e;o&&oy(n,o,t,!0),i&&i.forEach(a=>oy(n,a,t,!0));for(const a in e)if(!(r&&a==="expose")){const s=iY[a]||t&&t[a];n[a]=s?s(n[a],e[a]):e[a]}return n}const iY={data:pR,props:vR,emits:vR,methods:Rp,computed:Rp,beforeCreate:Ni,created:Ni,beforeMount:Ni,mounted:Ni,beforeUpdate:Ni,updated:Ni,beforeDestroy:Ni,beforeUnmount:Ni,destroyed:Ni,unmounted:Ni,activated:Ni,deactivated:Ni,errorCaptured:Ni,serverPrefetch:Ni,components:Rp,directives:Rp,watch:aY,provide:pR,inject:oY};function pR(n,e){return e?n?function(){return Dr($t(n)?n.call(this,this):n,$t(e)?e.call(this,this):e)}:e:n}function oY(n,e){return Rp(b1(n),b1(e))}function b1(n){if(It(n)){const e={};for(let t=0;t1)return t&&$t(e)?e.call(r&&r.proxy):e}}function uY(){return!!(ei||Or||Nf)}function cY(n,e,t,r=!1){const i={},o={};ty(o,Bb,1),n.propsDefaults=Object.create(null),N5(n,e,i,o);for(const a in n.propsOptions[0])a in i||(i[a]=void 0);t?n.props=r?i:o5(i):n.type.props?n.props=i:n.props=o,n.attrs=o}function dY(n,e,t,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=n,s=Tt(i),[l]=n.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=n.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=A5(d,e,!0);Dr(a,f),h&&s.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}if(!o&&!l)return qn(n)&&r.set(n,Tf),Tf;if(It(o))for(let c=0;c-1,h[1]=v<0||p-1||pn(h,"default"))&&s.push(d)}}}const u=[a,s];return qn(n)&&r.set(n,u),u}function gR(n){return n[0]!=="$"&&!jp(n)}function mR(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function _R(n,e){return mR(n)===mR(e)}function yR(n,e){return It(e)?e.findIndex(t=>_R(t,n)):$t(e)&&_R(e,n)?0:-1}const D5=n=>n[0]==="_"||n==="$stable",JT=n=>It(n)?n.map(Ba):[Ba(n)],fY=(n,e,t)=>{if(e._n)return e;const r=zT((...i)=>JT(e(...i)),t);return r._c=!1,r},R5=(n,e,t)=>{const r=n._ctx;for(const i in n){if(D5(i))continue;const o=n[i];if($t(o))e[i]=fY(i,o,r);else if(o!=null){const a=JT(o);e[i]=()=>a}}},P5=(n,e)=>{const t=JT(e);n.slots.default=()=>t},hY=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=Tt(e),ty(e,"_",t)):R5(e,n.slots={})}else n.slots={},e&&P5(n,e);ty(n.slots,Bb,1)},pY=(n,e,t)=>{const{vnode:r,slots:i}=n;let o=!0,a=Jn;if(r.shapeFlag&32){const s=e._;s?t&&s===1?o=!1:(Dr(i,e),!t&&s===1&&delete i._):(o=!e.$stable,R5(e,i)),a=e}else e&&(P5(n,e),a={default:1});if(o)for(const s in i)!D5(s)&&a[s]==null&&delete i[s]};function w1(n,e,t,r,i=!1){if(It(n)){n.forEach((f,h)=>w1(f,e&&(It(e)?e[h]:e),t,r,i));return}if(Kp(r)&&!i)return;const o=r.shapeFlag&4?Vb(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:l}=n,u=e&&e.r,c=s.refs===Jn?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(gr(u)?(c[u]=null,pn(d,u)&&(d[u]=null)):mr(u)&&(u.value=null)),$t(l))nu(l,s,12,[a,c]);else{const f=gr(l),h=mr(l);if(f||h){const p=()=>{if(n.f){const v=f?pn(d,l)?d[l]:c[l]:l.value;i?It(v)&&DT(v,o):It(v)?v.includes(o)||v.push(o):f?(c[l]=[o],pn(d,l)&&(d[l]=c[l])):(l.value=[o],n.k&&(c[n.k]=l.value))}else f?(c[l]=a,pn(d,l)&&(d[l]=a)):h&&(l.value=a,n.k&&(c[n.k]=a))};a?(p.id=-1,Xi(p,t)):p()}}}const Xi=jq;function vY(n){return gY(n)}function gY(n,e){const t=$W();t.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Uo,insertStaticContent:p}=n,v=(N,R,G,te=null,re=null,pe=null,Se=void 0,fe=null,de=!!R.dynamicChildren)=>{if(N===R)return;N&&!vc(N,R)&&(te=K(N),X(N,re,pe,!0),N=null),R.patchFlag===-2&&(de=!1,R.dynamicChildren=null);const{type:le,ref:ve,shapeFlag:Ae}=R;switch(le){case cl:m(N,R,G,te);break;case So:g(N,R,G,te);break;case k0:N==null&&_(R,G,te,Se);break;case kt:A(N,R,G,te,re,pe,Se,fe,de);break;default:Ae&1?w(N,R,G,te,re,pe,Se,fe,de):Ae&6?D(N,R,G,te,re,pe,Se,fe,de):(Ae&64||Ae&128)&&le.process(N,R,G,te,re,pe,Se,fe,de,ue)}ve!=null&&re&&w1(ve,N&&N.ref,pe,R||N,!R)},m=(N,R,G,te)=>{if(N==null)r(R.el=s(R.children),G,te);else{const re=R.el=N.el;R.children!==N.children&&u(re,R.children)}},g=(N,R,G,te)=>{N==null?r(R.el=l(R.children||""),G,te):R.el=N.el},_=(N,R,G,te)=>{[N.el,N.anchor]=p(N.children,R,G,te,N.el,N.anchor)},y=({el:N,anchor:R},G,te)=>{let re;for(;N&&N!==R;)re=f(N),r(N,G,te),N=re;r(R,G,te)},b=({el:N,anchor:R})=>{let G;for(;N&&N!==R;)G=f(N),i(N),N=G;i(R)},w=(N,R,G,te,re,pe,Se,fe,de)=>{R.type==="svg"?Se="svg":R.type==="math"&&(Se="mathml"),N==null?C(R,G,te,re,pe,Se,fe,de):E(N,R,re,pe,Se,fe,de)},C=(N,R,G,te,re,pe,Se,fe)=>{let de,le;const{props:ve,shapeFlag:Ae,transition:Ie,dirs:se}=N;if(de=N.el=a(N.type,pe,ve&&ve.is,ve),Ae&8?c(de,N.children):Ae&16&&L(N.children,de,null,te,re,M0(N,pe),Se,fe),se&&Vu(N,null,te,"created"),S(de,N,N.scopeId,Se,te),ve){for(const _e in ve)_e!=="value"&&!jp(_e)&&o(de,_e,null,ve[_e],pe,N.children,te,re,ee);"value"in ve&&o(de,"value",null,ve.value,pe),(le=ve.onVnodeBeforeMount)&&Da(le,te,N)}se&&Vu(N,null,te,"beforeMount");const ge=mY(re,Ie);ge&&Ie.beforeEnter(de),r(de,R,G),((le=ve&&ve.onVnodeMounted)||ge||se)&&Xi(()=>{le&&Da(le,te,N),ge&&Ie.enter(de),se&&Vu(N,null,te,"mounted")},re)},S=(N,R,G,te,re)=>{if(G&&h(N,G),te)for(let pe=0;pe{for(let le=de;le{const fe=R.el=N.el;let{patchFlag:de,dynamicChildren:le,dirs:ve}=R;de|=N.patchFlag&16;const Ae=N.props||Jn,Ie=R.props||Jn;let se;if(G&&Hu(G,!1),(se=Ie.onVnodeBeforeUpdate)&&Da(se,G,R,N),ve&&Vu(R,N,G,"beforeUpdate"),G&&Hu(G,!0),le?T(N.dynamicChildren,le,fe,G,te,M0(R,re),pe):Se||F(N,R,fe,null,G,te,M0(R,re),pe,!1),de>0){if(de&16)P(fe,R,Ae,Ie,G,te,re);else if(de&2&&Ae.class!==Ie.class&&o(fe,"class",null,Ie.class,re),de&4&&o(fe,"style",Ae.style,Ie.style,re),de&8){const ge=R.dynamicProps;for(let _e=0;_e{se&&Da(se,G,R,N),ve&&Vu(R,N,G,"updated")},te)},T=(N,R,G,te,re,pe,Se)=>{for(let fe=0;fe{if(G!==te){if(G!==Jn)for(const fe in G)!jp(fe)&&!(fe in te)&&o(N,fe,G[fe],null,Se,R.children,re,pe,ee);for(const fe in te){if(jp(fe))continue;const de=te[fe],le=G[fe];de!==le&&fe!=="value"&&o(N,fe,le,de,Se,R.children,re,pe,ee)}"value"in te&&o(N,"value",G.value,te.value,Se)}},A=(N,R,G,te,re,pe,Se,fe,de)=>{const le=R.el=N?N.el:s(""),ve=R.anchor=N?N.anchor:s("");let{patchFlag:Ae,dynamicChildren:Ie,slotScopeIds:se}=R;se&&(fe=fe?fe.concat(se):se),N==null?(r(le,G,te),r(ve,G,te),L(R.children||[],G,ve,re,pe,Se,fe,de)):Ae>0&&Ae&64&&Ie&&N.dynamicChildren?(T(N.dynamicChildren,Ie,G,re,pe,Se,fe),(R.key!=null||re&&R===re.subTree)&&ex(N,R,!0)):F(N,R,G,ve,re,pe,Se,fe,de)},D=(N,R,G,te,re,pe,Se,fe,de)=>{R.slotScopeIds=fe,N==null?R.shapeFlag&512?re.ctx.activate(R,G,te,Se,de):M(R,G,te,re,pe,Se,de):H(N,R,de)},M=(N,R,G,te,re,pe,Se)=>{const fe=N.component=OY(N,te,re);if(kb(N)&&(fe.ctx.renderer=ue),NY(fe),fe.asyncDep){if(re&&re.registerDep(fe,k),!N.el){const de=fe.subTree=I(So);g(null,de,R,G)}}else k(fe,N,R,G,re,pe,Se)},H=(N,R,G)=>{const te=R.component=N.component;if(Bq(N,R,G))if(te.asyncDep&&!te.asyncResolved){B(te,R,G);return}else te.next=R,Dq(te.update),te.effect.dirty=!0,te.update();else R.el=N.el,te.vnode=R},k=(N,R,G,te,re,pe,Se)=>{const fe=()=>{if(N.isMounted){let{next:ve,bu:Ae,u:Ie,parent:se,vnode:ge}=N;{const De=M5(N);if(De){ve&&(ve.el=ge.el,B(N,ve,Se)),De.asyncDep.then(()=>{N.isUnmounted||fe()});return}}let _e=ve,ce;Hu(N,!1),ve?(ve.el=ge.el,B(N,ve,Se)):ve=ge,Ae&&N0(Ae),(ce=ve.props&&ve.props.onVnodeBeforeUpdate)&&Da(ce,se,ve,ge),Hu(N,!0);const Pe=D0(N),qe=N.subTree;N.subTree=Pe,v(qe,Pe,d(qe.el),K(qe),N,re,pe),ve.el=Pe.el,_e===null&&Wq(N,Pe.el),Ie&&Xi(Ie,re),(ce=ve.props&&ve.props.onVnodeUpdated)&&Xi(()=>Da(ce,se,ve,ge),re)}else{let ve;const{el:Ae,props:Ie}=R,{bm:se,m:ge,parent:_e}=N,ce=Kp(R);if(Hu(N,!1),se&&N0(se),!ce&&(ve=Ie&&Ie.onVnodeBeforeMount)&&Da(ve,_e,R),Hu(N,!0),Ae&&me){const Pe=()=>{N.subTree=D0(N),me(Ae,N.subTree,N,re,null)};ce?R.type.__asyncLoader().then(()=>!N.isUnmounted&&Pe()):Pe()}else{const Pe=N.subTree=D0(N);v(null,Pe,G,te,N,re,pe),R.el=Pe.el}if(ge&&Xi(ge,re),!ce&&(ve=Ie&&Ie.onVnodeMounted)){const Pe=R;Xi(()=>Da(ve,_e,Pe),re)}(R.shapeFlag&256||_e&&Kp(_e.vnode)&&_e.vnode.shapeFlag&256)&&N.a&&Xi(N.a,re),N.isMounted=!0,R=G=te=null}},de=N.effect=new kT(fe,Uo,()=>jT(le),N.scope),le=N.update=()=>{de.dirty&&de.run()};le.id=N.uid,Hu(N,!0),le()},B=(N,R,G)=>{R.component=N;const te=N.vnode.props;N.vnode=R,N.next=null,dY(N,R.props,te,G),pY(N,R.children,G),cd(),lR(N),dd()},F=(N,R,G,te,re,pe,Se,fe,de=!1)=>{const le=N&&N.children,ve=N?N.shapeFlag:0,Ae=R.children,{patchFlag:Ie,shapeFlag:se}=R;if(Ie>0){if(Ie&128){$(le,Ae,G,te,re,pe,Se,fe,de);return}else if(Ie&256){W(le,Ae,G,te,re,pe,Se,fe,de);return}}se&8?(ve&16&&ee(le,re,pe),Ae!==le&&c(G,Ae)):ve&16?se&16?$(le,Ae,G,te,re,pe,Se,fe,de):ee(le,re,pe,!0):(ve&8&&c(G,""),se&16&&L(Ae,G,te,re,pe,Se,fe,de))},W=(N,R,G,te,re,pe,Se,fe,de)=>{N=N||Tf,R=R||Tf;const le=N.length,ve=R.length,Ae=Math.min(le,ve);let Ie;for(Ie=0;Ieve?ee(N,re,pe,!0,!1,Ae):L(R,G,te,re,pe,Se,fe,de,Ae)},$=(N,R,G,te,re,pe,Se,fe,de)=>{let le=0;const ve=R.length;let Ae=N.length-1,Ie=ve-1;for(;le<=Ae&&le<=Ie;){const se=N[le],ge=R[le]=de?Wl(R[le]):Ba(R[le]);if(vc(se,ge))v(se,ge,G,null,re,pe,Se,fe,de);else break;le++}for(;le<=Ae&&le<=Ie;){const se=N[Ae],ge=R[Ie]=de?Wl(R[Ie]):Ba(R[Ie]);if(vc(se,ge))v(se,ge,G,null,re,pe,Se,fe,de);else break;Ae--,Ie--}if(le>Ae){if(le<=Ie){const se=Ie+1,ge=seIe)for(;le<=Ae;)X(N[le],re,pe,!0),le++;else{const se=le,ge=le,_e=new Map;for(le=ge;le<=Ie;le++){const Fe=R[le]=de?Wl(R[le]):Ba(R[le]);Fe.key!=null&&_e.set(Fe.key,le)}let ce,Pe=0;const qe=Ie-ge+1;let De=!1,ye=0;const Ee=new Array(qe);for(le=0;le=qe){X(Fe,re,pe,!0);continue}let He;if(Fe.key!=null)He=_e.get(Fe.key);else for(ce=ge;ce<=Ie;ce++)if(Ee[ce-ge]===0&&vc(Fe,R[ce])){He=ce;break}He===void 0?X(Fe,re,pe,!0):(Ee[He-ge]=le+1,He>=ye?ye=He:De=!0,v(Fe,R[He],G,null,re,pe,Se,fe,de),Pe++)}const xe=De?_Y(Ee):Tf;for(ce=xe.length-1,le=qe-1;le>=0;le--){const Fe=ge+le,He=R[Fe],je=Fe+1{const{el:pe,type:Se,transition:fe,children:de,shapeFlag:le}=N;if(le&6){j(N.component.subTree,R,G,te);return}if(le&128){N.suspense.move(R,G,te);return}if(le&64){Se.move(N,R,G,ue);return}if(Se===kt){r(pe,R,G);for(let Ae=0;Aefe.enter(pe),re);else{const{leave:Ae,delayLeave:Ie,afterLeave:se}=fe,ge=()=>r(pe,R,G),_e=()=>{Ae(pe,()=>{ge(),se&&se()})};Ie?Ie(pe,ge,_e):_e()}else r(pe,R,G)},X=(N,R,G,te=!1,re=!1)=>{const{type:pe,props:Se,ref:fe,children:de,dynamicChildren:le,shapeFlag:ve,patchFlag:Ae,dirs:Ie}=N;if(fe!=null&&w1(fe,null,G,N,!0),ve&256){R.ctx.deactivate(N);return}const se=ve&1&&Ie,ge=!Kp(N);let _e;if(ge&&(_e=Se&&Se.onVnodeBeforeUnmount)&&Da(_e,R,N),ve&6)Y(N.component,G,te);else{if(ve&128){N.suspense.unmount(G,te);return}se&&Vu(N,null,R,"beforeUnmount"),ve&64?N.type.remove(N,R,G,re,ue,te):le&&(pe!==kt||Ae>0&&Ae&64)?ee(le,R,G,!1,!0):(pe===kt&&Ae&384||!re&&ve&16)&&ee(de,R,G),te&&Z(N)}(ge&&(_e=Se&&Se.onVnodeUnmounted)||se)&&Xi(()=>{_e&&Da(_e,R,N),se&&Vu(N,null,R,"unmounted")},G)},Z=N=>{const{type:R,el:G,anchor:te,transition:re}=N;if(R===kt){z(G,te);return}if(R===k0){b(N);return}const pe=()=>{i(G),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(N.shapeFlag&1&&re&&!re.persisted){const{leave:Se,delayLeave:fe}=re,de=()=>Se(G,pe);fe?fe(N.el,pe,de):de()}else pe()},z=(N,R)=>{let G;for(;N!==R;)G=f(N),i(N),N=G;i(R)},Y=(N,R,G)=>{const{bum:te,scope:re,update:pe,subTree:Se,um:fe}=N;te&&N0(te),re.stop(),pe&&(pe.active=!1,X(Se,N,R,G)),fe&&Xi(fe,R),Xi(()=>{N.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&N.asyncDep&&!N.asyncResolved&&N.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},ee=(N,R,G,te=!1,re=!1,pe=0)=>{for(let Se=pe;SeN.shapeFlag&6?K(N.component.subTree):N.shapeFlag&128?N.suspense.next():f(N.anchor||N.el);let oe=!1;const ie=(N,R,G)=>{N==null?R._vnode&&X(R._vnode,null,null,!0):v(R._vnode||null,N,R,null,null,null,G),oe||(oe=!0,lR(),v5(),oe=!1),R._vnode=N},ue={p:v,um:X,m:j,r:Z,mt:M,mc:L,pc:F,pbc:T,n:K,o:n};let Ce,me;return e&&([Ce,me]=e(ue)),{render:ie,hydrate:Ce,createApp:lY(ie,Ce)}}function M0({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function Hu({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function mY(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function ex(n,e,t=!1){const r=n.children,i=e.children;if(It(r)&&It(i))for(let o=0;o>1,n[t[s]]0&&(e[r]=t[o-1]),t[o]=r)}}for(o=t.length,a=t[o-1];o-- >0;)t[o]=a,a=e[a];return t}function M5(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:M5(e)}const yY=n=>n.__isTeleport,qp=n=>n&&(n.disabled||n.disabled===""),bR=n=>typeof SVGElement<"u"&&n instanceof SVGElement,CR=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,S1=(n,e)=>{const t=n&&n.to;return gr(t)?e?e(t):null:t},bY={name:"Teleport",__isTeleport:!0,process(n,e,t,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:m}}=u,g=qp(e.props);let{shapeFlag:_,children:y,dynamicChildren:b}=e;if(n==null){const w=e.el=v(""),C=e.anchor=v("");h(w,t,r),h(C,t,r);const S=e.target=S1(e.props,p),L=e.targetAnchor=v("");S&&(h(L,S),a==="svg"||bR(S)?a="svg":(a==="mathml"||CR(S))&&(a="mathml"));const E=(T,P)=>{_&16&&c(y,T,P,i,o,a,s,l)};g?E(t,C):S&&E(S,L)}else{e.el=n.el;const w=e.anchor=n.anchor,C=e.target=n.target,S=e.targetAnchor=n.targetAnchor,L=qp(n.props),E=L?t:C,T=L?w:S;if(a==="svg"||bR(C)?a="svg":(a==="mathml"||CR(C))&&(a="mathml"),b?(f(n.dynamicChildren,b,E,i,o,a,s),ex(n,e,!0)):l||d(n,e,E,T,i,o,a,s,!1),g)L?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):gm(e,t,w,u,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const P=e.target=S1(e.props,p);P&&gm(e,P,null,u,0)}else L&&gm(e,C,S,u,1)}k5(e)},remove(n,e,t,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=n;if(d&&o(c),a&&o(u),s&16){const h=a||!qp(f);for(let p=0;p0?va||Tf:null,wY(),Ov>0&&va&&va.push(n),n}function B5(n,e,t,r,i,o){return F5(rx(n,e,t,r,i,o,!0))}function nx(n,e,t,r,i){return F5(I(n,e,t,r,i,!0))}function Ui(n){return n?n.__v_isVNode===!0:!1}function vc(n,e){return n.type===e.type&&n.key===e.key}const Bb="__vInternal",W5=({key:n})=>n??null,b_=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?gr(n)||mr(n)||$t(n)?{i:Or,r:n,k:e,f:!!t}:n:null);function rx(n,e=null,t=null,r=0,i=null,o=n===kt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&W5(e),ref:e&&b_(e),scopeId:Mb,slotScopeIds:null,children:t,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:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Or};return s?(ix(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=gr(t)?8:16),Ov>0&&!a&&va&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&va.push(l),l}const I=SY;function SY(n,e=null,t=null,r=0,i=null,o=!1){if((!n||n===_5)&&(n=So),Ui(n)){const s=ji(n,e,!0);return t&&ix(s,t),Ov>0&&!o&&va&&(s.shapeFlag&6?va[va.indexOf(n)]=s:va.push(s)),s.patchFlag|=-2,s}if(MY(n)&&(n=n.__vccOpts),e){e=EY(e);let{class:s,style:l}=e;s&&!gr(s)&&(e.class=Sg(s)),qn(l)&&(s5(l)&&!It(l)&&(l=Dr({},l)),e.style=PT(l))}const a=gr(n)?1:$q(n)?128:yY(n)?64:qn(n)?4:$t(n)?2:0;return rx(n,e,t,r,i,a,o,!0)}function EY(n){return n?s5(n)||Bb in n?Dr({},n):n:null}function ji(n,e,t=!1){const{props:r,ref:i,patchFlag:o,children:a}=n,s=e?IY(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:s,key:s&&W5(s),ref:e&&e.ref?t&&i?It(i)?i.concat(b_(e)):[i,b_(e)]:b_(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==kt?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&ji(n.ssContent),ssFallback:n.ssFallback&&ji(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Yc(n=" ",e=0){return I(cl,null,n,e)}function LY(n="",e=!1){return e?(Eg(),nx(So,null,n)):I(So,null,n)}function Ba(n){return n==null||typeof n=="boolean"?I(So):It(n)?I(kt,null,n.slice()):typeof n=="object"?Wl(n):I(cl,null,String(n))}function Wl(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:ji(n)}function ix(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(It(e))t=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),ix(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(Bb in e)?e._ctx=Or:i===3&&Or&&(Or.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else $t(e)?(e={default:e,_ctx:Or},t=32):(e=String(e),r&64?(t=16,e=[Yc(e)]):t=8);n.children=e,n.shapeFlag|=t}function IY(...n){const e={};for(let t=0;tei||Or;let ay,E1;{const n=$W(),e=(t,r)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};ay=e("__VUE_INSTANCE_SETTERS__",t=>ei=t),E1=e("__VUE_SSR_SETTERS__",t=>Wb=t)}const Lg=n=>{const e=ei;return ay(n),n.scope.on(),()=>{n.scope.off(),ay(e)}},SR=()=>{ei&&ei.scope.off(),ay(null)};function V5(n){return n.vnode.shapeFlag&4}let Wb=!1;function NY(n,e=!1){e&&E1(e);const{props:t,children:r}=n.vnode,i=V5(n);cY(n,t,i,e),hY(n,r);const o=i?AY(n,e):void 0;return e&&E1(!1),o}function AY(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=Db(new Proxy(n.ctx,tY));const{setup:r}=t;if(r){const i=n.setupContext=r.length>1?RY(n):null,o=Lg(n);cd();const a=nu(r,n,0,[n.props,i]);if(dd(),o(),VW(a)){if(a.then(SR,SR),e)return a.then(s=>{ER(n,s,e)}).catch(s=>{Rb(s,n,0)});n.asyncDep=a}else ER(n,a,e)}else H5(n,e)}function ER(n,e,t){$t(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:qn(e)&&(n.setupState=d5(e)),H5(n,t)}let LR;function H5(n,e,t){const r=n.type;if(!n.render){if(!e&&LR&&!r.render){const i=r.template||QT(n).template;if(i){const{isCustomElement:o,compilerOptions:a}=n.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Dr(Dr({isCustomElement:o,delimiters:s},a),l);r.render=LR(i,u)}}n.render=r.render||Uo}{const i=Lg(n);cd();try{nY(n)}finally{dd(),i()}}}function DY(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return to(n,"get","$attrs"),e[t]}}))}function RY(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return DY(n)},slots:n.slots,emit:n.emit,expose:e}}function Vb(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(d5(Db(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Gp)return Gp[t](n)},has(e,t){return t in e||t in Gp}}))}function PY(n,e=!0){return $t(n)?n.displayName||n.name:n.name||e&&n.__name}function MY(n){return $t(n)&&"__vccOpts"in n}const V=(n,e)=>Lq(n,e,Wb);function Xc(n,e,t){const r=arguments.length;return r===2?qn(e)&&!It(e)?Ui(e)?I(n,null,[e]):I(n,e):I(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&Ui(t)&&(t=[t]),I(n,e,t))}const kY="3.4.21";/** -* @vue/runtime-dom v3.4.21 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const FY="http://www.w3.org/2000/svg",BY="http://www.w3.org/1998/Math/MathML",Vl=typeof document<"u"?document:null,IR=Vl&&Vl.createElement("template"),WY={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const i=e==="svg"?Vl.createElementNS(FY,n):e==="mathml"?Vl.createElementNS(BY,n):Vl.createElement(n,t?{is:t}:void 0);return n==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:n=>Vl.createTextNode(n),createComment:n=>Vl.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Vl.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,i,o){const a=t?t.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===o||!(i=i.nextSibling)););else{IR.innerHTML=r==="svg"?`${n}`:r==="mathml"?`${n}`:n;const s=IR.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,t)}return[a?a.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},gl="transition",tp="animation",qf=Symbol("_vtc"),Qo=(n,{slots:e})=>Xc(Yq,$5(n),e);Qo.displayName="Transition";const U5={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},VY=Qo.props=Dr({},C5,U5),Uu=(n,e=[])=>{It(n)?n.forEach(t=>t(...e)):n&&n(...e)},TR=n=>n?It(n)?n.some(e=>e.length>1):n.length>1:!1;function $5(n){const e={};for(const A in n)A in U5||(e[A]=n[A]);if(n.css===!1)return e;const{name:t="v",type:r,duration:i,enterFromClass:o=`${t}-enter-from`,enterActiveClass:a=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,p=HY(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:y,onLeave:b,onLeaveCancelled:w,onBeforeAppear:C=g,onAppear:S=_,onAppearCancelled:L=y}=e,E=(A,D,M)=>{Nl(A,D?c:s),Nl(A,D?u:a),M&&M()},T=(A,D)=>{A._isLeaving=!1,Nl(A,d),Nl(A,h),Nl(A,f),D&&D()},P=A=>(D,M)=>{const H=A?S:_,k=()=>E(D,A,M);Uu(H,[D,k]),xR(()=>{Nl(D,A?l:o),As(D,A?c:s),TR(H)||OR(D,r,v,k)})};return Dr(e,{onBeforeEnter(A){Uu(g,[A]),As(A,o),As(A,a)},onBeforeAppear(A){Uu(C,[A]),As(A,l),As(A,u)},onEnter:P(!1),onAppear:P(!0),onLeave(A,D){A._isLeaving=!0;const M=()=>T(A,D);As(A,d),z5(),As(A,f),xR(()=>{A._isLeaving&&(Nl(A,d),As(A,h),TR(b)||OR(A,r,m,M))}),Uu(b,[A,M])},onEnterCancelled(A){E(A,!1),Uu(y,[A])},onAppearCancelled(A){E(A,!0),Uu(L,[A])},onLeaveCancelled(A){T(A),Uu(w,[A])}})}function HY(n){if(n==null)return null;if(qn(n))return[F0(n.enter),F0(n.leave)];{const e=F0(n);return[e,e]}}function F0(n){return XG(n)}function As(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[qf]||(n[qf]=new Set)).add(e)}function Nl(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[qf];t&&(t.delete(e),t.size||(n[qf]=void 0))}function xR(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let UY=0;function OR(n,e,t,r){const i=n._endId=++UY,o=()=>{i===n._endId&&r()};if(t)return setTimeout(o,t);const{type:a,timeout:s,propCount:l}=j5(n,e);if(!a)return r();const u=a+"end";let c=0;const d=()=>{n.removeEventListener(u,f),o()},f=h=>{h.target===n&&++c>=l&&d()};setTimeout(()=>{c(t[p]||"").split(", "),i=r(`${gl}Delay`),o=r(`${gl}Duration`),a=NR(i,o),s=r(`${tp}Delay`),l=r(`${tp}Duration`),u=NR(s,l);let c=null,d=0,f=0;e===gl?a>0&&(c=gl,d=a,f=o.length):e===tp?u>0&&(c=tp,d=u,f=l.length):(d=Math.max(a,u),c=d>0?a>u?gl:tp:null,f=c?c===gl?o.length:l.length:0);const h=c===gl&&/\b(transform|all)(,|$)/.test(r(`${gl}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function NR(n,e){for(;n.lengthAR(t)+AR(n[r])))}function AR(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function z5(){return document.body.offsetHeight}function $Y(n,e,t){const r=n[qf];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const sy=Symbol("_vod"),K5=Symbol("_vsh"),dl={beforeMount(n,{value:e},{transition:t}){n[sy]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):np(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),np(n,!0),r.enter(n)):r.leave(n,()=>{np(n,!1)}):np(n,e))},beforeUnmount(n,{value:e}){np(n,e)}};function np(n,e){n.style.display=e?n[sy]:"none",n[K5]=!e}const jY=Symbol(""),zY=/(^|;)\s*display\s*:/;function KY(n,e,t){const r=n.style,i=gr(t);let o=!1;if(t&&!i){if(e)if(gr(e))for(const a of e.split(";")){const s=a.slice(0,a.indexOf(":")).trim();t[s]==null&&C_(r,s,"")}else for(const a in e)t[a]==null&&C_(r,a,"");for(const a in t)a==="display"&&(o=!0),C_(r,a,t[a])}else if(i){if(e!==t){const a=r[jY];a&&(t+=";"+a),r.cssText=t,o=zY.test(t)}}else e&&n.removeAttribute("style");sy in n&&(n[sy]=o?r.display:"",n[K5]&&(r.display="none"))}const DR=/\s*!important$/;function C_(n,e,t){if(It(t))t.forEach(r=>C_(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=GY(n,e);DR.test(t)?n.setProperty(Eh(r),t.replace(DR,""),"important"):n[r]=t}}const RR=["Webkit","Moz","ms"],B0={};function GY(n,e){const t=B0[e];if(t)return t;let r=Io(e);if(r!=="filter"&&r in n)return B0[e]=r;r=Nb(r);for(let i=0;iW0||(eX.then(()=>W0=0),W0=Date.now());function nX(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;$o(rX(r,t.value),e,5,[r])};return t.value=n,t.attached=tX(),t}function rX(n,e){if(It(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const FR=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,iX=(n,e,t,r,i,o,a,s,l)=>{const u=i==="svg";e==="class"?$Y(n,r,u):e==="style"?KY(n,t,r):Tb(e)?AT(e)||QY(n,e,t,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):oX(n,e,r,u))?YY(n,e,r,o,a,s,l):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),qY(n,e,r,u))};function oX(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&FR(e)&&$t(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return FR(e)&&gr(t)?!1:e in n}const G5=new WeakMap,q5=new WeakMap,ly=Symbol("_moveCb"),BR=Symbol("_enterCb"),Y5={name:"TransitionGroup",props:Dr({},VY,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=Rr(),r=b5();let i,o;return Zo(()=>{if(!i.length)return;const a=n.moveClass||`${n.name||"v"}-move`;if(!cX(i[0].el,t.vnode.el,a))return;i.forEach(sX),i.forEach(lX);const s=i.filter(uX);z5(),s.forEach(l=>{const u=l.el,c=u.style;As(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[ly]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[ly]=null,Nl(u,a))};u.addEventListener("transitionend",d)})}),()=>{const a=Tt(n),s=$5(a);let l=a.tag||kt;i=o,o=e.default?YT(e.default()):[];for(let u=0;udelete n.mode;Y5.props;const ox=Y5;function sX(n){const e=n.el;e[ly]&&e[ly](),e[BR]&&e[BR]()}function lX(n){q5.set(n,n.el.getBoundingClientRect())}function uX(n){const e=G5.get(n),t=q5.get(n),r=e.left-t.left,i=e.top-t.top;if(r||i){const o=n.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",n}}function cX(n,e,t){const r=n.cloneNode(),i=n[qf];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),t.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:a}=j5(r);return o.removeChild(r),a}const dX=["ctrl","shift","alt","meta"],fX={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>dX.some(t=>n[`${t}Key`]&&!e.includes(t))},WR=(n,e)=>{const t=n._withMods||(n._withMods={}),r=e.join(".");return t[r]||(t[r]=(i,...o)=>{for(let a=0;a{X5().render(...n)},pX=(...n)=>{const e=X5().createApp(...n),{mount:t}=e;return e.mount=r=>{const i=gX(r);if(!i)return;const o=e._component;!$t(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=t(i,!1,vX(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function vX(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function gX(n){return gr(n)?document.querySelector(n):n}var mX=!1;/*! +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function xT(n,e){const t=Object.create(null),r=n.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const Jn={},xf=[],Ya=()=>{},kG=()=>!1,Ib=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),OT=n=>n.startsWith("onUpdate:"),Nr=Object.assign,NT=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},FG=Object.prototype.hasOwnProperty,pn=(n,e)=>FG.call(n,e),St=Array.isArray,Of=n=>Tb(n)==="[object Map]",WW=n=>Tb(n)==="[object Set]",$t=n=>typeof n=="function",mr=n=>typeof n=="string",Sh=n=>typeof n=="symbol",qn=n=>n!==null&&typeof n=="object",VW=n=>(qn(n)||$t(n))&&$t(n.then)&&$t(n.catch),HW=Object.prototype.toString,Tb=n=>HW.call(n),BG=n=>Tb(n).slice(8,-1),UW=n=>Tb(n)==="[object Object]",DT=n=>mr(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,C_=xT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xb=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},WG=/-(\w)/g,Io=xb(n=>n.replace(WG,(e,t)=>t?t.toUpperCase():"")),VG=/\B([A-Z])/g,Eh=xb(n=>n.replace(VG,"-$1").toLowerCase()),Ob=xb(n=>n.charAt(0).toUpperCase()+n.slice(1)),w_=xb(n=>n?`on${Ob(n)}`:""),Xc=(n,e)=>!Object.is(n,e),I0=(n,e)=>{for(let t=0;t{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},HG=n=>{const e=parseFloat(n);return isNaN(e)?n:e},UG=n=>{const e=mr(n)?Number(n):NaN;return isNaN(e)?n:e};let tR;const u1=()=>tR||(tR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function AT(n){if(St(n)){const e={};for(let t=0;t{if(t){const r=t.split(jG);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Tg(n){let e="";if(mr(n))e=n;else if(St(n))for(let t=0;tmr(n)?n:n==null?"":St(n)||qn(n)&&(n.toString===HW||!$t(n.toString))?JSON.stringify(n,jW,2):String(n),jW=(n,e)=>e&&e.__v_isRef?jW(n,e.value):Of(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[r,i],o)=>(t[T0(r,o)+" =>"]=i,t),{})}:WW(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>T0(t))}:Sh(e)?T0(e):qn(e)&&!St(e)&&!UW(e)?String(e):e,T0=(n,e="")=>{var t;return Sh(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};let go;class zW{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=go,!e&&go&&(this.index=(go.scopes||(go.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=go;try{return go=this,e()}finally{go=t}}}on(){go=this}off(){go=this.parent}stop(e){if(this._active){let t,r;for(t=0,r=this.effects.length;t{const e=new Set(n);return e.w=0,e.n=0,e},GW=n=>(n.w&gu)>0,qW=n=>(n.n&gu)>0,ZG=({deps:n})=>{if(n.length)for(let e=0;e{const{deps:e}=n;if(e.length){let t=0;for(let r=0;r{(c==="length"||!Sh(c)&&c>=l)&&s.push(u)})}else switch(t!==void 0&&s.push(a.get(t)),e){case"add":St(n)?DT(t)&&s.push(a.get("length")):(s.push(a.get(Pc)),Of(n)&&s.push(a.get(d1)));break;case"delete":St(n)||(s.push(a.get(Pc)),Of(n)&&s.push(a.get(d1)));break;case"set":Of(n)&&s.push(a.get(Pc));break}if(s.length===1)s[0]&&f1(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);f1(PT(l))}}function f1(n,e){const t=St(n)?n:[...n];for(const r of t)r.computed&&rR(r);for(const r of t)r.computed||rR(r)}function rR(n,e){(n!==ca||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}function JG(n,e){var t;return(t=ry.get(n))==null?void 0:t.get(e)}const eq=xT("__proto__,__v_isRef,__isVue"),ZW=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Sh)),iR=tq();function tq(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const r=Tt(this);for(let o=0,a=this.length;o{n[e]=function(...t){Lh();const r=Tt(this)[e].apply(this,t);return Ih(),r}}),n}function nq(n){const e=Tt(this);return to(e,"has",n),e.hasOwnProperty(n)}class QW{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,r){const i=this._isReadonly,o=this._shallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return o;if(t==="__v_raw")return r===(i?o?vq:n5:o?t5:e5).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=St(e);if(!i){if(a&&pn(iR,t))return Reflect.get(iR,t,r);if(t==="hasOwnProperty")return nq}const s=Reflect.get(e,t,r);return(Sh(t)?ZW.has(t):eq(t))||(i||to(e,"get",t),o)?s:ar(s)?a&&DT(t)?s:s.value:qn(s)?i?i5(s):Rn(s):s}}class JW extends QW{constructor(e=!1){super(!1,e)}set(e,t,r,i){let o=e[t];if(Gf(o)&&ar(o)&&!ar(r))return!1;if(!this._shallow&&(!iy(r)&&!Gf(r)&&(o=Tt(o),r=Tt(r)),!St(e)&&ar(o)&&!ar(r)))return o.value=r,!0;const a=St(e)&&DT(t)?Number(t)n,Nb=n=>Reflect.getPrototypeOf(n);function fm(n,e,t=!1,r=!1){n=n.__v_raw;const i=Tt(n),o=Tt(e);t||(Xc(e,o)&&to(i,"get",e),to(i,"get",o));const{has:a}=Nb(i),s=r?kT:t?WT:Iv;if(a.call(i,e))return s(n.get(e));if(a.call(i,o))return s(n.get(o));n!==i&&n.get(e)}function hm(n,e=!1){const t=this.__v_raw,r=Tt(t),i=Tt(n);return e||(Xc(n,i)&&to(r,"has",n),to(r,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function pm(n,e=!1){return n=n.__v_raw,!e&&to(Tt(n),"iterate",Pc),Reflect.get(n,"size",n)}function oR(n){n=Tt(n);const e=Tt(this);return Nb(e).has.call(e,n)||(e.add(n),Qs(e,"add",n,n)),this}function aR(n,e){e=Tt(e);const t=Tt(this),{has:r,get:i}=Nb(t);let o=r.call(t,n);o||(n=Tt(n),o=r.call(t,n));const a=i.call(t,n);return t.set(n,e),o?Xc(e,a)&&Qs(t,"set",n,e):Qs(t,"add",n,e),this}function sR(n){const e=Tt(this),{has:t,get:r}=Nb(e);let i=t.call(e,n);i||(n=Tt(n),i=t.call(e,n)),r&&r.call(e,n);const o=e.delete(n);return i&&Qs(e,"delete",n,void 0),o}function lR(){const n=Tt(this),e=n.size!==0,t=n.clear();return e&&Qs(n,"clear",void 0,void 0),t}function vm(n,e){return function(r,i){const o=this,a=o.__v_raw,s=Tt(a),l=e?kT:n?WT:Iv;return!n&&to(s,"iterate",Pc),a.forEach((u,c)=>r.call(i,l(u),l(c),o))}}function gm(n,e,t){return function(...r){const i=this.__v_raw,o=Tt(i),a=Of(o),s=n==="entries"||n===Symbol.iterator&&a,l=n==="keys"&&a,u=i[n](...r),c=t?kT:e?WT:Iv;return!e&&to(o,"iterate",l?d1:Pc),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:s?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function gl(n){return function(...e){return n==="delete"?!1:n==="clear"?void 0:this}}function sq(){const n={get(o){return fm(this,o)},get size(){return pm(this)},has:hm,add:oR,set:aR,delete:sR,clear:lR,forEach:vm(!1,!1)},e={get(o){return fm(this,o,!1,!0)},get size(){return pm(this)},has:hm,add:oR,set:aR,delete:sR,clear:lR,forEach:vm(!1,!0)},t={get(o){return fm(this,o,!0)},get size(){return pm(this,!0)},has(o){return hm.call(this,o,!0)},add:gl("add"),set:gl("set"),delete:gl("delete"),clear:gl("clear"),forEach:vm(!0,!1)},r={get(o){return fm(this,o,!0,!0)},get size(){return pm(this,!0)},has(o){return hm.call(this,o,!0)},add:gl("add"),set:gl("set"),delete:gl("delete"),clear:gl("clear"),forEach:vm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=gm(o,!1,!1),t[o]=gm(o,!0,!1),e[o]=gm(o,!1,!0),r[o]=gm(o,!0,!0)}),[n,t,e,r]}const[lq,uq,cq,dq]=sq();function FT(n,e){const t=e?n?dq:cq:n?uq:lq;return(r,i,o)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?r:Reflect.get(pn(t,i)&&i in r?t:r,i,o)}const fq={get:FT(!1,!1)},hq={get:FT(!1,!0)},pq={get:FT(!0,!1)},e5=new WeakMap,t5=new WeakMap,n5=new WeakMap,vq=new WeakMap;function gq(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mq(n){return n.__v_skip||!Object.isExtensible(n)?0:gq(BG(n))}function Rn(n){return Gf(n)?n:BT(n,!1,iq,fq,e5)}function r5(n){return BT(n,!1,aq,hq,t5)}function i5(n){return BT(n,!0,oq,pq,n5)}function BT(n,e,t,r,i){if(!qn(n)||n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=i.get(n);if(o)return o;const a=mq(n);if(a===0)return n;const s=new Proxy(n,a===2?r:t);return i.set(n,s),s}function tu(n){return Gf(n)?tu(n.__v_raw):!!(n&&n.__v_isReactive)}function Gf(n){return!!(n&&n.__v_isReadonly)}function iy(n){return!!(n&&n.__v_isShallow)}function o5(n){return tu(n)||Gf(n)}function Tt(n){const e=n&&n.__v_raw;return e?Tt(e):n}function Db(n){return ny(n,"__v_skip",!0),n}const Iv=n=>qn(n)?Rn(n):n,WT=n=>qn(n)?i5(n):n;function a5(n){eu&&ca&&(n=Tt(n),XW(n.dep||(n.dep=PT())))}function s5(n,e){n=Tt(n);const t=n.dep;t&&f1(t)}function ar(n){return!!(n&&n.__v_isRef===!0)}function ee(n){return l5(n,!1)}function Zt(n){return l5(n,!0)}function l5(n,e){return ar(n)?n:new _q(n,e)}class _q{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Tt(e),this._value=t?e:Iv(e)}get value(){return a5(this),this._value}set value(e){const t=this.__v_isShallow||iy(e)||Gf(e);e=t?e:Tt(e),Xc(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Iv(e),s5(this))}}function gr(n){return ar(n)?n.value:n}const yq={get:(n,e,t)=>gr(Reflect.get(n,e,t)),set:(n,e,t,r)=>{const i=n[e];return ar(i)&&!ar(t)?(i.value=t,!0):Reflect.set(n,e,t,r)}};function u5(n){return tu(n)?n:new Proxy(n,yq)}function Kp(n){const e=St(n)?new Array(n.length):{};for(const t in n)e[t]=c5(n,t);return e}class bq{constructor(e,t,r){this._object=e,this._key=t,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return JG(Tt(this._object),this._key)}}class Cq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function vn(n,e,t){return ar(n)?n:$t(n)?new Cq(n):qn(n)&&arguments.length>1?c5(n,e,t):ee(n)}function c5(n,e,t){const r=n[e];return ar(r)?r:new bq(n,e,t)}class wq{constructor(e,t,r,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new MT(e,()=>{this._dirty||(this._dirty=!0,s5(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Tt(this);return a5(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Sq(n,e,t=!1){let r,i;const o=$t(n);return o?(r=n,i=Ya):(r=n.get,i=n.set),new wq(r,i,o||!i,t)}function nu(n,e,t,r){let i;try{i=r?n(...r):n()}catch(o){Ab(o,e,t)}return i}function Uo(n,e,t,r){if($t(n)){const o=nu(n,e,t,r);return o&&VW(o)&&o.catch(a=>{Ab(a,e,t)}),o}const i=[];for(let o=0;o>>1,i=_i[r],o=xv(i);oWa&&_i.splice(e,1)}function Tq(n){St(n)?Nf.push(...n):(!Ps||!Ps.includes(n,n.allowRecurse?pc+1:pc))&&Nf.push(n),f5()}function uR(n,e,t=Tv?Wa+1:0){for(;t<_i.length;t++){const r=_i[t];if(r&&r.pre){if(n&&r.id!==n.uid)continue;_i.splice(t,1),t--,r()}}}function h5(n){if(Nf.length){const e=[...new Set(Nf)];if(Nf.length=0,Ps){Ps.push(...e);return}for(Ps=e,Ps.sort((t,r)=>xv(t)-xv(r)),pc=0;pcn.id==null?1/0:n.id,xq=(n,e)=>{const t=xv(n)-xv(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function p5(n){h1=!1,Tv=!0,_i.sort(xq);try{for(Wa=0;Wa<_i.length;Wa++){const e=_i[Wa];e&&e.active!==!1&&nu(e,null,14)}}finally{Wa=0,_i.length=0,h5(),Tv=!1,VT=null,(_i.length||Nf.length)&&p5()}}function Oq(n,e,...t){if(n.isUnmounted)return;const r=n.vnode.props||Jn;let i=t;const o=e.startsWith("update:"),a=o&&e.slice(7);if(a&&a in r){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:d,trim:f}=r[c]||Jn;f&&(i=t.map(h=>mr(h)?h.trim():h)),d&&(i=t.map(HG))}let s,l=r[s=w_(e)]||r[s=w_(Io(e))];!l&&o&&(l=r[s=w_(Eh(e))]),l&&Uo(l,n,6,i);const u=r[s+"Once"];if(u){if(!n.emitted)n.emitted={};else if(n.emitted[s])return;n.emitted[s]=!0,Uo(u,n,6,i)}}function v5(n,e,t=!1){const r=e.emitsCache,i=r.get(n);if(i!==void 0)return i;const o=n.emits;let a={},s=!1;if(!$t(n)){const l=u=>{const c=v5(u,e,!0);c&&(s=!0,Nr(a,c))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!s?(qn(n)&&r.set(n,null),null):(St(o)?o.forEach(l=>a[l]=null):Nr(a,o),qn(n)&&r.set(n,a),a)}function Rb(n,e){return!n||!Ib(e)?!1:(e=e.slice(2).replace(/Once$/,""),pn(n,e[0].toLowerCase()+e.slice(1))||pn(n,Eh(e))||pn(n,e))}let ei=null,Pb=null;function oy(n){const e=ei;return ei=n,Pb=n&&n.type.__scopeId||null,e}function E9e(n){Pb=n}function L9e(){Pb=null}const I9e=n=>UT;function UT(n,e=ei,t){if(!e||n._n)return n;const r=(...i)=>{r._d&&wR(-1);const o=oy(e);let a;try{a=n(...i)}finally{oy(o),r._d&&wR(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function x0(n){const{type:e,vnode:t,proxy:r,withProxy:i,props:o,propsOptions:[a],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:h,ctx:p,inheritAttrs:v}=n;let m,g;const _=oy(n);try{if(t.shapeFlag&4){const C=i||r,w=C;m=Ba(c.call(w,C,d,o,h,f,p)),g=l}else{const C=e;m=Ba(C.length>1?C(o,{attrs:l,slots:s,emit:u}):C(o,null)),g=e.props?l:Nq(l)}}catch(C){Xp.length=0,Ab(C,n,1),m=I(So)}let y=m;if(g&&v!==!1){const C=Object.keys(g),{shapeFlag:w}=y;C.length&&w&7&&(a&&C.some(OT)&&(g=Dq(g,a)),y=ji(y,g))}return t.dirs&&(y=ji(y),y.dirs=y.dirs?y.dirs.concat(t.dirs):t.dirs),t.transition&&(y.transition=t.transition),m=y,oy(_),m}const Nq=n=>{let e;for(const t in n)(t==="class"||t==="style"||Ib(t))&&((e||(e={}))[t]=n[t]);return e},Dq=(n,e)=>{const t={};for(const r in n)(!OT(r)||!(r.slice(9)in e))&&(t[r]=n[r]);return t};function Aq(n,e,t){const{props:r,children:i,component:o}=n,{props:a,children:s,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return r?cR(r,a,u):!!a;if(l&8){const c=e.dynamicProps;for(let d=0;dn.__isSuspense;function Bq(n,e){e&&e.pendingBranch?St(n)?e.effects.push(...n):e.effects.push(n):Tq(n)}function Ft(n,e){return zT(n,null,e)}const mm={};function We(n,e,t){return zT(n,e,t)}function zT(n,e,{immediate:t,deep:r,flush:i,onTrack:o,onTrigger:a}=Jn){var s;const l=KW()===((s=Ur)==null?void 0:s.scope)?Ur:null;let u,c=!1,d=!1;if(ar(n)?(u=()=>n.value,c=iy(n)):tu(n)?(u=()=>n,r=!0):St(n)?(d=!0,c=n.some(C=>tu(C)||iy(C)),u=()=>n.map(C=>{if(ar(C))return C.value;if(tu(C))return Lc(C);if($t(C))return nu(C,l,2)})):$t(n)?e?u=()=>nu(n,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),Uo(n,l,3,[h])}:u=Ya,e&&r){const C=u;u=()=>Lc(C())}let f,h=C=>{f=_.onStop=()=>{nu(C,l,4),f=_.onStop=void 0}},p;if(Rv)if(h=Ya,e?t&&Uo(e,l,3,[u(),d?[]:void 0,h]):u(),i==="sync"){const C=OY();p=C.__watcherHandles||(C.__watcherHandles=[])}else return Ya;let v=d?new Array(n.length).fill(mm):mm;const m=()=>{if(_.active)if(e){const C=_.run();(r||c||(d?C.some((w,b)=>Xc(w,v[b])):Xc(C,v)))&&(f&&f(),Uo(e,l,3,[C,v===mm?void 0:d&&v[0]===mm?[]:v,h]),v=C)}else _.run()};m.allowRecurse=!!e;let g;i==="sync"?g=m:i==="post"?g=()=>Xi(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),g=()=>HT(m));const _=new MT(u,g);e?t?m():v=_.run():i==="post"?Xi(_.run.bind(_),l&&l.suspense):_.run();const y=()=>{_.stop(),l&&l.scope&&NT(l.scope.effects,_)};return p&&p.push(y),y}function Wq(n,e,t){const r=this.proxy,i=mr(n)?n.includes(".")?m5(r,n):()=>r[n]:n.bind(r,r);let o;$t(e)?o=e:(o=e.handler,t=e);const a=Ur;qf(this);const s=zT(i,o.bind(r),t);return a?qf(a):Mc(),s}function m5(n,e){const t=e.split(".");return()=>{let r=n;for(let i=0;i{Lc(t,e)});else if(UW(n))for(const t in n)Lc(n[t],e);return n}function Ki(n,e){const t=ei;if(t===null)return n;const r=Bb(t)||t.proxy,i=n.dirs||(n.dirs=[]);for(let o=0;o{n.isMounted=!0}),Xt(()=>{n.isUnmounting=!0}),n}const Ro=[Function,Array],y5={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ro,onEnter:Ro,onAfterEnter:Ro,onEnterCancelled:Ro,onBeforeLeave:Ro,onLeave:Ro,onAfterLeave:Ro,onLeaveCancelled:Ro,onBeforeAppear:Ro,onAppear:Ro,onAfterAppear:Ro,onAppearCancelled:Ro},Vq={name:"BaseTransition",props:y5,setup(n,{slots:e}){const t=Dr(),r=_5();let i;return()=>{const o=e.default&&KT(e.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){for(const v of o)if(v.type!==So){a=v;break}}const s=Tt(n),{mode:l}=s;if(r.isLeaving)return O0(a);const u=fR(a);if(!u)return O0(a);const c=Ov(u,s,r,t);Nv(u,c);const d=t.subTree,f=d&&fR(d);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,h=!0)}if(f&&f.type!==So&&(!vc(u,f)||h)){const v=Ov(f,s,r,t);if(Nv(f,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,t.update.active!==!1&&t.update()},O0(a);l==="in-out"&&u.type!==So&&(v.delayLeave=(m,g,_)=>{const y=b5(r,f);y[String(f.key)]=f,m[Wl]=()=>{g(),m[Wl]=void 0,delete c.delayedLeave},c.delayedLeave=_})}return a}}},Hq=Vq;function b5(n,e){const{leavingVNodes:t}=n;let r=t.get(e.type);return r||(r=Object.create(null),t.set(e.type,r)),r}function Ov(n,e,t,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,y=String(n.key),C=b5(t,n),w=(E,L)=>{E&&Uo(E,r,9,L)},b=(E,L)=>{const T=L[1];w(E,L),St(E)?E.every(R=>R.length<=1)&&T():E.length<=1&&T()},S={mode:o,persisted:a,beforeEnter(E){let L=s;if(!t.isMounted)if(i)L=v||s;else return;E[Wl]&&E[Wl](!0);const T=C[y];T&&vc(n,T)&&T.el[Wl]&&T.el[Wl](),w(L,[E])},enter(E){let L=l,T=u,R=c;if(!t.isMounted)if(i)L=m||l,T=g||u,R=_||c;else return;let N=!1;const D=E[_m]=M=>{N||(N=!0,M?w(R,[E]):w(T,[E]),S.delayedLeave&&S.delayedLeave(),E[_m]=void 0)};L?b(L,[E,D]):D()},leave(E,L){const T=String(n.key);if(E[_m]&&E[_m](!0),t.isUnmounting)return L();w(d,[E]);let R=!1;const N=E[Wl]=D=>{R||(R=!0,L(),D?w(p,[E]):w(h,[E]),E[Wl]=void 0,C[T]===n&&delete C[T])};C[T]=n,f?b(f,[E,N]):N()},clone(E){return Ov(E,e,t,r)}};return S}function O0(n){if(Mb(n))return n=ji(n),n.children=null,n}function fR(n){return Mb(n)?n.children?n.children[0]:void 0:n}function Nv(n,e){n.shapeFlag&6&&n.component?Nv(n.component.subTree,e):n.shapeFlag&128?(n.ssContent.transition=e.clone(n.ssContent),n.ssFallback.transition=e.clone(n.ssFallback)):n.transition=e}function KT(n,e=!1,t){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!n.type.__asyncLoader,Mb=n=>n.type.__isKeepAlive;function GT(n,e){w5(n,"a",e)}function C5(n,e){w5(n,"da",e)}function w5(n,e,t=Ur){const r=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(kb(e,r,t),t){let i=t.parent;for(;i&&i.parent;)Mb(i.parent.vnode)&&Uq(r,e,t,i),i=i.parent}}function Uq(n,e,t,r){const i=kb(e,n,r,!0);Ia(()=>{NT(r[e],i)},t)}function kb(n,e,t=Ur,r=!1){if(t){const i=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...a)=>{if(t.isUnmounted)return;Lh(),qf(t);const s=Uo(e,t,n,a);return Mc(),Ih(),s});return r?i.unshift(o):i.push(o),o}}const cl=n=>(e,t=Ur)=>(!Rv||n==="sp")&&kb(n,(...r)=>e(...r),t),qT=cl("bm"),Wt=cl("m"),S5=cl("bu"),Xo=cl("u"),Xt=cl("bum"),Ia=cl("um"),$q=cl("sp"),jq=cl("rtg"),zq=cl("rtc");function Kq(n,e=Ur){kb("ec",n,e)}function x9e(n,e,t,r){let i;const o=t&&t[r];if(St(n)||mr(n)){i=new Array(n.length);for(let a=0,s=n.length;ae(a,s,void 0,o&&o[s]));else{const a=Object.keys(n);i=new Array(a.length);for(let s=0,l=a.length;s{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return n}function E5(n,e,t={},r,i){if(ei.isCE||ei.parent&&Gp(ei.parent)&&ei.parent.isCE)return e!=="default"&&(t.name=e),I("slot",t,r&&r());let o=n[e];o&&o._c&&(o._d=!1),xg();const a=o&&L5(o(t)),s=JT(kt,{key:t.key||a&&a.key||`_${e}`},a||(r?r():[]),a&&n._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),o&&o._c&&(o._d=!0),s}function L5(n){return n.some(e=>Ui(e)?!(e.type===So||e.type===kt&&!L5(e.children)):!0)?n:null}function N9e(n,e){const t={};for(const r in n)t[e&&/[A-Z]/.test(r)?`on:${r}`:w_(r)]=n[r];return t}const p1=n=>n?F5(n)?Bb(n)||n.proxy:p1(n.parent):null,qp=Nr(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>p1(n.parent),$root:n=>p1(n.root),$emit:n=>n.emit,$options:n=>YT(n),$forceUpdate:n=>n.f||(n.f=()=>HT(n.update)),$nextTick:n=>n.n||(n.n=en.bind(n.proxy)),$watch:n=>Wq.bind(n)}),N0=(n,e)=>n!==Jn&&!n.__isScriptSetup&&pn(n,e),Gq={get({_:n},e){const{ctx:t,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=n;let u;if(e[0]!=="$"){const h=a[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return i[e];case 4:return t[e];case 3:return o[e]}else{if(N0(r,e))return a[e]=1,r[e];if(i!==Jn&&pn(i,e))return a[e]=2,i[e];if((u=n.propsOptions[0])&&pn(u,e))return a[e]=3,o[e];if(t!==Jn&&pn(t,e))return a[e]=4,t[e];v1&&(a[e]=0)}}const c=qp[e];let d,f;if(c)return e==="$attrs"&&to(n,"get",e),c(n);if((d=s.__cssModules)&&(d=d[e]))return d;if(t!==Jn&&pn(t,e))return a[e]=4,t[e];if(f=l.config.globalProperties,pn(f,e))return f[e]},set({_:n},e,t){const{data:r,setupState:i,ctx:o}=n;return N0(i,e)?(i[e]=t,!0):r!==Jn&&pn(r,e)?(r[e]=t,!0):pn(n.props,e)||e[0]==="$"&&e.slice(1)in n?!1:(o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:r,appContext:i,propsOptions:o}},a){let s;return!!t[a]||n!==Jn&&pn(n,a)||N0(e,a)||(s=o[0])&&pn(s,a)||pn(r,a)||pn(qp,a)||pn(i.config.globalProperties,a)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:pn(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};function hR(n){return St(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}let v1=!0;function qq(n){const e=YT(n),t=n.proxy,r=n.ctx;v1=!1,e.beforeCreate&&pR(e.beforeCreate,n,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:y,unmounted:C,render:w,renderTracked:b,renderTriggered:S,errorCaptured:E,serverPrefetch:L,expose:T,inheritAttrs:R,components:N,directives:D,filters:M}=e;if(u&&Yq(u,r,null),a)for(const W in a){const F=a[W];$t(F)&&(r[W]=F.bind(t))}if(i){const W=i.call(t,t);qn(W)&&(n.data=Rn(W))}if(v1=!0,o)for(const W in o){const F=o[W],B=$t(F)?F.bind(t,t):$t(F.get)?F.get.bind(t,t):Ya,j=!$t(F)&&$t(F.set)?F.set.bind(t):Ya,K=V({get:B,set:j});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>K.value,set:X=>K.value=X})}if(s)for(const W in s)I5(s[W],r,t,W);if(l){const W=$t(l)?l.call(t):l;Reflect.ownKeys(W).forEach(F=>{qt(F,W[F])})}c&&pR(c,n,"c");function k(W,F){St(F)?F.forEach(B=>W(B.bind(t))):F&&W(F.bind(t))}if(k(qT,d),k(Wt,f),k(S5,h),k(Xo,p),k(GT,v),k(C5,m),k(Kq,E),k(zq,b),k(jq,S),k(Xt,_),k(Ia,C),k($q,L),St(T))if(T.length){const W=n.exposed||(n.exposed={});T.forEach(F=>{Object.defineProperty(W,F,{get:()=>t[F],set:B=>t[F]=B})})}else n.exposed||(n.exposed={});w&&n.render===Ya&&(n.render=w),R!=null&&(n.inheritAttrs=R),N&&(n.components=N),D&&(n.directives=D)}function Yq(n,e,t=Ya){St(n)&&(n=g1(n));for(const r in n){const i=n[r];let o;qn(i)?"default"in i?o=yt(i.from||r,i.default,!0):o=yt(i.from||r):o=yt(i),ar(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):e[r]=o}}function pR(n,e,t){Uo(St(n)?n.map(r=>r.bind(e.proxy)):n.bind(e.proxy),e,t)}function I5(n,e,t,r){const i=r.includes(".")?m5(t,r):()=>t[r];if(mr(n)){const o=e[n];$t(o)&&We(i,o)}else if($t(n))We(i,n.bind(t));else if(qn(n))if(St(n))n.forEach(o=>I5(o,e,t,r));else{const o=$t(n.handler)?n.handler.bind(t):e[n.handler];$t(o)&&We(i,o,n)}}function YT(n){const e=n.type,{mixins:t,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=n.appContext,s=o.get(e);let l;return s?l=s:!i.length&&!t&&!r?l=e:(l={},i.length&&i.forEach(u=>ay(l,u,a,!0)),ay(l,e,a)),qn(e)&&o.set(e,l),l}function ay(n,e,t,r=!1){const{mixins:i,extends:o}=e;o&&ay(n,o,t,!0),i&&i.forEach(a=>ay(n,a,t,!0));for(const a in e)if(!(r&&a==="expose")){const s=Xq[a]||t&&t[a];n[a]=s?s(n[a],e[a]):e[a]}return n}const Xq={data:vR,props:gR,emits:gR,methods:Mp,computed:Mp,beforeCreate:Ni,created:Ni,beforeMount:Ni,mounted:Ni,beforeUpdate:Ni,updated:Ni,beforeDestroy:Ni,beforeUnmount:Ni,destroyed:Ni,unmounted:Ni,activated:Ni,deactivated:Ni,errorCaptured:Ni,serverPrefetch:Ni,components:Mp,directives:Mp,watch:Qq,provide:vR,inject:Zq};function vR(n,e){return e?n?function(){return Nr($t(n)?n.call(this,this):n,$t(e)?e.call(this,this):e)}:e:n}function Zq(n,e){return Mp(g1(n),g1(e))}function g1(n){if(St(n)){const e={};for(let t=0;t1)return t&&$t(e)?e.call(r&&r.proxy):e}}function tY(){return!!(Ur||ei||Dv)}function nY(n,e,t,r=!1){const i={},o={};ny(o,Fb,1),n.propsDefaults=Object.create(null),x5(n,e,i,o);for(const a in n.propsOptions[0])a in i||(i[a]=void 0);t?n.props=r?i:r5(i):n.type.props?n.props=i:n.props=o,n.attrs=o}function rY(n,e,t,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=n,s=Tt(i),[l]=n.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=n.vnode.dynamicProps;for(let d=0;d{l=!0;const[f,h]=O5(d,e,!0);Nr(a,f),h&&s.push(...h)};!t&&e.mixins.length&&e.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}if(!o&&!l)return qn(n)&&r.set(n,xf),xf;if(St(o))for(let c=0;c-1,h[1]=v<0||p-1||pn(h,"default"))&&s.push(d)}}}const u=[a,s];return qn(n)&&r.set(n,u),u}function mR(n){return n[0]!=="$"}function _R(n){const e=n&&n.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:n===null?"null":""}function yR(n,e){return _R(n)===_R(e)}function bR(n,e){return St(e)?e.findIndex(t=>yR(t,n)):$t(e)&&yR(e,n)?0:-1}const N5=n=>n[0]==="_"||n==="$stable",XT=n=>St(n)?n.map(Ba):[Ba(n)],iY=(n,e,t)=>{if(e._n)return e;const r=UT((...i)=>XT(e(...i)),t);return r._c=!1,r},D5=(n,e,t)=>{const r=n._ctx;for(const i in n){if(N5(i))continue;const o=n[i];if($t(o))e[i]=iY(i,o,r);else if(o!=null){const a=XT(o);e[i]=()=>a}}},A5=(n,e)=>{const t=XT(e);n.slots.default=()=>t},oY=(n,e)=>{if(n.vnode.shapeFlag&32){const t=e._;t?(n.slots=Tt(e),ny(e,"_",t)):D5(e,n.slots={})}else n.slots={},e&&A5(n,e);ny(n.slots,Fb,1)},aY=(n,e,t)=>{const{vnode:r,slots:i}=n;let o=!0,a=Jn;if(r.shapeFlag&32){const s=e._;s?t&&s===1?o=!1:(Nr(i,e),!t&&s===1&&delete i._):(o=!e.$stable,D5(e,i)),a=e}else e&&(A5(n,e),a={default:1});if(o)for(const s in i)!N5(s)&&a[s]==null&&delete i[s]};function _1(n,e,t,r,i=!1){if(St(n)){n.forEach((f,h)=>_1(f,e&&(St(e)?e[h]:e),t,r,i));return}if(Gp(r)&&!i)return;const o=r.shapeFlag&4?Bb(r.component)||r.component.proxy:r.el,a=i?null:o,{i:s,r:l}=n,u=e&&e.r,c=s.refs===Jn?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(mr(u)?(c[u]=null,pn(d,u)&&(d[u]=null)):ar(u)&&(u.value=null)),$t(l))nu(l,s,12,[a,c]);else{const f=mr(l),h=ar(l);if(f||h){const p=()=>{if(n.f){const v=f?pn(d,l)?d[l]:c[l]:l.value;i?St(v)&&NT(v,o):St(v)?v.includes(o)||v.push(o):f?(c[l]=[o],pn(d,l)&&(d[l]=c[l])):(l.value=[o],n.k&&(c[n.k]=l.value))}else f?(c[l]=a,pn(d,l)&&(d[l]=a)):h&&(l.value=a,n.k&&(c[n.k]=a))};a?(p.id=-1,Xi(p,t)):p()}}}const Xi=Bq;function sY(n){return lY(n)}function lY(n,e){const t=u1();t.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Ya,insertStaticContent:p}=n,v=($,A,P,Q=null,re=null,le=null,me=!1,ge=null,he=!!A.dynamicChildren)=>{if($===A)return;$&&!vc($,A)&&(Q=G($),X($,re,le,!0),$=null),A.patchFlag===-2&&(he=!1,A.dynamicChildren=null);const{type:ue,ref:_e,shapeFlag:fe}=A;switch(ue){case dl:m($,A,P,Q);break;case So:g($,A,P,Q);break;case D0:$==null&&_(A,P,Q,me);break;case kt:N($,A,P,Q,re,le,me,ge,he);break;default:fe&1?w($,A,P,Q,re,le,me,ge,he):fe&6?D($,A,P,Q,re,le,me,ge,he):(fe&64||fe&128)&&ue.process($,A,P,Q,re,le,me,ge,he,oe)}_e!=null&&re&&_1(_e,$&&$.ref,le,A||$,!A)},m=($,A,P,Q)=>{if($==null)r(A.el=s(A.children),P,Q);else{const re=A.el=$.el;A.children!==$.children&&u(re,A.children)}},g=($,A,P,Q)=>{$==null?r(A.el=l(A.children||""),P,Q):A.el=$.el},_=($,A,P,Q)=>{[$.el,$.anchor]=p($.children,A,P,Q,$.el,$.anchor)},y=({el:$,anchor:A},P,Q)=>{let re;for(;$&&$!==A;)re=f($),r($,P,Q),$=re;r(A,P,Q)},C=({el:$,anchor:A})=>{let P;for(;$&&$!==A;)P=f($),i($),$=P;i(A)},w=($,A,P,Q,re,le,me,ge,he)=>{me=me||A.type==="svg",$==null?b(A,P,Q,re,le,me,ge,he):L($,A,re,le,me,ge,he)},b=($,A,P,Q,re,le,me,ge)=>{let he,ue;const{type:_e,props:fe,shapeFlag:ne,transition:ce,dirs:Me}=$;if(he=$.el=a($.type,le,fe&&fe.is,fe),ne&8?c(he,$.children):ne&16&&E($.children,he,null,Q,re,le&&_e!=="foreignObject",me,ge),Me&&Vu($,null,Q,"created"),S(he,$,$.scopeId,me,Q),fe){for(const xe in fe)xe!=="value"&&!C_(xe)&&o(he,xe,null,fe[xe],le,$.children,Q,re,te);"value"in fe&&o(he,"value",null,fe.value),(ue=fe.onVnodeBeforeMount)&&Aa(ue,Q,$)}Me&&Vu($,null,Q,"beforeMount");const Ve=uY(re,ce);Ve&&ce.beforeEnter(he),r(he,A,P),((ue=fe&&fe.onVnodeMounted)||Ve||Me)&&Xi(()=>{ue&&Aa(ue,Q,$),Ve&&ce.enter(he),Me&&Vu($,null,Q,"mounted")},re)},S=($,A,P,Q,re)=>{if(P&&h($,P),Q)for(let le=0;le{for(let ue=he;ue<$.length;ue++){const _e=$[ue]=ge?Vl($[ue]):Ba($[ue]);v(null,_e,A,P,Q,re,le,me,ge)}},L=($,A,P,Q,re,le,me)=>{const ge=A.el=$.el;let{patchFlag:he,dynamicChildren:ue,dirs:_e}=A;he|=$.patchFlag&16;const fe=$.props||Jn,ne=A.props||Jn;let ce;P&&Hu(P,!1),(ce=ne.onVnodeBeforeUpdate)&&Aa(ce,P,A,$),_e&&Vu(A,$,P,"beforeUpdate"),P&&Hu(P,!0);const Me=re&&A.type!=="foreignObject";if(ue?T($.dynamicChildren,ue,ge,P,Q,Me,le):me||F($,A,ge,null,P,Q,Me,le,!1),he>0){if(he&16)R(ge,A,fe,ne,P,Q,re);else if(he&2&&fe.class!==ne.class&&o(ge,"class",null,ne.class,re),he&4&&o(ge,"style",fe.style,ne.style,re),he&8){const Ve=A.dynamicProps;for(let xe=0;xe{ce&&Aa(ce,P,A,$),_e&&Vu(A,$,P,"updated")},Q)},T=($,A,P,Q,re,le,me)=>{for(let ge=0;ge{if(P!==Q){if(P!==Jn)for(const ge in P)!C_(ge)&&!(ge in Q)&&o($,ge,P[ge],null,me,A.children,re,le,te);for(const ge in Q){if(C_(ge))continue;const he=Q[ge],ue=P[ge];he!==ue&&ge!=="value"&&o($,ge,ue,he,me,A.children,re,le,te)}"value"in Q&&o($,"value",P.value,Q.value)}},N=($,A,P,Q,re,le,me,ge,he)=>{const ue=A.el=$?$.el:s(""),_e=A.anchor=$?$.anchor:s("");let{patchFlag:fe,dynamicChildren:ne,slotScopeIds:ce}=A;ce&&(ge=ge?ge.concat(ce):ce),$==null?(r(ue,P,Q),r(_e,P,Q),E(A.children,P,_e,re,le,me,ge,he)):fe>0&&fe&64&&ne&&$.dynamicChildren?(T($.dynamicChildren,ne,P,re,le,me,ge),(A.key!=null||re&&A===re.subTree)&&ZT($,A,!0)):F($,A,P,_e,re,le,me,ge,he)},D=($,A,P,Q,re,le,me,ge,he)=>{A.slotScopeIds=ge,$==null?A.shapeFlag&512?re.ctx.activate(A,P,Q,me,he):M(A,P,Q,re,le,me,he):H($,A,he)},M=($,A,P,Q,re,le,me)=>{const ge=$.component=CY($,Q,re);if(Mb($)&&(ge.ctx.renderer=oe),wY(ge),ge.asyncDep){if(re&&re.registerDep(ge,k),!$.el){const he=ge.subTree=I(So);g(null,he,A,P)}return}k(ge,$,A,P,re,le,me)},H=($,A,P)=>{const Q=A.component=$.component;if(Aq($,A,P))if(Q.asyncDep&&!Q.asyncResolved){W(Q,A,P);return}else Q.next=A,Iq(Q.update),Q.update();else A.el=$.el,Q.vnode=A},k=($,A,P,Q,re,le,me)=>{const ge=()=>{if($.isMounted){let{next:_e,bu:fe,u:ne,parent:ce,vnode:Me}=$,Ve=_e,xe;Hu($,!1),_e?(_e.el=Me.el,W($,_e,me)):_e=Me,fe&&I0(fe),(xe=_e.props&&_e.props.onVnodeBeforeUpdate)&&Aa(xe,ce,_e,Me),Hu($,!0);const ve=x0($),Pe=$.subTree;$.subTree=ve,v(Pe,ve,d(Pe.el),G(Pe),$,re,le),_e.el=ve.el,Ve===null&&Rq($,ve.el),ne&&Xi(ne,re),(xe=_e.props&&_e.props.onVnodeUpdated)&&Xi(()=>Aa(xe,ce,_e,Me),re)}else{let _e;const{el:fe,props:ne}=A,{bm:ce,m:Me,parent:Ve}=$,xe=Gp(A);if(Hu($,!1),ce&&I0(ce),!xe&&(_e=ne&&ne.onVnodeBeforeMount)&&Aa(_e,Ve,A),Hu($,!0),fe&&Ce){const ve=()=>{$.subTree=x0($),Ce(fe,$.subTree,$,re,null)};xe?A.type.__asyncLoader().then(()=>!$.isUnmounted&&ve()):ve()}else{const ve=$.subTree=x0($);v(null,ve,P,Q,$,re,le),A.el=ve.el}if(Me&&Xi(Me,re),!xe&&(_e=ne&&ne.onVnodeMounted)){const ve=A;Xi(()=>Aa(_e,Ve,ve),re)}(A.shapeFlag&256||Ve&&Gp(Ve.vnode)&&Ve.vnode.shapeFlag&256)&&$.a&&Xi($.a,re),$.isMounted=!0,A=P=Q=null}},he=$.effect=new MT(ge,()=>HT(ue),$.scope),ue=$.update=()=>he.run();ue.id=$.uid,Hu($,!0),ue()},W=($,A,P)=>{A.component=$;const Q=$.vnode.props;$.vnode=A,$.next=null,rY($,A.props,Q,P),aY($,A.children,P),Lh(),uR($),Ih()},F=($,A,P,Q,re,le,me,ge,he=!1)=>{const ue=$&&$.children,_e=$?$.shapeFlag:0,fe=A.children,{patchFlag:ne,shapeFlag:ce}=A;if(ne>0){if(ne&128){j(ue,fe,P,Q,re,le,me,ge,he);return}else if(ne&256){B(ue,fe,P,Q,re,le,me,ge,he);return}}ce&8?(_e&16&&te(ue,re,le),fe!==ue&&c(P,fe)):_e&16?ce&16?j(ue,fe,P,Q,re,le,me,ge,he):te(ue,re,le,!0):(_e&8&&c(P,""),ce&16&&E(fe,P,Q,re,le,me,ge,he))},B=($,A,P,Q,re,le,me,ge,he)=>{$=$||xf,A=A||xf;const ue=$.length,_e=A.length,fe=Math.min(ue,_e);let ne;for(ne=0;ne_e?te($,re,le,!0,!1,fe):E(A,P,Q,re,le,me,ge,he,fe)},j=($,A,P,Q,re,le,me,ge,he)=>{let ue=0;const _e=A.length;let fe=$.length-1,ne=_e-1;for(;ue<=fe&&ue<=ne;){const ce=$[ue],Me=A[ue]=he?Vl(A[ue]):Ba(A[ue]);if(vc(ce,Me))v(ce,Me,P,null,re,le,me,ge,he);else break;ue++}for(;ue<=fe&&ue<=ne;){const ce=$[fe],Me=A[ne]=he?Vl(A[ne]):Ba(A[ne]);if(vc(ce,Me))v(ce,Me,P,null,re,le,me,ge,he);else break;fe--,ne--}if(ue>fe){if(ue<=ne){const ce=ne+1,Me=ce<_e?A[ce].el:Q;for(;ue<=ne;)v(null,A[ue]=he?Vl(A[ue]):Ba(A[ue]),P,Me,re,le,me,ge,he),ue++}}else if(ue>ne)for(;ue<=fe;)X($[ue],re,le,!0),ue++;else{const ce=ue,Me=ue,Ve=new Map;for(ue=Me;ue<=ne;ue++){const we=A[ue]=he?Vl(A[ue]):Ba(A[ue]);we.key!=null&&Ve.set(we.key,ue)}let xe,ve=0;const Pe=ne-Me+1;let tt=!1,De=0;const ye=new Array(Pe);for(ue=0;ue=Pe){X(we,re,le,!0);continue}let Fe;if(we.key!=null)Fe=Ve.get(we.key);else for(xe=Me;xe<=ne;xe++)if(ye[xe-Me]===0&&vc(we,A[xe])){Fe=xe;break}Fe===void 0?X(we,re,le,!0):(ye[Fe-Me]=ue+1,Fe>=De?De=Fe:tt=!0,v(we,A[Fe],P,null,re,le,me,ge,he),ve++)}const Ee=tt?cY(ye):xf;for(xe=Ee.length-1,ue=Pe-1;ue>=0;ue--){const we=Me+ue,Fe=A[we],$e=we+1<_e?A[we+1].el:Q;ye[ue]===0?v(null,Fe,P,$e,re,le,me,ge,he):tt&&(xe<0||ue!==Ee[xe]?K(Fe,P,$e,2):xe--)}}},K=($,A,P,Q,re=null)=>{const{el:le,type:me,transition:ge,children:he,shapeFlag:ue}=$;if(ue&6){K($.component.subTree,A,P,Q);return}if(ue&128){$.suspense.move(A,P,Q);return}if(ue&64){me.move($,A,P,oe);return}if(me===kt){r(le,A,P);for(let fe=0;fege.enter(le),re);else{const{leave:fe,delayLeave:ne,afterLeave:ce}=ge,Me=()=>r(le,A,P),Ve=()=>{fe(le,()=>{Me(),ce&&ce()})};ne?ne(le,Me,Ve):Ve()}else r(le,A,P)},X=($,A,P,Q=!1,re=!1)=>{const{type:le,props:me,ref:ge,children:he,dynamicChildren:ue,shapeFlag:_e,patchFlag:fe,dirs:ne}=$;if(ge!=null&&_1(ge,null,P,$,!0),_e&256){A.ctx.deactivate($);return}const ce=_e&1&&ne,Me=!Gp($);let Ve;if(Me&&(Ve=me&&me.onVnodeBeforeUnmount)&&Aa(Ve,A,$),_e&6)Y($.component,P,Q);else{if(_e&128){$.suspense.unmount(P,Q);return}ce&&Vu($,null,A,"beforeUnmount"),_e&64?$.type.remove($,A,P,re,oe,Q):ue&&(le!==kt||fe>0&&fe&64)?te(ue,A,P,!1,!0):(le===kt&&fe&384||!re&&_e&16)&&te(he,A,P),Q&&Z($)}(Me&&(Ve=me&&me.onVnodeUnmounted)||ce)&&Xi(()=>{Ve&&Aa(Ve,A,$),ce&&Vu($,null,A,"unmounted")},P)},Z=$=>{const{type:A,el:P,anchor:Q,transition:re}=$;if(A===kt){z(P,Q);return}if(A===D0){C($);return}const le=()=>{i(P),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if($.shapeFlag&1&&re&&!re.persisted){const{leave:me,delayLeave:ge}=re,he=()=>me(P,le);ge?ge($.el,le,he):he()}else le()},z=($,A)=>{let P;for(;$!==A;)P=f($),i($),$=P;i(A)},Y=($,A,P)=>{const{bum:Q,scope:re,update:le,subTree:me,um:ge}=$;Q&&I0(Q),re.stop(),le&&(le.active=!1,X(me,$,A,P)),ge&&Xi(ge,A),Xi(()=>{$.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},te=($,A,P,Q=!1,re=!1,le=0)=>{for(let me=le;me<$.length;me++)X($[me],A,P,Q,re)},G=$=>$.shapeFlag&6?G($.component.subTree):$.shapeFlag&128?$.suspense.next():f($.anchor||$.el),ae=($,A,P)=>{$==null?A._vnode&&X(A._vnode,null,null,!0):v(A._vnode||null,$,A,null,null,null,P),uR(),h5(),A._vnode=$},oe={p:v,um:X,m:K,r:Z,mt:M,mc:E,pc:F,pbc:T,n:G,o:n};let de,Ce;return e&&([de,Ce]=e(oe)),{render:ae,hydrate:de,createApp:eY(ae,de)}}function Hu({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function uY(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function ZT(n,e,t=!1){const r=n.children,i=e.children;if(St(r)&&St(i))for(let o=0;o>1,n[t[s]]0&&(e[r]=t[o-1]),t[o]=r)}}for(o=t.length,a=t[o-1];o-- >0;)t[o]=a,a=e[a];return t}const dY=n=>n.__isTeleport,Yp=n=>n&&(n.disabled||n.disabled===""),CR=n=>typeof SVGElement<"u"&&n instanceof SVGElement,y1=(n,e)=>{const t=n&&n.to;return mr(t)?e?e(t):null:t},fY={name:"Teleport",__isTeleport:!0,process(n,e,t,r,i,o,a,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:m}}=u,g=Yp(e.props);let{shapeFlag:_,children:y,dynamicChildren:C}=e;if(n==null){const w=e.el=v(""),b=e.anchor=v("");h(w,t,r),h(b,t,r);const S=e.target=y1(e.props,p),E=e.targetAnchor=v("");S&&(h(E,S),a=a||CR(S));const L=(T,R)=>{_&16&&c(y,T,R,i,o,a,s,l)};g?L(t,b):S&&L(S,E)}else{e.el=n.el;const w=e.anchor=n.anchor,b=e.target=n.target,S=e.targetAnchor=n.targetAnchor,E=Yp(n.props),L=E?t:b,T=E?w:S;if(a=a||CR(b),C?(f(n.dynamicChildren,C,L,i,o,a,s),ZT(n,e,!0)):l||d(n,e,L,T,i,o,a,s,!1),g)E?e.props&&n.props&&e.props.to!==n.props.to&&(e.props.to=n.props.to):ym(e,t,w,u,1);else if((e.props&&e.props.to)!==(n.props&&n.props.to)){const R=e.target=y1(e.props,p);R&&ym(e,R,null,u,0)}else E&&ym(e,b,S,u,1)}R5(e)},remove(n,e,t,r,{um:i,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=n;if(d&&o(c),a&&o(u),s&16){const h=a||!Yp(f);for(let p=0;p0?va||xf:null,pY(),Av>0&&va&&va.push(n),n}function M5(n,e,t,r,i,o){return P5(ex(n,e,t,r,i,o,!0))}function JT(n,e,t,r,i){return P5(I(n,e,t,r,i,!0))}function Ui(n){return n?n.__v_isVNode===!0:!1}function vc(n,e){return n.type===e.type&&n.key===e.key}const Fb="__vInternal",k5=({key:n})=>n??null,S_=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?mr(n)||ar(n)||$t(n)?{i:ei,r:n,k:e,f:!!t}:n:null);function ex(n,e=null,t=null,r=0,i=null,o=n===kt?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&k5(e),ref:e&&S_(e),scopeId:Pb,slotScopeIds:null,children:t,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:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ei};return s?(tx(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=mr(t)?8:16),Av>0&&!a&&va&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&va.push(l),l}const I=vY;function vY(n,e=null,t=null,r=0,i=null,o=!1){if((!n||n===g5)&&(n=So),Ui(n)){const s=ji(n,e,!0);return t&&tx(s,t),Av>0&&!o&&va&&(s.shapeFlag&6?va[va.indexOf(n)]=s:va.push(s)),s.patchFlag|=-2,s}if(TY(n)&&(n=n.__vccOpts),e){e=gY(e);let{class:s,style:l}=e;s&&!mr(s)&&(e.class=Tg(s)),qn(l)&&(o5(l)&&!St(l)&&(l=Nr({},l)),e.style=AT(l))}const a=mr(n)?1:Fq(n)?128:dY(n)?64:qn(n)?4:$t(n)?2:0;return ex(n,e,t,r,i,a,o,!0)}function gY(n){return n?o5(n)||Fb in n?Nr({},n):n:null}function ji(n,e,t=!1){const{props:r,ref:i,patchFlag:o,children:a}=n,s=e?_Y(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:s,key:s&&k5(s),ref:e&&e.ref?t&&i?St(i)?i.concat(S_(e)):[i,S_(e)]:S_(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:a,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==kt?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&ji(n.ssContent),ssFallback:n.ssFallback&&ji(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Zc(n=" ",e=0){return I(dl,null,n,e)}function mY(n="",e=!1){return e?(xg(),JT(So,null,n)):I(So,null,n)}function Ba(n){return n==null||typeof n=="boolean"?I(So):St(n)?I(kt,null,n.slice()):typeof n=="object"?Vl(n):I(dl,null,String(n))}function Vl(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:ji(n)}function tx(n,e){let t=0;const{shapeFlag:r}=n;if(e==null)e=null;else if(St(e))t=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),tx(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(Fb in e)?e._ctx=ei:i===3&&ei&&(ei.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else $t(e)?(e={default:e,_ctx:ei},t=32):(e=String(e),r&64?(t=16,e=[Zc(e)]):t=8);n.children=e,n.shapeFlag|=t}function _Y(...n){const e={};for(let t=0;tUr||ei;let nx,Ad,SR="__VUE_INSTANCE_SETTERS__";(Ad=u1()[SR])||(Ad=u1()[SR]=[]),Ad.push(n=>Ur=n),nx=n=>{Ad.length>1?Ad.forEach(e=>e(n)):Ad[0](n)};const qf=n=>{nx(n),n.scope.on()},Mc=()=>{Ur&&Ur.scope.off(),nx(null)};function F5(n){return n.vnode.shapeFlag&4}let Rv=!1;function wY(n,e=!1){Rv=e;const{props:t,children:r}=n.vnode,i=F5(n);nY(n,t,i,e),oY(n,r);const o=i?SY(n,e):void 0;return Rv=!1,o}function SY(n,e){const t=n.type;n.accessCache=Object.create(null),n.proxy=Db(new Proxy(n.ctx,Gq));const{setup:r}=t;if(r){const i=n.setupContext=r.length>1?LY(n):null;qf(n),Lh();const o=nu(r,n,0,[n.props,i]);if(Ih(),Mc(),VW(o)){if(o.then(Mc,Mc),e)return o.then(a=>{ER(n,a,e)}).catch(a=>{Ab(a,n,0)});n.asyncDep=o}else ER(n,o,e)}else B5(n,e)}function ER(n,e,t){$t(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:qn(e)&&(n.setupState=u5(e)),B5(n,t)}let LR;function B5(n,e,t){const r=n.type;if(!n.render){if(!e&&LR&&!r.render){const i=r.template||YT(n).template;if(i){const{isCustomElement:o,compilerOptions:a}=n.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Nr(Nr({isCustomElement:o,delimiters:s},a),l);r.render=LR(i,u)}}n.render=r.render||Ya}{qf(n),Lh();try{qq(n)}finally{Ih(),Mc()}}}function EY(n){return n.attrsProxy||(n.attrsProxy=new Proxy(n.attrs,{get(e,t){return to(n,"get","$attrs"),e[t]}}))}function LY(n){const e=t=>{n.exposed=t||{}};return{get attrs(){return EY(n)},slots:n.slots,emit:n.emit,expose:e}}function Bb(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(u5(Db(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in qp)return qp[t](n)},has(e,t){return t in e||t in qp}}))}function IY(n,e=!0){return $t(n)?n.displayName||n.name:n.name||e&&n.__name}function TY(n){return $t(n)&&"__vccOpts"in n}const V=(n,e)=>Sq(n,e,Rv);function Qc(n,e,t){const r=arguments.length;return r===2?qn(e)&&!St(e)?Ui(e)?I(n,null,[e]):I(n,e):I(n,null,e):(r>3?t=Array.prototype.slice.call(arguments,2):r===3&&Ui(t)&&(t=[t]),I(n,e,t))}const xY=Symbol.for("v-scx"),OY=()=>yt(xY),NY="3.3.11",DY="http://www.w3.org/2000/svg",gc=typeof document<"u"?document:null,IR=gc&&gc.createElement("template"),AY={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,r)=>{const i=e?gc.createElementNS(DY,n):gc.createElement(n,t?{is:t}:void 0);return n==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:n=>gc.createTextNode(n),createComment:n=>gc.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>gc.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,r,i,o){const a=t?t.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===o||!(i=i.nextSibling)););else{IR.innerHTML=r?`${n}`:n;const s=IR.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,t)}return[a?a.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},ml="transition",np="animation",Yf=Symbol("_vtc"),Zo=(n,{slots:e})=>Qc(Hq,V5(n),e);Zo.displayName="Transition";const W5={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},RY=Zo.props=Nr({},y5,W5),Uu=(n,e=[])=>{St(n)?n.forEach(t=>t(...e)):n&&n(...e)},TR=n=>n?St(n)?n.some(e=>e.length>1):n.length>1:!1;function V5(n){const e={};for(const N in n)N in W5||(e[N]=n[N]);if(n.css===!1)return e;const{name:t="v",type:r,duration:i,enterFromClass:o=`${t}-enter-from`,enterActiveClass:a=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${t}-leave-from`,leaveActiveClass:f=`${t}-leave-active`,leaveToClass:h=`${t}-leave-to`}=n,p=PY(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:y,onLeave:C,onLeaveCancelled:w,onBeforeAppear:b=g,onAppear:S=_,onAppearCancelled:E=y}=e,L=(N,D,M)=>{Al(N,D?c:s),Al(N,D?u:a),M&&M()},T=(N,D)=>{N._isLeaving=!1,Al(N,d),Al(N,h),Al(N,f),D&&D()},R=N=>(D,M)=>{const H=N?S:_,k=()=>L(D,N,M);Uu(H,[D,k]),xR(()=>{Al(D,N?l:o),Ds(D,N?c:s),TR(H)||OR(D,r,v,k)})};return Nr(e,{onBeforeEnter(N){Uu(g,[N]),Ds(N,o),Ds(N,a)},onBeforeAppear(N){Uu(b,[N]),Ds(N,l),Ds(N,u)},onEnter:R(!1),onAppear:R(!0),onLeave(N,D){N._isLeaving=!0;const M=()=>T(N,D);Ds(N,d),U5(),Ds(N,f),xR(()=>{N._isLeaving&&(Al(N,d),Ds(N,h),TR(C)||OR(N,r,m,M))}),Uu(C,[N,M])},onEnterCancelled(N){L(N,!1),Uu(y,[N])},onAppearCancelled(N){L(N,!0),Uu(E,[N])},onLeaveCancelled(N){T(N),Uu(w,[N])}})}function PY(n){if(n==null)return null;if(qn(n))return[A0(n.enter),A0(n.leave)];{const e=A0(n);return[e,e]}}function A0(n){return UG(n)}function Ds(n,e){e.split(/\s+/).forEach(t=>t&&n.classList.add(t)),(n[Yf]||(n[Yf]=new Set)).add(e)}function Al(n,e){e.split(/\s+/).forEach(r=>r&&n.classList.remove(r));const t=n[Yf];t&&(t.delete(e),t.size||(n[Yf]=void 0))}function xR(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let MY=0;function OR(n,e,t,r){const i=n._endId=++MY,o=()=>{i===n._endId&&r()};if(t)return setTimeout(o,t);const{type:a,timeout:s,propCount:l}=H5(n,e);if(!a)return r();const u=a+"end";let c=0;const d=()=>{n.removeEventListener(u,f),o()},f=h=>{h.target===n&&++c>=l&&d()};setTimeout(()=>{c(t[p]||"").split(", "),i=r(`${ml}Delay`),o=r(`${ml}Duration`),a=NR(i,o),s=r(`${np}Delay`),l=r(`${np}Duration`),u=NR(s,l);let c=null,d=0,f=0;e===ml?a>0&&(c=ml,d=a,f=o.length):e===np?u>0&&(c=np,d=u,f=l.length):(d=Math.max(a,u),c=d>0?a>u?ml:np:null,f=c?c===ml?o.length:l.length:0);const h=c===ml&&/\b(transform|all)(,|$)/.test(r(`${ml}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function NR(n,e){for(;n.lengthDR(t)+DR(n[r])))}function DR(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function U5(){return document.body.offsetHeight}function kY(n,e,t){const r=n[Yf];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const rx=Symbol("_vod"),fl={beforeMount(n,{value:e},{transition:t}){n[rx]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):rp(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:r}){!e!=!t&&(r?e?(r.beforeEnter(n),rp(n,!0),r.enter(n)):r.leave(n,()=>{rp(n,!1)}):rp(n,e))},beforeUnmount(n,{value:e}){rp(n,e)}};function rp(n,e){n.style.display=e?n[rx]:"none"}function FY(n,e,t){const r=n.style,i=mr(t);if(t&&!i){if(e&&!mr(e))for(const o in e)t[o]==null&&b1(r,o,"");for(const o in t)b1(r,o,t[o])}else{const o=r.display;i?e!==t&&(r.cssText=t):e&&n.removeAttribute("style"),rx in n&&(r.display=o)}}const AR=/\s*!important$/;function b1(n,e,t){if(St(t))t.forEach(r=>b1(n,e,r));else if(t==null&&(t=""),e.startsWith("--"))n.setProperty(e,t);else{const r=BY(n,e);AR.test(t)?n.setProperty(Eh(r),t.replace(AR,""),"important"):n[r]=t}}const RR=["Webkit","Moz","ms"],R0={};function BY(n,e){const t=R0[e];if(t)return t;let r=Io(e);if(r!=="filter"&&r in n)return R0[e]=r;r=Ob(r);for(let i=0;iP0||(zY.then(()=>P0=0),P0=Date.now());function GY(n,e){const t=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=t.attached)return;Uo(qY(r,t.value),e,5,[r])};return t.value=n,t.attached=KY(),t}function qY(n,e){if(St(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const FR=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,YY=(n,e,t,r,i=!1,o,a,s,l)=>{e==="class"?kY(n,r,i):e==="style"?FY(n,t,r):Ib(e)?OT(e)||$Y(n,e,t,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):XY(n,e,r,i))?VY(n,e,r,o,a,s,l):(e==="true-value"?n._trueValue=r:e==="false-value"&&(n._falseValue=r),WY(n,e,r,i))};function XY(n,e,t,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in n&&FR(e)&&$t(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return FR(e)&&mr(t)?!1:e in n}const $5=new WeakMap,j5=new WeakMap,sy=Symbol("_moveCb"),BR=Symbol("_enterCb"),z5={name:"TransitionGroup",props:Nr({},RY,{tag:String,moveClass:String}),setup(n,{slots:e}){const t=Dr(),r=_5();let i,o;return Xo(()=>{if(!i.length)return;const a=n.moveClass||`${n.name||"v"}-move`;if(!tX(i[0].el,t.vnode.el,a))return;i.forEach(QY),i.forEach(JY);const s=i.filter(eX);U5(),s.forEach(l=>{const u=l.el,c=u.style;Ds(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[sy]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[sy]=null,Al(u,a))};u.addEventListener("transitionend",d)})}),()=>{const a=Tt(n),s=V5(a);let l=a.tag||kt;i=o,o=e.default?KT(e.default()):[];for(let u=0;udelete n.mode;z5.props;const ix=z5;function QY(n){const e=n.el;e[sy]&&e[sy](),e[BR]&&e[BR]()}function JY(n){j5.set(n,n.el.getBoundingClientRect())}function eX(n){const e=$5.get(n),t=j5.get(n),r=e.left-t.left,i=e.top-t.top;if(r||i){const o=n.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",n}}function tX(n,e,t){const r=n.cloneNode(),i=n[Yf];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),t.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:a}=H5(r);return o.removeChild(r),a}const nX=["ctrl","shift","alt","meta"],rX={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,e)=>nX.some(t=>n[`${t}Key`]&&!e.includes(t))},WR=(n,e)=>n._withMods||(n._withMods=(t,...r)=>{for(let i=0;i{K5().render(...n)},oX=(...n)=>{const e=K5().createApp(...n),{mount:t}=e;return e.mount=r=>{const i=aX(r);if(!i)return;const o=e._component;!$t(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const a=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e};function aX(n){return mr(n)?document.querySelector(n):n}var sX=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Z5;const Hb=n=>Z5=n,Q5=Symbol();function L1(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Xp;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Xp||(Xp={}));function _X(){const n=MT(!0),e=n.run(()=>J({}));let t=[],r=[];const i=Db({install(o){Hb(i),i._a=o,o.provide(Q5,i),o.config.globalProperties.$pinia=i,r.forEach(a=>t.push(a)),r=[]},use(o){return!this._a&&!mX?r.push(o):t.push(o),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return i}const J5=()=>{};function HR(n,e,t,r=J5){n.push(e);const i=()=>{const o=n.indexOf(e);o>-1&&(n.splice(o,1),r())};return!t&&GW()&&iq(i),i}function Dd(n,...e){n.slice().forEach(t=>{t(...e)})}const yX=n=>n();function I1(n,e){n instanceof Map&&e instanceof Map&&e.forEach((t,r)=>n.set(r,t)),n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t],i=n[t];L1(i)&&L1(r)&&n.hasOwnProperty(t)&&!mr(r)&&!tu(r)?n[t]=I1(i,r):n[t]=r}return n}const bX=Symbol();function CX(n){return!L1(n)||!n.hasOwnProperty(bX)}const{assign:Al}=Object;function wX(n){return!!(mr(n)&&n.effect)}function SX(n,e,t,r){const{state:i,actions:o,getters:a}=e,s=t.state.value[n];let l;function u(){s||(t.state.value[n]=i?i():{});const c=zp(t.state.value[n]);return Al(c,o,Object.keys(a||{}).reduce((d,f)=>(d[f]=Db(V(()=>{Hb(t);const h=t._s.get(n);return a[f].call(h,h)})),d),{}))}return l=eV(n,u,e,t,r,!0),l}function eV(n,e,t={},r,i,o){let a;const s=Al({actions:{}},t),l={deep:!0};let u,c,d=[],f=[],h;const p=r.state.value[n];!o&&!p&&(r.state.value[n]={}),J({});let v;function m(L){let E;u=c=!1,typeof L=="function"?(L(r.state.value[n]),E={type:Xp.patchFunction,storeId:n,events:h}):(I1(r.state.value[n],L),E={type:Xp.patchObject,payload:L,storeId:n,events:h});const T=v=Symbol();en().then(()=>{v===T&&(u=!0)}),c=!0,Dd(d,E,r.state.value[n])}const g=o?function(){const{state:E}=t,T=E?E():{};this.$patch(P=>{Al(P,T)})}:J5;function _(){a.stop(),d=[],f=[],r._s.delete(n)}function y(L,E){return function(){Hb(r);const T=Array.from(arguments),P=[],A=[];function D(k){P.push(k)}function M(k){A.push(k)}Dd(f,{args:T,name:L,store:w,after:D,onError:M});let H;try{H=E.apply(this&&this.$id===n?this:w,T)}catch(k){throw Dd(A,k),k}return H instanceof Promise?H.then(k=>(Dd(P,k),k)).catch(k=>(Dd(A,k),Promise.reject(k))):(Dd(P,H),H)}}const b={_p:r,$id:n,$onAction:HR.bind(null,f),$patch:m,$reset:g,$subscribe(L,E={}){const T=HR(d,L,E.detached,()=>P()),P=a.run(()=>Ve(()=>r.state.value[n],A=>{(E.flush==="sync"?c:u)&&L({storeId:n,type:Xp.direct,events:h},A)},Al({},l,E)));return T},$dispose:_},w=Rn(b);r._s.set(n,w);const S=(r._a&&r._a.runWithContext||yX)(()=>r._e.run(()=>(a=MT()).run(e)));for(const L in S){const E=S[L];if(mr(E)&&!wX(E)||tu(E))o||(p&&CX(E)&&(mr(E)?E.value=p[L]:I1(E,p[L])),r.state.value[n][L]=E);else if(typeof E=="function"){const T=y(L,E);S[L]=T,s.actions[L]=E}}return Al(w,S),Al(Tt(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[n],set:L=>{m(E=>{Al(E,L)})}}),r._p.forEach(L=>{Al(w,a.run(()=>L({store:w,app:r._a,pinia:r,options:s})))}),p&&o&&t.hydrate&&t.hydrate(w.$state,p),u=!0,c=!0,w}function EX(n,e,t){let r,i;const o=typeof e=="function";typeof n=="string"?(r=n,i=o?t:e):(i=n,r=n.id);function a(s,l){const u=uY();return s=s||(u?yt(Q5,null):null),s&&Hb(s),s=Z5,s._s.has(r)||(o?eV(r,e,i,s):SX(r,i,s)),s._s.get(r)}return a.$id=r,a}function at(n){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(n)}function LX(n,e){if(at(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(at(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function tV(n){var e=LX(n,"string");return at(e)=="symbol"?e:String(e)}function U(n,e,t){return e=tV(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function UR(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function O(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return typeof n=="function"?n(e):n??t}function Re(){for(var n=[],e=0;e0},n.prototype.connect_=function(){!T1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$X?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!T1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,i=UX.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),iV=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof Yf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new QX(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Yf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new JX(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),aV=typeof WeakMap<"u"?new WeakMap:new rV,sV=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=jX.getInstance(),r=new eZ(e,t,this);aV.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){sV.prototype[n]=function(){var e;return(e=aV.get(this))[n].apply(e,arguments)}});var lV=function(){return typeof cy.ResizeObserver<"u"?cy.ResizeObserver:sV}();function uV(n){if(Array.isArray(n))return n}function tZ(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=o.call(t)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function x1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r={},i=/;(?![^(]*\))/g,o=/:(.+)/;return at(e)==="object"?e:(e.split(i).forEach(function(a){if(a){var s=a.split(o);if(s.length>1){var l=t?ax(s[0].trim()):s[0].trim();r[l]=s[1].trim()}}}),r)},nf=function(e,t){return e[t]!==void 0},sr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(e)?e:[e],i=[];return r.forEach(function(o){Array.isArray(o)?i.push.apply(i,Ge(n(o,t))):o&&o.type===kt?i.push.apply(i,Ge(n(o.children,t))):o&&Ui(o)?t&&!jb(o)?i.push(o):t||i.push(o):O1(o)&&i.push(o)}),i},_V=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Ui(e))return e.type===kt?t==="default"?sr(e.children):[]:e.children&&e.children[t]?sr(e.children[t](r)):[];var i=e.$slots[t]&&e.$slots[t](r);return sr(i)},Lc=function(e){for(var t,r=(e==null||(t=e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);r&&!r.tagName;)r=r.nextSibling;return r},_Z=function(e){var t={};if(e.$&&e.$.vnode){var r=e.$.vnode.props||{};Object.keys(e.$props).forEach(function(s){var l=e.$props[s],u=PX(s);(l!==void 0||u in r)&&(t[s]=l)})}else if(Ui(e)&&at(e.type)==="object"){var i=e.props||{},o={};Object.keys(i).forEach(function(s){o[ax(s)]=i[s]});var a=e.type.props||{};Object.keys(a).forEach(function(s){var l=kX(a,o,s,o[s]);(l!==void 0||s in o)&&(t[s]=l)})}return t},ux=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=void 0;if(e.$){var a=e[t];if(a!==void 0)return typeof a=="function"&&i?a(r):a;o=e.$slots[t],o=i&&o?o(r):o}else if(Ui(e)){var s=e.props&&e.props[t];if(s!==void 0&&e.props!==null)return typeof s=="function"&&i?s(r):s;e.type===kt?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=i&&o?o(r):o)}return Array.isArray(o)&&(o=sr(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function KR(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t={};return n.$?t=O(O({},t),n.$attrs):t=O(O({},t),n.props),mV(t)[e?"onEvents":"events"]}function yZ(n,e){var t=(Ui(n)?n.props:n.$attrs)||{},r=t.style||{};if(typeof r=="string")r=lx(r,e);else if(e&&r){var i={};return Object.keys(r).forEach(function(o){return i[ax(o)]=r[o]}),i}return r}function jb(n){return n&&(n.type===So||n.type===kt&&n.children.length===0||n.type===cl&&n.children.trim()==="")}function bZ(n){return n&&n.type===cl}function To(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return n.forEach(function(t){Array.isArray(t)?e.push.apply(e,Ge(t)):(t==null?void 0:t.type)===kt?e.push.apply(e,Ge(To(t.children))):e.push(t)}),e.filter(function(t){return!jb(t)})}function ni(n){return Array.isArray(n)&&n.length===1&&(n=n[0]),n&&n.__v_isVNode&&at(n.type)!=="symbol"}function Ya(n,e){var t,r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(t=e[i])!==null&&t!==void 0?t:(r=n[i])===null||r===void 0?void 0:r.call(n)}const mu=be({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,t){var r=t.slots,i=Rn({width:0,height:0,offsetHeight:0,offsetWidth:0}),o=null,a=null,s=function(){a&&(a.disconnect(),a=null)},l=function(f){var h=e.onResize,p=f[0].target,v=p.getBoundingClientRect(),m=v.width,g=v.height,_=p.offsetWidth,y=p.offsetHeight,b=Math.floor(m),w=Math.floor(g);if(i.width!==b||i.height!==w||i.offsetWidth!==_||i.offsetHeight!==y){var C={width:b,height:w,offsetWidth:_,offsetHeight:y};fn(i,C),h&&Promise.resolve().then(function(){h(O(O({},C),{},{offsetWidth:_,offsetHeight:y}),p)})}},u=Rr(),c=function(){var f=e.disabled;if(f){s();return}var h=Lc(u),p=h!==o;p&&(s(),o=h),!a&&h&&(a=new lV(l),a.observe(h))};return Wt(function(){c()}),Zo(function(){c()}),Ia(function(){s()}),Ve(function(){return e.disabled},function(){c()},{flush:"post"}),function(){var d;return(d=r.default)===null||d===void 0?void 0:d.call(r)[0]}}});var yV=function(e){return setTimeout(e,16)},bV=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(yV=function(e){return window.requestAnimationFrame(e)},bV=function(e){return window.cancelAnimationFrame(e)});var GR=0,cx=new Map;function CV(n){cx.delete(n)}function Mt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;GR+=1;var t=GR;function r(i){if(i===0)CV(t),n();else{var o=yV(function(){r(i-1)});cx.set(t,o)}}return r(e),t}Mt.cancel=function(n){var e=cx.get(n);return CV(e),bV(e)};var Si=function(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&(t[i]=n[i]);return t}function Nt(n,e){if(n==null)return{};var t=CZ(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}const SV={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var wZ={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const SZ=wZ;var EZ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const EV=EZ;var LZ={lang:O({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},SZ),timePickerLocale:O({},EV)};const YR=LZ;var lo="${label} is not a valid ${type}",tl={locale:"en",Pagination:SV,DatePicker:YR,TimePicker:EV,Calendar:YR,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:lo,method:lo,array:lo,object:lo,number:lo,date:lo,boolean:lo,integer:lo,float:lo,regexp:lo,email:lo,url:lo,hex:lo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const LV=be({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(e,t){var r=t.slots,i=yt("localeData",{}),o=V(function(){var s=e.componentName,l=s===void 0?"global":s,u=e.defaultLocale,c=u||tl[l||"global"],d=i.antLocale,f=l&&d?d[l]:{};return O(O({},typeof c=="function"?c():c),f||{})}),a=V(function(){var s=i.antLocale,l=s&&s.locale;return s&&s.exist&&!l?tl.locale:l});return function(){var s=e.children||r.default,l=i.antLocale;return s==null?void 0:s(o.value,a.value,l)}}});function Lh(n,e,t){var r=yt("localeData",{}),i=V(function(){var o=r.antLocale,a=vr(e)||tl[n||"global"],s=n&&o?o[n]:{};return O(O(O({},typeof a=="function"?a():a),s||{}),vr(t)||{})});return[i]}var IV=function(){var e=St("empty",{}),t=e.getPrefixCls,r=t("empty-img-default");return I("svg",{class:r,width:"184",height:"152",viewBox:"0 0 184 152"},[I("g",{fill:"none","fill-rule":"evenodd"},[I("g",{transform:"translate(24 31.67)"},[I("ellipse",{class:"".concat(r,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),I("path",{class:"".concat(r,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),I("path",{class:"".concat(r,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),I("path",{class:"".concat(r,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),I("path",{class:"".concat(r,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),I("path",{class:"".concat(r,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),I("g",{class:"".concat(r,"-g"),transform:"translate(149.65 15.383)"},[I("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),I("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};IV.PRESENTED_IMAGE_DEFAULT=!0;const IZ=IV;var TV=function(){var e=St("empty",{}),t=e.getPrefixCls,r=t("empty-img-simple");return I("svg",{class:r,width:"64",height:"41",viewBox:"0 0 64 41"},[I("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[I("ellipse",{class:"".concat(r,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),I("g",{class:"".concat(r,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[I("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),I("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(r,"-path")},null)])])])};TV.PRESENTED_IMAGE_SIMPLE=!0;const TZ=TV;function XR(n,e){for(var t=0;t=0||(i[t]=n[t]);return i}function ZR(n){return((e=n)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(n)==="[object Object]";var e}var AV=Object.prototype,DV=AV.toString,xZ=AV.hasOwnProperty,RV=/^\s*function (\w+)/;function QR(n){var e,t=(e=n==null?void 0:n.type)!==null&&e!==void 0?e:n;if(t){var r=t.toString().match(RV);return r?r[1]:""}return""}var Zc=function(n){var e,t;return ZR(n)!==!1&&typeof(e=n.constructor)=="function"&&ZR(t=e.prototype)!==!1&&t.hasOwnProperty("isPrototypeOf")!==!1},OZ=function(n){return n},Fi=OZ,Nv=function(n,e){return xZ.call(n,e)},NZ=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},Xf=Array.isArray||function(n){return DV.call(n)==="[object Array]"},Zf=function(n){return DV.call(n)==="[object Function]"},fy=function(n){return Zc(n)&&Nv(n,"_vueTypes_name")},PV=function(n){return Zc(n)&&(Nv(n,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Nv(n,e)}))};function dx(n,e){return Object.defineProperty(n.bind(e),"__original",{value:n})}function hd(n,e,t){var r;t===void 0&&(t=!1);var i=!0,o="";r=Zc(n)?n:{type:n};var a=fy(r)?r._vueTypes_name+" - ":"";if(PV(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;Xf(r.type)?(i=r.type.some(function(d){return hd(d,e,!0)===!0}),o=r.type.map(function(d){return QR(d)}).join(" or ")):i=(o=QR(r))==="Array"?Xf(e):o==="Object"?Zc(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(RV);return f?f[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return t===!1?(Fi(s),!1):s}if(Nv(r,"validator")&&Zf(r.validator)){var l=Fi,u=[];if(Fi=function(d){u.push(d)},i=r.validator(e),Fi=l,!i){var c=(u.length>1?"* ":"")+u.join(` -* `);return u.length=0,t===!1?(Fi(c),i):c}}return i}function xo(n,e){var t=Object.defineProperties(e,{_vueTypes_name:{value:n,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?Zf(i)||hd(this,i,!0)===!0?(this.default=Xf(i)?function(){return[].concat(i)}:Zc(i)?function(){return Object.assign({},i)}:i,this):(Fi(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=t.validator;return Zf(r)&&(t.validator=dx(r,t)),t}function os(n,e){var t=xo(n,e);return Object.defineProperty(t,"validate",{value:function(r){return Zf(this.validator)&&Fi(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=dx(r,this),this}})}function JR(n,e,t){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(d){i[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},i));if(o._vueTypes_name=n,!Zc(t))return o;var a,s,l=t.validator,u=NV(t,["validator"]);if(Zf(l)){var c=o.validator;c&&(c=(s=(a=c).__original)!==null&&s!==void 0?s:a),o.validator=dx(c?function(d){return c.call(this,d)&&l.call(this,d)}:l,o)}return Object.assign(o,u)}function zb(n){return n.replace(/^(?!\s*$)/gm," ")}var AZ=function(){return os("any",{})},DZ=function(){return os("function",{type:Function})},RZ=function(){return os("boolean",{type:Boolean})},PZ=function(){return os("string",{type:String})},MZ=function(){return os("number",{type:Number})},kZ=function(){return os("array",{type:Array})},FZ=function(){return os("object",{type:Object})},BZ=function(){return xo("integer",{type:Number,validator:function(n){return NZ(n)}})},WZ=function(){return xo("symbol",{validator:function(n){return typeof n=="symbol"}})};function VZ(n,e){if(e===void 0&&(e="custom validation failed"),typeof n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return xo(n.name||"<>",{validator:function(t){var r=n(t);return r||Fi(this._vueTypes_name+" - "+e),r}})}function HZ(n){if(!Xf(n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+n.join('", "')+'".',t=n.reduce(function(r,i){if(i!=null){var o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return xo("oneOf",{type:t.length>0?t:void 0,validator:function(r){var i=n.indexOf(r)!==-1;return i||Fi(e),i}})}function UZ(n){if(!Xf(n))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,t=[],r=0;r0&&t.some(function(l){return a.indexOf(l)===-1})){var s=t.filter(function(l){return a.indexOf(l)===-1});return Fi(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every(function(l){if(e.indexOf(l)===-1)return o._vueTypes_isLoose===!0||(Fi('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=hd(n[l],i[l],!0);return typeof u=="string"&&Fi('shape - "'+l+`" property validation error: - `+zb(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ma=function(){function n(){}return n.extend=function(e){var t=this;if(Xf(e))return e.forEach(function(d){return t.extend(d)}),this;var r=e.name,i=e.validate,o=i!==void 0&&i,a=e.getter,s=a!==void 0&&a,l=NV(e,["name","validate","getter"]);if(Nv(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return fy(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return JR(r,c,l)}}:{value:function(){var d,f=JR(r,c,l);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=s?{get:function(){var d=Object.assign({},l);return o?os(r,d):xo(r,d)},enumerable:!0}:{value:function(){var d,f,h=Object.assign({},l);return d=o?os(r,h):xo(r,h),h.validator&&(d.validator=(f=h.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},xV(n,null,[{key:"any",get:function(){return AZ()}},{key:"func",get:function(){return DZ().def(this.defaults.func)}},{key:"bool",get:function(){return RZ().def(this.defaults.bool)}},{key:"string",get:function(){return PZ().def(this.defaults.string)}},{key:"number",get:function(){return MZ().def(this.defaults.number)}},{key:"array",get:function(){return kZ().def(this.defaults.array)}},{key:"object",get:function(){return FZ().def(this.defaults.object)}},{key:"integer",get:function(){return BZ().def(this.defaults.integer)}},{key:"symbol",get:function(){return WZ()}}]),n}();function MV(n){var e;return n===void 0&&(n={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(t){function r(){return t.apply(this,arguments)||this}return OV(r,t),xV(r,null,[{key:"sensibleDefaults",get:function(){return w_({},this.defaults)},set:function(i){this.defaults=i!==!1?w_({},i!==!0?i:n):{}}}]),r}(Ma)).defaults=w_({},n),e}Ma.defaults={},Ma.custom=VZ,Ma.oneOf=HZ,Ma.instanceOf=jZ,Ma.oneOfType=UZ,Ma.arrayOf=$Z,Ma.objectOf=zZ,Ma.shape=KZ,Ma.utils={validate:function(n,e){return hd(e,n,!0)===!0},toType:function(n,e,t){return t===void 0&&(t=!1),t?os(n,e):xo(n,e)}};(function(n){function e(){return n.apply(this,arguments)||this}return OV(e,n),e})(MV());var ne=MV({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});ne.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);var GZ=["image","description","imageStyle","class"],kV=I(IZ,null,null),FV=I(TZ,null,null),Ih=function(e,t){var r,i=t.slots,o=i===void 0?{}:i,a=t.attrs,s=St("empty",e),l=s.direction,u=s.prefixCls,c=u.value,d=O(O({},e),a),f=d.image,h=f===void 0?kV:f,p=d.description,v=p===void 0?((r=o.description)===null||r===void 0?void 0:r.call(o))||void 0:p,m=d.imageStyle,g=d.class,_=g===void 0?"":g,y=Nt(d,GZ);return I(LV,{componentName:"Empty",children:function(w){var C,S=typeof v<"u"?v:w.description,L=typeof S=="string"?S:"empty",E=null;return typeof h=="string"?E=I("img",{alt:L,src:h},null):E=h,I("div",O({class:Re(c,_,(C={},U(C,"".concat(c,"-normal"),h===FV),U(C,"".concat(c,"-rtl"),l.value==="rtl"),C))},y),[I("div",{class:"".concat(c,"-image"),style:m},[E]),S&&I("p",{class:"".concat(c,"-description")},[S]),o.default&&I("div",{class:"".concat(c,"-footer")},[To(o.default())])])}},null)};Ih.displayName="AEmpty";Ih.PRESENTED_IMAGE_DEFAULT=kV;Ih.PRESENTED_IMAGE_SIMPLE=FV;Ih.inheritAttrs=!1;Ih.props={prefixCls:String,image:ne.any,description:ne.any,imageStyle:{type:Object,default:void 0}};const Kl=Lu(Ih);var qZ=function(e){var t=St("empty",e),r=t.prefixCls,i=function(a){switch(a){case"Table":case"List":return I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE,class:"".concat(r.value,"-small")},null);default:return I(Kl,null,null)}};return i(e.componentName)};function BV(n){return I(qZ,{componentName:n},null)}var eP={};function YZ(n,e){}function XZ(n,e,t){!e&&!eP[t]&&(n(!1,t),eP[t]=!0)}function WV(n,e){XZ(YZ,n,e)}const _a=function(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";WV(n,"[antdv: ".concat(e,"] ").concat(t))};var N1="internalMark",S_=be({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(e,t){var r=t.slots;_a(e.ANT_MARK__===N1,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var i=Rn({antLocale:O(O({},e.locale),{},{exist:!0}),ANT_MARK__:N1});return qt("localeData",i),Ve(function(){return e.locale},function(){i.antLocale=O(O({},e.locale),{},{exist:!0})},{immediate:!0}),function(){var o;return(o=r.default)===null||o===void 0?void 0:o.call(r)}}});S_.install=function(n){return n.component(S_.name,S_),n};const ZZ=Lu(S_);Si("bottomLeft","bottomRight","topLeft","topRight");var Ig=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O(e?{name:e,appear:!0,enterFromClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterToClass:"".concat(e,"-enter ").concat(e,"-enter-active"),leaveFromClass:" ".concat(e,"-leave"),leaveActiveClass:"".concat(e,"-leave ").concat(e,"-leave-active"),leaveToClass:"".concat(e,"-leave ").concat(e,"-leave-active")}:{css:!1},t);return r},fx=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O(e?{name:e,appear:!0,appearActiveClass:"".concat(e),appearToClass:"".concat(e,"-appear ").concat(e,"-appear-active"),enterFromClass:"".concat(e,"-appear ").concat(e,"-enter ").concat(e,"-appear-prepare ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e),enterToClass:"".concat(e,"-enter ").concat(e,"-appear ").concat(e,"-appear-active ").concat(e,"-enter-active"),leaveActiveClass:"".concat(e," ").concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-active")}:{css:!1},t);return r},Av=function(e,t,r){return r!==void 0?r:"".concat(e,"-").concat(t)};const QZ=be({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(e,t){var r=t.attrs,i=t.slots,o,a=V(function(){return e.duration===void 0?1.5:e.duration}),s=function(){a.value&&(o=setTimeout(function(){u()},a.value*1e3))},l=function(){o&&(clearTimeout(o),o=null)},u=function(f){f&&f.stopPropagation(),l();var h=e.onClose,p=e.noticeKey;h&&h(p)},c=function(){l(),s()};return Wt(function(){s()}),Ia(function(){l()}),Ve([a,function(){return e.updateMark},function(){return e.visible}],function(d,f){var h=Ye(d,3),p=h[0],v=h[1],m=h[2],g=Ye(f,3),_=g[0],y=g[1],b=g[2];(p!==_||v!==y||m!==b&&b)&&c()},{flush:"post"}),function(){var d,f,h=e.prefixCls,p=e.closable,v=e.closeIcon,m=v===void 0?(d=i.closeIcon)===null||d===void 0?void 0:d.call(i):v,g=e.onClick,_=e.holder,y=r.class,b=r.style,w="".concat(h,"-notice"),C=Object.keys(r).reduce(function(L,E){return(E.substr(0,5)==="data-"||E.substr(0,5)==="aria-"||E==="role")&&(L[E]=r[E]),L},{}),S=I("div",O({class:Re(w,y,U({},"".concat(w,"-closable"),p)),style:b,onMouseenter:l,onMouseleave:s,onClick:g},C),[I("div",{class:"".concat(w,"-content")},[(f=i.default)===null||f===void 0?void 0:f.call(i)]),p?I("a",{tabindex:0,onClick:u,class:"".concat(w,"-close")},[m||I("span",{class:"".concat(w,"-close-x")},null)]):null]);return _?I(tx,{to:_},{default:function(){return S}}):S}}});var JZ=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],tP=0,eQ=Date.now();function nP(){var n=tP;return tP+=1,"rcNotification_".concat(eQ,"_").concat(n)}var A1=be({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(e,t){var r=t.attrs,i=t.expose,o=t.slots,a=new Map,s=J([]),l=V(function(){var d=e.prefixCls,f=e.animation,h=f===void 0?"fade":f,p=e.transitionName;return!p&&h&&(p="".concat(d,"-").concat(h)),fx(p)}),u=function(f,h){var p=f.key||nP(),v=O(O({},f),{},{key:p}),m=e.maxCount,g=s.value.map(function(y){return y.notice.key}).indexOf(p),_=s.value.concat();g!==-1?_.splice(g,1,{notice:v,holderCallback:h}):(m&&s.value.length>=m&&(v.key=_[0].notice.key,v.updateMark=nP(),v.userPassKey=p,_.shift()),_.push({notice:v,holderCallback:h})),s.value=_},c=function(f){s.value=s.value.filter(function(h){var p=h.notice,v=p.key,m=p.userPassKey,g=m||v;return g!==f})};return i({add:u,remove:c,notices:s}),function(){var d,f,h=e.prefixCls,p=e.closeIcon,v=p===void 0?(d=o.closeIcon)===null||d===void 0?void 0:d.call(o,{prefixCls:h}):p,m=s.value.map(function(_,y){var b=_.notice,w=_.holderCallback,C=y===s.value.length-1?b.updateMark:void 0,S=b.key,L=b.userPassKey,E=b.content,T=O(O(O({prefixCls:h,closeIcon:typeof v=="function"?v({prefixCls:h}):v},b),b.props),{},{key:S,noticeKey:L||S,updateMark:C,onClose:function(A){var D;c(A),(D=b.onClose)===null||D===void 0||D.call(b)},onClick:b.onClick});return w?I("div",{key:S,class:"".concat(h,"-hook-holder"),ref:function(A){typeof S>"u"||(A?(a.set(S,A),w(A,T)):a.delete(S))}},null):I(QZ,T,{default:function(){return[typeof E=="function"?E({prefixCls:h}):E]}})}),g=(f={},U(f,h,1),U(f,r.class,!!r.class),f);return I("div",{class:g,style:r.style||{top:"65px",left:"50%"}},[I(ox,O({tag:"div"},l.value),{default:function(){return[m]}})])}}});A1.newInstance=function(e,t){var r=e||{},i=r.name,o=i===void 0?"notification":i,a=r.getContainer,s=r.appContext,l=r.prefixCls,u=r.rootPrefixCls,c=r.transitionName,d=r.hasTransitionName,f=Nt(r,JZ),h=document.createElement("div");if(a){var p=a();p.appendChild(h)}else document.body.appendChild(h);var v=be({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(_,y){var b=y.attrs,w=J();return Wt(function(){t({notice:function(S){var L;(L=w.value)===null||L===void 0||L.add(S)},removeNotice:function(S){var L;(L=w.value)===null||L===void 0||L.remove(S)},destroy:function(){uy(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:w})}),function(){var C=_o,S=C.getPrefixCls(o,l),L=C.getRootPrefixCls(u,S),E=d?c:"".concat(L,"-").concat(c);return I(Kb,O(O({},C),{},{notUpdateGlobalConfig:!0,prefixCls:L}),{default:function(){return[I(A1,O(O({ref:w},b),{},{prefixCls:S,transitionName:E}),null)]}})}}}),m=I(v,f);m.appContext=s||m.appContext,uy(m,h)};const VV=A1;var tQ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const nQ=tQ;function li(n,e){rQ(n)&&(n="100%");var t=iQ(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function mm(n){return Math.min(1,Math.max(0,n))}function rQ(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function iQ(n){return typeof n=="string"&&n.indexOf("%")!==-1}function HV(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function _m(n){return n<=1?"".concat(Number(n)*100,"%"):n}function Ic(n){return n.length===1?"0"+n:String(n)}function oQ(n,e,t){return{r:li(n,255)*255,g:li(e,255)*255,b:li(t,255)*255}}function rP(n,e,t){n=li(n,255),e=li(e,255),t=li(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case n:o=(e-t)/l+(e1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function aQ(n,e,t){var r,i,o;if(n=li(n,360),e=li(e,100),t=li(t,100),e===0)i=t,o=t,r=t;else{var a=t<.5?t*(1+e):t+e-t*e,s=2*t-a;r=V0(s,a,n+1/3),i=V0(s,a,n),o=V0(s,a,n-1/3)}return{r:r*255,g:i*255,b:o*255}}function D1(n,e,t){n=li(n,255),e=li(e,255),t=li(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case n:o=(e-t)/s+(e>16,g:(n&65280)>>8,b:n&255}}var P1={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 rf(n){var e={r:0,g:0,b:0},t=1,r=null,i=null,o=null,a=!1,s=!1;return typeof n=="string"&&(n=hQ(n)),typeof n=="object"&&(Cs(n.r)&&Cs(n.g)&&Cs(n.b)?(e=oQ(n.r,n.g,n.b),a=!0,s=String(n.r).substr(-1)==="%"?"prgb":"rgb"):Cs(n.h)&&Cs(n.s)&&Cs(n.v)?(r=_m(n.s),i=_m(n.v),e=sQ(n.h,r,i),a=!0,s="hsv"):Cs(n.h)&&Cs(n.s)&&Cs(n.l)&&(r=_m(n.s),o=_m(n.l),e=aQ(n.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=HV(t),{ok:a,format:n.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var dQ="[-\\+]?\\d+%?",fQ="[-\\+]?\\d*\\.\\d+%?",Xl="(?:".concat(fQ,")|(?:").concat(dQ,")"),H0="[\\s|\\(]+(".concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")\\s*\\)?"),U0="[\\s|\\(]+(".concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")\\s*\\)?"),sa={CSS_UNIT:new RegExp(Xl),rgb:new RegExp("rgb"+H0),rgba:new RegExp("rgba"+U0),hsl:new RegExp("hsl"+H0),hsla:new RegExp("hsla"+U0),hsv:new RegExp("hsv"+H0),hsva:new RegExp("hsva"+U0),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 hQ(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(P1[n])n=P1[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=sa.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=sa.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=sa.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=sa.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=sa.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=sa.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=sa.hex8.exec(n),t?{r:po(t[1]),g:po(t[2]),b:po(t[3]),a:iP(t[4]),format:e?"name":"hex8"}:(t=sa.hex6.exec(n),t?{r:po(t[1]),g:po(t[2]),b:po(t[3]),format:e?"name":"hex"}:(t=sa.hex4.exec(n),t?{r:po(t[1]+t[1]),g:po(t[2]+t[2]),b:po(t[3]+t[3]),a:iP(t[4]+t[4]),format:e?"name":"hex8"}:(t=sa.hex3.exec(n),t?{r:po(t[1]+t[1]),g:po(t[2]+t[2]),b:po(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function Cs(n){return!!sa.CSS_UNIT.exec(String(n))}var $0=function(){function n(e,t){e===void 0&&(e=""),t===void 0&&(t={});var r;if(e instanceof n)return e;typeof e=="number"&&(e=cQ(e)),this.originalInput=e;var i=rf(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=t.format)!==null&&r!==void 0?r:i.format,this.gradientType=t.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=i.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},n.prototype.getLuminance=function(){var e=this.toRgb(),t,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?t=o/12.92:t=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*r+.0722*i},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(e){return this.a=HV(e),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},n.prototype.toHsv=function(){var e=D1(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},n.prototype.toHsvString=function(){var e=D1(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var e=rP(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},n.prototype.toHslString=function(){var e=rP(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(e){return e===void 0&&(e=!1),R1(this.r,this.g,this.b,e)},n.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},n.prototype.toHex8=function(e){return e===void 0&&(e=!1),lQ(this.r,this.g,this.b,this.a,e)},n.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},n.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(li(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(li(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+R1(this.r,this.g,this.b,!1),t=0,r=Object.entries(P1);t=0,o=!t&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=mm(t.l),new n(t)},n.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new n(t)},n.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=mm(t.l),new n(t)},n.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},n.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},n.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=mm(t.s),new n(t)},n.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=mm(t.s),new n(t)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(e){var t=this.toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,new n(t)},n.prototype.mix=function(e,t){t===void 0&&(t=50);var r=this.toRgb(),i=new n(e).toRgb(),o=t/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new n(a)},n.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var r=this.toHsl(),i=360/t,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new n(r));return o},n.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new n(e)},n.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),r=t.h,i=t.s,o=t.v,a=[],s=1/e;e--;)a.push(new n({h:r,s:i,v:o})),o=(o+s)%1;return a},n.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new n({h:(t+72)%360,s:e.s,l:e.l}),new n({h:(t+216)%360,s:e.s,l:e.l})]},n.prototype.onBackground=function(e){var t=this.toRgb(),r=new n(e).toRgb(),i=t.a+r.a*(1-t.a);return new n({r:(t.r*t.a+r.r*r.a*(1-t.a))/i,g:(t.g*t.a+r.g*r.a*(1-t.a))/i,b:(t.b*t.a+r.b*r.a*(1-t.a))/i,a:i})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(e){for(var t=this.toHsl(),r=t.h,i=[this],o=360/e,a=1;a=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-ym*e:Math.round(n.h)+ym*e:r=t?Math.round(n.h)+ym*e:Math.round(n.h)-ym*e,r<0?r+=360:r>=360&&(r-=360),r}function lP(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-oP*e:e===$V?r=n.s+oP:r=n.s+pQ*e,r>1&&(r=1),t&&e===UV&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function uP(n,e,t){var r;return t?r=n.v+vQ*e:r=n.v-gQ*e,r>1&&(r=1),Number(r.toFixed(2))}function Dv(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=rf(n),i=UV;i>0;i-=1){var o=aP(r),a=bm(rf({h:sP(o,i,!0),s:lP(o,i,!0),v:uP(o,i,!0)}));t.push(a)}t.push(bm(r));for(var s=1;s<=$V;s+=1){var l=aP(r),u=bm(rf({h:sP(l,s),s:lP(l,s),v:uP(l,s)}));t.push(u)}return e.theme==="dark"?mQ.map(function(c){var d=c.index,f=c.opacity,h=bm(_Q(rf(e.backgroundColor||"#141414"),rf(t[d]),f*100));return h}):t}var Af={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},j0={},z0={};Object.keys(Af).forEach(function(n){j0[n]=Dv(Af[n]),j0[n].primary=j0[n][5],z0[n]=Dv(Af[n],{theme:"dark",backgroundColor:"#141414"}),z0[n].primary=z0[n][5]});var cP=[],ip=[],yQ="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function bQ(){var n=document.createElement("style");return n.setAttribute("type","text/css"),n}function CQ(n,e){if(e=e||{},n===void 0)throw new Error(yQ);var t=e.prepend===!0?"prepend":"append",r=e.container!==void 0?e.container:document.querySelector("head"),i=cP.indexOf(r);i===-1&&(i=cP.push(r)-1,ip[i]={});var o;return ip[i]!==void 0&&ip[i][t]!==void 0?o=ip[i][t]:(o=ip[i][t]=bQ(),t==="prepend"?r.insertBefore(o,r.childNodes[0]):r.appendChild(o)),n.charCodeAt(0)===65279&&(n=n.substr(1,n.length)),o.styleSheet?o.styleSheet.cssText+=n:o.textContent+=n,o}function dP(n){for(var e=1;eG5=n,q5=Symbol();function C1(n){return n&&typeof n=="object"&&Object.prototype.toString.call(n)==="[object Object]"&&typeof n.toJSON!="function"}var Zp;(function(n){n.direct="direct",n.patchObject="patch object",n.patchFunction="patch function"})(Zp||(Zp={}));function lX(){const n=RT(!0),e=n.run(()=>ee({}));let t=[],r=[];const i=Db({install(o){Wb(i),i._a=o,o.provide(q5,i),o.config.globalProperties.$pinia=i,r.forEach(a=>t.push(a)),r=[]},use(o){return!this._a&&!sX?r.push(o):t.push(o),this},_p:t,_a:null,_e:n,_s:new Map,state:e});return i}const Y5=()=>{};function HR(n,e,t,r=Y5){n.push(e);const i=()=>{const o=n.indexOf(e);o>-1&&(n.splice(o,1),r())};return!t&&KW()&&XG(i),i}function Rd(n,...e){n.slice().forEach(t=>{t(...e)})}const uX=n=>n();function w1(n,e){n instanceof Map&&e instanceof Map&&e.forEach((t,r)=>n.set(r,t)),n instanceof Set&&e instanceof Set&&e.forEach(n.add,n);for(const t in e){if(!e.hasOwnProperty(t))continue;const r=e[t],i=n[t];C1(i)&&C1(r)&&n.hasOwnProperty(t)&&!ar(r)&&!tu(r)?n[t]=w1(i,r):n[t]=r}return n}const cX=Symbol();function dX(n){return!C1(n)||!n.hasOwnProperty(cX)}const{assign:Rl}=Object;function fX(n){return!!(ar(n)&&n.effect)}function hX(n,e,t,r){const{state:i,actions:o,getters:a}=e,s=t.state.value[n];let l;function u(){s||(t.state.value[n]=i?i():{});const c=Kp(t.state.value[n]);return Rl(c,o,Object.keys(a||{}).reduce((d,f)=>(d[f]=Db(V(()=>{Wb(t);const h=t._s.get(n);return a[f].call(h,h)})),d),{}))}return l=X5(n,u,e,t,r,!0),l}function X5(n,e,t={},r,i,o){let a;const s=Rl({actions:{}},t),l={deep:!0};let u,c,d=[],f=[],h;const p=r.state.value[n];!o&&!p&&(r.state.value[n]={}),ee({});let v;function m(E){let L;u=c=!1,typeof E=="function"?(E(r.state.value[n]),L={type:Zp.patchFunction,storeId:n,events:h}):(w1(r.state.value[n],E),L={type:Zp.patchObject,payload:E,storeId:n,events:h});const T=v=Symbol();en().then(()=>{v===T&&(u=!0)}),c=!0,Rd(d,L,r.state.value[n])}const g=o?function(){const{state:L}=t,T=L?L():{};this.$patch(R=>{Rl(R,T)})}:Y5;function _(){a.stop(),d=[],f=[],r._s.delete(n)}function y(E,L){return function(){Wb(r);const T=Array.from(arguments),R=[],N=[];function D(k){R.push(k)}function M(k){N.push(k)}Rd(f,{args:T,name:E,store:w,after:D,onError:M});let H;try{H=L.apply(this&&this.$id===n?this:w,T)}catch(k){throw Rd(N,k),k}return H instanceof Promise?H.then(k=>(Rd(R,k),k)).catch(k=>(Rd(N,k),Promise.reject(k))):(Rd(R,H),H)}}const C={_p:r,$id:n,$onAction:HR.bind(null,f),$patch:m,$reset:g,$subscribe(E,L={}){const T=HR(d,E,L.detached,()=>R()),R=a.run(()=>We(()=>r.state.value[n],N=>{(L.flush==="sync"?c:u)&&E({storeId:n,type:Zp.direct,events:h},N)},Rl({},l,L)));return T},$dispose:_},w=Rn(C);r._s.set(n,w);const S=(r._a&&r._a.runWithContext||uX)(()=>r._e.run(()=>(a=RT()).run(e)));for(const E in S){const L=S[E];if(ar(L)&&!fX(L)||tu(L))o||(p&&dX(L)&&(ar(L)?L.value=p[E]:w1(L,p[E])),r.state.value[n][E]=L);else if(typeof L=="function"){const T=y(E,L);S[E]=T,s.actions[E]=L}}return Rl(w,S),Rl(Tt(w),S),Object.defineProperty(w,"$state",{get:()=>r.state.value[n],set:E=>{m(L=>{Rl(L,E)})}}),r._p.forEach(E=>{Rl(w,a.run(()=>E({store:w,app:r._a,pinia:r,options:s})))}),p&&o&&t.hydrate&&t.hydrate(w.$state,p),u=!0,c=!0,w}function pX(n,e,t){let r,i;const o=typeof e=="function";typeof n=="string"?(r=n,i=o?t:e):(i=n,r=n.id);function a(s,l){const u=tY();return s=s||(u?yt(q5,null):null),s&&Wb(s),s=G5,s._s.has(r)||(o?X5(r,e,i,s):hX(r,i,s)),s._s.get(r)}return a.$id=r,a}function at(n){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(n)}function vX(n,e){if(at(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(at(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Z5(n){var e=vX(n,"string");return at(e)=="symbol"?e:String(e)}function U(n,e,t){return e=Z5(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function UR(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function O(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return typeof n=="function"?n(e):n??t}function Ne(){for(var n=[],e=0;e0},n.prototype.connect_=function(){!S1||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),RX?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!S1||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,i=AX.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),e6=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof Xf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new UX(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Xf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new $X(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),n6=typeof WeakMap<"u"?new WeakMap:new J5,r6=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=PX.getInstance(),r=new jX(e,t,this);n6.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){r6.prototype[n]=function(){var e;return(e=n6.get(this))[n].apply(e,arguments)}});var i6=function(){return typeof uy.ResizeObserver<"u"?uy.ResizeObserver:r6}();function o6(n){if(Array.isArray(n))return n}function zX(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=o.call(t)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function E1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r={},i=/;(?![^(]*\))/g,o=/:(.+)/;return at(e)==="object"?e:(e.split(i).forEach(function(a){if(a){var s=a.split(o);if(s.length>1){var l=t?ox(s[0].trim()):s[0].trim();r[l]=s[1].trim()}}}),r)},rf=function(e,t){return e[t]!==void 0},lr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(e)?e:[e],i=[];return r.forEach(function(o){Array.isArray(o)?i.push.apply(i,Ge(n(o,t))):o&&o.type===kt?i.push.apply(i,Ge(n(o.children,t))):o&&Ui(o)?t&&!Ub(o)?i.push(o):t||i.push(o):L1(o)&&i.push(o)}),i},p6=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Ui(e))return e.type===kt?t==="default"?lr(e.children):[]:e.children&&e.children[t]?lr(e.children[t](r)):[];var i=e.$slots[t]&&e.$slots[t](r);return lr(i)},Ic=function(e){for(var t,r=(e==null||(t=e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);r&&!r.tagName;)r=r.nextSibling;return r},pZ=function(e){var t={};if(e.$&&e.$.vnode){var r=e.$.vnode.props||{};Object.keys(e.$props).forEach(function(s){var l=e.$props[s],u=EX(s);(l!==void 0||u in r)&&(t[s]=l)})}else if(Ui(e)&&at(e.type)==="object"){var i=e.props||{},o={};Object.keys(i).forEach(function(s){o[ox(s)]=i[s]});var a=e.type.props||{};Object.keys(a).forEach(function(s){var l=IX(a,o,s,o[s]);(l!==void 0||s in o)&&(t[s]=l)})}return t},lx=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=void 0;if(e.$){var a=e[t];if(a!==void 0)return typeof a=="function"&&i?a(r):a;o=e.$slots[t],o=i&&o?o(r):o}else if(Ui(e)){var s=e.props&&e.props[t];if(s!==void 0&&e.props!==null)return typeof s=="function"&&i?s(r):s;e.type===kt?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=i&&o?o(r):o)}return Array.isArray(o)&&(o=lr(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function KR(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t={};return n.$?t=O(O({},t),n.$attrs):t=O(O({},t),n.props),h6(t)[e?"onEvents":"events"]}function vZ(n,e){var t=(Ui(n)?n.props:n.$attrs)||{},r=t.style||{};if(typeof r=="string")r=sx(r,e);else if(e&&r){var i={};return Object.keys(r).forEach(function(o){return i[ox(o)]=r[o]}),i}return r}function Ub(n){return n&&(n.type===So||n.type===kt&&n.children.length===0||n.type===dl&&n.children.trim()==="")}function gZ(n){return n&&n.type===dl}function To(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=[];return n.forEach(function(t){Array.isArray(t)?e.push.apply(e,Ge(t)):(t==null?void 0:t.type)===kt?e.push.apply(e,Ge(To(t.children))):e.push(t)}),e.filter(function(t){return!Ub(t)})}function ni(n){return Array.isArray(n)&&n.length===1&&(n=n[0]),n&&n.__v_isVNode&&at(n.type)!=="symbol"}function Xa(n,e){var t,r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(t=e[i])!==null&&t!==void 0?t:(r=n[i])===null||r===void 0?void 0:r.call(n)}const mu=be({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,t){var r=t.slots,i=Rn({width:0,height:0,offsetHeight:0,offsetWidth:0}),o=null,a=null,s=function(){a&&(a.disconnect(),a=null)},l=function(f){var h=e.onResize,p=f[0].target,v=p.getBoundingClientRect(),m=v.width,g=v.height,_=p.offsetWidth,y=p.offsetHeight,C=Math.floor(m),w=Math.floor(g);if(i.width!==C||i.height!==w||i.offsetWidth!==_||i.offsetHeight!==y){var b={width:C,height:w,offsetWidth:_,offsetHeight:y};fn(i,b),h&&Promise.resolve().then(function(){h(O(O({},b),{},{offsetWidth:_,offsetHeight:y}),p)})}},u=Dr(),c=function(){var f=e.disabled;if(f){s();return}var h=Ic(u),p=h!==o;p&&(s(),o=h),!a&&h&&(a=new i6(l),a.observe(h))};return Wt(function(){c()}),Xo(function(){c()}),Ia(function(){s()}),We(function(){return e.disabled},function(){c()},{flush:"post"}),function(){var d;return(d=r.default)===null||d===void 0?void 0:d.call(r)[0]}}});var v6=function(e){return setTimeout(e,16)},g6=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(v6=function(e){return window.requestAnimationFrame(e)},g6=function(e){return window.cancelAnimationFrame(e)});var GR=0,ux=new Map;function m6(n){ux.delete(n)}function Mt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;GR+=1;var t=GR;function r(i){if(i===0)m6(t),n();else{var o=v6(function(){r(i-1)});ux.set(t,o)}}return r(e),t}Mt.cancel=function(n){var e=ux.get(n);return m6(e),g6(e)};var Si=function(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&(t[i]=n[i]);return t}function Nt(n,e){if(n==null)return{};var t=mZ(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}const y6={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var _Z={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const yZ=_Z;var bZ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const b6=bZ;var CZ={lang:O({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},yZ),timePickerLocale:O({},b6)};const YR=CZ;var lo="${label} is not a valid ${type}",wZ={locale:"en",Pagination:y6,DatePicker:YR,TimePicker:b6,Calendar:YR,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:lo,method:lo,array:lo,object:lo,number:lo,date:lo,boolean:lo,integer:lo,float:lo,regexp:lo,email:lo,url:lo,hex:lo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const nl=wZ,C6=be({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(e,t){var r=t.slots,i=yt("localeData",{}),o=V(function(){var s=e.componentName,l=s===void 0?"global":s,u=e.defaultLocale,c=u||nl[l||"global"],d=i.antLocale,f=l&&d?d[l]:{};return O(O({},typeof c=="function"?c():c),f||{})}),a=V(function(){var s=i.antLocale,l=s&&s.locale;return s&&s.exist&&!l?nl.locale:l});return function(){var s=e.children||r.default,l=i.antLocale;return s==null?void 0:s(o.value,a.value,l)}}});function Th(n,e,t){var r=yt("localeData",{}),i=V(function(){var o=r.antLocale,a=gr(e)||nl[n||"global"],s=n&&o?o[n]:{};return O(O(O({},typeof a=="function"?a():a),s||{}),gr(t)||{})});return[i]}var w6=function(){var e=Et("empty",{}),t=e.getPrefixCls,r=t("empty-img-default");return I("svg",{class:r,width:"184",height:"152",viewBox:"0 0 184 152"},[I("g",{fill:"none","fill-rule":"evenodd"},[I("g",{transform:"translate(24 31.67)"},[I("ellipse",{class:"".concat(r,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),I("path",{class:"".concat(r,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),I("path",{class:"".concat(r,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),I("path",{class:"".concat(r,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),I("path",{class:"".concat(r,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),I("path",{class:"".concat(r,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),I("g",{class:"".concat(r,"-g"),transform:"translate(149.65 15.383)"},[I("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),I("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};w6.PRESENTED_IMAGE_DEFAULT=!0;const SZ=w6;var S6=function(){var e=Et("empty",{}),t=e.getPrefixCls,r=t("empty-img-simple");return I("svg",{class:r,width:"64",height:"41",viewBox:"0 0 64 41"},[I("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[I("ellipse",{class:"".concat(r,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),I("g",{class:"".concat(r,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[I("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),I("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(r,"-path")},null)])])])};S6.PRESENTED_IMAGE_SIMPLE=!0;const EZ=S6;function XR(n,e){for(var t=0;t=0||(i[t]=n[t]);return i}function ZR(n){return((e=n)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(n)==="[object Object]";var e}var T6=Object.prototype,x6=T6.toString,LZ=T6.hasOwnProperty,O6=/^\s*function (\w+)/;function QR(n){var e,t=(e=n==null?void 0:n.type)!==null&&e!==void 0?e:n;if(t){var r=t.toString().match(O6);return r?r[1]:""}return""}var Jc=function(n){var e,t;return ZR(n)!==!1&&typeof(e=n.constructor)=="function"&&ZR(t=e.prototype)!==!1&&t.hasOwnProperty("isPrototypeOf")!==!1},IZ=function(n){return n},Fi=IZ,Pv=function(n,e){return LZ.call(n,e)},TZ=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},Zf=Array.isArray||function(n){return x6.call(n)==="[object Array]"},Qf=function(n){return x6.call(n)==="[object Function]"},dy=function(n){return Jc(n)&&Pv(n,"_vueTypes_name")},N6=function(n){return Jc(n)&&(Pv(n,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Pv(n,e)}))};function cx(n,e){return Object.defineProperty(n.bind(e),"__original",{value:n})}function hd(n,e,t){var r;t===void 0&&(t=!1);var i=!0,o="";r=Jc(n)?n:{type:n};var a=dy(r)?r._vueTypes_name+" - ":"";if(N6(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;Zf(r.type)?(i=r.type.some(function(d){return hd(d,e,!0)===!0}),o=r.type.map(function(d){return QR(d)}).join(" or ")):i=(o=QR(r))==="Array"?Zf(e):o==="Object"?Jc(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(O6);return f?f[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return t===!1?(Fi(s),!1):s}if(Pv(r,"validator")&&Qf(r.validator)){var l=Fi,u=[];if(Fi=function(d){u.push(d)},i=r.validator(e),Fi=l,!i){var c=(u.length>1?"* ":"")+u.join(` +* `);return u.length=0,t===!1?(Fi(c),i):c}}return i}function xo(n,e){var t=Object.defineProperties(e,{_vueTypes_name:{value:n,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?Qf(i)||hd(this,i,!0)===!0?(this.default=Zf(i)?function(){return[].concat(i)}:Jc(i)?function(){return Object.assign({},i)}:i,this):(Fi(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=t.validator;return Qf(r)&&(t.validator=cx(r,t)),t}function as(n,e){var t=xo(n,e);return Object.defineProperty(t,"validate",{value:function(r){return Qf(this.validator)&&Fi(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=cx(r,this),this}})}function JR(n,e,t){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(d){i[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},i));if(o._vueTypes_name=n,!Jc(t))return o;var a,s,l=t.validator,u=I6(t,["validator"]);if(Qf(l)){var c=o.validator;c&&(c=(s=(a=c).__original)!==null&&s!==void 0?s:a),o.validator=cx(c?function(d){return c.call(this,d)&&l.call(this,d)}:l,o)}return Object.assign(o,u)}function $b(n){return n.replace(/^(?!\s*$)/gm," ")}var xZ=function(){return as("any",{})},OZ=function(){return as("function",{type:Function})},NZ=function(){return as("boolean",{type:Boolean})},DZ=function(){return as("string",{type:String})},AZ=function(){return as("number",{type:Number})},RZ=function(){return as("array",{type:Array})},PZ=function(){return as("object",{type:Object})},MZ=function(){return xo("integer",{type:Number,validator:function(n){return TZ(n)}})},kZ=function(){return xo("symbol",{validator:function(n){return typeof n=="symbol"}})};function FZ(n,e){if(e===void 0&&(e="custom validation failed"),typeof n!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return xo(n.name||"<>",{validator:function(t){var r=n(t);return r||Fi(this._vueTypes_name+" - "+e),r}})}function BZ(n){if(!Zf(n))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+n.join('", "')+'".',t=n.reduce(function(r,i){if(i!=null){var o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return xo("oneOf",{type:t.length>0?t:void 0,validator:function(r){var i=n.indexOf(r)!==-1;return i||Fi(e),i}})}function WZ(n){if(!Zf(n))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,t=[],r=0;r0&&t.some(function(l){return a.indexOf(l)===-1})){var s=t.filter(function(l){return a.indexOf(l)===-1});return Fi(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every(function(l){if(e.indexOf(l)===-1)return o._vueTypes_isLoose===!0||(Fi('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=hd(n[l],i[l],!0);return typeof u=="string"&&Fi('shape - "'+l+`" property validation error: + `+$b(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ma=function(){function n(){}return n.extend=function(e){var t=this;if(Zf(e))return e.forEach(function(d){return t.extend(d)}),this;var r=e.name,i=e.validate,o=i!==void 0&&i,a=e.getter,s=a!==void 0&&a,l=I6(e,["name","validate","getter"]);if(Pv(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return dy(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return JR(r,c,l)}}:{value:function(){var d,f=JR(r,c,l);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=s?{get:function(){var d=Object.assign({},l);return o?as(r,d):xo(r,d)},enumerable:!0}:{value:function(){var d,f,h=Object.assign({},l);return d=o?as(r,h):xo(r,h),h.validator&&(d.validator=(f=h.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},E6(n,null,[{key:"any",get:function(){return xZ()}},{key:"func",get:function(){return OZ().def(this.defaults.func)}},{key:"bool",get:function(){return NZ().def(this.defaults.bool)}},{key:"string",get:function(){return DZ().def(this.defaults.string)}},{key:"number",get:function(){return AZ().def(this.defaults.number)}},{key:"array",get:function(){return RZ().def(this.defaults.array)}},{key:"object",get:function(){return PZ().def(this.defaults.object)}},{key:"integer",get:function(){return MZ().def(this.defaults.integer)}},{key:"symbol",get:function(){return kZ()}}]),n}();function D6(n){var e;return n===void 0&&(n={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(t){function r(){return t.apply(this,arguments)||this}return L6(r,t),E6(r,null,[{key:"sensibleDefaults",get:function(){return E_({},this.defaults)},set:function(i){this.defaults=i!==!1?E_({},i!==!0?i:n):{}}}]),r}(Ma)).defaults=E_({},n),e}Ma.defaults={},Ma.custom=FZ,Ma.oneOf=BZ,Ma.instanceOf=HZ,Ma.oneOfType=WZ,Ma.arrayOf=VZ,Ma.objectOf=UZ,Ma.shape=$Z,Ma.utils={validate:function(n,e){return hd(e,n,!0)===!0},toType:function(n,e,t){return t===void 0&&(t=!1),t?as(n,e):xo(n,e)}};(function(n){function e(){return n.apply(this,arguments)||this}return L6(e,n),e})(D6());var A6=D6({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});A6.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);const ie=A6;var jZ=["image","description","imageStyle","class"],R6=I(SZ,null,null),P6=I(EZ,null,null),xh=function(e,t){var r,i=t.slots,o=i===void 0?{}:i,a=t.attrs,s=Et("empty",e),l=s.direction,u=s.prefixCls,c=u.value,d=O(O({},e),a),f=d.image,h=f===void 0?R6:f,p=d.description,v=p===void 0?((r=o.description)===null||r===void 0?void 0:r.call(o))||void 0:p,m=d.imageStyle,g=d.class,_=g===void 0?"":g,y=Nt(d,jZ);return I(C6,{componentName:"Empty",children:function(w){var b,S=typeof v<"u"?v:w.description,E=typeof S=="string"?S:"empty",L=null;return typeof h=="string"?L=I("img",{alt:E,src:h},null):L=h,I("div",O({class:Ne(c,_,(b={},U(b,"".concat(c,"-normal"),h===P6),U(b,"".concat(c,"-rtl"),l.value==="rtl"),b))},y),[I("div",{class:"".concat(c,"-image"),style:m},[L]),S&&I("p",{class:"".concat(c,"-description")},[S]),o.default&&I("div",{class:"".concat(c,"-footer")},[To(o.default())])])}},null)};xh.displayName="AEmpty";xh.PRESENTED_IMAGE_DEFAULT=R6;xh.PRESENTED_IMAGE_SIMPLE=P6;xh.inheritAttrs=!1;xh.props={prefixCls:String,image:ie.any,description:ie.any,imageStyle:{type:Object,default:void 0}};const Kl=Lu(xh);var zZ=function(e){var t=Et("empty",e),r=t.prefixCls,i=function(a){switch(a){case"Table":case"List":return I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE,class:"".concat(r.value,"-small")},null);default:return I(Kl,null,null)}};return i(e.componentName)};function M6(n){return I(zZ,{componentName:n},null)}var eP={};function KZ(n,e){}function GZ(n,e,t){!e&&!eP[t]&&(n(!1,t),eP[t]=!0)}function k6(n,e){GZ(KZ,n,e)}const _a=function(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";k6(n,"[antdv: ".concat(e,"] ").concat(t))};var I1="internalMark",L_=be({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(e,t){var r=t.slots;_a(e.ANT_MARK__===I1,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var i=Rn({antLocale:O(O({},e.locale),{},{exist:!0}),ANT_MARK__:I1});return qt("localeData",i),We(function(){return e.locale},function(){i.antLocale=O(O({},e.locale),{},{exist:!0})},{immediate:!0}),function(){var o;return(o=r.default)===null||o===void 0?void 0:o.call(r)}}});L_.install=function(n){return n.component(L_.name,L_),n};const qZ=Lu(L_);Si("bottomLeft","bottomRight","topLeft","topRight");var Og=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O(e?{name:e,appear:!0,enterFromClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterToClass:"".concat(e,"-enter ").concat(e,"-enter-active"),leaveFromClass:" ".concat(e,"-leave"),leaveActiveClass:"".concat(e,"-leave ").concat(e,"-leave-active"),leaveToClass:"".concat(e,"-leave ").concat(e,"-leave-active")}:{css:!1},t);return r},dx=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=O(e?{name:e,appear:!0,appearActiveClass:"".concat(e),appearToClass:"".concat(e,"-appear ").concat(e,"-appear-active"),enterFromClass:"".concat(e,"-appear ").concat(e,"-enter ").concat(e,"-appear-prepare ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e),enterToClass:"".concat(e,"-enter ").concat(e,"-appear ").concat(e,"-appear-active ").concat(e,"-enter-active"),leaveActiveClass:"".concat(e," ").concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-active")}:{css:!1},t);return r},Mv=function(e,t,r){return r!==void 0?r:"".concat(e,"-").concat(t)};const YZ=be({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(e,t){var r=t.attrs,i=t.slots,o,a=V(function(){return e.duration===void 0?1.5:e.duration}),s=function(){a.value&&(o=setTimeout(function(){u()},a.value*1e3))},l=function(){o&&(clearTimeout(o),o=null)},u=function(f){f&&f.stopPropagation(),l();var h=e.onClose,p=e.noticeKey;h&&h(p)},c=function(){l(),s()};return Wt(function(){s()}),Ia(function(){l()}),We([a,function(){return e.updateMark},function(){return e.visible}],function(d,f){var h=qe(d,3),p=h[0],v=h[1],m=h[2],g=qe(f,3),_=g[0],y=g[1],C=g[2];(p!==_||v!==y||m!==C&&C)&&c()},{flush:"post"}),function(){var d,f,h=e.prefixCls,p=e.closable,v=e.closeIcon,m=v===void 0?(d=i.closeIcon)===null||d===void 0?void 0:d.call(i):v,g=e.onClick,_=e.holder,y=r.class,C=r.style,w="".concat(h,"-notice"),b=Object.keys(r).reduce(function(E,L){return(L.substr(0,5)==="data-"||L.substr(0,5)==="aria-"||L==="role")&&(E[L]=r[L]),E},{}),S=I("div",O({class:Ne(w,y,U({},"".concat(w,"-closable"),p)),style:C,onMouseenter:l,onMouseleave:s,onClick:g},b),[I("div",{class:"".concat(w,"-content")},[(f=i.default)===null||f===void 0?void 0:f.call(i)]),p?I("a",{tabindex:0,onClick:u,class:"".concat(w,"-close")},[m||I("span",{class:"".concat(w,"-close-x")},null)]):null]);return _?I(QT,{to:_},{default:function(){return S}}):S}}});var XZ=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],tP=0,ZZ=Date.now();function nP(){var n=tP;return tP+=1,"rcNotification_".concat(ZZ,"_").concat(n)}var T1=be({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(e,t){var r=t.attrs,i=t.expose,o=t.slots,a=new Map,s=ee([]),l=V(function(){var d=e.prefixCls,f=e.animation,h=f===void 0?"fade":f,p=e.transitionName;return!p&&h&&(p="".concat(d,"-").concat(h)),dx(p)}),u=function(f,h){var p=f.key||nP(),v=O(O({},f),{},{key:p}),m=e.maxCount,g=s.value.map(function(y){return y.notice.key}).indexOf(p),_=s.value.concat();g!==-1?_.splice(g,1,{notice:v,holderCallback:h}):(m&&s.value.length>=m&&(v.key=_[0].notice.key,v.updateMark=nP(),v.userPassKey=p,_.shift()),_.push({notice:v,holderCallback:h})),s.value=_},c=function(f){s.value=s.value.filter(function(h){var p=h.notice,v=p.key,m=p.userPassKey,g=m||v;return g!==f})};return i({add:u,remove:c,notices:s}),function(){var d,f,h=e.prefixCls,p=e.closeIcon,v=p===void 0?(d=o.closeIcon)===null||d===void 0?void 0:d.call(o,{prefixCls:h}):p,m=s.value.map(function(_,y){var C=_.notice,w=_.holderCallback,b=y===s.value.length-1?C.updateMark:void 0,S=C.key,E=C.userPassKey,L=C.content,T=O(O(O({prefixCls:h,closeIcon:typeof v=="function"?v({prefixCls:h}):v},C),C.props),{},{key:S,noticeKey:E||S,updateMark:b,onClose:function(N){var D;c(N),(D=C.onClose)===null||D===void 0||D.call(C)},onClick:C.onClick});return w?I("div",{key:S,class:"".concat(h,"-hook-holder"),ref:function(N){typeof S>"u"||(N?(a.set(S,N),w(N,T)):a.delete(S))}},null):I(YZ,T,{default:function(){return[typeof L=="function"?L({prefixCls:h}):L]}})}),g=(f={},U(f,h,1),U(f,r.class,!!r.class),f);return I("div",{class:g,style:r.style||{top:"65px",left:"50%"}},[I(ix,O({tag:"div"},l.value),{default:function(){return[m]}})])}}});T1.newInstance=function(e,t){var r=e||{},i=r.name,o=i===void 0?"notification":i,a=r.getContainer,s=r.appContext,l=r.prefixCls,u=r.rootPrefixCls,c=r.transitionName,d=r.hasTransitionName,f=Nt(r,XZ),h=document.createElement("div");if(a){var p=a();p.appendChild(h)}else document.body.appendChild(h);var v=be({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(_,y){var C=y.attrs,w=ee();return Wt(function(){t({notice:function(S){var E;(E=w.value)===null||E===void 0||E.add(S)},removeNotice:function(S){var E;(E=w.value)===null||E===void 0||E.remove(S)},destroy:function(){ly(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:w})}),function(){var b=_o,S=b.getPrefixCls(o,l),E=b.getRootPrefixCls(u,S),L=d?c:"".concat(E,"-").concat(c);return I(jb,O(O({},b),{},{notUpdateGlobalConfig:!0,prefixCls:E}),{default:function(){return[I(T1,O(O({ref:w},C),{},{prefixCls:S,transitionName:L}),null)]}})}}}),m=I(v,f);m.appContext=s||m.appContext,ly(m,h)};const F6=T1;var QZ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const JZ=QZ;function li(n,e){eQ(n)&&(n="100%");var t=tQ(n);return n=e===360?n:Math.min(e,Math.max(0,parseFloat(n))),t&&(n=parseInt(String(n*e),10)/100),Math.abs(n-e)<1e-6?1:(e===360?n=(n<0?n%e+e:n%e)/parseFloat(String(e)):n=n%e/parseFloat(String(e)),n)}function bm(n){return Math.min(1,Math.max(0,n))}function eQ(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function tQ(n){return typeof n=="string"&&n.indexOf("%")!==-1}function B6(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function Cm(n){return n<=1?"".concat(Number(n)*100,"%"):n}function Tc(n){return n.length===1?"0"+n:String(n)}function nQ(n,e,t){return{r:li(n,255)*255,g:li(e,255)*255,b:li(t,255)*255}}function rP(n,e,t){n=li(n,255),e=li(e,255),t=li(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case n:o=(e-t)/l+(e1&&(t-=1),t<1/6?n+(e-n)*(6*t):t<1/2?e:t<2/3?n+(e-n)*(2/3-t)*6:n}function rQ(n,e,t){var r,i,o;if(n=li(n,360),e=li(e,100),t=li(t,100),e===0)i=t,o=t,r=t;else{var a=t<.5?t*(1+e):t+e-t*e,s=2*t-a;r=M0(s,a,n+1/3),i=M0(s,a,n),o=M0(s,a,n-1/3)}return{r:r*255,g:i*255,b:o*255}}function x1(n,e,t){n=li(n,255),e=li(e,255),t=li(t,255);var r=Math.max(n,e,t),i=Math.min(n,e,t),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case n:o=(e-t)/s+(e>16,g:(n&65280)>>8,b:n&255}}var N1={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 of(n){var e={r:0,g:0,b:0},t=1,r=null,i=null,o=null,a=!1,s=!1;return typeof n=="string"&&(n=cQ(n)),typeof n=="object"&&(ws(n.r)&&ws(n.g)&&ws(n.b)?(e=nQ(n.r,n.g,n.b),a=!0,s=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ws(n.h)&&ws(n.s)&&ws(n.v)?(r=Cm(n.s),i=Cm(n.v),e=iQ(n.h,r,i),a=!0,s="hsv"):ws(n.h)&&ws(n.s)&&ws(n.l)&&(r=Cm(n.s),o=Cm(n.l),e=rQ(n.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(t=n.a)),t=B6(t),{ok:a,format:n.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}var lQ="[-\\+]?\\d+%?",uQ="[-\\+]?\\d*\\.\\d+%?",Xl="(?:".concat(uQ,")|(?:").concat(lQ,")"),k0="[\\s|\\(]+(".concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")\\s*\\)?"),F0="[\\s|\\(]+(".concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")[,|\\s]+(").concat(Xl,")\\s*\\)?"),aa={CSS_UNIT:new RegExp(Xl),rgb:new RegExp("rgb"+k0),rgba:new RegExp("rgba"+F0),hsl:new RegExp("hsl"+k0),hsla:new RegExp("hsla"+F0),hsv:new RegExp("hsv"+k0),hsva:new RegExp("hsva"+F0),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 cQ(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var e=!1;if(N1[n])n=N1[n],e=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=aa.rgb.exec(n);return t?{r:t[1],g:t[2],b:t[3]}:(t=aa.rgba.exec(n),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=aa.hsl.exec(n),t?{h:t[1],s:t[2],l:t[3]}:(t=aa.hsla.exec(n),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=aa.hsv.exec(n),t?{h:t[1],s:t[2],v:t[3]}:(t=aa.hsva.exec(n),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=aa.hex8.exec(n),t?{r:po(t[1]),g:po(t[2]),b:po(t[3]),a:iP(t[4]),format:e?"name":"hex8"}:(t=aa.hex6.exec(n),t?{r:po(t[1]),g:po(t[2]),b:po(t[3]),format:e?"name":"hex"}:(t=aa.hex4.exec(n),t?{r:po(t[1]+t[1]),g:po(t[2]+t[2]),b:po(t[3]+t[3]),a:iP(t[4]+t[4]),format:e?"name":"hex8"}:(t=aa.hex3.exec(n),t?{r:po(t[1]+t[1]),g:po(t[2]+t[2]),b:po(t[3]+t[3]),format:e?"name":"hex"}:!1)))))))))}function ws(n){return!!aa.CSS_UNIT.exec(String(n))}var B0=function(){function n(e,t){e===void 0&&(e=""),t===void 0&&(t={});var r;if(e instanceof n)return e;typeof e=="number"&&(e=sQ(e)),this.originalInput=e;var i=of(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=t.format)!==null&&r!==void 0?r:i.format,this.gradientType=t.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=i.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},n.prototype.getLuminance=function(){var e=this.toRgb(),t,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?t=o/12.92:t=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*r+.0722*i},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(e){return this.a=B6(e),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},n.prototype.toHsv=function(){var e=x1(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},n.prototype.toHsvString=function(){var e=x1(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var e=rP(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},n.prototype.toHslString=function(){var e=rP(this.r,this.g,this.b),t=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(t,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(e){return e===void 0&&(e=!1),O1(this.r,this.g,this.b,e)},n.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},n.prototype.toHex8=function(e){return e===void 0&&(e=!1),oQ(this.r,this.g,this.b,this.a,e)},n.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},n.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var e=function(t){return"".concat(Math.round(li(t,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var e=function(t){return Math.round(li(t,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+O1(this.r,this.g,this.b,!1),t=0,r=Object.entries(N1);t=0,o=!t&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=bm(t.l),new n(t)},n.prototype.brighten=function(e){e===void 0&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new n(t)},n.prototype.darken=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=bm(t.l),new n(t)},n.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},n.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},n.prototype.desaturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=bm(t.s),new n(t)},n.prototype.saturate=function(e){e===void 0&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=bm(t.s),new n(t)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(e){var t=this.toHsl(),r=(t.h+e)%360;return t.h=r<0?360+r:r,new n(t)},n.prototype.mix=function(e,t){t===void 0&&(t=50);var r=this.toRgb(),i=new n(e).toRgb(),o=t/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new n(a)},n.prototype.analogous=function(e,t){e===void 0&&(e=6),t===void 0&&(t=30);var r=this.toHsl(),i=360/t,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new n(r));return o},n.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new n(e)},n.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var t=this.toHsv(),r=t.h,i=t.s,o=t.v,a=[],s=1/e;e--;)a.push(new n({h:r,s:i,v:o})),o=(o+s)%1;return a},n.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new n({h:(t+72)%360,s:e.s,l:e.l}),new n({h:(t+216)%360,s:e.s,l:e.l})]},n.prototype.onBackground=function(e){var t=this.toRgb(),r=new n(e).toRgb(),i=t.a+r.a*(1-t.a);return new n({r:(t.r*t.a+r.r*r.a*(1-t.a))/i,g:(t.g*t.a+r.g*r.a*(1-t.a))/i,b:(t.b*t.a+r.b*r.a*(1-t.a))/i,a:i})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(e){for(var t=this.toHsl(),r=t.h,i=[this],o=360/e,a=1;a=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-wm*e:Math.round(n.h)+wm*e:r=t?Math.round(n.h)+wm*e:Math.round(n.h)-wm*e,r<0?r+=360:r>=360&&(r-=360),r}function lP(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-oP*e:e===V6?r=n.s+oP:r=n.s+dQ*e,r>1&&(r=1),t&&e===W6&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function uP(n,e,t){var r;return t?r=n.v+fQ*e:r=n.v-hQ*e,r>1&&(r=1),Number(r.toFixed(2))}function kv(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=of(n),i=W6;i>0;i-=1){var o=aP(r),a=Sm(of({h:sP(o,i,!0),s:lP(o,i,!0),v:uP(o,i,!0)}));t.push(a)}t.push(Sm(r));for(var s=1;s<=V6;s+=1){var l=aP(r),u=Sm(of({h:sP(l,s),s:lP(l,s),v:uP(l,s)}));t.push(u)}return e.theme==="dark"?pQ.map(function(c){var d=c.index,f=c.opacity,h=Sm(vQ(of(e.backgroundColor||"#141414"),of(t[d]),f*100));return h}):t}var Df={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},W0={},V0={};Object.keys(Df).forEach(function(n){W0[n]=kv(Df[n]),W0[n].primary=W0[n][5],V0[n]=kv(Df[n],{theme:"dark",backgroundColor:"#141414"}),V0[n].primary=V0[n][5]});var cP=[],op=[],gQ="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function mQ(){var n=document.createElement("style");return n.setAttribute("type","text/css"),n}function _Q(n,e){if(e=e||{},n===void 0)throw new Error(gQ);var t=e.prepend===!0?"prepend":"append",r=e.container!==void 0?e.container:document.querySelector("head"),i=cP.indexOf(r);i===-1&&(i=cP.push(r)-1,op[i]={});var o;return op[i]!==void 0&&op[i][t]!==void 0?o=op[i][t]:(o=op[i][t]=mQ(),t==="prepend"?r.insertBefore(o,r.childNodes[0]):r.appendChild(o)),n.charCodeAt(0)===65279&&(n=n.substr(1,n.length)),o.styleSheet?o.styleSheet.cssText+=n:o.textContent+=n,o}function dP(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:SQ;en(function(){hP||(typeof window<"u"&&window.document&&window.document.documentElement&&CQ(e,{prepend:!0}),hP=!0)})},LQ=["icon","primaryColor","secondaryColor"];function IQ(n,e){if(n==null)return{};var t=TQ(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function TQ(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o=0)&&(t[i]=n[i]);return t}function E_(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function jQ(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o=0)&&(t[i]=n[i]);return t}KV("#1890ff");var xh=function(e,t){var r,i=gP({},e,t.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,d=i.onClick,f=$Q(i,FQ),h=(r={anticon:!0},k1(r,"anticon-".concat(a.name),!!a.name),k1(r,o,o),r),p=s===""||s||a.name==="loading"?"anticon-spin":"",v=u;v===void 0&&d&&(v=-1,f.tabindex=v);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,g=zV(c),_=BQ(g,2),y=_[0],b=_[1];return I("span",gP({role:"img","aria-label":a.name},f,{onClick:d,class:h}),[I(hx,{class:p,icon:a,primaryColor:y,secondaryColor:b,style:m},null)])};xh.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};xh.displayName="AntdIcon";xh.inheritAttrs=!1;xh.getTwoToneColor=kQ;xh.setTwoToneColor=KV;const sn=xh;function mP(n){for(var e=1;e=0;--Z){var z=this.tryEntries[Z],Y=z.completion;if(z.tryLoc==="root")return X("end");if(z.tryLoc<=this.prev){var ee=a.call(z,"catchLoc"),K=a.call(z,"finallyLoc");if(ee&&K){if(this.prev=0;--X){var Z=this.tryEntries[X];if(Z.tryLoc<=this.prev&&a.call(Z,"finallyLoc")&&this.prev=0;--j){var X=this.tryEntries[j];if(X.finallyLoc===$)return this.complete(X.completion,X.afterLoc),k(X),y}},catch:function($){for(var j=this.tryEntries.length-1;j>=0;--j){var X=this.tryEntries[j];if(X.tryLoc===$){var Z=X.completion;if(Z.type==="throw"){var z=Z.arg;k(X)}return z}}throw new Error("illegal catch attempt")},delegateYield:function($,j,X){return this.delegate={iterator:F($),resultName:j,nextLoc:X},this.method==="next"&&(this.arg=r),y}},i}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(r6);var pJ=r6.exports,L_=pJ(),vJ=L_;try{regeneratorRuntime=L_}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=L_:Function("r","regeneratorRuntime = r")(L_)}const no=n6(vJ);var gJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const mJ=gJ;function SP(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:u6,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c6,r;switch(n){case"topLeft":r={left:"0px",top:e,bottom:"auto"};break;case"topRight":r={right:"0px",top:e,bottom:"auto"};break;case"bottomLeft":r={left:"0px",top:"auto",bottom:t};break;default:r={right:"0px",top:"auto",bottom:t};break}return r}function RJ(n,e){var t=n.prefixCls,r=n.placement,i=r===void 0?d6:r,o=n.getContainer,a=o===void 0?f6:o,s=n.top,l=n.bottom,u=n.closeIcon,c=u===void 0?h6:u,d=n.appContext,f=qJ(),h=f.getPrefixCls,p=h("notification",t||F1),v="".concat(p,"-").concat(i,"-").concat(B1),m=mc[v];if(m){Promise.resolve(m).then(function(_){e(_)});return}var g=Re("".concat(p,"-").concat(i),U({},"".concat(p,"-rtl"),B1===!0));VV.newInstance({name:"notification",prefixCls:t||F1,class:g,style:DJ(i,s,l),appContext:d,getContainer:a,closeIcon:function(y){var b=y.prefixCls,w=I("span",{class:"".concat(b,"-close-x")},[Pp(c,{},I(xg,{class:"".concat(b,"-close-icon")},null))]);return w},maxCount:p6,hasTransitionName:!0},function(_){mc[v]=_,e(_)})}var PJ={success:o6,info:a6,error:s6,warning:Ex};function MJ(n){var e=n.icon,t=n.type,r=n.description,i=n.message,o=n.btn,a=n.duration===void 0?l6:n.duration;RJ(n,function(s){s.notice({content:function(u){var c=u.prefixCls,d="".concat(c,"-notice"),f=null;if(e)f=function(){return I("span",{class:"".concat(d,"-icon")},[Pp(e)])};else if(t){var h=PJ[t];f=function(){return I(h,{class:"".concat(d,"-icon ").concat(d,"-icon-").concat(t)},null)}}return I("div",{class:f?"".concat(d,"-with-icon"):""},[f&&f(),I("div",{class:"".concat(d,"-message")},[!r&&f?I("span",{class:"".concat(d,"-message-single-line-auto-margin")},null):null,Pp(i)]),I("div",{class:"".concat(d,"-description")},[Pp(r)]),o?I("span",{class:"".concat(d,"-btn")},[Pp(o)]):null])},duration:a,closable:!0,onClose:n.onClose,onClick:n.onClick,key:n.key,style:n.style||{},class:n.class})})}var Rv={open:MJ,close:function(e){Object.keys(mc).forEach(function(t){return Promise.resolve(mc[t]).then(function(r){r.removeNotice(e)})})},config:AJ,destroy:function(){Object.keys(mc).forEach(function(e){Promise.resolve(mc[e]).then(function(t){t.destroy()}),delete mc[e]})}},kJ=["success","info","warning","error"];kJ.forEach(function(n){Rv[n]=function(e){return Rv.open(O(O({},e),{},{type:n}))}});Rv.warn=Rv.warning;const FJ=Rv;function vd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var BJ="vc-util-key";function v6(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):BJ}function Ix(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function xP(n){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!vd())return null;var r=document.createElement("style");if((e=t.csp)!==null&&e!==void 0&&e.nonce){var i;r.nonce=(i=t.csp)===null||i===void 0?void 0:i.nonce}r.innerHTML=n;var o=Ix(t),a=o.firstChild;return t.prepend&&o.prepend?o.prepend(r):t.prepend&&a?o.insertBefore(r,a):o.appendChild(r),r}var W1=new Map;function WJ(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Ix(e);return Array.from(W1.get(t).children).find(function(r){return r.tagName==="STYLE"&&r.getAttribute(v6(e))===n})}function VJ(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ix(t);if(!W1.has(r)){var i=xP("",t),o=i.parentNode;W1.set(r,o),o.removeChild(i)}var a=WJ(e,t);if(a){var s,l;if((s=t.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=t.csp)===null||l===void 0?void 0:l.nonce)){var u;a.nonce=(u=t.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==n&&(a.innerHTML=n),a}var c=xP(n,t);return c.setAttribute(v6(t),e),c}const Kn=function(n,e,t){WV(n,"[ant-design-vue: ".concat(e,"] ").concat(t))};var HJ="-ant-".concat(Date.now(),"-").concat(Math.random());function UJ(n,e){var t={},r=function(c,d){var f=c.clone();return f=(d==null?void 0:d(f))||f,f.toRgbString()},i=function(c,d){var f=new $0(c),h=Dv(f.toRgbString());t["".concat(d,"-color")]=r(f),t["".concat(d,"-color-disabled")]=h[1],t["".concat(d,"-color-hover")]=h[4],t["".concat(d,"-color-active")]=h[6],t["".concat(d,"-color-outline")]=f.clone().setAlpha(.2).toRgbString(),t["".concat(d,"-color-deprecated-bg")]=h[1],t["".concat(d,"-color-deprecated-border")]=h[3]};if(e.primaryColor){i(e.primaryColor,"primary");var o=new $0(e.primaryColor),a=Dv(o.toRgbString());a.forEach(function(u,c){t["primary-".concat(c+1)]=u}),t["primary-color-deprecated-l-35"]=r(o,function(u){return u.lighten(35)}),t["primary-color-deprecated-l-20"]=r(o,function(u){return u.lighten(20)}),t["primary-color-deprecated-t-20"]=r(o,function(u){return u.tint(20)}),t["primary-color-deprecated-t-50"]=r(o,function(u){return u.tint(50)}),t["primary-color-deprecated-f-12"]=r(o,function(u){return u.setAlpha(u.getAlpha()*.12)});var s=new $0(a[0]);t["primary-color-active-deprecated-f-30"]=r(s,function(u){return u.setAlpha(u.getAlpha()*.3)}),t["primary-color-active-deprecated-d-02"]=r(s,function(u){return u.darken(2)})}e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info");var l=Object.keys(t).map(function(u){return"--".concat(n,"-").concat(u,": ").concat(t[u],";")});vd()?VJ(` +`,hP=!1,CQ=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bQ;en(function(){hP||(typeof window<"u"&&window.document&&window.document.documentElement&&_Q(e,{prepend:!0}),hP=!0)})},wQ=["icon","primaryColor","secondaryColor"];function SQ(n,e){if(n==null)return{};var t=EQ(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function EQ(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o=0)&&(t[i]=n[i]);return t}function I_(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function HQ(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o=0)&&(t[i]=n[i]);return t}$6("#1890ff");var Nh=function(e,t){var r,i=gP({},e,t.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,d=i.onClick,f=VQ(i,PQ),h=(r={anticon:!0},A1(r,"anticon-".concat(a.name),!!a.name),A1(r,o,o),r),p=s===""||s||a.name==="loading"?"anticon-spin":"",v=u;v===void 0&&d&&(v=-1,f.tabindex=v);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,g=U6(c),_=MQ(g,2),y=_[0],C=_[1];return I("span",gP({role:"img","aria-label":a.name},f,{onClick:d,class:h}),[I(fx,{class:p,icon:a,primaryColor:y,secondaryColor:C,style:m},null)])};Nh.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Nh.displayName="AntdIcon";Nh.inheritAttrs=!1;Nh.getTwoToneColor=RQ;Nh.setTwoToneColor=$6;const sn=Nh;function mP(n){for(var e=1;e=0;--Z){var z=this.tryEntries[Z],Y=z.completion;if(z.tryLoc==="root")return X("end");if(z.tryLoc<=this.prev){var te=a.call(z,"catchLoc"),G=a.call(z,"finallyLoc");if(te&&G){if(this.prev=0;--X){var Z=this.tryEntries[X];if(Z.tryLoc<=this.prev&&a.call(Z,"finallyLoc")&&this.prev=0;--K){var X=this.tryEntries[K];if(X.finallyLoc===j)return this.complete(X.completion,X.afterLoc),k(X),y}},catch:function(j){for(var K=this.tryEntries.length-1;K>=0;--K){var X=this.tryEntries[K];if(X.tryLoc===j){var Z=X.completion;if(Z.type==="throw"){var z=Z.arg;k(X)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(j,K,X){return this.delegate={iterator:F(j),resultName:K,nextLoc:X},this.method==="next"&&(this.arg=r),y}},i}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(eV);var dJ=eV.exports,T_=dJ(),fJ=T_;try{regeneratorRuntime=T_}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=T_:Function("r","regeneratorRuntime = r")(T_)}const no=J6(fJ);var hJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const pJ=hJ;function SP(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:aV,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sV,r;switch(n){case"topLeft":r={left:"0px",top:e,bottom:"auto"};break;case"topRight":r={right:"0px",top:e,bottom:"auto"};break;case"bottomLeft":r={left:"0px",top:"auto",bottom:t};break;default:r={right:"0px",top:"auto",bottom:t};break}return r}function NJ(n,e){var t=n.prefixCls,r=n.placement,i=r===void 0?lV:r,o=n.getContainer,a=o===void 0?uV:o,s=n.top,l=n.bottom,u=n.closeIcon,c=u===void 0?cV:u,d=n.appContext,f=zJ(),h=f.getPrefixCls,p=h("notification",t||P1),v="".concat(p,"-").concat(i,"-").concat(M1),m=_c[v];if(m){Promise.resolve(m).then(function(_){e(_)});return}var g=Ne("".concat(p,"-").concat(i),U({},"".concat(p,"-rtl"),M1===!0));F6.newInstance({name:"notification",prefixCls:t||P1,class:g,style:OJ(i,s,l),appContext:d,getContainer:a,closeIcon:function(y){var C=y.prefixCls,w=I("span",{class:"".concat(C,"-close-x")},[kp(c,{},I(Dg,{class:"".concat(C,"-close-icon")},null))]);return w},maxCount:dV,hasTransitionName:!0},function(_){_c[v]=_,e(_)})}var DJ={success:nV,info:rV,error:iV,warning:Sx};function AJ(n){var e=n.icon,t=n.type,r=n.description,i=n.message,o=n.btn,a=n.duration===void 0?oV:n.duration;NJ(n,function(s){s.notice({content:function(u){var c=u.prefixCls,d="".concat(c,"-notice"),f=null;if(e)f=function(){return I("span",{class:"".concat(d,"-icon")},[kp(e)])};else if(t){var h=DJ[t];f=function(){return I(h,{class:"".concat(d,"-icon ").concat(d,"-icon-").concat(t)},null)}}return I("div",{class:f?"".concat(d,"-with-icon"):""},[f&&f(),I("div",{class:"".concat(d,"-message")},[!r&&f?I("span",{class:"".concat(d,"-message-single-line-auto-margin")},null):null,kp(i)]),I("div",{class:"".concat(d,"-description")},[kp(r)]),o?I("span",{class:"".concat(d,"-btn")},[kp(o)]):null])},duration:a,closable:!0,onClose:n.onClose,onClick:n.onClick,key:n.key,style:n.style||{},class:n.class})})}var Fv={open:AJ,close:function(e){Object.keys(_c).forEach(function(t){return Promise.resolve(_c[t]).then(function(r){r.removeNotice(e)})})},config:xJ,destroy:function(){Object.keys(_c).forEach(function(e){Promise.resolve(_c[e]).then(function(t){t.destroy()}),delete _c[e]})}},RJ=["success","info","warning","error"];RJ.forEach(function(n){Fv[n]=function(e){return Fv.open(O(O({},e),{},{type:n}))}});Fv.warn=Fv.warning;const PJ=Fv;function vd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var MJ="vc-util-key";function fV(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):MJ}function Lx(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function xP(n){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!vd())return null;var r=document.createElement("style");if((e=t.csp)!==null&&e!==void 0&&e.nonce){var i;r.nonce=(i=t.csp)===null||i===void 0?void 0:i.nonce}r.innerHTML=n;var o=Lx(t),a=o.firstChild;return t.prepend&&o.prepend?o.prepend(r):t.prepend&&a?o.insertBefore(r,a):o.appendChild(r),r}var k1=new Map;function kJ(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Lx(e);return Array.from(k1.get(t).children).find(function(r){return r.tagName==="STYLE"&&r.getAttribute(fV(e))===n})}function FJ(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Lx(t);if(!k1.has(r)){var i=xP("",t),o=i.parentNode;k1.set(r,o),o.removeChild(i)}var a=kJ(e,t);if(a){var s,l;if((s=t.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=t.csp)===null||l===void 0?void 0:l.nonce)){var u;a.nonce=(u=t.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==n&&(a.innerHTML=n),a}var c=xP(n,t);return c.setAttribute(fV(t),e),c}const Kn=function(n,e,t){k6(n,"[ant-design-vue: ".concat(e,"] ").concat(t))};var BJ="-ant-".concat(Date.now(),"-").concat(Math.random());function WJ(n,e){var t={},r=function(c,d){var f=c.clone();return f=(d==null?void 0:d(f))||f,f.toRgbString()},i=function(c,d){var f=new B0(c),h=kv(f.toRgbString());t["".concat(d,"-color")]=r(f),t["".concat(d,"-color-disabled")]=h[1],t["".concat(d,"-color-hover")]=h[4],t["".concat(d,"-color-active")]=h[6],t["".concat(d,"-color-outline")]=f.clone().setAlpha(.2).toRgbString(),t["".concat(d,"-color-deprecated-bg")]=h[1],t["".concat(d,"-color-deprecated-border")]=h[3]};if(e.primaryColor){i(e.primaryColor,"primary");var o=new B0(e.primaryColor),a=kv(o.toRgbString());a.forEach(function(u,c){t["primary-".concat(c+1)]=u}),t["primary-color-deprecated-l-35"]=r(o,function(u){return u.lighten(35)}),t["primary-color-deprecated-l-20"]=r(o,function(u){return u.lighten(20)}),t["primary-color-deprecated-t-20"]=r(o,function(u){return u.tint(20)}),t["primary-color-deprecated-t-50"]=r(o,function(u){return u.tint(50)}),t["primary-color-deprecated-f-12"]=r(o,function(u){return u.setAlpha(u.getAlpha()*.12)});var s=new B0(a[0]);t["primary-color-active-deprecated-f-30"]=r(s,function(u){return u.setAlpha(u.getAlpha()*.3)}),t["primary-color-active-deprecated-d-02"]=r(s,function(u){return u.darken(2)})}e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info");var l=Object.keys(t).map(function(u){return"--".concat(n,"-").concat(u,": ").concat(t[u],";")});vd()?FJ(` :root { `.concat(l.join(` `),` } - `),"".concat(HJ,"-dynamic-theme")):Kn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var g6=Symbol("GlobalFormContextKey"),$J=function(e){qt(g6,e)},jJ=function(){return yt(g6,{validateMessages:V(function(){})})},zJ=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},KJ="ant";function Df(){return _o.prefixCls||KJ}var V1=Rn({}),m6=Rn({}),_o=Rn({});Ft(function(){fn(_o,V1,m6),_o.prefixCls=Df(),_o.getPrefixCls=function(n,e){return e||(n?"".concat(_o.prefixCls,"-").concat(n):_o.prefixCls)},_o.getRootPrefixCls=function(n,e){return n||(_o.prefixCls?_o.prefixCls:e&&e.includes("-")?e.replace(/^(.*)-[^-]*$/,"$1"):Df())}});var K0,GJ=function(e){K0&&K0(),K0=Ft(function(){fn(m6,Rn(e))}),e.theme&&UJ(Df(),e.theme)},qJ=function(){return{getPrefixCls:function(t,r){return r||(t?"".concat(Df(),"-").concat(t):Df())},getRootPrefixCls:function(t,r){return t||(_o.prefixCls?_o.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):Df())}}},Qp=be({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:zJ(),setup:function(e,t){var r=t.slots,i=function(d,f){var h=e.prefixCls,p=h===void 0?"ant":h;return f||(d?"".concat(p,"-").concat(d):p)},o=function(d){var f=e.renderEmpty||r.renderEmpty||BV;return f(d)},a=function(d,f){var h=e.prefixCls;if(f)return f;var p=h||i("");return d?"".concat(p,"-").concat(d):p},s=Rn(O(O({},e),{},{getPrefixCls:a,renderEmpty:o}));Object.keys(e).forEach(function(c){Ve(function(){return e[c]},function(){s[c]=e[c]})}),e.notUpdateGlobalConfig||(fn(V1,s),Ve(s,function(){fn(V1,s)}));var l=V(function(){var c={};if(e.locale){var d,f;c=((d=e.locale.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||((f=tl.Form)===null||f===void 0?void 0:f.defaultValidateMessages)||{}}return e.form&&e.form.validateMessages&&(c=O(O({},c),e.form.validateMessages)),c});$J({validateMessages:l}),qt("configProvider",s);var u=function(d){var f;return I(ZZ,{locale:e.locale||d,ANT_MARK__:N1},{default:function(){return[(f=r.default)===null||f===void 0?void 0:f.call(r)]}})};return Ft(function(){e.direction&&(Qf.config({rtl:e.direction==="rtl"}),FJ.config({rtl:e.direction==="rtl"}))}),function(){return I(LV,{children:function(d,f,h){return u(h)}},null)}}}),_6=Rn({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:BV,direction:"ltr"});Qp.config=GJ;Qp.install=function(n){n.component(Qp.name,Qp)};const Kb=Qp,St=function(n,e){var t=yt("configProvider",_6),r=V(function(){return t.getPrefixCls(n,e.prefixCls)}),i=V(function(){var _;return(_=e.direction)!==null&&_!==void 0?_:t.direction}),o=V(function(){return t.getPrefixCls()}),a=V(function(){return t.autoInsertSpaceInButton}),s=V(function(){return t.renderEmpty}),l=V(function(){return t.space}),u=V(function(){return t.pageHeader}),c=V(function(){return t.form}),d=V(function(){return e.getTargetContainer||t.getTargetContainer}),f=V(function(){return e.getPopupContainer||t.getPopupContainer}),h=V(function(){var _;return(_=e.dropdownMatchSelectWidth)!==null&&_!==void 0?_:t.dropdownMatchSelectWidth}),p=V(function(){return(e.virtual===void 0?t.virtual!==!1:e.virtual!==!1)&&h.value!==!1}),v=V(function(){return e.size||t.componentSize}),m=V(function(){var _;return e.autocomplete||((_=t.input)===null||_===void 0?void 0:_.autocomplete)}),g=V(function(){return t.csp});return{configProvider:t,prefixCls:r,direction:i,size:v,getTargetContainer:d,getPopupContainer:f,space:l,pageHeader:u,form:c,autoInsertSpaceInButton:a,renderEmpty:s,virtual:p,dropdownMatchSelectWidth:h,rootPrefixCls:o,getPrefixCls:t.getPrefixCls,autocomplete:m,csp:g}};function nr(n,e){for(var t=fn({},n),r=0;r"u")return 0;var t=e?"scrollTop":"scrollLeft",r=0;if(H1(n)?r=n[e?"pageYOffset":"pageXOffset"]:n instanceof Document?r=n.documentElement[t]:n&&(r=n[t]),n&&!H1(n)&&typeof r!="number"){var i;r=(i=(n.ownerDocument||n).documentElement)===null||i===void 0?void 0:i[t]}return r}function XJ(n,e,t,r){var i=t-e;return n/=r/2,n<1?i/2*n*n*n+e:i/2*((n-=2)*n*n+2)+e}function ZJ(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.getContainer,r=t===void 0?function(){return window}:t,i=e.callback,o=e.duration,a=o===void 0?450:o,s=r(),l=YJ(s,!0),u=Date.now(),c=function d(){var f=Date.now(),h=f-u,p=XJ(h>a?a:h,l,n,a);H1(s)?s.scrollTo(window.pageXOffset,p):s instanceof HTMLDocument||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=p:s.scrollTop=p,h1&&arguments[1]!==void 0?arguments[1]:{},t=e.fieldNames,r=e.childrenAsData,i=[],o=y6(t,!1),a=o.label,s=o.value,l=o.options;function u(c,d){c.forEach(function(f){var h=f[a];if(d||!(l in f)){var p=f[s];i.push({key:OP(f,i.length),groupOption:d,data:f,label:h,value:p})}else{var v=h;v===void 0&&r&&(v=f.label),i.push({key:OP(f,i.length),group:!0,data:f,label:v}),u(f[l],!0)}})}return u(n,!1),i}function U1(n){var e=O({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function JJ(n,e){if(!e||!e.length)return null;var t=!1;function r(o,a){var s=Tx(a),l=s[0],u=s.slice(1);if(!l)return[o];var c=o.split(l);return t=t||c.length>1,c.reduce(function(d,f){return[].concat(Ge(d),Ge(r(f,u)))},[]).filter(function(d){return d})}var i=r(n,e);return t?i:null}function _c(n,e){return n?n.contains(e):!1}var b6=["moz","ms","webkit"];function eee(){var n=0;return function(e){var t=new Date().getTime(),r=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+r)},r);return n=t+r,i}}function tee(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var n=b6.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return n?window["".concat(n,"RequestAnimationFrame")]:eee()}function nee(n){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(n);var e=b6.filter(function(t){return"".concat(t,"CancelAnimationFrame")in window||"".concat(t,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,n):clearTimeout(n)}var NP=tee(),ree=function(e){return nee(e.id)},iee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function i(){Date.now()-r>=t?e.call():o.id=NP(i)}var o={id:NP(i)};return o},xx={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},oee=O(O({},xx),{},{mobile:{type:Object}}),aee=O(O({},xx),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function C6(n){var e=n.prefixCls,t=n.animation,r=n.transitionName;return t?{name:"".concat(e,"-").concat(t)}:r?{name:r}:{}}function w6(n){var e=n.prefixCls,t=n.visible,r=n.zIndex,i=n.mask,o=n.maskAnimation,a=n.maskTransitionName;if(!i)return null;var s={};return(a||o)&&(s=C6({prefixCls:e,transitionName:a,animation:o})),I(Qo,O({appear:!0},s),{default:function(){return[Ki(I("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[Uq("if"),t]])]}})}w6.displayName="Mask";const see=be({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:oee,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var r=t.expose,i=t.slots,o=J();return r({forceAlign:function(){},getElement:function(){return o.value}}),function(){var a,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile;c=c===void 0?{}:c;var d=c.popupClassName,f=c.popupStyle,h=c.popupMotion,p=h===void 0?{}:h,v=c.popupRender,m=O({zIndex:s},f),g=sr((a=i.default)===null||a===void 0?void 0:a.call(i));g.length>1&&(g=I("div",{class:"".concat(u,"-content")},[g])),v&&(g=v(g));var _=Re(u,d);return I(Qo,O({ref:o},p),{default:function(){return[l?I("div",{class:_,style:m},[g]):null]}})}}});var AP=["measure","align",null,"motion"];const lee=function(n,e){var t=J(null),r=J(),i=J(!1);function o(l){i.value||(t.value=l)}function a(){Mt.cancel(r.value)}function s(l){a(),r.value=Mt(function(){var u=t.value;switch(t.value){case"align":u="motion";break;case"motion":u="stable";break}o(u),l==null||l()})}return Ve(n,function(){o("measure")},{immediate:!0,flush:"post"}),Wt(function(){Ve(t,function(){switch(t.value){case"measure":e();break}t.value&&(r.value=Mt(pd(no.mark(function l(){var u,c;return no.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:u=AP.indexOf(t.value),c=AP[u+1],c&&u!==-1&&o(c);case 3:case"end":return f.stop()}},l)}))))},{immediate:!0,flush:"post"})}),Zt(function(){i.value=!0,a()}),[t,s]},uee=function(n){var e=J({width:0,height:0});function t(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}var r=V(function(){var i={};if(n.value){var o=e.value,a=o.width,s=o.height;n.value.indexOf("height")!==-1&&s?i.height="".concat(s,"px"):n.value.indexOf("minHeight")!==-1&&s&&(i.minHeight="".concat(s,"px")),n.value.indexOf("width")!==-1&&a?i.width="".concat(a,"px"):n.value.indexOf("minWidth")!==-1&&a&&(i.minWidth="".concat(a,"px"))}return i});return[r,t]};function DP(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function RP(n){for(var e=1;e=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function Dee(n,e,t,r){var i=Pt.clone(n),o={width:e.width,height:e.height};return r.adjustX&&i.left=t.left&&i.left+o.width>t.right&&(o.width-=i.left+o.width-t.right),r.adjustX&&i.left+o.width>t.right&&(i.left=Math.max(t.right-o.width,t.left)),r.adjustY&&i.top=t.top&&i.top+o.height>t.bottom&&(o.height-=i.top+o.height-t.bottom),r.adjustY&&i.top+o.height>t.bottom&&(i.top=Math.max(t.bottom-o.height,t.top)),Pt.mix(i,o)}function Dx(n){var e,t,r;if(!Pt.isWindow(n)&&n.nodeType!==9)e=Pt.offset(n),t=Pt.outerWidth(n),r=Pt.outerHeight(n);else{var i=Pt.getWindow(n);e={left:Pt.getWindowScrollLeft(i),top:Pt.getWindowScrollTop(i)},t=Pt.viewportWidth(i),r=Pt.viewportHeight(i)}return e.width=t,e.height=r,e}function HP(n,e){var t=e.charAt(0),r=e.charAt(1),i=n.width,o=n.height,a=n.left,s=n.top;return t==="c"?s+=o/2:t==="b"&&(s+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:s}}function wm(n,e,t,r,i){var o=HP(e,t[1]),a=HP(n,t[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(n.left-s[0]+r[0]-i[0]),top:Math.round(n.top-s[1]+r[1]-i[1])}}function UP(n,e,t){return n.leftt.right}function $P(n,e,t){return n.topt.bottom}function Ree(n,e,t){return n.left>t.right||n.left+e.widtht.bottom||n.top+e.height=t.right||r.top>=t.bottom}function Rx(n,e,t){var r=t.target||e,i=Dx(r),o=!Mee(r,t.overflow&&t.overflow.alwaysByViewport);return N6(n,i,t,o)}Rx.__getOffsetParent=K1;Rx.__getVisibleRectForElement=Ax;function kee(n,e,t){var r,i,o=Pt.getDocument(n),a=o.defaultView||o.parentWindow,s=Pt.getWindowScrollLeft(a),l=Pt.getWindowScrollTop(a),u=Pt.viewportWidth(a),c=Pt.viewportHeight(a);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?i=e.pageY:i=l+e.clientY;var d={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+u&&i>=0&&i<=l+c,h=[t.points[0],"cc"];return N6(n,d,RP(RP({},t),{},{points:h}),f)}function Fn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=n;if(Array.isArray(n)&&(i=To(n)[0]),!i)return null;var o=ji(i,e,r);return o.props=t?O(O({},o.props),e):o.props,_a(at(o.props.class)!=="object","class must be string"),o}const A6=function(n){if(!n)return!1;if(n.offsetParent)return!0;if(n.getBBox){var e=n.getBBox();if(e.width||e.height)return!0}if(n.getBoundingClientRect){var t=n.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Fee(n,e){return n===e?!0:!n||!e?!1:"pageX"in e&&"pageY"in e?n.pageX===e.pageX&&n.pageY===e.pageY:"clientX"in e&&"clientY"in e?n.clientX===e.clientX&&n.clientY===e.clientY:!1}function Bee(n,e){n!==document.activeElement&&_c(e,n)&&typeof n.focus=="function"&&n.focus()}function KP(n,e){var t=null,r=null;function i(a){var s=Ye(a,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,f=Math.floor(c),h=Math.floor(d);(t!==f||r!==h)&&Promise.resolve().then(function(){e({width:f,height:h})}),t=f,r=h}}var o=new lV(i);return n&&o.observe(n),function(){o.disconnect()}}const Wee=function(n,e){var t=!1,r=null;function i(){clearTimeout(r)}function o(a){if(!t||a===!0){if(n()===!1)return;t=!0,i(),r=setTimeout(function(){t=!1},e.value)}else i(),r=setTimeout(function(){t=!1,o()},e.value)}return[o,function(){t=!1,i()}]};function Vee(){this.__data__=[],this.size=0}function Px(n,e){return n===e||n!==n&&e!==e}function qb(n,e){for(var t=n.length;t--;)if(Px(n[t][0],e))return t;return-1}var Hee=Array.prototype,Uee=Hee.splice;function $ee(n){var e=this.__data__,t=qb(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Uee.call(e,t,1),--this.size,!0}function jee(n){var e=this.__data__,t=qb(e,n);return t<0?void 0:e[t][1]}function zee(n){return qb(this.__data__,n)>-1}function Kee(n,e){var t=this.__data__,r=qb(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function fl(n){var e=-1,t=n==null?0:n.length;for(this.clear();++es))return!1;var u=o.get(n),c=o.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&Fte?new Jf:void 0;for(o.set(n,e),o.set(e,n);++d-1&&n%1==0&&n-1&&n%1==0&&n<=dne}var fne="[object Arguments]",hne="[object Array]",pne="[object Boolean]",vne="[object Date]",gne="[object Error]",mne="[object Function]",_ne="[object Map]",yne="[object Number]",bne="[object Object]",Cne="[object RegExp]",wne="[object Set]",Sne="[object String]",Ene="[object WeakMap]",Lne="[object ArrayBuffer]",Ine="[object DataView]",Tne="[object Float32Array]",xne="[object Float64Array]",One="[object Int8Array]",Nne="[object Int16Array]",Ane="[object Int32Array]",Dne="[object Uint8Array]",Rne="[object Uint8ClampedArray]",Pne="[object Uint16Array]",Mne="[object Uint32Array]",Zn={};Zn[Tne]=Zn[xne]=Zn[One]=Zn[Nne]=Zn[Ane]=Zn[Dne]=Zn[Rne]=Zn[Pne]=Zn[Mne]=!0;Zn[fne]=Zn[hne]=Zn[Lne]=Zn[pne]=Zn[Ine]=Zn[vne]=Zn[gne]=Zn[mne]=Zn[_ne]=Zn[yne]=Zn[bne]=Zn[Cne]=Zn[wne]=Zn[Sne]=Zn[Ene]=!1;function kne(n){return is(n)&&Vx(n.length)&&!!Zn[fd(n)]}function Xb(n){return function(e){return n(e)}}var B6=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jp=B6&&typeof module=="object"&&module&&!module.nodeType&&module,Fne=Jp&&Jp.exports===B6,J0=Fne&&fV.process,eh=function(){try{var n=Jp&&Jp.require&&Jp.require("util").types;return n||J0&&J0.binding&&J0.binding("util")}catch{}}(),JP=eh&&eh.isTypedArray,W6=JP?Xb(JP):kne,Bne=Object.prototype,Wne=Bne.hasOwnProperty;function V6(n,e){var t=Go(n),r=!t&&Bx(n),i=!t&&!r&&gy(n),o=!t&&!r&&!i&&W6(n),a=t||r||i||o,s=a?nne(n.length,String):[],l=s.length;for(var u in n)(e||Wne.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Wx(u,l)))&&s.push(u);return s}var Vne=Object.prototype;function Hx(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Vne;return n===t}var Hne=pV(Object.keys,Object),Une=Object.prototype,$ne=Une.hasOwnProperty;function jne(n){if(!Hx(n))return Hne(n);var e=[];for(var t in Object(n))$ne.call(n,t)&&t!="constructor"&&e.push(t);return e}function Ng(n){return n!=null&&Vx(n.length)&&!D6(n)}function Oh(n){return Ng(n)?V6(n):jne(n)}function G1(n){return P6(n,Oh,Fx)}var zne=1,Kne=Object.prototype,Gne=Kne.hasOwnProperty;function qne(n,e,t,r,i,o){var a=t&zne,s=G1(n),l=s.length,u=G1(e),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in e:Gne.call(e,f)))return!1}var h=o.get(n),p=o.get(e);if(h&&p)return h==e&&p==n;var v=!0;o.set(n,e),o.set(e,n);for(var m=a;++d1&&(Z=I("div",{class:"".concat(M,"-content")},[Z]));var z=Re(M,i.class,l.value),Y=p.value||!e.visible,ee=Y?Ig(L.value.name,L.value):{};return I(Qo,O(O({ref:s},ee),{},{onBeforeEnter:E}),{default:function(){return!H||e.visible?Ki(I(ore,{target:w(),key:"popup",ref:a,monitorWindowResize:!0,disabled:T.value,align:D,onAlign:S},{default:function(){return I("div",O(O({class:z,onMouseenter:k,onMouseleave:B,onMousedown:WR($,["capture"])},U({},Pi?"onTouchstartPassive":"onTouchstart",WR(W,["capture"]))),{},{style:X}),[Z])}}),[[dl,p.value]]):null}})}}}),sre=be({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:aee,setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=J(!1),s=J(!1),l=J();return Ve([function(){return e.visible},function(){return e.mobile}],function(){a.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),o({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=O(O(O({},e),r),{},{visible:a.value}),c=s.value?I(see,O(O({},u),{},{mobile:e.mobile,ref:l}),{default:i.default}):I(are,O(O({},u),{},{ref:l}),{default:i.default});return I("div",null,[I(w6,u,null),c])}}});function lre(n,e,t){return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function cM(n,e,t){var r=n[e]||{};return O(O({},r),t)}function ure(n,e,t,r){for(var i=t.points,o=Object.keys(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var i=this.getDerivedStateFromProps(_Z(this),O(O({},this.$data),r));if(i===null)return;r=O(O({},r),i||{})}fn(this.$data,r),this._.isMounted&&this.$forceUpdate(),en(function(){t&&t()})},__emit:function(){var e=[].slice.call(arguments,0),t=e[0];t="on".concat(t[0].toUpperCase()).concat(t.substring(1));var r=this.$props[t]||this.$attrs[t];if(e.length&&r)if(Array.isArray(r))for(var i=0,o=r.length;i1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};qt(U6,{inTriggerContext:t.inTriggerContext,shouldRender:V(function(){var r=e||{},i=r.sPopupVisible,o=r.popupRef,a=r.forceRender,s=r.autoDestroy,l=!1;return(i||o||a)&&(l=!0),!i&&s&&(l=!1),l})})},fre=function(){Ux({},{inTriggerContext:!1});var e=yt(U6,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const Z1=be({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ne.func.isRequired,didUpdate:Function},setup:function(e,t){var r=t.slots,i=!0,o,a=fre(),s=a.shouldRender;ZT(function(){i=!1,s.value&&(o=e.getContainer())});var l=Ve(s,function(){s.value&&!o&&(o=e.getContainer()),o&&l()});return Zo(function(){en(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),Zt(function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),function(){if(!s.value)return null;if(i){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return o?I(tx,{to:o},r):null}}});function dM(){}function hre(){return""}function pre(n){return n?n.ownerDocument:window.document}var vre=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Jb=be({compatConfig:{MODE:3},name:"Trigger",mixins:[H6],inheritAttrs:!1,props:{action:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def([]),showAction:ne.any.def([]),hideAction:ne.any.def([]),getPopupClassNameFromAlign:ne.any.def(hre),onPopupVisibleChange:Function,afterPopupVisibleChange:ne.func.def(dM),popup:ne.any,popupStyle:{type:Object,default:void 0},prefixCls:ne.string.def("rc-trigger-popup"),popupClassName:ne.string.def(""),popupPlacement:String,builtinPlacements:ne.object,popupTransitionName:String,popupAnimation:ne.any,mouseEnterDelay:ne.number.def(0),mouseLeaveDelay:ne.number.def(.1),zIndex:Number,focusDelay:ne.number.def(0),blurDelay:ne.number.def(.15),getPopupContainer:Function,getDocument:ne.func.def(pre),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ne.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function},setup:function(e){var t=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?cM(c,l,u):u}),r=dre(),i=r.setPortal,o=r.popPortal,a=J(null),s=function(u){a.value=u};return{popPortal:o,setPortal:i,vcTriggerContext:yt("vcTriggerContext",{}),popupRef:a,setPopupRef:s,triggerRef:J(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,t,r=this.$props,i;return this.popupVisible!==void 0?i=!!r.popupVisible:i=!!r.defaultPopupVisible,vre.forEach(function(o){e["fire".concat(o)]=function(a){e.fireEvents(o,a)}}),(t=this.setPortal)===null||t===void 0||t.call(this,I(Z1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:i,sPopupVisible:i,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){qt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Ux(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Mt.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,t=this.$data;if(t.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Co(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Co(r,"touchstart",this.onDocumentClick,Pi?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Co(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Co(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var t;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&_c((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){_c(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,r=t===void 0?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var t=e.target,r=this.getRootDomNode(),i=this.getPopupDomNode();(!_c(r,t)||this.isContextMenuOnly())&&!_c(i,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var t=Lc(this.triggerRef);return Lc(e(t))}try{var r=Lc(this.triggerRef);if(r)return r}catch{}return Lc(this)},handleGetPopupClassFromAlign:function(e){var t=[],r=this.$props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&t.push(ure(o,a,e,s)),l&&t.push(l(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,r=e.popupAlign,i=e.builtinPlacements;return t&&i?cM(i,t,r):r},getComponent:function(){var e=this,t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Pi?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,i=this.getRootDomNode,o=this.getContainer,a=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,f=s.popupTransitionName,h=s.popupStyle,p=s.mask,v=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,_=s.stretch,y=s.alignPoint,b=s.mobile,w=s.forceRender,C=this.$data,S=C.sPopupVisible,L=C.point,E=O(O({prefixCls:l,destroyPopupOnHide:u,visible:S,point:y?L:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:_,getRootDomNode:i,mask:p,zIndex:g,transitionName:f,maskAnimation:v,maskTransitionName:m,getContainer:o,class:c,style:h,onAlign:a.onPopupAlign||dM},t),{},{ref:this.setPopupRef,mobile:b,forceRender:w});return I(sre,E,{default:this.$slots.popup||function(){return ux(e,"popup")}})},attachParent:function(e){var t=this;Mt.cancel(this.attachId);var r=this.$props,i=r.getPopupContainer,o=r.getDocument,a=this.getRootDomNode(),s;i?(a||i.length===0)&&(s=i(a)):s=o(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Mt(function(){t.attachParent(e)})},getContainer:function(){var e=this.$props,t=e.getDocument,r=t(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,t){var r=this.alignPoint,i=this.sPopupVisible,o=this.onPopupVisibleChange;this.clearDelayTimer(),i!==e&&(nf(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:i}),o&&o(e)),r&&t&&e&&this.setPoint(t)},setPoint:function(e){var t=this.$props.alignPoint;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,t,r){var i=this,o=t*1e3;if(this.clearDelayTimer(),o){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=iee(function(){i.setPopupVisible(e,a),i.clearDelayTimer()},o)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(ree(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=function(){},r=KR(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(t=this.childOriginEvents[e]||r[e]||t,t)},isClickToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);var r=this.$props[e]||this.$attrs[e];r&&r(t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=this.$attrs,r=To(_V(this)),i=this.$props.alignPoint,o=r[0];this.childOriginEvents=KR(o);var a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Pi?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Pi?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,i&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=function(c){c&&(!c.relatedTarget||!_c(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Re(o&&o.props&&o.props.class,t.class);s&&(a.class=s);var l=Fn(o,O(O({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=I(Z1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return I(kt,null,[u,l])}});var gre=["empty"],mre=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},_re=be({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ne.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ne.oneOfType([Number,Boolean]).def(!0),popupElement:ne.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=V(function(){var l=e.dropdownMatchSelectWidth;return mre(l)}),s=J();return o({getPopupElement:function(){return s.value}}),function(){var l=O(O({},e),i),u=l.empty,c=u===void 0?!1:u,d=Nt(l,gre),f=d.visible,h=d.dropdownAlign,p=d.prefixCls,v=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,_=d.direction,y=_===void 0?"ltr":_,b=d.placement,w=d.dropdownMatchSelectWidth,C=d.containerWidth,S=d.dropdownRender,L=d.animation,E=d.transitionName,T=d.getPopupContainer,P=d.getTriggerDOMNode,A=d.onPopupVisibleChange,D=d.onPopupMouseEnter,M="".concat(p,"-dropdown"),H=v;S&&(H=S({menuNode:v,props:e}));var k=L?"".concat(M,"-").concat(L):E,B=O({minWidth:"".concat(C,"px")},g);return typeof w=="number"?B.width="".concat(w,"px"):w&&(B.width="".concat(C,"px")),I(Jb,O(O({},e),{},{showAction:A?["click"]:[],hideAction:A?["click"]:[],popupPlacement:b||(y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:M,popupTransitionName:k,popupAlign:h,popupVisible:f,getPopupContainer:T,popupClassName:Re(m,U({},"".concat(M,"-empty"),c)),popupStyle:B,getTriggerDOMNode:P,onPopupVisibleChange:A}),{default:r.default,popup:function(){return I("div",{ref:s,onMouseenter:D},[H])}})}}});const yre=_re;var Et={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Et.F1&&t<=Et.F12)return!1;switch(t){case Et.ALT:case Et.CAPS_LOCK:case Et.CONTEXT_MENU:case Et.CTRL:case Et.DOWN:case Et.END:case Et.ESC:case Et.HOME:case Et.INSERT:case Et.LEFT:case Et.MAC_FF_META:case Et.META:case Et.NUMLOCK:case Et.NUM_CENTER:case Et.PAGE_DOWN:case Et.PAGE_UP:case Et.PAUSE:case Et.PRINT_SCREEN:case Et.RIGHT:case Et.SHIFT:case Et.UP:case Et.WIN_KEY:case Et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Et.ZERO&&e<=Et.NINE||e>=Et.NUM_ZERO&&e<=Et.NUM_MULTIPLY||e>=Et.A&&e<=Et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Et.SPACE:case Et.QUESTION_MARK:case Et.NUM_PLUS:case Et.NUM_MINUS:case Et.NUM_PERIOD:case Et.NUM_DIVISION:case Et.SEMICOLON:case Et.DASH:case Et.EQUALS:case Et.COMMA:case Et.PERIOD:case Et.SLASH:case Et.APOSTROPHE:case Et.SINGLE_QUOTE:case Et.OPEN_SQUARE_BRACKET:case Et.BACKSLASH:case Et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ct=Et;var eC=function(e,t){var r,i=t.slots,o=e.class,a=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof a=="function"?c=a(s):c=a,I("span",{class:o,onMousedown:function(f){f.preventDefault(),l&&l(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:I("span",{class:o.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=i.default)===null||r===void 0?void 0:r.call(i)])])};eC.inheritAttrs=!1;eC.displayName="TransBtn";eC.props={class:String,customizeIcon:ne.any,customizeIconProps:ne.any,onMousedown:Function,onClick:Function};const my=eC;function bre(n){n.target.composing=!0}function fM(n){n.target.composing&&(n.target.composing=!1,Cre(n.target,"input"))}function Cre(n,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),n.dispatchEvent(t)}function ew(n,e,t,r){n.addEventListener(e,t,r)}var wre={created:function(e,t){(!t.modifiers||!t.modifiers.lazy)&&(ew(e,"compositionstart",bre),ew(e,"compositionend",fM),ew(e,"change",fM))}};const Ag=wre;var Sre={inputRef:ne.any,prefixCls:String,id:String,inputElement:ne.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),attrs:ne.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Ere=be({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:Sre,setup:function(e){var t=null,r=yt("VCSelectContainerEvent");return function(){var i,o,a=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,f=e.autocomplete,h=e.editable,p=e.activeDescendantId,v=e.value,m=e.onKeydown,g=e.onMousedown,_=e.onChange,y=e.onPaste,b=e.onCompositionstart,w=e.onCompositionend,C=e.onFocus,S=e.onBlur,L=e.open,E=e.inputRef,T=e.attrs,P=l||Ki(I("input",null,null),[[Ag]]),A=P.props||{},D=A.onKeydown,M=A.onInput,H=A.onFocus,k=A.onBlur,B=A.onMousedown,F=A.onCompositionstart,W=A.onCompositionend,$=A.style;return P=Fn(P,fn(O(O(O({type:"search"},A),{},{id:s,ref:E,disabled:u,tabindex:c,autocomplete:f||"off",autofocus:d,class:Re("".concat(a,"-selection-search-input"),(i=P)===null||i===void 0||(o=i.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":L,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":p},T),{},{value:h?v:"",readonly:!h,unselectable:h?null:"on",style:O(O({},$),{},{opacity:h?null:0}),onKeydown:function(X){m(X),D&&D(X)},onMousedown:function(X){g(X),B&&B(X)},onInput:function(X){_(X),M&&M(X)},onCompositionstart:function(X){b(X),F&&F(X)},onCompositionend:function(X){w(X),W&&W(X)},onPaste:y,onFocus:function(){clearTimeout(t),H&&H(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var X=arguments.length,Z=new Array(X),z=0;z"u")return 0;var t=e?"scrollTop":"scrollLeft",r=0;if(B1(n)?r=n[e?"pageYOffset":"pageXOffset"]:n instanceof Document?r=n.documentElement[t]:n&&(r=n[t]),n&&!B1(n)&&typeof r!="number"){var i;r=(i=(n.ownerDocument||n).documentElement)===null||i===void 0?void 0:i[t]}return r}function GJ(n,e,t,r){var i=t-e;return n/=r/2,n<1?i/2*n*n*n+e:i/2*((n-=2)*n*n+2)+e}function qJ(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.getContainer,r=t===void 0?function(){return window}:t,i=e.callback,o=e.duration,a=o===void 0?450:o,s=r(),l=KJ(s,!0),u=Date.now(),c=function d(){var f=Date.now(),h=f-u,p=GJ(h>a?a:h,l,n,a);B1(s)?s.scrollTo(window.pageXOffset,p):s instanceof HTMLDocument||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=p:s.scrollTop=p,h1&&arguments[1]!==void 0?arguments[1]:{},t=e.fieldNames,r=e.childrenAsData,i=[],o=gV(t,!1),a=o.label,s=o.value,l=o.options;function u(c,d){c.forEach(function(f){var h=f[a];if(d||!(l in f)){var p=f[s];i.push({key:OP(f,i.length),groupOption:d,data:f,label:h,value:p})}else{var v=h;v===void 0&&r&&(v=f.label),i.push({key:OP(f,i.length),group:!0,data:f,label:v}),u(f[l],!0)}})}return u(n,!1),i}function W1(n){var e=O({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return e}}),e}function XJ(n,e){if(!e||!e.length)return null;var t=!1;function r(o,a){var s=Ix(a),l=s[0],u=s.slice(1);if(!l)return[o];var c=o.split(l);return t=t||c.length>1,c.reduce(function(d,f){return[].concat(Ge(d),Ge(r(f,u)))},[]).filter(function(d){return d})}var i=r(n,e);return t?i:null}function yc(n,e){return n?n.contains(e):!1}var mV=["moz","ms","webkit"];function ZJ(){var n=0;return function(e){var t=new Date().getTime(),r=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+r)},r);return n=t+r,i}}function QJ(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var n=mV.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return n?window["".concat(n,"RequestAnimationFrame")]:ZJ()}function JJ(n){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(n);var e=mV.filter(function(t){return"".concat(t,"CancelAnimationFrame")in window||"".concat(t,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,n):clearTimeout(n)}var NP=QJ(),eee=function(e){return JJ(e.id)},tee=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=Date.now();function i(){Date.now()-r>=t?e.call():o.id=NP(i)}var o={id:NP(i)};return o},Tx={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},nee=O(O({},Tx),{},{mobile:{type:Object}}),ree=O(O({},Tx),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _V(n){var e=n.prefixCls,t=n.animation,r=n.transitionName;return t?{name:"".concat(e,"-").concat(t)}:r?{name:r}:{}}function yV(n){var e=n.prefixCls,t=n.visible,r=n.zIndex,i=n.mask,o=n.maskAnimation,a=n.maskTransitionName;if(!i)return null;var s={};return(a||o)&&(s=_V({prefixCls:e,transitionName:a,animation:o})),I(Zo,O({appear:!0},s),{default:function(){return[Ki(I("div",{style:{zIndex:r},class:"".concat(e,"-mask")},null),[[kq("if"),t]])]}})}yV.displayName="Mask";const iee=be({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:nee,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var r=t.expose,i=t.slots,o=ee();return r({forceAlign:function(){},getElement:function(){return o.value}}),function(){var a,s=e.zIndex,l=e.visible,u=e.prefixCls,c=e.mobile;c=c===void 0?{}:c;var d=c.popupClassName,f=c.popupStyle,h=c.popupMotion,p=h===void 0?{}:h,v=c.popupRender,m=O({zIndex:s},f),g=lr((a=i.default)===null||a===void 0?void 0:a.call(i));g.length>1&&(g=I("div",{class:"".concat(u,"-content")},[g])),v&&(g=v(g));var _=Ne(u,d);return I(Zo,O({ref:o},p),{default:function(){return[l?I("div",{class:_,style:m},[g]):null]}})}}});var DP=["measure","align",null,"motion"];const oee=function(n,e){var t=ee(null),r=ee(),i=ee(!1);function o(l){i.value||(t.value=l)}function a(){Mt.cancel(r.value)}function s(l){a(),r.value=Mt(function(){var u=t.value;switch(t.value){case"align":u="motion";break;case"motion":u="stable";break}o(u),l==null||l()})}return We(n,function(){o("measure")},{immediate:!0,flush:"post"}),Wt(function(){We(t,function(){switch(t.value){case"measure":e();break}t.value&&(r.value=Mt(pd(no.mark(function l(){var u,c;return no.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:u=DP.indexOf(t.value),c=DP[u+1],c&&u!==-1&&o(c);case 3:case"end":return f.stop()}},l)}))))},{immediate:!0,flush:"post"})}),Xt(function(){i.value=!0,a()}),[t,s]},aee=function(n){var e=ee({width:0,height:0});function t(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}var r=V(function(){var i={};if(n.value){var o=e.value,a=o.width,s=o.height;n.value.indexOf("height")!==-1&&s?i.height="".concat(s,"px"):n.value.indexOf("minHeight")!==-1&&s&&(i.minHeight="".concat(s,"px")),n.value.indexOf("width")!==-1&&a?i.width="".concat(a,"px"):n.value.indexOf("minWidth")!==-1&&a&&(i.minWidth="".concat(a,"px"))}return i});return[r,t]};function AP(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function RP(n){for(var e=1;e=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function Oee(n,e,t,r){var i=Pt.clone(n),o={width:e.width,height:e.height};return r.adjustX&&i.left=t.left&&i.left+o.width>t.right&&(o.width-=i.left+o.width-t.right),r.adjustX&&i.left+o.width>t.right&&(i.left=Math.max(t.right-o.width,t.left)),r.adjustY&&i.top=t.top&&i.top+o.height>t.bottom&&(o.height-=i.top+o.height-t.bottom),r.adjustY&&i.top+o.height>t.bottom&&(i.top=Math.max(t.bottom-o.height,t.top)),Pt.mix(i,o)}function Dx(n){var e,t,r;if(!Pt.isWindow(n)&&n.nodeType!==9)e=Pt.offset(n),t=Pt.outerWidth(n),r=Pt.outerHeight(n);else{var i=Pt.getWindow(n);e={left:Pt.getWindowScrollLeft(i),top:Pt.getWindowScrollTop(i)},t=Pt.viewportWidth(i),r=Pt.viewportHeight(i)}return e.width=t,e.height=r,e}function HP(n,e){var t=e.charAt(0),r=e.charAt(1),i=n.width,o=n.height,a=n.left,s=n.top;return t==="c"?s+=o/2:t==="b"&&(s+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:s}}function Lm(n,e,t,r,i){var o=HP(e,t[1]),a=HP(n,t[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(n.left-s[0]+r[0]-i[0]),top:Math.round(n.top-s[1]+r[1]-i[1])}}function UP(n,e,t){return n.leftt.right}function $P(n,e,t){return n.topt.bottom}function Nee(n,e,t){return n.left>t.right||n.left+e.widtht.bottom||n.top+e.height=t.right||r.top>=t.bottom}function Ax(n,e,t){var r=t.target||e,i=Dx(r),o=!Aee(r,t.overflow&&t.overflow.alwaysByViewport);return TV(n,i,t,o)}Ax.__getOffsetParent=$1;Ax.__getVisibleRectForElement=Nx;function Ree(n,e,t){var r,i,o=Pt.getDocument(n),a=o.defaultView||o.parentWindow,s=Pt.getWindowScrollLeft(a),l=Pt.getWindowScrollTop(a),u=Pt.viewportWidth(a),c=Pt.viewportHeight(a);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?i=e.pageY:i=l+e.clientY;var d={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+u&&i>=0&&i<=l+c,h=[t.points[0],"cc"];return TV(n,d,RP(RP({},t),{},{points:h}),f)}function Fn(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=n;if(Array.isArray(n)&&(i=To(n)[0]),!i)return null;var o=ji(i,e,r);return o.props=t?O(O({},o.props),e):o.props,_a(at(o.props.class)!=="object","class must be string"),o}const xV=function(n){if(!n)return!1;if(n.offsetParent)return!0;if(n.getBBox){var e=n.getBBox();if(e.width||e.height)return!0}if(n.getBoundingClientRect){var t=n.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Pee(n,e){return n===e?!0:!n||!e?!1:"pageX"in e&&"pageY"in e?n.pageX===e.pageX&&n.pageY===e.pageY:"clientX"in e&&"clientY"in e?n.clientX===e.clientX&&n.clientY===e.clientY:!1}function Mee(n,e){n!==document.activeElement&&yc(e,n)&&typeof n.focus=="function"&&n.focus()}function KP(n,e){var t=null,r=null;function i(a){var s=qe(a,1),l=s[0].target;if(document.documentElement.contains(l)){var u=l.getBoundingClientRect(),c=u.width,d=u.height,f=Math.floor(c),h=Math.floor(d);(t!==f||r!==h)&&Promise.resolve().then(function(){e({width:f,height:h})}),t=f,r=h}}var o=new i6(i);return n&&o.observe(n),function(){o.disconnect()}}const kee=function(n,e){var t=!1,r=null;function i(){clearTimeout(r)}function o(a){if(!t||a===!0){if(n()===!1)return;t=!0,i(),r=setTimeout(function(){t=!1},e.value)}else i(),r=setTimeout(function(){t=!1,o()},e.value)}return[o,function(){t=!1,i()}]};function Fee(){this.__data__=[],this.size=0}function Rx(n,e){return n===e||n!==n&&e!==e}function Kb(n,e){for(var t=n.length;t--;)if(Rx(n[t][0],e))return t;return-1}var Bee=Array.prototype,Wee=Bee.splice;function Vee(n){var e=this.__data__,t=Kb(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():Wee.call(e,t,1),--this.size,!0}function Hee(n){var e=this.__data__,t=Kb(e,n);return t<0?void 0:e[t][1]}function Uee(n){return Kb(this.__data__,n)>-1}function $ee(n,e){var t=this.__data__,r=Kb(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function hl(n){var e=-1,t=n==null?0:n.length;for(this.clear();++es))return!1;var u=o.get(n),c=o.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&Fte?new Jf:void 0;for(o.set(n,e),o.set(e,n);++d-1&&n%1==0&&n-1&&n%1==0&&n<=gne}var mne="[object Arguments]",_ne="[object Array]",yne="[object Boolean]",bne="[object Date]",Cne="[object Error]",wne="[object Function]",Sne="[object Map]",Ene="[object Number]",Lne="[object Object]",Ine="[object RegExp]",Tne="[object Set]",xne="[object String]",One="[object WeakMap]",Nne="[object ArrayBuffer]",Dne="[object DataView]",Ane="[object Float32Array]",Rne="[object Float64Array]",Pne="[object Int8Array]",Mne="[object Int16Array]",kne="[object Int32Array]",Fne="[object Uint8Array]",Bne="[object Uint8ClampedArray]",Wne="[object Uint16Array]",Vne="[object Uint32Array]",Zn={};Zn[Ane]=Zn[Rne]=Zn[Pne]=Zn[Mne]=Zn[kne]=Zn[Fne]=Zn[Bne]=Zn[Wne]=Zn[Vne]=!0;Zn[mne]=Zn[_ne]=Zn[Nne]=Zn[yne]=Zn[Dne]=Zn[bne]=Zn[Cne]=Zn[wne]=Zn[Sne]=Zn[Ene]=Zn[Lne]=Zn[Ine]=Zn[Tne]=Zn[xne]=Zn[One]=!1;function Hne(n){return os(n)&&Wx(n.length)&&!!Zn[fd(n)]}function qb(n){return function(e){return n(e)}}var MV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ev=MV&&typeof module=="object"&&module&&!module.nodeType&&module,Une=ev&&ev.exports===MV,q0=Une&&l6.process,$ne=function(){try{var n=ev&&ev.require&&ev.require("util").types;return n||q0&&q0.binding&&q0.binding("util")}catch{}}();const eh=$ne;var JP=eh&&eh.isTypedArray,jne=JP?qb(JP):Hne;const kV=jne;var zne=Object.prototype,Kne=zne.hasOwnProperty;function FV(n,e){var t=Ko(n),r=!t&&Fx(n),i=!t&&!r&&gy(n),o=!t&&!r&&!i&&kV(n),a=t||r||i||o,s=a?one(n.length,String):[],l=s.length;for(var u in n)(e||Kne.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Bx(u,l)))&&s.push(u);return s}var Gne=Object.prototype;function Vx(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Gne;return n===t}var qne=c6(Object.keys,Object);const Yne=qne;var Xne=Object.prototype,Zne=Xne.hasOwnProperty;function Qne(n){if(!Vx(n))return Yne(n);var e=[];for(var t in Object(n))Zne.call(n,t)&&t!="constructor"&&e.push(t);return e}function Rg(n){return n!=null&&Wx(n.length)&&!OV(n)}function Dh(n){return Rg(n)?FV(n):Qne(n)}function j1(n){return DV(n,Dh,kx)}var Jne=1,ere=Object.prototype,tre=ere.hasOwnProperty;function nre(n,e,t,r,i,o){var a=t&Jne,s=j1(n),l=s.length,u=j1(e),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in e:tre.call(e,f)))return!1}var h=o.get(n),p=o.get(e);if(h&&p)return h==e&&p==n;var v=!0;o.set(n,e),o.set(e,n);for(var m=a;++d1&&(Z=I("div",{class:"".concat(M,"-content")},[Z]));var z=Ne(M,i.class,l.value),Y=p.value||!e.visible,te=Y?Og(E.value.name,E.value):{};return I(Zo,O(O({ref:s},te),{},{onBeforeEnter:L}),{default:function(){return!H||e.visible?Ki(I(mre,{target:w(),key:"popup",ref:a,monitorWindowResize:!0,disabled:T.value,align:D,onAlign:S},{default:function(){return I("div",O(O({class:z,onMouseenter:k,onMouseleave:W,onMousedown:WR(j,["capture"])},U({},Pi?"onTouchstartPassive":"onTouchstart",WR(B,["capture"]))),{},{style:X}),[Z])}}),[[fl,p.value]]):null}})}}}),yre=be({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:ree,setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=ee(!1),s=ee(!1),l=ee();return We([function(){return e.visible},function(){return e.mobile}],function(){a.value=e.visible,e.visible&&e.mobile&&(s.value=!0)},{immediate:!0,flush:"post"}),o({forceAlign:function(){var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),function(){var u=O(O(O({},e),r),{},{visible:a.value}),c=s.value?I(iee,O(O({},u),{},{mobile:e.mobile,ref:l}),{default:i.default}):I(_re,O(O({},u),{},{ref:l}),{default:i.default});return I("div",null,[I(yV,u,null),c])}}});function bre(n,e,t){return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function cM(n,e,t){var r=n[e]||{};return O(O({},r),t)}function Cre(n,e,t,r){for(var i=t.points,o=Object.keys(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var i=this.getDerivedStateFromProps(pZ(this),O(O({},this.$data),r));if(i===null)return;r=O(O({},r),i||{})}fn(this.$data,r),this._.isMounted&&this.$forceUpdate(),en(function(){t&&t()})},__emit:function(){var e=[].slice.call(arguments,0),t=e[0];t="on".concat(t[0].toUpperCase()).concat(t.substring(1));var r=this.$props[t]||this.$attrs[t];if(e.length&&r)if(Array.isArray(r))for(var i=0,o=r.length;i1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};qt(WV,{inTriggerContext:t.inTriggerContext,shouldRender:V(function(){var r=e||{},i=r.sPopupVisible,o=r.popupRef,a=r.forceRender,s=r.autoDestroy,l=!1;return(i||o||a)&&(l=!0),!i&&s&&(l=!1),l})})},Ere=function(){Hx({},{inTriggerContext:!1});var e=yt(WV,{shouldRender:V(function(){return!1}),inTriggerContext:!1});return{shouldRender:V(function(){return e.shouldRender.value||e.inTriggerContext===!1})}};const q1=be({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ie.func.isRequired,didUpdate:Function},setup:function(e,t){var r=t.slots,i=!0,o,a=Ere(),s=a.shouldRender;qT(function(){i=!1,s.value&&(o=e.getContainer())});var l=We(s,function(){s.value&&!o&&(o=e.getContainer()),o&&l()});return Xo(function(){en(function(){if(s.value){var u;(u=e.didUpdate)===null||u===void 0||u.call(e,e)}})}),Xt(function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),function(){if(!s.value)return null;if(i){var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)}return o?I(QT,{to:o},r):null}}});function dM(){}function Lre(){return""}function Ire(n){return n?n.ownerDocument:window.document}var Tre=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Zb=be({compatConfig:{MODE:3},name:"Trigger",mixins:[BV],inheritAttrs:!1,props:{action:ie.oneOfType([ie.string,ie.arrayOf(ie.string)]).def([]),showAction:ie.any.def([]),hideAction:ie.any.def([]),getPopupClassNameFromAlign:ie.any.def(Lre),onPopupVisibleChange:Function,afterPopupVisibleChange:ie.func.def(dM),popup:ie.any,popupStyle:{type:Object,default:void 0},prefixCls:ie.string.def("rc-trigger-popup"),popupClassName:ie.string.def(""),popupPlacement:String,builtinPlacements:ie.object,popupTransitionName:String,popupAnimation:ie.any,mouseEnterDelay:ie.number.def(0),mouseLeaveDelay:ie.number.def(.1),zIndex:Number,focusDelay:ie.number.def(0),blurDelay:ie.number.def(.15),getPopupContainer:Function,getDocument:ie.func.def(Ire),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ie.object.def(function(){return{}}),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function},setup:function(e){var t=V(function(){var l=e.popupPlacement,u=e.popupAlign,c=e.builtinPlacements;return l&&c?cM(c,l,u):u}),r=Sre(),i=r.setPortal,o=r.popPortal,a=ee(null),s=function(u){a.value=u};return{popPortal:o,setPortal:i,vcTriggerContext:yt("vcTriggerContext",{}),popupRef:a,setPopupRef:s,triggerRef:ee(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e=this,t,r=this.$props,i;return this.popupVisible!==void 0?i=!!r.popupVisible:i=!!r.defaultPopupVisible,Tre.forEach(function(o){e["fire".concat(o)]=function(a){e.fireEvents(o,a)}}),(t=this.setPortal)===null||t===void 0||t.call(this,I(q1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:i,sPopupVisible:i,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){qt("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),Hx(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Mt.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,t=this.$data;if(t.sPopupVisible){var r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Co(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Co(r,"touchstart",this.onDocumentClick,Pi?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Co(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Co(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var t;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&yc((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){yc(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var r=!this.$data.sPopupVisible;(this.isClickToHide()&&!r||r&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,r=t===void 0?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),r.onPopupMouseDown&&r.onPopupMouseDown.apply(r,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var t=e.target,r=this.getRootDomNode(),i=this.getPopupDomNode();(!yc(r,t)||this.isContextMenuOnly())&&!yc(i,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var t=Ic(this.triggerRef);return Ic(e(t))}try{var r=Ic(this.triggerRef);if(r)return r}catch{}return Ic(this)},handleGetPopupClassFromAlign:function(e){var t=[],r=this.$props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&t.push(Cre(o,a,e,s)),l&&t.push(l(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,r=e.popupAlign,i=e.builtinPlacements;return t&&i?cM(i,t,r):r},getComponent:function(){var e=this,t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Pi?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var r=this.handleGetPopupClassFromAlign,i=this.getRootDomNode,o=this.getContainer,a=this.$attrs,s=this.$props,l=s.prefixCls,u=s.destroyPopupOnHide,c=s.popupClassName,d=s.popupAnimation,f=s.popupTransitionName,h=s.popupStyle,p=s.mask,v=s.maskAnimation,m=s.maskTransitionName,g=s.zIndex,_=s.stretch,y=s.alignPoint,C=s.mobile,w=s.forceRender,b=this.$data,S=b.sPopupVisible,E=b.point,L=O(O({prefixCls:l,destroyPopupOnHide:u,visible:S,point:y?E:null,align:this.align,animation:d,getClassNameFromAlign:r,stretch:_,getRootDomNode:i,mask:p,zIndex:g,transitionName:f,maskAnimation:v,maskTransitionName:m,getContainer:o,class:c,style:h,onAlign:a.onPopupAlign||dM},t),{},{ref:this.setPopupRef,mobile:C,forceRender:w});return I(yre,L,{default:this.$slots.popup||function(){return lx(e,"popup")}})},attachParent:function(e){var t=this;Mt.cancel(this.attachId);var r=this.$props,i=r.getPopupContainer,o=r.getDocument,a=this.getRootDomNode(),s;i?(a||i.length===0)&&(s=i(a)):s=o(this.getRootDomNode()).body,s?s.appendChild(e):this.attachId=Mt(function(){t.attachParent(e)})},getContainer:function(){var e=this.$props,t=e.getDocument,r=t(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible:function(e,t){var r=this.alignPoint,i=this.sPopupVisible,o=this.onPopupVisibleChange;this.clearDelayTimer(),i!==e&&(rf(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:i}),o&&o(e)),r&&t&&e&&this.setPoint(t)},setPoint:function(e){var t=this.$props.alignPoint;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,t,r){var i=this,o=t*1e3;if(this.clearDelayTimer(),o){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=tee(function(){i.setPopupVisible(e,a),i.clearDelayTimer()},o)}else this.setPopupVisible(e,r)},clearDelayTimer:function(){this.delayTimer&&(eee(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=function(){},r=KR(this);return this.childOriginEvents[e]&&r[e]?this["fire".concat(e)]:(t=this.childOriginEvents[e]||r[e]||t,t)},isClickToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("click")!==-1||r.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("contextmenu")!==-1||r.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("click")!==-1||r.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("hover")!==-1||r.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("hover")!==-1||r.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,t=e.action,r=e.showAction;return t.indexOf("focus")!==-1||r.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,t=e.action,r=e.hideAction;return t.indexOf("focus")!==-1||r.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);var r=this.$props[e]||this.$attrs[e];r&&r(t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=this.$attrs,r=To(p6(this)),i=this.$props.alignPoint,o=r[0];this.childOriginEvents=KR(o);var a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Pi?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Pi?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,i&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=function(c){c&&(!c.relatedTarget||!yc(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var s=Ne(o&&o.props&&o.props.class,t.class);s&&(a.class=s);var l=Fn(o,O(O({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return l;var u=I(q1,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return I(kt,null,[u,l])}});var xre=["empty"],Ore=function(e){var t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},Nre=be({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ie.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ie.oneOfType([Number,Boolean]).def(!0),popupElement:ie.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=V(function(){var l=e.dropdownMatchSelectWidth;return Ore(l)}),s=ee();return o({getPopupElement:function(){return s.value}}),function(){var l=O(O({},e),i),u=l.empty,c=u===void 0?!1:u,d=Nt(l,xre),f=d.visible,h=d.dropdownAlign,p=d.prefixCls,v=d.popupElement,m=d.dropdownClassName,g=d.dropdownStyle,_=d.direction,y=_===void 0?"ltr":_,C=d.placement,w=d.dropdownMatchSelectWidth,b=d.containerWidth,S=d.dropdownRender,E=d.animation,L=d.transitionName,T=d.getPopupContainer,R=d.getTriggerDOMNode,N=d.onPopupVisibleChange,D=d.onPopupMouseEnter,M="".concat(p,"-dropdown"),H=v;S&&(H=S({menuNode:v,props:e}));var k=E?"".concat(M,"-").concat(E):L,W=O({minWidth:"".concat(b,"px")},g);return typeof w=="number"?W.width="".concat(w,"px"):w&&(W.width="".concat(b,"px")),I(Zb,O(O({},e),{},{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:C||(y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:M,popupTransitionName:k,popupAlign:h,popupVisible:f,getPopupContainer:T,popupClassName:Ne(m,U({},"".concat(M,"-empty"),c)),popupStyle:W,getTriggerDOMNode:R,onPopupVisibleChange:N}),{default:r.default,popup:function(){return I("div",{ref:s,onMouseenter:D},[H])}})}}});const Dre=Nre;var Lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Lt.F1&&t<=Lt.F12)return!1;switch(t){case Lt.ALT:case Lt.CAPS_LOCK:case Lt.CONTEXT_MENU:case Lt.CTRL:case Lt.DOWN:case Lt.END:case Lt.ESC:case Lt.HOME:case Lt.INSERT:case Lt.LEFT:case Lt.MAC_FF_META:case Lt.META:case Lt.NUMLOCK:case Lt.NUM_CENTER:case Lt.PAGE_DOWN:case Lt.PAGE_UP:case Lt.PAUSE:case Lt.PRINT_SCREEN:case Lt.RIGHT:case Lt.SHIFT:case Lt.UP:case Lt.WIN_KEY:case Lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Lt.ZERO&&e<=Lt.NINE||e>=Lt.NUM_ZERO&&e<=Lt.NUM_MULTIPLY||e>=Lt.A&&e<=Lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Lt.SPACE:case Lt.QUESTION_MARK:case Lt.NUM_PLUS:case Lt.NUM_MINUS:case Lt.NUM_PERIOD:case Lt.NUM_DIVISION:case Lt.SEMICOLON:case Lt.DASH:case Lt.EQUALS:case Lt.COMMA:case Lt.PERIOD:case Lt.SLASH:case Lt.APOSTROPHE:case Lt.SINGLE_QUOTE:case Lt.OPEN_SQUARE_BRACKET:case Lt.BACKSLASH:case Lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const ct=Lt;var Qb=function(e,t){var r,i=t.slots,o=e.class,a=e.customizeIcon,s=e.customizeIconProps,l=e.onMousedown,u=e.onClick,c;return typeof a=="function"?c=a(s):c=a,I("span",{class:o,onMousedown:function(f){f.preventDefault(),l&&l(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},[c!==void 0?c:I("span",{class:o.split(/\s+/).map(function(d){return"".concat(d,"-icon")})},[(r=i.default)===null||r===void 0?void 0:r.call(i)])])};Qb.inheritAttrs=!1;Qb.displayName="TransBtn";Qb.props={class:String,customizeIcon:ie.any,customizeIconProps:ie.any,onMousedown:Function,onClick:Function};const my=Qb;function Are(n){n.target.composing=!0}function fM(n){n.target.composing&&(n.target.composing=!1,Rre(n.target,"input"))}function Rre(n,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),n.dispatchEvent(t)}function Y0(n,e,t,r){n.addEventListener(e,t,r)}var Pre={created:function(e,t){(!t.modifiers||!t.modifiers.lazy)&&(Y0(e,"compositionstart",Are),Y0(e,"compositionend",fM),Y0(e,"change",fM))}};const Pg=Pre;var Mre={inputRef:ie.any,prefixCls:String,id:String,inputElement:ie.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ie.oneOfType([ie.number,ie.string]),attrs:ie.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},kre=be({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:Mre,setup:function(e){var t=null,r=yt("VCSelectContainerEvent");return function(){var i,o,a=e.prefixCls,s=e.id,l=e.inputElement,u=e.disabled,c=e.tabindex,d=e.autofocus,f=e.autocomplete,h=e.editable,p=e.activeDescendantId,v=e.value,m=e.onKeydown,g=e.onMousedown,_=e.onChange,y=e.onPaste,C=e.onCompositionstart,w=e.onCompositionend,b=e.onFocus,S=e.onBlur,E=e.open,L=e.inputRef,T=e.attrs,R=l||Ki(I("input",null,null),[[Pg]]),N=R.props||{},D=N.onKeydown,M=N.onInput,H=N.onFocus,k=N.onBlur,W=N.onMousedown,F=N.onCompositionstart,B=N.onCompositionend,j=N.style;return R=Fn(R,fn(O(O(O({type:"search"},N),{},{id:s,ref:L,disabled:u,tabindex:c,autocomplete:f||"off",autofocus:d,class:Ne("".concat(a,"-selection-search-input"),(i=R)===null||i===void 0||(o=i.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":"".concat(s,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(s,"_list"),"aria-activedescendant":p},T),{},{value:h?v:"",readonly:!h,unselectable:h?null:"on",style:O(O({},j),{},{opacity:h?null:0}),onKeydown:function(X){m(X),D&&D(X)},onMousedown:function(X){g(X),W&&W(X)},onInput:function(X){_(X),M&&M(X)},onCompositionstart:function(X){C(X),F&&F(X)},onCompositionend:function(X){w(X),B&&B(X)},onPaste:y,onFocus:function(){clearTimeout(t),H&&H(arguments.length<=0?void 0:arguments[0]),b&&b(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var X=arguments.length,Z=new Array(X),z=0;z1&&arguments[1]!==void 0?arguments[1]:!1,t;e===!1?t={aria:!0,data:!0,attr:!0}:e===!0?t={aria:!0}:t=O({},e);var r={};return Object.keys(n).forEach(function(i){(t.aria&&(i==="role"||pM(i,Tre))||t.data&&pM(i,xre)||t.attr&&(hM.includes(i)||hM.includes(i.toLowerCase())))&&(r[i]=n[i])}),r}var j6=Symbol("OverflowContextProviderKey"),Q1=be({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,t){var r=t.slots;return qt(j6,V(function(){return e.value})),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}}),Ore=function(){return yt(j6,V(function(){return null}))},Nre=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Rd=void 0;const I_=be({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ne.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ne.any,invalidate:Boolean},setup:function(e,t){var r=t.slots,i=t.expose,o=V(function(){return e.responsive&&!e.display}),a=J();i({itemNodeRef:a});function s(l){e.registerSize(e.itemKey,l)}return Ia(function(){s(null)}),function(){var l,u=e.prefixCls,c=e.invalidate,d=e.item,f=e.renderItem,h=e.responsive;e.registerSize,e.itemKey,e.display;var p=e.order,v=e.component,m=v===void 0?"div":v,g=Nt(e,Nre),_=(l=r.default)===null||l===void 0?void 0:l.call(r),y=f&&d!==Rd?f(d):_,b;c||(b={opacity:o.value?0:1,height:o.value?0:Rd,overflowY:o.value?"hidden":Rd,order:h?p:Rd,pointerEvents:o.value?"none":Rd,position:o.value?"absolute":Rd});var w={};return o.value&&(w["aria-hidden"]=!0),I(mu,{disabled:!h,onResize:function(S){var L=S.offsetWidth;s(L)}},{default:function(){return I(m,O(O(O({class:Re(!c&&u),style:b},w),g),{},{ref:a}),{default:function(){return[y]}})}})}}});var Are=["component"],Dre=["className"],Rre=["class"];const Pre=be({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ne.any,title:ne.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,t){var r=t.slots,i=t.attrs,o=Ore();return function(){if(!o.value){var a,s=e.component,l=s===void 0?"div":s,u=Nt(e,Are);return I(l,O(O({},u),i),{default:function(){return[(a=r.default)===null||a===void 0?void 0:a.call(r)]}})}var c=o.value,d=c.className,f=Nt(c,Dre),h=i.class,p=Nt(i,Rre);return I(Q1,{value:null},{default:function(){return[I(I_,O(O(O({class:Re(d,h)},f),p),e),r)]}})}}});var Mre=["class","style"],z6="responsive",K6="invalidate";function kre(n){return"+ ".concat(n.length," ...")}var Fre=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ne.any,component:String,itemComponent:ne.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},tC=be({name:"Overflow",inheritAttrs:!1,props:Fre(),emits:["visibleChange"],setup:function(e,t){var r=t.attrs,i=t.emit,o=t.slots,a=V(function(){return e.ssr==="full"}),s=J(null),l=V(function(){return s.value||0}),u=J(new Map),c=J(0),d=J(0),f=J(0),h=J(null),p=J(null),v=V(function(){return p.value===null&&a.value?Number.MAX_SAFE_INTEGER:p.value||0}),m=J(!1),g=V(function(){return"".concat(e.prefixCls,"-item")}),_=V(function(){return Math.max(c.value,d.value)}),y=V(function(){return!!(e.data.length&&e.maxCount===z6)}),b=V(function(){return e.maxCount===K6}),w=V(function(){return y.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),C=V(function(){var k=e.data;return y.value?s.value===null&&a.value?k=e.data:k=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(k=e.data.slice(0,e.maxCount)),k}),S=V(function(){return y.value?e.data.slice(v.value+1):e.data.slice(C.value.length)}),L=function(B,F){var W;return typeof e.itemKey=="function"?e.itemKey(B):(W=e.itemKey&&(B==null?void 0:B[e.itemKey]))!==null&&W!==void 0?W:F},E=V(function(){return e.renderItem||function(k){return k}}),T=function(B,F){p.value=B,F||(m.value=Bl.value){T(W-1),h.value=k-$-f.value+d.value;break}}e.suffix&&H(0)+f.value>l.value&&(h.value=null)}}),function(){var k=m.value&&!!S.value.length,B=e.itemComponent,F=e.renderRawItem,W=e.renderRawRest,$=e.renderRest,j=e.prefixCls,X=j===void 0?"rc-overflow":j,Z=e.suffix,z=e.component,Y=z===void 0?"div":z,ee=e.id,K=e.onMousedown,oe=r.class,ie=r.style,ue=Nt(r,Mre),Ce={};h.value!==null&&y.value&&(Ce={position:"absolute",left:"".concat(h.value,"px"),top:0});var me={prefixCls:g.value,responsive:y.value,component:B,invalidate:b.value},N=F?function(pe,Se){var fe=L(pe,Se);return I(Q1,{key:fe,value:O(O({},me),{},{order:Se,item:pe,itemKey:fe,registerSize:A,display:Se<=v.value})},{default:function(){return[F(pe,Se)]}})}:function(pe,Se){var fe=L(pe,Se);return I(I_,O(O({},me),{},{order:Se,key:fe,item:pe,renderItem:E.value,itemKey:fe,registerSize:A,display:Se<=v.value}),null)},R=function(){return null},G={order:k?v.value:Number.MAX_SAFE_INTEGER,className:"".concat(g.value," ").concat(g.value,"-rest"),registerSize:D,display:k};if(W)W&&(R=function(){return I(Q1,{value:O(O({},me),G)},{default:function(){return[W(S.value)]}})});else{var te=$||kre;R=function(){return I(I_,O(O({},me),G),{default:function(){return typeof te=="function"?te(S.value):te}})}}var re=function(){var Se;return I(Y,O({id:ee,class:Re(!b.value&&X,oe),style:ie,onMousedown:K},ue),{default:function(){return[C.value.map(N),w.value?R():null,Z&&I(I_,O(O({},me),{},{order:v.value,class:"".concat(g.value,"-suffix"),registerSize:M,display:!0,style:Ce}),{default:function(){return Z}}),(Se=o.default)===null||Se===void 0?void 0:Se.call(o)]}})};return I(mu,{disabled:!y.value,onResize:P},{default:re})}}});tC.Item=Pre;tC.RESPONSIVE=z6;tC.INVALIDATE=K6;const Mf=tC;var Bre=Symbol("TreeSelectLegacyContextPropsKey");function $x(){return yt(Bre,{})}var Wre={id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),removeIcon:ne.any,choiceTransitionName:String,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any.def(function(){return function(n){return"+ ".concat(n.length," ...")}}),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},vM=function(e){e.preventDefault(),e.stopPropagation()},Vre=be({name:"MultipleSelectSelector",inheritAttrs:!1,props:Wre,setup:function(e){var t=J(),r=J(0),i=J(!1),o=$x(),a=V(function(){return"".concat(e.prefixCls,"-selection")}),s=V(function(){return e.open||e.mode==="tags"?e.searchValue:""}),l=V(function(){return e.mode==="tags"||e.showSearch&&(e.open||i.value)});Wt(function(){Ve(s,function(){r.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(h,p,v,m,g){return I("span",{class:Re("".concat(a.value,"-item"),U({},"".concat(a.value,"-item-disabled"),v)),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[I("span",{class:"".concat(a.value,"-item-content")},[p]),m&&I(my,{class:"".concat(a.value,"-item-remove"),onMousedown:vM,onClick:g,customizeIcon:e.removeIcon},{default:function(){return[Yc("×")]}})])}function c(h,p,v,m,g,_){var y=function(S){vM(S),e.onToggleOpen(!open)},b=_;if(o.keyEntities){var w;b=((w=o.keyEntities[h])===null||w===void 0?void 0:w.node)||{}}return I("span",{key:h,onMousedown:y},[e.tagRender({label:p,value:h,disabled:v,closable:m,onClose:g,option:b})])}function d(h){var p=h.disabled,v=h.label,m=h.value,g=h.option,_=!e.disabled&&!p,y=v;if(typeof e.maxTagTextLength=="number"&&(typeof v=="string"||typeof v=="number")){var b=String(y);b.length>e.maxTagTextLength&&(y="".concat(b.slice(0,e.maxTagTextLength),"..."))}var w=function(S){var L;S&&S.stopPropagation(),(L=e.onRemove)===null||L===void 0||L.call(e,h)};return typeof e.tagRender=="function"?c(m,y,p,_,w,g):u(v,y,p,_,w)}function f(h){var p=e.maxTagPlaceholder,v=p===void 0?function(g){return"+ ".concat(g.length," ...")}:p,m=typeof v=="function"?v(h):v;return u(m,m,!1)}return function(){var h=e.id,p=e.prefixCls,v=e.values,m=e.open,g=e.inputRef,_=e.placeholder,y=e.disabled,b=e.autofocus,w=e.autocomplete,C=e.activeDescendantId,S=e.tabindex,L=e.onInputChange,E=e.onInputPaste,T=e.onInputKeyDown,P=e.onInputMouseDown,A=e.onInputCompositionStart,D=e.onInputCompositionEnd,M=I("div",{class:"".concat(a.value,"-search"),style:{width:r.value+"px"},key:"input"},[I($6,{inputRef:g,open:m,prefixCls:p,id:h,inputElement:null,disabled:y,autofocus:b,autocomplete:w,editable:l.value,activeDescendantId:C,value:s.value,onKeydown:T,onMousedown:P,onChange:L,onPaste:E,onCompositionstart:A,onCompositionend:D,tabindex:S,attrs:Iu(e,!0),onFocus:function(){return i.value=!0},onBlur:function(){return i.value=!1}},null),I("span",{ref:t,class:"".concat(a.value,"-search-mirror"),"aria-hidden":!0},[s.value,Yc(" ")])]),H=I(Mf,{prefixCls:"".concat(a.value,"-overflow"),data:v,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return I(kt,null,[H,!v.length&&!s.value&&I("span",{class:"".concat(a.value,"-placeholder")},[_])])}}});const Hre=Vre;var Ure={inputElement:ne.any,id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},jx=be({name:"SingleSelector",setup:function(e){var t=J(!1),r=V(function(){return e.mode==="combobox"}),i=V(function(){return r.value||e.showSearch}),o=V(function(){var c=e.searchValue||"";return r.value&&e.activeValue&&!t.value&&(c=e.activeValue),c}),a=$x();Ve([r,function(){return e.activeValue}],function(){r.value&&(t.value=!1)},{immediate:!0});var s=V(function(){return e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!o.value}),l=V(function(){var c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),u=function(){if(e.values[0])return null;var d=s.value?{visibility:"hidden"}:void 0;return I("span",{class:"".concat(e.prefixCls,"-selection-placeholder"),style:d},[e.placeholder])};return function(){var c,d=e.inputElement,f=e.prefixCls,h=e.id,p=e.values,v=e.inputRef,m=e.disabled,g=e.autofocus,_=e.autocomplete,y=e.activeDescendantId,b=e.open,w=e.tabindex,C=e.optionLabelRender,S=e.onInputKeyDown,L=e.onInputMouseDown,E=e.onInputChange,T=e.onInputPaste,P=e.onInputCompositionStart,A=e.onInputCompositionEnd,D=p[0],M=null;if(D&&a.customSlots){var H,k,B,F=(H=D.key)!==null&&H!==void 0?H:D.value,W=((k=a.keyEntities[F])===null||k===void 0?void 0:k.node)||{};M=a.customSlots[(B=W.slots)===null||B===void 0?void 0:B.title]||a.customSlots.title||D.label,typeof M=="function"&&(M=M(W))}else M=C&&D?C(D.option):D==null?void 0:D.label;return I(kt,null,[I("span",{class:"".concat(f,"-selection-search")},[I($6,{inputRef:v,prefixCls:f,id:h,open:b,inputElement:d,disabled:m,autofocus:g,autocomplete:_,editable:i.value,activeDescendantId:y,value:o.value,onKeydown:S,onMousedown:L,onChange:function(j){t.value=!0,E(j)},onPaste:T,onCompositionstart:P,onCompositionend:A,tabindex:w,attrs:Iu(e,!0)},null)]),!r.value&&D&&!s.value&&I("span",{class:"".concat(f,"-selection-item"),title:l.value},[I(kt,{key:(c=D.key)!==null&&c!==void 0?c:D.value},[M])]),u()])}}});jx.props=Ure;jx.inheritAttrs=!1;const $re=jx;function jre(n){return![ct.ESC,ct.SHIFT,ct.BACKSPACE,ct.TAB,ct.WIN_KEY,ct.ALT,ct.META,ct.WIN_KEY_RIGHT,ct.CTRL,ct.SEMICOLON,ct.EQUALS,ct.CAPS_LOCK,ct.CONTEXT_MENU,ct.F1,ct.F2,ct.F3,ct.F4,ct.F5,ct.F6,ct.F7,ct.F8,ct.F9,ct.F10,ct.F11,ct.F12].includes(n)}function G6(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,t;Zt(function(){clearTimeout(t)});function r(i){(i||e===null)&&(e=i),clearTimeout(t),t=setTimeout(function(){e=null},n)}return[function(){return e},r]}function Bv(){var n=function e(t){e.current=t};return n}var zre=be({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ne.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ne.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),disabled:{type:Boolean,default:void 0},placeholder:ne.any,removeIcon:ne.any,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(e,t){var r=t.expose,i=Bv(),o=!1,a=G6(0),s=Ye(a,2),l=s[0],u=s[1],c=function(w){var C=w.which;(C===ct.UP||C===ct.DOWN)&&w.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(w),C===ct.ENTER&&e.mode==="tags"&&!o&&!e.open&&e.onSearchSubmit(w.target.value),jre(C)&&e.onToggleOpen(!0)},d=function(){u(!0)},f=null,h=function(w){e.onSearch(w,!0,o)!==!1&&e.onToggleOpen(!0)},p=function(){o=!0},v=function(w){o=!1,e.mode!=="combobox"&&h(w.target.value)},m=function(w){var C=w.target.value;if(e.tokenWithEnter&&f&&/[\r\n]/.test(f)){var S=f.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");C=C.replace(S,f)}f=null,h(C)},g=function(w){var C=w.clipboardData,S=C.getData("text");f=S},_=function(w){var C=w.target;if(C!==i.current){var S=document.body.style.msTouchAction!==void 0;S?setTimeout(function(){i.current.focus()}):i.current.focus()}},y=function(w){var C=l();w.target!==i.current&&!C&&w.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!C)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return r({focus:function(){i.current.focus()},blur:function(){i.current.blur()}}),function(){var b=e.prefixCls,w=e.domRef,C=e.mode,S={inputRef:i,onInputKeyDown:c,onInputMouseDown:d,onInputChange:m,onInputPaste:g,onInputCompositionStart:p,onInputCompositionEnd:v},L=C==="multiple"||C==="tags"?I(Hre,O(O({},e),S),null):I($re,O(O({},e),S),null);return I("div",{ref:w,class:"".concat(b,"-selector"),onClick:_,onMousedown:y},[L])}}});const Kre=zre;function Gre(n,e,t){function r(i){var o,a,s,l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);var u=[(o=n[0])===null||o===void 0?void 0:o.value,(a=n[1])===null||a===void 0||(s=a.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(function(c){return c&&!c.contains(l)&&c!==l})&&t(!1)}Wt(function(){window.addEventListener("mousedown",r)}),Zt(function(){window.removeEventListener("mousedown",r)})}function qre(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=J(!1),t,r=function(){clearTimeout(t)};Wt(function(){r()});var i=function(a,s){r(),t=setTimeout(function(){e.value=a,s&&s()},n)};return[e,i,r]}var q6=Symbol("BaseSelectContextKey");function Yre(n){return qt(q6,n)}function Xre(){return yt(q6,{})}const zx=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var n=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(n==null?void 0:n.substr(0,4)))};function Y6(n){if(!mr(n))return Rn(n);var e=new Proxy({},{get:function(r,i,o){return Reflect.get(n.value,i,o)},set:function(r,i,o){return n.value[i]=o,!0},deleteProperty:function(r,i){return Reflect.deleteProperty(n.value,i)},has:function(r,i){return Reflect.has(n.value,i)},ownKeys:function(){return Object.keys(n.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return Rn(e)}var Zre=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],Qre=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],Jre=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ne.any,emptyOptions:Boolean}},X6=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ne.any,placeholder:ne.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ne.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ne.any,clearIcon:ne.any,removeIcon:ne.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},eie=function(){return O(O({},Jre()),X6())};function Z6(n){return n==="tags"||n==="multiple"}const tie=be({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Wn(eie(),{showAction:[],notFoundContent:"Not Found"}),setup:function(e,t){var r=t.attrs,i=t.expose,o=t.slots,a=V(function(){return Z6(e.mode)}),s=V(function(){return e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"}),l=J(!1);Wt(function(){l.value=zx()});var u=$x(),c=J(null),d=Bv(),f=J(null),h=J(null),p=J(null),v=qre(),m=Ye(v,3),g=m[0],_=m[1],y=m[2],b=function(){var N;(N=h.value)===null||N===void 0||N.focus()},w=function(){var N;(N=h.value)===null||N===void 0||N.blur()};i({focus:b,blur:w,scrollTo:function(N){var R;return(R=p.value)===null||R===void 0?void 0:R.scrollTo(N)}});var C=V(function(){var me;if(e.mode!=="combobox")return e.searchValue;var N=(me=e.displayValues[0])===null||me===void 0?void 0:me.value;return typeof N=="string"||typeof N=="number"?String(N):""}),S=e.open!==void 0?e.open:e.defaultOpen,L=J(S),E=J(S),T=function(N){L.value=e.open!==void 0?e.open:N,E.value=L.value};Ve(function(){return e.open},function(){T(e.open)});var P=V(function(){return!e.notFoundContent&&e.emptyOptions});Ft(function(){E.value=L.value,(e.disabled||P.value&&E.value&&e.mode==="combobox")&&(E.value=!1)});var A=V(function(){return P.value?!1:E.value}),D=function(N){var R=N!==void 0?N:!E.value;L.value!==R&&!e.disabled&&(T(R),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(R))},M=V(function(){return(e.tokenSeparators||[]).some(function(me){return[` + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,hM="".concat(Fre," ").concat(Bre).split(/[\s\n]+/),Wre="aria-",Vre="data-";function pM(n,e){return n.indexOf(e)===0}function Iu(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;e===!1?t={aria:!0,data:!0,attr:!0}:e===!0?t={aria:!0}:t=O({},e);var r={};return Object.keys(n).forEach(function(i){(t.aria&&(i==="role"||pM(i,Wre))||t.data&&pM(i,Vre)||t.attr&&(hM.includes(i)||hM.includes(i.toLowerCase())))&&(r[i]=n[i])}),r}var HV=Symbol("OverflowContextProviderKey"),Y1=be({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,t){var r=t.slots;return qt(HV,V(function(){return e.value})),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}}),Hre=function(){return yt(HV,V(function(){return null}))},Ure=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Pd=void 0;const x_=be({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ie.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ie.any,invalidate:Boolean},setup:function(e,t){var r=t.slots,i=t.expose,o=V(function(){return e.responsive&&!e.display}),a=ee();i({itemNodeRef:a});function s(l){e.registerSize(e.itemKey,l)}return Ia(function(){s(null)}),function(){var l,u=e.prefixCls,c=e.invalidate,d=e.item,f=e.renderItem,h=e.responsive;e.registerSize,e.itemKey,e.display;var p=e.order,v=e.component,m=v===void 0?"div":v,g=Nt(e,Ure),_=(l=r.default)===null||l===void 0?void 0:l.call(r),y=f&&d!==Pd?f(d):_,C;c||(C={opacity:o.value?0:1,height:o.value?0:Pd,overflowY:o.value?"hidden":Pd,order:h?p:Pd,pointerEvents:o.value?"none":Pd,position:o.value?"absolute":Pd});var w={};return o.value&&(w["aria-hidden"]=!0),I(mu,{disabled:!h,onResize:function(S){var E=S.offsetWidth;s(E)}},{default:function(){return I(m,O(O(O({class:Ne(!c&&u),style:C},w),g),{},{ref:a}),{default:function(){return[y]}})}})}}});var $re=["component"],jre=["className"],zre=["class"];const Kre=be({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ie.any,title:ie.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,t){var r=t.slots,i=t.attrs,o=Hre();return function(){if(!o.value){var a,s=e.component,l=s===void 0?"div":s,u=Nt(e,$re);return I(l,O(O({},u),i),{default:function(){return[(a=r.default)===null||a===void 0?void 0:a.call(r)]}})}var c=o.value,d=c.className,f=Nt(c,jre),h=i.class,p=Nt(i,zre);return I(Y1,{value:null},{default:function(){return[I(x_,O(O(O({class:Ne(d,h)},f),p),e),r)]}})}}});var Gre=["class","style"],UV="responsive",$V="invalidate";function qre(n){return"+ ".concat(n.length," ...")}var Yre=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ie.any,component:String,itemComponent:ie.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},Jb=be({name:"Overflow",inheritAttrs:!1,props:Yre(),emits:["visibleChange"],setup:function(e,t){var r=t.attrs,i=t.emit,o=t.slots,a=V(function(){return e.ssr==="full"}),s=ee(null),l=V(function(){return s.value||0}),u=ee(new Map),c=ee(0),d=ee(0),f=ee(0),h=ee(null),p=ee(null),v=V(function(){return p.value===null&&a.value?Number.MAX_SAFE_INTEGER:p.value||0}),m=ee(!1),g=V(function(){return"".concat(e.prefixCls,"-item")}),_=V(function(){return Math.max(c.value,d.value)}),y=V(function(){return!!(e.data.length&&e.maxCount===UV)}),C=V(function(){return e.maxCount===$V}),w=V(function(){return y.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),b=V(function(){var k=e.data;return y.value?s.value===null&&a.value?k=e.data:k=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(k=e.data.slice(0,e.maxCount)),k}),S=V(function(){return y.value?e.data.slice(v.value+1):e.data.slice(b.value.length)}),E=function(W,F){var B;return typeof e.itemKey=="function"?e.itemKey(W):(B=e.itemKey&&(W==null?void 0:W[e.itemKey]))!==null&&B!==void 0?B:F},L=V(function(){return e.renderItem||function(k){return k}}),T=function(W,F){p.value=W,F||(m.value=Wl.value){T(B-1),h.value=k-j-f.value+d.value;break}}e.suffix&&H(0)+f.value>l.value&&(h.value=null)}}),function(){var k=m.value&&!!S.value.length,W=e.itemComponent,F=e.renderRawItem,B=e.renderRawRest,j=e.renderRest,K=e.prefixCls,X=K===void 0?"rc-overflow":K,Z=e.suffix,z=e.component,Y=z===void 0?"div":z,te=e.id,G=e.onMousedown,ae=r.class,oe=r.style,de=Nt(r,Gre),Ce={};h.value!==null&&y.value&&(Ce={position:"absolute",left:"".concat(h.value,"px"),top:0});var $={prefixCls:g.value,responsive:y.value,component:W,invalidate:C.value},A=F?function(me,ge){var he=E(me,ge);return I(Y1,{key:he,value:O(O({},$),{},{order:ge,item:me,itemKey:he,registerSize:N,display:ge<=v.value})},{default:function(){return[F(me,ge)]}})}:function(me,ge){var he=E(me,ge);return I(x_,O(O({},$),{},{order:ge,key:he,item:me,renderItem:L.value,itemKey:he,registerSize:N,display:ge<=v.value}),null)},P=function(){return null},Q={order:k?v.value:Number.MAX_SAFE_INTEGER,className:"".concat(g.value," ").concat(g.value,"-rest"),registerSize:D,display:k};if(B)B&&(P=function(){return I(Y1,{value:O(O({},$),Q)},{default:function(){return[B(S.value)]}})});else{var re=j||qre;P=function(){return I(x_,O(O({},$),Q),{default:function(){return typeof re=="function"?re(S.value):re}})}}var le=function(){var ge;return I(Y,O({id:te,class:Ne(!C.value&&X,ae),style:oe,onMousedown:G},de),{default:function(){return[b.value.map(A),w.value?P():null,Z&&I(x_,O(O({},$),{},{order:v.value,class:"".concat(g.value,"-suffix"),registerSize:M,display:!0,style:Ce}),{default:function(){return Z}}),(ge=o.default)===null||ge===void 0?void 0:ge.call(o)]}})};return I(mu,{disabled:!y.value,onResize:R},{default:le})}}});Jb.Item=Kre;Jb.RESPONSIVE=UV;Jb.INVALIDATE=$V;const Mf=Jb;var Xre=Symbol("TreeSelectLegacyContextPropsKey");function Ux(){return yt(Xre,{})}var Zre={id:String,prefixCls:String,values:ie.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ie.any,placeholder:ie.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ie.oneOfType([ie.number,ie.string]),removeIcon:ie.any,choiceTransitionName:String,maxTagCount:ie.oneOfType([ie.number,ie.string]),maxTagTextLength:Number,maxTagPlaceholder:ie.any.def(function(){return function(n){return"+ ".concat(n.length," ...")}}),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},vM=function(e){e.preventDefault(),e.stopPropagation()},Qre=be({name:"MultipleSelectSelector",inheritAttrs:!1,props:Zre,setup:function(e){var t=ee(),r=ee(0),i=ee(!1),o=Ux(),a=V(function(){return"".concat(e.prefixCls,"-selection")}),s=V(function(){return e.open||e.mode==="tags"?e.searchValue:""}),l=V(function(){return e.mode==="tags"||e.showSearch&&(e.open||i.value)});Wt(function(){We(s,function(){r.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(h,p,v,m,g){return I("span",{class:Ne("".concat(a.value,"-item"),U({},"".concat(a.value,"-item-disabled"),v)),title:typeof h=="string"||typeof h=="number"?h.toString():void 0},[I("span",{class:"".concat(a.value,"-item-content")},[p]),m&&I(my,{class:"".concat(a.value,"-item-remove"),onMousedown:vM,onClick:g,customizeIcon:e.removeIcon},{default:function(){return[Zc("×")]}})])}function c(h,p,v,m,g,_){var y=function(S){vM(S),e.onToggleOpen(!open)},C=_;if(o.keyEntities){var w;C=((w=o.keyEntities[h])===null||w===void 0?void 0:w.node)||{}}return I("span",{key:h,onMousedown:y},[e.tagRender({label:p,value:h,disabled:v,closable:m,onClose:g,option:C})])}function d(h){var p=h.disabled,v=h.label,m=h.value,g=h.option,_=!e.disabled&&!p,y=v;if(typeof e.maxTagTextLength=="number"&&(typeof v=="string"||typeof v=="number")){var C=String(y);C.length>e.maxTagTextLength&&(y="".concat(C.slice(0,e.maxTagTextLength),"..."))}var w=function(S){var E;S&&S.stopPropagation(),(E=e.onRemove)===null||E===void 0||E.call(e,h)};return typeof e.tagRender=="function"?c(m,y,p,_,w,g):u(v,y,p,_,w)}function f(h){var p=e.maxTagPlaceholder,v=p===void 0?function(g){return"+ ".concat(g.length," ...")}:p,m=typeof v=="function"?v(h):v;return u(m,m,!1)}return function(){var h=e.id,p=e.prefixCls,v=e.values,m=e.open,g=e.inputRef,_=e.placeholder,y=e.disabled,C=e.autofocus,w=e.autocomplete,b=e.activeDescendantId,S=e.tabindex,E=e.onInputChange,L=e.onInputPaste,T=e.onInputKeyDown,R=e.onInputMouseDown,N=e.onInputCompositionStart,D=e.onInputCompositionEnd,M=I("div",{class:"".concat(a.value,"-search"),style:{width:r.value+"px"},key:"input"},[I(VV,{inputRef:g,open:m,prefixCls:p,id:h,inputElement:null,disabled:y,autofocus:C,autocomplete:w,editable:l.value,activeDescendantId:b,value:s.value,onKeydown:T,onMousedown:R,onChange:E,onPaste:L,onCompositionstart:N,onCompositionend:D,tabindex:S,attrs:Iu(e,!0),onFocus:function(){return i.value=!0},onBlur:function(){return i.value=!1}},null),I("span",{ref:t,class:"".concat(a.value,"-search-mirror"),"aria-hidden":!0},[s.value,Zc(" ")])]),H=I(Mf,{prefixCls:"".concat(a.value,"-overflow"),data:v,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return I(kt,null,[H,!v.length&&!s.value&&I("span",{class:"".concat(a.value,"-placeholder")},[_])])}}});const Jre=Qre;var eie={inputElement:ie.any,id:String,prefixCls:String,values:ie.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ie.any,placeholder:ie.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ie.oneOfType([ie.number,ie.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},$x=be({name:"SingleSelector",setup:function(e){var t=ee(!1),r=V(function(){return e.mode==="combobox"}),i=V(function(){return r.value||e.showSearch}),o=V(function(){var c=e.searchValue||"";return r.value&&e.activeValue&&!t.value&&(c=e.activeValue),c}),a=Ux();We([r,function(){return e.activeValue}],function(){r.value&&(t.value=!1)},{immediate:!0});var s=V(function(){return e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!o.value}),l=V(function(){var c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),u=function(){if(e.values[0])return null;var d=s.value?{visibility:"hidden"}:void 0;return I("span",{class:"".concat(e.prefixCls,"-selection-placeholder"),style:d},[e.placeholder])};return function(){var c,d=e.inputElement,f=e.prefixCls,h=e.id,p=e.values,v=e.inputRef,m=e.disabled,g=e.autofocus,_=e.autocomplete,y=e.activeDescendantId,C=e.open,w=e.tabindex,b=e.optionLabelRender,S=e.onInputKeyDown,E=e.onInputMouseDown,L=e.onInputChange,T=e.onInputPaste,R=e.onInputCompositionStart,N=e.onInputCompositionEnd,D=p[0],M=null;if(D&&a.customSlots){var H,k,W,F=(H=D.key)!==null&&H!==void 0?H:D.value,B=((k=a.keyEntities[F])===null||k===void 0?void 0:k.node)||{};M=a.customSlots[(W=B.slots)===null||W===void 0?void 0:W.title]||a.customSlots.title||D.label,typeof M=="function"&&(M=M(B))}else M=b&&D?b(D.option):D==null?void 0:D.label;return I(kt,null,[I("span",{class:"".concat(f,"-selection-search")},[I(VV,{inputRef:v,prefixCls:f,id:h,open:C,inputElement:d,disabled:m,autofocus:g,autocomplete:_,editable:i.value,activeDescendantId:y,value:o.value,onKeydown:S,onMousedown:E,onChange:function(K){t.value=!0,L(K)},onPaste:T,onCompositionstart:R,onCompositionend:N,tabindex:w,attrs:Iu(e,!0)},null)]),!r.value&&D&&!s.value&&I("span",{class:"".concat(f,"-selection-item"),title:l.value},[I(kt,{key:(c=D.key)!==null&&c!==void 0?c:D.value},[M])]),u()])}}});$x.props=eie;$x.inheritAttrs=!1;const tie=$x;function nie(n){return![ct.ESC,ct.SHIFT,ct.BACKSPACE,ct.TAB,ct.WIN_KEY,ct.ALT,ct.META,ct.WIN_KEY_RIGHT,ct.CTRL,ct.SEMICOLON,ct.EQUALS,ct.CAPS_LOCK,ct.CONTEXT_MENU,ct.F1,ct.F2,ct.F3,ct.F4,ct.F5,ct.F6,ct.F7,ct.F8,ct.F9,ct.F10,ct.F11,ct.F12].includes(n)}function jV(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,t;Xt(function(){clearTimeout(t)});function r(i){(i||e===null)&&(e=i),clearTimeout(t),t=setTimeout(function(){e=null},n)}return[function(){return e},r]}function Uv(){var n=function e(t){e.current=t};return n}var rie=be({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ie.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ie.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ie.oneOfType([ie.number,ie.string]),disabled:{type:Boolean,default:void 0},placeholder:ie.any,removeIcon:ie.any,maxTagCount:ie.oneOfType([ie.number,ie.string]),maxTagTextLength:Number,maxTagPlaceholder:ie.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(e,t){var r=t.expose,i=Uv(),o=!1,a=jV(0),s=qe(a,2),l=s[0],u=s[1],c=function(w){var b=w.which;(b===ct.UP||b===ct.DOWN)&&w.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(w),b===ct.ENTER&&e.mode==="tags"&&!o&&!e.open&&e.onSearchSubmit(w.target.value),nie(b)&&e.onToggleOpen(!0)},d=function(){u(!0)},f=null,h=function(w){e.onSearch(w,!0,o)!==!1&&e.onToggleOpen(!0)},p=function(){o=!0},v=function(w){o=!1,e.mode!=="combobox"&&h(w.target.value)},m=function(w){var b=w.target.value;if(e.tokenWithEnter&&f&&/[\r\n]/.test(f)){var S=f.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");b=b.replace(S,f)}f=null,h(b)},g=function(w){var b=w.clipboardData,S=b.getData("text");f=S},_=function(w){var b=w.target;if(b!==i.current){var S=document.body.style.msTouchAction!==void 0;S?setTimeout(function(){i.current.focus()}):i.current.focus()}},y=function(w){var b=l();w.target!==i.current&&!b&&w.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!b)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return r({focus:function(){i.current.focus()},blur:function(){i.current.blur()}}),function(){var C=e.prefixCls,w=e.domRef,b=e.mode,S={inputRef:i,onInputKeyDown:c,onInputMouseDown:d,onInputChange:m,onInputPaste:g,onInputCompositionStart:p,onInputCompositionEnd:v},E=b==="multiple"||b==="tags"?I(Jre,O(O({},e),S),null):I(tie,O(O({},e),S),null);return I("div",{ref:w,class:"".concat(C,"-selector"),onClick:_,onMousedown:y},[E])}}});const iie=rie;function oie(n,e,t){function r(i){var o,a,s,l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);var u=[(o=n[0])===null||o===void 0?void 0:o.value,(a=n[1])===null||a===void 0||(s=a.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(function(c){return c&&!c.contains(l)&&c!==l})&&t(!1)}Wt(function(){window.addEventListener("mousedown",r)}),Xt(function(){window.removeEventListener("mousedown",r)})}function aie(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=ee(!1),t,r=function(){clearTimeout(t)};Wt(function(){r()});var i=function(a,s){r(),t=setTimeout(function(){e.value=a,s&&s()},n)};return[e,i,r]}var zV=Symbol("BaseSelectContextKey");function sie(n){return qt(zV,n)}function lie(){return yt(zV,{})}const jx=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var n=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(n==null?void 0:n.substr(0,4)))};function KV(n){if(!ar(n))return Rn(n);var e=new Proxy({},{get:function(r,i,o){return Reflect.get(n.value,i,o)},set:function(r,i,o){return n.value[i]=o,!0},deleteProperty:function(r,i){return Reflect.deleteProperty(n.value,i)},has:function(r,i){return Reflect.has(n.value,i)},ownKeys:function(){return Object.keys(n.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return Rn(e)}var uie=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],cie=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],die=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ie.any,emptyOptions:Boolean}},GV=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ie.any,placeholder:ie.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ie.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ie.any,clearIcon:ie.any,removeIcon:ie.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},fie=function(){return O(O({},die()),GV())};function qV(n){return n==="tags"||n==="multiple"}const hie=be({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Wn(fie(),{showAction:[],notFoundContent:"Not Found"}),setup:function(e,t){var r=t.attrs,i=t.expose,o=t.slots,a=V(function(){return qV(e.mode)}),s=V(function(){return e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"}),l=ee(!1);Wt(function(){l.value=jx()});var u=Ux(),c=ee(null),d=Uv(),f=ee(null),h=ee(null),p=ee(null),v=aie(),m=qe(v,3),g=m[0],_=m[1],y=m[2],C=function(){var A;(A=h.value)===null||A===void 0||A.focus()},w=function(){var A;(A=h.value)===null||A===void 0||A.blur()};i({focus:C,blur:w,scrollTo:function(A){var P;return(P=p.value)===null||P===void 0?void 0:P.scrollTo(A)}});var b=V(function(){var $;if(e.mode!=="combobox")return e.searchValue;var A=($=e.displayValues[0])===null||$===void 0?void 0:$.value;return typeof A=="string"||typeof A=="number"?String(A):""}),S=e.open!==void 0?e.open:e.defaultOpen,E=ee(S),L=ee(S),T=function(A){E.value=e.open!==void 0?e.open:A,L.value=E.value};We(function(){return e.open},function(){T(e.open)});var R=V(function(){return!e.notFoundContent&&e.emptyOptions});Ft(function(){L.value=E.value,(e.disabled||R.value&&L.value&&e.mode==="combobox")&&(L.value=!1)});var N=V(function(){return R.value?!1:L.value}),D=function(A){var P=A!==void 0?A:!L.value;E.value!==P&&!e.disabled&&(T(P),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(P))},M=V(function(){return(e.tokenSeparators||[]).some(function($){return[` `,`\r -`].includes(me)})}),H=function(N,R,G){var te,re=!0,pe=N;(te=e.onActiveValueChange)===null||te===void 0||te.call(e,null);var Se=G?null:JJ(N,e.tokenSeparators);if(e.mode!=="combobox"&&Se){var fe;pe="",(fe=e.onSearchSplit)===null||fe===void 0||fe.call(e,Se),D(!1),re=!1}return e.onSearch&&C.value!==pe&&e.onSearch(pe,{source:R?"typing":"effect"}),re},k=function(N){var R;!N||!N.trim()||(R=e.onSearch)===null||R===void 0||R.call(e,N,{source:"submit"})};Ve(E,function(){!E.value&&!a.value&&e.mode!=="combobox"&&H("",!1,!1)},{immediate:!0,flush:"post"}),Ve(function(){return e.disabled},function(){L.value&&e.disabled&&T(!1)},{immediate:!0});var B=G6(),F=Ye(B,2),W=F[0],$=F[1],j=function(N){var R,G=W(),te=N.which;if(te===ct.ENTER&&(e.mode!=="combobox"&&N.preventDefault(),E.value||D(!0)),$(!!C.value),te===ct.BACKSPACE&&!G&&a.value&&!C.value&&e.displayValues.length){for(var re=Ge(e.displayValues),pe=null,Se=re.length-1;Se>=0;Se-=1){var fe=re[Se];if(!fe.disabled){re.splice(Se,1),pe=fe;break}}pe&&e.onDisplayValuesChange(re,{type:"remove",values:[pe]})}for(var de=arguments.length,le=new Array(de>1?de-1:0),ve=1;ve1?R-1:0),te=1;te1?Se-1:0),de=1;det}},render:function(){var e=this.state,t=e.dragging,r=e.visible,i=this.$props.prefixCls,o=this.getSpinHeight()+"px",a=this.getTop()+"px",s=this.showScroll(),l=s&&r;return I("div",{ref:this.scrollbarRef,class:Re("".concat(i,"-scrollbar"),U({},"".concat(i,"-scrollbar-show"),s)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[I("div",{ref:this.thumbRef,class:Re("".concat(i,"-scrollbar-thumb"),U({},"".concat(i,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function aie(n,e,t,r){var i=new Map,o=new Map,a=J(Symbol("update"));Ve(n,function(){a.value=Symbol("update")});var s=0;function l(){s+=1;var c=s;Promise.resolve().then(function(){c===s&&i.forEach(function(d,f){if(d&&d.offsetParent){var h=d.offsetHeight;o.get(f)!==h&&(a.value=Symbol("update"),o.set(f,d.offsetHeight))}})})}function u(c,d){var f=e(c),h=i.get(f);d?(i.set(f,d.$el||d),l()):i.delete(f),!h!=!d&&(d?t==null||t(c):r==null||r(c))}return[u,l,o,a]}function sie(n,e,t,r,i,o,a,s){var l;return function(u){if(u==null){s();return}Mt.cancel(l);var c=e.value,d=r.itemHeight;if(typeof u=="number")a(u);else if(u&&at(u)==="object"){var f,h=u.align;"index"in u?f=u.index:f=c.findIndex(function(g){return i(g)===u.key});var p=u.offset,v=p===void 0?0:p,m=function g(_,y){if(!(_<0||!n.value)){var b=n.value.clientHeight,w=!1,C=y;if(b){for(var S=y||h,L=0,E=0,T=0,P=Math.min(c.length,f),A=0;A<=P;A+=1){var D=i(c[A]);E=L;var M=t.get(D);T=E+(M===void 0?d:M),L=T,A===f&&M===void 0&&(w=!0)}var H=n.value.scrollTop,k=null;switch(S){case"top":k=E-v;break;case"bottom":k=T-b+v;break;default:{var B=H+b;EB&&(C="bottom")}}k!==null&&k!==H&&a(k)}l=Mt(function(){w&&o(),g(_-1,C)})}};m(5)}}}var lie=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const J6=function(n,e){var t=!1,r=null;function i(){clearTimeout(r),t=!0,r=setTimeout(function(){t=!1},50)}return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=o<0&&n.value||o>0&&e.value;return a&&s?(clearTimeout(r),t=!1):(!s||t)&&i(),!t&&s}};function uie(n,e,t,r){var i=0,o=null,a=null,s=!1,l=J6(e,t);function u(d){if(n.value){Mt.cancel(o);var f=d.deltaY;i+=f,a=f,!l(f)&&(lie||d.preventDefault(),o=Mt(function(){var h=s?10:1;r(i*h),i=0}))}}function c(d){n.value&&(s=d.detail===a)}return[u,c]}var cie=14/15;function die(n,e,t){var r=!1,i=0,o=null,a=null,s=function(){o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=function(h){if(r){var p=Math.ceil(h.touches[0].pageY),v=i-p;i=p,t(v)&&h.preventDefault(),clearInterval(a),a=setInterval(function(){v*=cie,(!t(v,!0)||Math.abs(v)<=.1)&&clearInterval(a)},16)}},u=function(){r=!1,s()},c=function(h){s(),h.touches.length===1&&!r&&(r=!0,i=Math.ceil(h.touches[0].pageY),o=h.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},d=function(){};Wt(function(){document.addEventListener("touchmove",d,{passive:!1}),Ve(n,function(f){e.value.removeEventListener("touchstart",c),s(),clearInterval(a),f&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),Zt(function(){document.removeEventListener("touchmove",d)})}var fie=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],hie=[],pie={overflowY:"auto",overflowAnchor:"none"};function vie(n,e,t,r,i,o){var a=o.getKey;return n.slice(e,t+1).map(function(s,l){var u=e+l,c=i(s,u,{}),d=a(s);return I(rie,{key:d,setRef:function(h){return r(s,h)}},{default:function(){return[c]}})})}var gie=be({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ne.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,t){var r=t.expose,i=V(function(){var Z=e.height,z=e.itemHeight,Y=e.virtual;return!!(Y!==!1&&Z&&z)}),o=V(function(){var Z=e.height,z=e.itemHeight,Y=e.data;return i.value&&Y&&z*Y.length>Z}),a=Rn({scrollTop:0,scrollMoving:!1}),s=V(function(){return e.data||hie}),l=Yt([]);Ve(s,function(){l.value=Tt(s.value).slice()},{immediate:!0});var u=Yt(function(Z){});Ve(function(){return e.itemKey},function(Z){typeof Z=="function"?u.value=Z:u.value=function(z){return z==null?void 0:z[Z]}},{immediate:!0});var c=J(),d=J(),f=J(),h=function(z){return u.value(z)},p={getKey:h};function v(Z){var z;typeof Z=="function"?z=Z(a.scrollTop):z=Z;var Y=E(z);c.value&&(c.value.scrollTop=Y),a.scrollTop=Y}var m=aie(l,h,null,null),g=Ye(m,4),_=g[0],y=g[1],b=g[2],w=g[3],C=Rn({scrollHeight:void 0,start:0,end:0,offset:void 0}),S=J(0);Wt(function(){en(function(){var Z;S.value=((Z=d.value)===null||Z===void 0?void 0:Z.offsetHeight)||0})}),Zo(function(){en(function(){var Z;S.value=((Z=d.value)===null||Z===void 0?void 0:Z.offsetHeight)||0})}),Ve([i,l],function(){i.value||fn(C,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),Ve([i,l,S,o],function(){i.value&&!o.value&&fn(C,{scrollHeight:S.value,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),Ve([o,i,function(){return a.scrollTop},l,w,function(){return e.height},S],function(){if(!(!i.value||!o.value)){for(var Z=0,z,Y,ee,K=l.value.length,oe=l.value,ie=a.scrollTop,ue=e.itemHeight,Ce=e.height,me=ie+Ce,N=0;N=ie&&(z=N,Y=Z),ee===void 0&&re>me&&(ee=N),Z=re}z===void 0&&(z=0,Y=0),ee===void 0&&(ee=K-1),ee=Math.min(ee+1,K),fn(C,{scrollHeight:Z,start:z,end:ee,offset:Y})}},{immediate:!0});var L=V(function(){return C.scrollHeight-e.height});function E(Z){var z=Z;return Number.isNaN(L.value)||(z=Math.min(z,L.value)),z=Math.max(z,0),z}var T=V(function(){return a.scrollTop<=0}),P=V(function(){return a.scrollTop>=L.value}),A=J6(T,P);function D(Z){var z=Z;v(z)}function M(Z){var z,Y=Z.currentTarget.scrollTop;Math.abs(Y-a.scrollTop)>=1&&v(Y),(z=e.onScroll)===null||z===void 0||z.call(e,Z)}var H=uie(i,T,P,function(Z){v(function(z){var Y=z+Z;return Y})}),k=Ye(H,2),B=k[0],F=k[1];die(i,c,function(Z,z){return A(Z,z)?!1:(B({preventDefault:function(){},deltaY:Z}),!0)});function W(Z){i.value&&Z.preventDefault()}var $=function(){c.value&&(c.value.removeEventListener("wheel",B,Pi?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",F),c.value.removeEventListener("MozMousePixelScroll",W))};Ft(function(){en(function(){c.value&&($(),c.value.addEventListener("wheel",B,Pi?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",F),c.value.addEventListener("MozMousePixelScroll",W))})}),Zt(function(){$()});var j=sie(c,l,b,e,h,y,v,function(){var Z;(Z=f.value)===null||Z===void 0||Z.delayHidden()});r({scrollTo:j});var X=V(function(){var Z=null;return e.height&&(Z=O(U({},e.fullHeight?"height":"maxHeight",e.height+"px"),pie),i.value&&(Z.overflowY="hidden",a.scrollMoving&&(Z.pointerEvents="none"))),Z});return Ve([function(){return C.start},function(){return C.end},l],function(){if(e.onVisibleChange){var Z=l.value.slice(C.start,C.end+1);e.onVisibleChange(Z,l.value)}},{flush:"post"}),{state:a,mergedData:l,componentStyle:X,onFallbackScroll:M,onScrollBar:D,componentRef:c,useVirtual:i,calRes:C,collectHeight:y,setInstance:_,sharedConfig:p,scrollBarRef:f,fillerInnerRef:d}},render:function(){var e=this,t=O(O({},this.$props),this.$attrs),r=t.prefixCls,i=r===void 0?"rc-virtual-list":r,o=t.height;t.itemHeight,t.fullHeight,t.data,t.itemKey,t.virtual;var a=t.component,s=a===void 0?"div":a;t.onScroll;var l=t.children,u=l===void 0?this.$slots.default:l,c=t.style,d=t.class,f=Nt(t,fie),h=Re(i,d),p=this.state.scrollTop,v=this.calRes,m=v.scrollHeight,g=v.offset,_=v.start,y=v.end,b=this.componentStyle,w=this.onFallbackScroll,C=this.onScrollBar,S=this.useVirtual,L=this.collectHeight,E=this.sharedConfig,T=this.setInstance,P=this.mergedData;return I("div",O({style:O(O({},c),{},{position:"relative"}),class:h},f),[I(s,{class:"".concat(i,"-holder"),style:b,ref:"componentRef",onScroll:w},{default:function(){return[I(nie,{prefixCls:i,height:m,offset:g,onInnerResize:L,ref:"fillerInnerRef"},{default:function(){return vie(P,_,y,T,u,E)}})]}}),S&&I(oie,{ref:"scrollBarRef",prefixCls:i,scrollTop:p,height:o,scrollHeight:m,count:P.length,onScroll:C,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}});const eH=gie;function mie(n,e,t){var r=J(n());return Ve(e,function(i,o){t?t(i,o)&&(r.value=n()):r.value=n()}),r}function _ie(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var tH=Symbol("SelectContextKey");function yie(n){return qt(tH,n)}function bie(){return yt(tH,{})}var Cie=["disabled","title","children","style","class","className"];function mM(n){return typeof n=="string"||typeof n=="number"}var wie=be({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,t){var r=t.expose,i=t.slots,o=Xre(),a=bie(),s=V(function(){return"".concat(o.prefixCls,"-item")}),l=mie(function(){return a.flattenOptions},[function(){return o.open},function(){return a.flattenOptions}],function(C){return C[0]}),u=Bv(),c=function(S){S.preventDefault()},d=function(S){u.current&&u.current.scrollTo(typeof S=="number"?{index:S}:S)},f=function(S){for(var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,E=l.value.length,T=0;T1&&arguments[1]!==void 0?arguments[1]:!1;h.activeIndex=S;var E={source:L?"keyboard":"mouse"},T=l.value[S];if(!T){a.onActiveValue(null,-1,E);return}a.onActiveValue(T.value,S,E)};Ve([function(){return l.value.length},function(){return o.searchValue}],function(){p(a.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});var v=function(S){return a.rawValues.has(S)&&o.mode!=="combobox"};Ve([function(){return o.open},function(){return o.searchValue}],function(){if(!o.multiple&&o.open&&a.rawValues.size===1){var C=Array.from(a.rawValues)[0],S=Tt(l.value).findIndex(function(L){var E=L.data;return E[a.fieldNames.value]===C});S!==-1&&(p(S),en(function(){d(S)}))}o.open&&en(function(){var L;(L=u.current)===null||L===void 0||L.scrollTo(void 0)})},{immediate:!0,flush:"post"});var m=function(S){S!==void 0&&a.onSelect(S,{selected:!a.rawValues.has(S)}),o.multiple||o.toggleOpen(!1)},g=function(S){return typeof S.label=="function"?S.label():S.label};function _(C){var S=l.value[C];if(!S)return null;var L=S.data||{},E=L.value,T=S.group,P=Iu(L,!0),A=g(S);return S?I("div",O(O({"aria-label":typeof A=="string"&&!T?A:null},P),{},{key:C,role:T?"presentation":"option",id:"".concat(o.id,"_list_").concat(C),"aria-selected":v(E)}),[E]):null}var y=function(S){var L=S.which,E=S.ctrlKey;switch(L){case ct.N:case ct.P:case ct.UP:case ct.DOWN:{var T=0;if(L===ct.UP?T=-1:L===ct.DOWN?T=1:_ie()&&E&&(L===ct.N?T=1:L===ct.P&&(T=-1)),T!==0){var P=f(h.activeIndex+T,T);d(P),p(P,!0)}break}case ct.ENTER:{var A=l.value[h.activeIndex];A&&!A.data.disabled?m(A.value):m(void 0),o.open&&S.preventDefault();break}case ct.ESC:o.toggleOpen(!1),o.open&&S.stopPropagation()}},b=function(){},w=function(S){d(S)};return r({onKeydown:y,onKeyup:b,scrollTo:w}),function(){var C=o.id,S=o.notFoundContent,L=o.onPopupScroll,E=a.menuItemSelectedIcon,T=a.fieldNames,P=a.virtual,A=a.listHeight,D=a.listItemHeight,M=i.option,H=h.activeIndex,k=Object.keys(T).map(function(B){return T[B]});return l.value.length===0?I("div",{role:"listbox",id:"".concat(C,"_list"),class:"".concat(s.value,"-empty"),onMousedown:c},[S]):I(kt,null,[I("div",{role:"listbox",id:"".concat(C,"_list"),style:{height:0,width:0,overflow:"hidden"}},[_(H-1),_(H),_(H+1)]),I(eH,{itemKey:"key",ref:u,data:l.value,height:A,itemHeight:D,fullHeight:!1,onMousedown:c,onScroll:L,virtual:P},{default:function(F,W){var $,j=F.group,X=F.groupOption,Z=F.data,z=F.value,Y=Z.key,ee=typeof F.label=="function"?F.label():F.label;if(j){var K,oe=(K=Z.title)!==null&&K!==void 0?K:mM(ee)&ⅇreturn I("div",{class:Re(s.value,"".concat(s.value,"-group")),title:oe},[M?M(Z):ee!==void 0?ee:Y])}var ie=Z.disabled,ue=Z.title;Z.children;var Ce=Z.style,me=Z.class,N=Z.className,R=Nt(Z,Cie),G=nr(R,k),te=v(z),re="".concat(s.value,"-option"),pe=Re(s.value,re,me,N,($={},U($,"".concat(re,"-grouped"),X),U($,"".concat(re,"-active"),H===W&&!ie),U($,"".concat(re,"-disabled"),ie),U($,"".concat(re,"-selected"),te),$)),Se=g(F),fe=!E||typeof E=="function"||te,de=typeof Se=="number"?Se:Se||z,le=mM(de)?de.toString():void 0;return ue!==void 0&&(le=ue),I("div",O(O({},G),{},{"aria-selected":te,class:pe,title:le,onMousemove:function(Ae){R.onMousemove&&R.onMousemove(Ae),!(H===W||ie)&&p(W)},onClick:function(Ae){ie||m(z),R.onClick&&R.onClick(Ae)},style:Ce}),[I("div",{class:"".concat(re,"-content")},[M?M(Z):de]),ni(E)||te,fe&&I(my,{class:"".concat(s.value,"-option-state"),customizeIcon:E,customizeIconProps:{isSelected:te}},{default:function(){return[te?"✓":null]}})])}})])}}});const Sie=wie;var Eie=["value","disabled"];function Lie(n){var e=n.key,t=n.children,r=n.props,i=r.value,o=r.disabled,a=Nt(r,Eie),s=t==null?void 0:t.default;return O({key:e,value:i!==void 0?i:e,children:s,disabled:o||o===""},a)}function nH(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=sr(n).map(function(r,i){var o;if(!ni(r)||!r.type)return null;var a=r.type.isSelectOptGroup,s=r.key,l=r.children,u=r.props;if(e||!a)return Lie(r);var c=l&&l.default?l.default():void 0,d=(u==null?void 0:u.label)||((o=l.label)===null||o===void 0?void 0:o.call(l))||s;return O(O({key:"__RC_SELECT_GRP__".concat(s===null?i:String(s),"__")},u),{},{label:d,options:nH(c||[])})}).filter(function(r){return r});return t}function Iie(n,e,t){var r=Yt(),i=Yt(),o=Yt(),a=Yt([]);return Ve([n,e],function(){n.value?a.value=Tt(n.value).slice():a.value=nH(e.value)},{immediate:!0,deep:!0}),Ft(function(){var s=a.value,l=new Map,u=new Map,c=t.value;function d(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p0&&arguments[0]!==void 0?arguments[0]:J(""),e="rc_select_".concat(xie());return n.value||e}function rH(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}function tw(n,e){return rH(n).join("").toUpperCase().includes(e)}const Nie=function(n,e,t,r,i){return V(function(){var o=t.value,a=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!o||s===!1)return n.value;var l=e.value,u=l.options,c=l.label,d=l.value,f=[],h=typeof s=="function",p=o.toUpperCase(),v=h?s:function(g,_){return a?tw(_[a],p):_[u]?tw(_[c!=="children"?c:"label"],p):tw(_[d],p)},m=h?function(g){return U1(g)}:function(g){return g};return n.value.forEach(function(g){if(g[u]){var _=v(o,m(g));if(_)f.push(g);else{var y=g[u].filter(function(b){return v(o,m(b))});y.length&&f.push(O(O({},g),{},U({},u,y)))}return}v(o,m(g))&&f.push(g)}),f})},Aie=function(n,e){var t=Yt({values:new Map,options:new Map}),r=V(function(){var o=t.value,a=o.values,s=o.options,l=n.value.map(function(d){if(d.label===void 0){var f;return O(O({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.value.get(d.value)||s.get(d.value))}),t.value.values=u,t.value.options=c,l}),i=function(a){return e.value.get(a)||t.value.options.get(a)};return[r,i]};function th(n,e){var t=e||{},r=t.defaultValue,i=t.value,o=i===void 0?J():i,a=typeof n=="function"?n():n;o.value!==void 0&&(a=vr(o)),r!==void 0&&(a=typeof r=="function"?r():r);var s=J(a),l=J(a);Ft(function(){var c=o.value!==void 0?o.value:s.value;e.postState&&(c=e.postState(c)),l.value=c});function u(c){var d=l.value;s.value=c,Tt(l.value)!==c&&e.onChange&&e.onChange(c,d)}return Ve(o,function(){s.value=o.value}),[l,u]}function er(n){var e=typeof n=="function"?n():n,t=J(e);function r(i){t.value=i}return[t,r]}var Die=["inputValue"];function iH(){return O(O({},X6()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ne.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ne.any,defaultValue:ne.any,onChange:Function,children:Array})}function Rie(n){return!n||at(n)!=="object"}const Pie=be({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:Wn(iH(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,t){var r=t.expose,i=t.attrs,o=t.slots,a=Oie(vn(e,"id")),s=V(function(){return Z6(e.mode)}),l=V(function(){return!!(!e.options&&e.children)}),u=V(function(){return e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption}),c=V(function(){return y6(e.fieldNames,l.value)}),d=th("",{value:V(function(){return e.searchValue!==void 0?e.searchValue:e.inputValue}),postState:function(de){return de||""}}),f=Ye(d,2),h=f[0],p=f[1],v=Iie(vn(e,"options"),vn(e,"children"),c),m=v.valueOptions,g=v.labelOptions,_=v.options,y=function(de){var le=rH(de);return le.map(function(ve){var Ae,Ie,se,ge;if(Rie(ve))Ae=ve;else{var _e;se=ve.key,Ie=ve.label,Ae=(_e=ve.value)!==null&&_e!==void 0?_e:se}var ce=m.value.get(Ae);if(ce){var Pe;Ie===void 0&&(Ie=ce==null?void 0:ce[e.optionLabelProp||c.value.label]),se===void 0&&(se=(Pe=ce==null?void 0:ce.key)!==null&&Pe!==void 0?Pe:Ae),ge=ce==null?void 0:ce.disabled}return{label:Ie,value:Ae,key:se,disabled:ge,option:ce}})},b=th(e.defaultValue,{value:vn(e,"value")}),w=Ye(b,2),C=w[0],S=w[1],L=V(function(){var fe,de=y(C.value);return e.mode==="combobox"&&!((fe=de[0])!==null&&fe!==void 0&&fe.value)?[]:de}),E=Aie(L,m),T=Ye(E,2),P=T[0],A=T[1],D=V(function(){if(!e.mode&&P.value.length===1){var fe=P.value[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return[]}return P.value.map(function(de){var le;return O(O({},de),{},{label:(le=typeof de.label=="function"?de.label():de.label)!==null&&le!==void 0?le:de.value})})}),M=V(function(){return new Set(P.value.map(function(fe){return fe.value}))});Ft(function(){if(e.mode==="combobox"){var fe,de=(fe=P.value[0])===null||fe===void 0?void 0:fe.value;de!=null&&p(String(de))}},{flush:"post"});var H=function(de,le){var ve,Ae=le??de;return ve={},U(ve,c.value.value,de),U(ve,c.value.label,Ae),ve},k=Yt();Ft(function(){if(e.mode!=="tags"){k.value=_.value;return}var fe=_.value.slice(),de=function(ve){return m.value.has(ve)};Ge(P.value).sort(function(le,ve){return le.value2&&arguments[2]!==void 0?arguments[2]:{},Ae=ve.source,Ie=Ae===void 0?"keyboard":Ae;ie(le),e.backfill&&e.mode==="combobox"&&de!==null&&Ie==="keyboard"&&Y(String(de))},me=function(de,le){var ve=function(){var ye,Ee=A(de),xe=Ee==null?void 0:Ee[c.value.label];return[e.labelInValue?{label:typeof xe=="function"?xe():xe,originLabel:xe,value:de,key:(ye=Ee==null?void 0:Ee.key)!==null&&ye!==void 0?ye:de}:de,U1(Ee)]};if(le&&e.onSelect){var Ae=ve(),Ie=Ye(Ae,2),se=Ie[0],ge=Ie[1];e.onSelect(se,ge)}else if(!le&&e.onDeselect){var _e=ve(),ce=Ye(_e,2),Pe=ce[0],qe=ce[1];e.onDeselect(Pe,qe)}},N=function(de,le){var ve,Ae=s.value?le.selected:!0;Ae?ve=s.value?[].concat(Ge(P.value),[de]):[de]:ve=P.value.filter(function(Ie){return Ie.value!==de}),j(ve),me(de,Ae),e.mode==="combobox"?Y(""):(!s.value||e.autoClearSearchValue)&&(p(""),Y(""))},R=function(de,le){j(de),(le.type==="remove"||le.type==="clear")&&le.values.forEach(function(ve){me(ve.value,!1)})},G=function(de,le){if(p(de),Y(null),le.source==="submit"){var ve=(de||"").trim();if(ve){var Ae=Array.from(new Set([].concat(Ge(M.value),[ve])));j(Ae),me(ve,!0),p("")}return}if(le.source!=="blur"){var Ie;e.mode==="combobox"&&j(de),(Ie=e.onSearch)===null||Ie===void 0||Ie.call(e,de)}},te=function(de){var le=de;e.mode!=="tags"&&(le=de.map(function(Ae){var Ie=g.value.get(Ae);return Ie==null?void 0:Ie.value}).filter(function(Ae){return Ae!==void 0}));var ve=Array.from(new Set([].concat(Ge(M.value),Ge(le))));j(ve),ve.forEach(function(Ae){me(Ae,!0)})},re=V(function(){return e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1});yie(Y6(O(O({},v),{},{flattenOptions:$,onActiveValue:Ce,defaultActiveFirstOption:ue,onSelect:N,menuItemSelectedIcon:vn(e,"menuItemSelectedIcon"),rawValues:M,fieldNames:c,virtual:re,listHeight:vn(e,"listHeight"),listItemHeight:vn(e,"listItemHeight"),childrenAsData:l})));var pe=J();r({focus:function(){var de;(de=pe.value)===null||de===void 0||de.focus()},blur:function(){var de;(de=pe.value)===null||de===void 0||de.blur()},scrollTo:function(de){var le;(le=pe.value)===null||le===void 0||le.scrollTo(de)}});var Se=V(function(){return nr(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return I(tie,O(O(O({},Se.value),i),{},{id:a,prefixCls:e.prefixCls,ref:pe,omitDomProps:Die,mode:e.mode,displayValues:D.value,onDisplayValuesChange:R,searchValue:h.value,onSearch:G,onSearchSplit:te,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Sie,emptyOptions:!$.value.length,activeValue:z.value,activeDescendantId:"".concat(a,"_list_").concat(oe.value)}),o)}}});var Kx=function(){return null};Kx.isSelectOption=!0;Kx.displayName="ASelectOption";const Mie=Kx;var Gx=function(){return null};Gx.isSelectOptGroup=!0;Gx.displayName="ASelectOptGroup";const kie=Gx;var Fie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Bie=Fie;function yM(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},t=n.loading,r=n.multiple,i=n.prefixCls,o=n.suffixIcon||e.suffixIcon&&e.suffixIcon(),a=n.clearIcon||e.clearIcon&&e.clearIcon(),s=n.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),l=n.removeIcon||e.removeIcon&&e.removeIcon(),u=a;a||(u=I(Tg,null,null));var c=null;if(o!==void 0)c=o;else if(t)c=I(_u,{spin:!0},null);else{var d="".concat(i,"-suffix");c=function(v){var m=v.open,g=v.showSearch;return m&&g?I(Zx,{class:d},null):I(rC,{class:d},null)}}var f=null;s!==void 0?f=s:r?f=I(oH,null,null):f=null;var h=null;return l!==void 0?h=l:h=I(xg,null,null),{clearIcon:u,suffixIcon:c,itemIcon:f,removeIcon:h}}var _y=Symbol("ContextProps"),yy=Symbol("InternalContextProps"),Gie=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V(function(){return!0}),r=J(new Map),i=function(s,l){r.value.set(s,l),r.value=new Map(r.value)},o=function(s){r.value.delete(s),r.value=new Map(r.value)};Ve([t,r],function(){}),qt(_y,e),qt(yy,{addFormItemField:i,removeFormItemField:o})},J1={id:V(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},eE={addFormItemField:function(){},removeFormItemField:function(){}},hs=function(){var e=yt(yy,eE),t=Symbol("FormItemFieldKey"),r=Rr();return e.addFormItemField(t,r.type),Zt(function(){e.removeFormItemField(t)}),qt(yy,eE),qt(_y,J1),yt(_y,J1)};const tE=be({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,t){var r=t.slots;return qt(yy,eE),qt(_y,J1),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});var Qx=function(){return O(O({},nr(iH(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:ne.any,suffixIcon:ne.any,itemIcon:ne.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},wM="SECRET_COMBOBOX_MODE_DO_NOT_USE",Fa=be({compatConfig:{MODE:3},name:"ASelect",Option:Mie,OptGroup:kie,inheritAttrs:!1,props:Wn(Qx(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:wM,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,t){var r=t.attrs,i=t.emit,o=t.slots,a=t.expose,s=J(),l=hs(),u=function(){var T;(T=s.value)===null||T===void 0||T.focus()},c=function(){var T;(T=s.value)===null||T===void 0||T.blur()},d=function(T){var P;(P=s.value)===null||P===void 0||P.scrollTo(T)},f=V(function(){var E=e.mode;if(E!=="combobox")return E===wM?"combobox":E}),h=St("select",e),p=h.prefixCls,v=h.direction,m=h.configProvider,g=h.size,_=h.getPrefixCls,y=V(function(){return _()}),b=V(function(){return Av(y.value,"slide-up",e.transitionName)}),w=V(function(){var E;return Re((E={},U(E,"".concat(p.value,"-lg"),g.value==="large"),U(E,"".concat(p.value,"-sm"),g.value==="small"),U(E,"".concat(p.value,"-rtl"),v.value==="rtl"),U(E,"".concat(p.value,"-borderless"),!e.bordered),E))}),C=function(){for(var T=arguments.length,P=new Array(T),A=0;A=1},subscribe:function(e){return ju.size||this.register(),iw+=1,ju.set(iw,e),e(Tm),iw},unsubscribe:function(e){ju.delete(e),ju.size||this.unregister()},unregister:function(){var e=this;Object.keys(Im).forEach(function(t){var r=Im[t],i=e.matchHandlers[r];i==null||i.mql.removeListener(i==null?void 0:i.listener)}),ju.clear()},register:function(){var e=this;Object.keys(Im).forEach(function(t){var r=Im[t],i=function(s){var l=s.matches;e.dispatch(O(O({},Tm),{},U({},t,l)))},o=window.matchMedia(r);o.addListener(i),e.matchHandlers[r]={mql:o,listener:i},i(o)})}};function tO(){var n=J({}),e=null;return Wt(function(){e=Cy.subscribe(function(t){n.value=t})}),Ia(function(){Cy.unsubscribe(e)}),n}var Zie=Symbol("SizeProvider"),Qie=function(e){var t=e?V(function(){return e.size}):yt(Zie,V(function(){return"default"}));return t};function Wo(n){var e=Yt();return Ft(function(){e.value=n()},{flush:"sync"}),e}var Po={adjustX:1,adjustY:1},Mo=[0,0],aH={left:{points:["cr","cl"],overflow:Po,offset:[-4,0],targetOffset:Mo},right:{points:["cl","cr"],overflow:Po,offset:[4,0],targetOffset:Mo},top:{points:["bc","tc"],overflow:Po,offset:[0,-4],targetOffset:Mo},bottom:{points:["tc","bc"],overflow:Po,offset:[0,4],targetOffset:Mo},topLeft:{points:["bl","tl"],overflow:Po,offset:[0,-4],targetOffset:Mo},leftTop:{points:["tr","tl"],overflow:Po,offset:[-4,0],targetOffset:Mo},topRight:{points:["br","tr"],overflow:Po,offset:[0,-4],targetOffset:Mo},rightTop:{points:["tl","tr"],overflow:Po,offset:[4,0],targetOffset:Mo},bottomRight:{points:["tr","br"],overflow:Po,offset:[0,4],targetOffset:Mo},rightBottom:{points:["bl","br"],overflow:Po,offset:[4,0],targetOffset:Mo},bottomLeft:{points:["tl","bl"],overflow:Po,offset:[0,4],targetOffset:Mo},leftBottom:{points:["br","bl"],overflow:Po,offset:[-4,0],targetOffset:Mo}},Jie={prefixCls:String,id:String,overlayInnerStyle:ne.any};const eoe=be({compatConfig:{MODE:3},name:"Content",props:Jie,slots:["overlay"],setup:function(e,t){var r=t.slots;return function(){var i;return I("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(i=r.overlay)===null||i===void 0?void 0:i.call(r)])}}});var toe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function SM(){}const noe=be({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ne.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ne.string.def("right"),transitionName:String,animation:ne.any,afterVisibleChange:ne.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ne.string.def("rc-tooltip"),mouseEnterDelay:ne.number.def(.1),mouseLeaveDelay:ne.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ne.object.def(function(){return{}}),arrowContent:ne.any.def(null),tipId:String,builtinPlacements:ne.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=J(),s=function(){var f=e.prefixCls,h=e.tipId,p=e.overlayInnerStyle;return[I("div",{class:"".concat(f,"-arrow"),key:"arrow"},[Ya(r,e,"arrowContent")]),I(eoe,{key:"content",prefixCls:f,id:h,overlayInnerStyle:p},{overlay:r.overlay})]},l=function(){return a.value.getPopupDomNode()};o({getPopupDomNode:l,triggerDOM:a,forcePopupAlign:function(){var f;return(f=a.value)===null||f===void 0?void 0:f.forcePopupAlign()}});var u=J(!1),c=J(!1);return Ft(function(){var d=e.destroyTooltipOnHide;if(typeof d=="boolean")u.value=d;else if(d&&at(d)==="object"){var f=d.keepParent;u.value=f===!0,c.value=f===!1}}),function(){var d=e.overlayClassName,f=e.trigger,h=e.mouseEnterDelay,p=e.mouseLeaveDelay,v=e.overlayStyle,m=e.prefixCls,g=e.afterVisibleChange,_=e.transitionName,y=e.animation,b=e.placement,w=e.align;e.destroyTooltipOnHide;var C=e.defaultVisible,S=Nt(e,toe),L=O({},S);e.visible!==void 0&&(L.popupVisible=e.visible);var E=O(O(O({popupClassName:d,prefixCls:m,action:f,builtinPlacements:aH,popupPlacement:b,popupAlign:w,afterPopupVisibleChange:g,popupTransitionName:_,popupAnimation:y,defaultPopupVisible:C,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:p,popupStyle:v,mouseEnterDelay:h},L),i),{},{onPopupVisibleChange:e.onVisibleChange||SM,onPopupAlign:e.onPopupAlign||SM,ref:a,popup:s()});return I(Jb,E,{default:r.default})}}});Si("success","processing","error","default","warning");var roe=Si("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const ioe=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var ooe={adjustX:1,adjustY:1},EM={adjustX:0,adjustY:0},aoe=[0,0];function LM(n){return typeof n=="boolean"?n?ooe:EM:O(O({},EM),n)}function sH(n){var e=n.arrowWidth,t=e===void 0?4:e,r=n.horizontalArrowShift,i=r===void 0?16:r,o=n.verticalArrowShift,a=o===void 0?8:o,s=n.autoAdjustOverflow,l=n.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+t)]},topRight:{points:["br","tc"],offset:[i+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+t)]},bottomRight:{points:["tr","bc"],offset:[i+t,4]},rightBottom:{points:["bl","cr"],offset:[4,a+t]},bottomLeft:{points:["tl","bc"],offset:[-(i+t),4]},leftBottom:{points:["br","cl"],offset:[-4,a+t]}};return Object.keys(u).forEach(function(c){u[c]=l?O(O({},u[c]),{},{overflow:LM(s),targetOffset:aoe}):O(O({},aH[c]),{},{overflow:LM(s)}),u[c].ignoreShake=!0}),u}function wy(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,t=n.length;e=0||E.indexOf("Bottom")>=0?P.top="".concat(T.height-S.offset[1],"px"):(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(P.top="".concat(-S.offset[1],"px")),E.indexOf("left")>=0||E.indexOf("Right")>=0?P.left="".concat(T.width-S.offset[0],"px"):(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(P.left="".concat(-S.offset[0],"px")),C.style.transformOrigin="".concat(P.left," ").concat(P.top)}};return function(){var w,C,S,L=e.openClassName,E=e.color,T=e.overlayClassName,P=(w=To((C=r.default)===null||C===void 0?void 0:C.call(r)))!==null&&w!==void 0?w:null;P=P.length===1?P[0]:P;var A=c.value;if(e.visible===void 0&&h()&&(A=!1),!P)return null;var D=_(ni(P)?P:I("span",null,[P])),M=Re((S={},U(S,L||"".concat(l.value,"-open"),!0),U(S,D.props&&D.props.class,D.props&&D.props.class),S)),H=Re(T,U({},"".concat(l.value,"-").concat(E),E&&IM.test(E))),k,B;E&&!IM.test(E)&&(k={backgroundColor:E},B={backgroundColor:E});var F=O(O(O({},o),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:m.value,visible:A,ref:d,overlayClassName:H,overlayInnerStyle:k,onVisibleChange:p,onPopupAlign:b});return I(noe,F,{default:function(){return[c.value?Fn(D,{class:M}):D]},arrowContent:function(){return I("span",{class:"".concat(l.value,"-arrow-content"),style:B},null)},overlay:y})}}}),iC=Lu(uoe);var Pd={adjustX:1,adjustY:1},Md=[0,0],coe={topLeft:{points:["bl","tl"],overflow:Pd,offset:[0,-4],targetOffset:Md},topCenter:{points:["bc","tc"],overflow:Pd,offset:[0,-4],targetOffset:Md},topRight:{points:["br","tr"],overflow:Pd,offset:[0,-4],targetOffset:Md},bottomLeft:{points:["tl","bl"],overflow:Pd,offset:[0,4],targetOffset:Md},bottomCenter:{points:["tc","bc"],overflow:Pd,offset:[0,4],targetOffset:Md},bottomRight:{points:["tr","br"],overflow:Pd,offset:[0,4],targetOffset:Md}};const doe=coe;var foe=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const lH=be({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ne.string.def("rc-dropdown"),transitionName:String,overlayClassName:ne.string.def(""),openClassName:String,animation:ne.any,align:ne.object,overlayStyle:{type:Object,default:void 0},placement:ne.string.def("bottomLeft"),overlay:ne.any,trigger:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ne.array,hideAction:ne.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ne.number.def(.15),mouseLeaveDelay:ne.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.expose,a=J(!!e.visible);Ve(function(){return e.visible},function(p){p!==void 0&&(a.value=p)});var s=J();o({triggerRef:s});var l=function(v){e.visible===void 0&&(a.value=!1),i("overlayClick",v)},u=function(v){e.visible===void 0&&(a.value=v),i("visibleChange",v)},c=function(){var v,m=(v=r.overlay)===null||v===void 0?void 0:v.call(r),g={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:l,getPopupContainer:function(){return s.value.getPopupDomNode()}};return I(kt,null,[e.arrow&&I("div",{class:"".concat(e.prefixCls,"-arrow")},null),Fn(m,g,!1)])},d=V(function(){var p=e.minOverlayWidthMatchTrigger,v=p===void 0?!e.alignPoint:p;return v}),f=function(){var v,m=(v=r.default)===null||v===void 0?void 0:v.call(r);return a.value&&m?Fn(m[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):m},h=V(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var p=e.prefixCls,v=e.arrow,m=e.showAction,g=e.overlayStyle,_=e.trigger,y=e.placement,b=e.align,w=e.getPopupContainer,C=e.transitionName,S=e.animation,L=e.overlayClassName,E=Nt(e,foe);return I(Jb,O(O({},E),{},{prefixCls:p,ref:s,popupClassName:Re(L,U({},"".concat(p,"-show-arrow"),v)),popupStyle:g,builtinPlacements:doe,action:_,showAction:m,hideAction:h.value||[],popupPlacement:y,popupAlign:b,popupTransitionName:C,popupAnimation:S,popupVisible:a.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:w}),{popup:c,default:f})}}});var ow={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},aw={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},of=[],af=[];function hoe(){var n=document.createElement("div"),e=n.style;"AnimationEvent"in window||(delete ow.animationstart.animation,delete aw.animationend.animation),"TransitionEvent"in window||(delete ow.transitionstart.transition,delete aw.transitionend.transition);function t(r,i){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];for(var s in a)if(s in e){i.push(a[s]);break}}}t(ow,of),t(aw,af)}typeof window<"u"&&typeof document<"u"&&hoe();function TM(n,e,t){n.addEventListener(e,t,!1)}function xM(n,e,t){n.removeEventListener(e,t,!1)}var xm={startEvents:of,addStartEventListener:function(e,t){if(of.length===0){setTimeout(t,0);return}of.forEach(function(r){TM(e,r,t)})},removeStartEventListener:function(e,t){of.length!==0&&of.forEach(function(r){xM(e,r,t)})},endEvents:af,addEndEventListener:function(e,t){if(af.length===0){setTimeout(t,0);return}af.forEach(function(r){TM(e,r,t)})},removeEndEventListener:function(e,t){af.length!==0&&af.forEach(function(r){xM(e,r,t)})}},ml;function OM(n){return!n||n.offsetParent===null}function poe(n){var e=(n||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}const voe=be({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,t){var r=t.slots,i=t.expose,o=Rr(),a=St("",e),s=a.csp,l=a.prefixCls;i({csp:s});var u=null,c=null,d=null,f=!1,h=null,p=!1,v=function(C){if(!p){var S=Lc(o);!C||C.target!==S||f||y(S)}},m=function(C){!C||C.animationName!=="fadeEffect"||y(C.target)},g=function(){var C=e.insertExtraNode;return C?"".concat(l.value,"-click-animating"):"".concat(l.value,"-click-animating-without-extra-node")},_=function(C,S){var L=e.insertExtraNode,E=e.disabled;if(!(E||!C||OM(C)||C.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var T=g();if(C.removeAttribute(T),C.setAttribute(T,"true"),ml=ml||document.createElement("style"),S&&S!=="#ffffff"&&S!=="rgb(255, 255, 255)"&&poe(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&S!=="transparent"){var P;(P=s.value)!==null&&P!==void 0&&P.nonce&&(ml.nonce=s.value.nonce),h.style.borderColor=S,ml.innerHTML=` +`].includes($)})}),H=function(A,P,Q){var re,le=!0,me=A;(re=e.onActiveValueChange)===null||re===void 0||re.call(e,null);var ge=Q?null:XJ(A,e.tokenSeparators);if(e.mode!=="combobox"&&ge){var he;me="",(he=e.onSearchSplit)===null||he===void 0||he.call(e,ge),D(!1),le=!1}return e.onSearch&&b.value!==me&&e.onSearch(me,{source:P?"typing":"effect"}),le},k=function(A){var P;!A||!A.trim()||(P=e.onSearch)===null||P===void 0||P.call(e,A,{source:"submit"})};We(L,function(){!L.value&&!a.value&&e.mode!=="combobox"&&H("",!1,!1)},{immediate:!0,flush:"post"}),We(function(){return e.disabled},function(){E.value&&e.disabled&&T(!1)},{immediate:!0});var W=jV(),F=qe(W,2),B=F[0],j=F[1],K=function(A){var P,Q=B(),re=A.which;if(re===ct.ENTER&&(e.mode!=="combobox"&&A.preventDefault(),L.value||D(!0)),j(!!b.value),re===ct.BACKSPACE&&!Q&&a.value&&!b.value&&e.displayValues.length){for(var le=Ge(e.displayValues),me=null,ge=le.length-1;ge>=0;ge-=1){var he=le[ge];if(!he.disabled){le.splice(ge,1),me=he;break}}me&&e.onDisplayValuesChange(le,{type:"remove",values:[me]})}for(var ue=arguments.length,_e=new Array(ue>1?ue-1:0),fe=1;fe1?P-1:0),re=1;re1?ge-1:0),ue=1;uet}},render:function(){var e=this.state,t=e.dragging,r=e.visible,i=this.$props.prefixCls,o=this.getSpinHeight()+"px",a=this.getTop()+"px",s=this.showScroll(),l=s&&r;return I("div",{ref:this.scrollbarRef,class:Ne("".concat(i,"-scrollbar"),U({},"".concat(i,"-scrollbar-show"),s)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[I("div",{ref:this.thumbRef,class:Ne("".concat(i,"-scrollbar-thumb"),U({},"".concat(i,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function _ie(n,e,t,r){var i=new Map,o=new Map,a=ee(Symbol("update"));We(n,function(){a.value=Symbol("update")});var s=0;function l(){s+=1;var c=s;Promise.resolve().then(function(){c===s&&i.forEach(function(d,f){if(d&&d.offsetParent){var h=d.offsetHeight;o.get(f)!==h&&(a.value=Symbol("update"),o.set(f,d.offsetHeight))}})})}function u(c,d){var f=e(c),h=i.get(f);d?(i.set(f,d.$el||d),l()):i.delete(f),!h!=!d&&(d?t==null||t(c):r==null||r(c))}return[u,l,o,a]}function yie(n,e,t,r,i,o,a,s){var l;return function(u){if(u==null){s();return}Mt.cancel(l);var c=e.value,d=r.itemHeight;if(typeof u=="number")a(u);else if(u&&at(u)==="object"){var f,h=u.align;"index"in u?f=u.index:f=c.findIndex(function(g){return i(g)===u.key});var p=u.offset,v=p===void 0?0:p,m=function g(_,y){if(!(_<0||!n.value)){var C=n.value.clientHeight,w=!1,b=y;if(C){for(var S=y||h,E=0,L=0,T=0,R=Math.min(c.length,f),N=0;N<=R;N+=1){var D=i(c[N]);L=E;var M=t.get(D);T=L+(M===void 0?d:M),E=T,N===f&&M===void 0&&(w=!0)}var H=n.value.scrollTop,k=null;switch(S){case"top":k=L-v;break;case"bottom":k=T-C+v;break;default:{var W=H+C;LW&&(b="bottom")}}k!==null&&k!==H&&a(k)}l=Mt(function(){w&&o(),g(_-1,b)})}};m(5)}}}var bie=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Cie=bie,XV=function(n,e){var t=!1,r=null;function i(){clearTimeout(r),t=!0,r=setTimeout(function(){t=!1},50)}return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=o<0&&n.value||o>0&&e.value;return a&&s?(clearTimeout(r),t=!1):(!s||t)&&i(),!t&&s}};function wie(n,e,t,r){var i=0,o=null,a=null,s=!1,l=XV(e,t);function u(d){if(n.value){Mt.cancel(o);var f=d.deltaY;i+=f,a=f,!l(f)&&(Cie||d.preventDefault(),o=Mt(function(){var h=s?10:1;r(i*h),i=0}))}}function c(d){n.value&&(s=d.detail===a)}return[u,c]}var Sie=14/15;function Eie(n,e,t){var r=!1,i=0,o=null,a=null,s=function(){o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=function(h){if(r){var p=Math.ceil(h.touches[0].pageY),v=i-p;i=p,t(v)&&h.preventDefault(),clearInterval(a),a=setInterval(function(){v*=Sie,(!t(v,!0)||Math.abs(v)<=.1)&&clearInterval(a)},16)}},u=function(){r=!1,s()},c=function(h){s(),h.touches.length===1&&!r&&(r=!0,i=Math.ceil(h.touches[0].pageY),o=h.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},d=function(){};Wt(function(){document.addEventListener("touchmove",d,{passive:!1}),We(n,function(f){e.value.removeEventListener("touchstart",c),s(),clearInterval(a),f&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),Xt(function(){document.removeEventListener("touchmove",d)})}var Lie=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],Iie=[],Tie={overflowY:"auto",overflowAnchor:"none"};function xie(n,e,t,r,i,o){var a=o.getKey;return n.slice(e,t+1).map(function(s,l){var u=e+l,c=i(s,u,{}),d=a(s);return I(vie,{key:d,setRef:function(h){return r(s,h)}},{default:function(){return[c]}})})}var Oie=be({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ie.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,t){var r=t.expose,i=V(function(){var Z=e.height,z=e.itemHeight,Y=e.virtual;return!!(Y!==!1&&Z&&z)}),o=V(function(){var Z=e.height,z=e.itemHeight,Y=e.data;return i.value&&Y&&z*Y.length>Z}),a=Rn({scrollTop:0,scrollMoving:!1}),s=V(function(){return e.data||Iie}),l=Zt([]);We(s,function(){l.value=Tt(s.value).slice()},{immediate:!0});var u=Zt(function(Z){});We(function(){return e.itemKey},function(Z){typeof Z=="function"?u.value=Z:u.value=function(z){return z==null?void 0:z[Z]}},{immediate:!0});var c=ee(),d=ee(),f=ee(),h=function(z){return u.value(z)},p={getKey:h};function v(Z){var z;typeof Z=="function"?z=Z(a.scrollTop):z=Z;var Y=L(z);c.value&&(c.value.scrollTop=Y),a.scrollTop=Y}var m=_ie(l,h,null,null),g=qe(m,4),_=g[0],y=g[1],C=g[2],w=g[3],b=Rn({scrollHeight:void 0,start:0,end:0,offset:void 0}),S=ee(0);Wt(function(){en(function(){var Z;S.value=((Z=d.value)===null||Z===void 0?void 0:Z.offsetHeight)||0})}),Xo(function(){en(function(){var Z;S.value=((Z=d.value)===null||Z===void 0?void 0:Z.offsetHeight)||0})}),We([i,l],function(){i.value||fn(b,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),We([i,l,S,o],function(){i.value&&!o.value&&fn(b,{scrollHeight:S.value,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),We([o,i,function(){return a.scrollTop},l,w,function(){return e.height},S],function(){if(!(!i.value||!o.value)){for(var Z=0,z,Y,te,G=l.value.length,ae=l.value,oe=a.scrollTop,de=e.itemHeight,Ce=e.height,$=oe+Ce,A=0;A=oe&&(z=A,Y=Z),te===void 0&&le>$&&(te=A),Z=le}z===void 0&&(z=0,Y=0),te===void 0&&(te=G-1),te=Math.min(te+1,G),fn(b,{scrollHeight:Z,start:z,end:te,offset:Y})}},{immediate:!0});var E=V(function(){return b.scrollHeight-e.height});function L(Z){var z=Z;return Number.isNaN(E.value)||(z=Math.min(z,E.value)),z=Math.max(z,0),z}var T=V(function(){return a.scrollTop<=0}),R=V(function(){return a.scrollTop>=E.value}),N=XV(T,R);function D(Z){var z=Z;v(z)}function M(Z){var z,Y=Z.currentTarget.scrollTop;Math.abs(Y-a.scrollTop)>=1&&v(Y),(z=e.onScroll)===null||z===void 0||z.call(e,Z)}var H=wie(i,T,R,function(Z){v(function(z){var Y=z+Z;return Y})}),k=qe(H,2),W=k[0],F=k[1];Eie(i,c,function(Z,z){return N(Z,z)?!1:(W({preventDefault:function(){},deltaY:Z}),!0)});function B(Z){i.value&&Z.preventDefault()}var j=function(){c.value&&(c.value.removeEventListener("wheel",W,Pi?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",F),c.value.removeEventListener("MozMousePixelScroll",B))};Ft(function(){en(function(){c.value&&(j(),c.value.addEventListener("wheel",W,Pi?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",F),c.value.addEventListener("MozMousePixelScroll",B))})}),Xt(function(){j()});var K=yie(c,l,C,e,h,y,v,function(){var Z;(Z=f.value)===null||Z===void 0||Z.delayHidden()});r({scrollTo:K});var X=V(function(){var Z=null;return e.height&&(Z=O(U({},e.fullHeight?"height":"maxHeight",e.height+"px"),Tie),i.value&&(Z.overflowY="hidden",a.scrollMoving&&(Z.pointerEvents="none"))),Z});return We([function(){return b.start},function(){return b.end},l],function(){if(e.onVisibleChange){var Z=l.value.slice(b.start,b.end+1);e.onVisibleChange(Z,l.value)}},{flush:"post"}),{state:a,mergedData:l,componentStyle:X,onFallbackScroll:M,onScrollBar:D,componentRef:c,useVirtual:i,calRes:b,collectHeight:y,setInstance:_,sharedConfig:p,scrollBarRef:f,fillerInnerRef:d}},render:function(){var e=this,t=O(O({},this.$props),this.$attrs),r=t.prefixCls,i=r===void 0?"rc-virtual-list":r,o=t.height;t.itemHeight,t.fullHeight,t.data,t.itemKey,t.virtual;var a=t.component,s=a===void 0?"div":a;t.onScroll;var l=t.children,u=l===void 0?this.$slots.default:l,c=t.style,d=t.class,f=Nt(t,Lie),h=Ne(i,d),p=this.state.scrollTop,v=this.calRes,m=v.scrollHeight,g=v.offset,_=v.start,y=v.end,C=this.componentStyle,w=this.onFallbackScroll,b=this.onScrollBar,S=this.useVirtual,E=this.collectHeight,L=this.sharedConfig,T=this.setInstance,R=this.mergedData;return I("div",O({style:O(O({},c),{},{position:"relative"}),class:h},f),[I(s,{class:"".concat(i,"-holder"),style:C,ref:"componentRef",onScroll:w},{default:function(){return[I(pie,{prefixCls:i,height:m,offset:g,onInnerResize:E,ref:"fillerInnerRef"},{default:function(){return xie(R,_,y,T,u,L)}})]}}),S&&I(mie,{ref:"scrollBarRef",prefixCls:i,scrollTop:p,height:o,scrollHeight:m,count:R.length,onScroll:b,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}});const ZV=Oie;function Nie(n,e,t){var r=ee(n());return We(e,function(i,o){t?t(i,o)&&(r.value=n()):r.value=n()}),r}function Die(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var QV=Symbol("SelectContextKey");function Aie(n){return qt(QV,n)}function Rie(){return yt(QV,{})}var Pie=["disabled","title","children","style","class","className"];function mM(n){return typeof n=="string"||typeof n=="number"}var Mie=be({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,t){var r=t.expose,i=t.slots,o=lie(),a=Rie(),s=V(function(){return"".concat(o.prefixCls,"-item")}),l=Nie(function(){return a.flattenOptions},[function(){return o.open},function(){return a.flattenOptions}],function(b){return b[0]}),u=Uv(),c=function(S){S.preventDefault()},d=function(S){u.current&&u.current.scrollTo(typeof S=="number"?{index:S}:S)},f=function(S){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,L=l.value.length,T=0;T1&&arguments[1]!==void 0?arguments[1]:!1;h.activeIndex=S;var L={source:E?"keyboard":"mouse"},T=l.value[S];if(!T){a.onActiveValue(null,-1,L);return}a.onActiveValue(T.value,S,L)};We([function(){return l.value.length},function(){return o.searchValue}],function(){p(a.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});var v=function(S){return a.rawValues.has(S)&&o.mode!=="combobox"};We([function(){return o.open},function(){return o.searchValue}],function(){if(!o.multiple&&o.open&&a.rawValues.size===1){var b=Array.from(a.rawValues)[0],S=Tt(l.value).findIndex(function(E){var L=E.data;return L[a.fieldNames.value]===b});S!==-1&&(p(S),en(function(){d(S)}))}o.open&&en(function(){var E;(E=u.current)===null||E===void 0||E.scrollTo(void 0)})},{immediate:!0,flush:"post"});var m=function(S){S!==void 0&&a.onSelect(S,{selected:!a.rawValues.has(S)}),o.multiple||o.toggleOpen(!1)},g=function(S){return typeof S.label=="function"?S.label():S.label};function _(b){var S=l.value[b];if(!S)return null;var E=S.data||{},L=E.value,T=S.group,R=Iu(E,!0),N=g(S);return S?I("div",O(O({"aria-label":typeof N=="string"&&!T?N:null},R),{},{key:b,role:T?"presentation":"option",id:"".concat(o.id,"_list_").concat(b),"aria-selected":v(L)}),[L]):null}var y=function(S){var E=S.which,L=S.ctrlKey;switch(E){case ct.N:case ct.P:case ct.UP:case ct.DOWN:{var T=0;if(E===ct.UP?T=-1:E===ct.DOWN?T=1:Die()&&L&&(E===ct.N?T=1:E===ct.P&&(T=-1)),T!==0){var R=f(h.activeIndex+T,T);d(R),p(R,!0)}break}case ct.ENTER:{var N=l.value[h.activeIndex];N&&!N.data.disabled?m(N.value):m(void 0),o.open&&S.preventDefault();break}case ct.ESC:o.toggleOpen(!1),o.open&&S.stopPropagation()}},C=function(){},w=function(S){d(S)};return r({onKeydown:y,onKeyup:C,scrollTo:w}),function(){var b=o.id,S=o.notFoundContent,E=o.onPopupScroll,L=a.menuItemSelectedIcon,T=a.fieldNames,R=a.virtual,N=a.listHeight,D=a.listItemHeight,M=i.option,H=h.activeIndex,k=Object.keys(T).map(function(W){return T[W]});return l.value.length===0?I("div",{role:"listbox",id:"".concat(b,"_list"),class:"".concat(s.value,"-empty"),onMousedown:c},[S]):I(kt,null,[I("div",{role:"listbox",id:"".concat(b,"_list"),style:{height:0,width:0,overflow:"hidden"}},[_(H-1),_(H),_(H+1)]),I(ZV,{itemKey:"key",ref:u,data:l.value,height:N,itemHeight:D,fullHeight:!1,onMousedown:c,onScroll:E,virtual:R},{default:function(F,B){var j,K=F.group,X=F.groupOption,Z=F.data,z=F.value,Y=Z.key,te=typeof F.label=="function"?F.label():F.label;if(K){var G,ae=(G=Z.title)!==null&&G!==void 0?G:mM(te)&&te;return I("div",{class:Ne(s.value,"".concat(s.value,"-group")),title:ae},[M?M(Z):te!==void 0?te:Y])}var oe=Z.disabled,de=Z.title;Z.children;var Ce=Z.style,$=Z.class,A=Z.className,P=Nt(Z,Pie),Q=nr(P,k),re=v(z),le="".concat(s.value,"-option"),me=Ne(s.value,le,$,A,(j={},U(j,"".concat(le,"-grouped"),X),U(j,"".concat(le,"-active"),H===B&&!oe),U(j,"".concat(le,"-disabled"),oe),U(j,"".concat(le,"-selected"),re),j)),ge=g(F),he=!L||typeof L=="function"||re,ue=typeof ge=="number"?ge:ge||z,_e=mM(ue)?ue.toString():void 0;return de!==void 0&&(_e=de),I("div",O(O({},Q),{},{"aria-selected":re,class:me,title:_e,onMousemove:function(ne){P.onMousemove&&P.onMousemove(ne),!(H===B||oe)&&p(B)},onClick:function(ne){oe||m(z),P.onClick&&P.onClick(ne)},style:Ce}),[I("div",{class:"".concat(le,"-content")},[M?M(Z):ue]),ni(L)||re,he&&I(my,{class:"".concat(s.value,"-option-state"),customizeIcon:L,customizeIconProps:{isSelected:re}},{default:function(){return[re?"✓":null]}})])}})])}}});const kie=Mie;var Fie=["value","disabled"];function Bie(n){var e=n.key,t=n.children,r=n.props,i=r.value,o=r.disabled,a=Nt(r,Fie),s=t==null?void 0:t.default;return O({key:e,value:i!==void 0?i:e,children:s,disabled:o||o===""},a)}function JV(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=lr(n).map(function(r,i){var o;if(!ni(r)||!r.type)return null;var a=r.type.isSelectOptGroup,s=r.key,l=r.children,u=r.props;if(e||!a)return Bie(r);var c=l&&l.default?l.default():void 0,d=(u==null?void 0:u.label)||((o=l.label)===null||o===void 0?void 0:o.call(l))||s;return O(O({key:"__RC_SELECT_GRP__".concat(s===null?i:String(s),"__")},u),{},{label:d,options:JV(c||[])})}).filter(function(r){return r});return t}function Wie(n,e,t){var r=Zt(),i=Zt(),o=Zt(),a=Zt([]);return We([n,e],function(){n.value?a.value=Tt(n.value).slice():a.value=JV(e.value)},{immediate:!0,deep:!0}),Ft(function(){var s=a.value,l=new Map,u=new Map,c=t.value;function d(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p0&&arguments[0]!==void 0?arguments[0]:ee(""),e="rc_select_".concat(Hie());return n.value||e}function eH(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}function X0(n,e){return eH(n).join("").toUpperCase().includes(e)}const $ie=function(n,e,t,r,i){return V(function(){var o=t.value,a=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!o||s===!1)return n.value;var l=e.value,u=l.options,c=l.label,d=l.value,f=[],h=typeof s=="function",p=o.toUpperCase(),v=h?s:function(g,_){return a?X0(_[a],p):_[u]?X0(_[c!=="children"?c:"label"],p):X0(_[d],p)},m=h?function(g){return W1(g)}:function(g){return g};return n.value.forEach(function(g){if(g[u]){var _=v(o,m(g));if(_)f.push(g);else{var y=g[u].filter(function(C){return v(o,m(C))});y.length&&f.push(O(O({},g),{},U({},u,y)))}return}v(o,m(g))&&f.push(g)}),f})},jie=function(n,e){var t=Zt({values:new Map,options:new Map}),r=V(function(){var o=t.value,a=o.values,s=o.options,l=n.value.map(function(d){if(d.label===void 0){var f;return O(O({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),u=new Map,c=new Map;return l.forEach(function(d){u.set(d.value,d),c.set(d.value,e.value.get(d.value)||s.get(d.value))}),t.value.values=u,t.value.options=c,l}),i=function(a){return e.value.get(a)||t.value.options.get(a)};return[r,i]};function th(n,e){var t=e||{},r=t.defaultValue,i=t.value,o=i===void 0?ee():i,a=typeof n=="function"?n():n;o.value!==void 0&&(a=gr(o)),r!==void 0&&(a=typeof r=="function"?r():r);var s=ee(a),l=ee(a);Ft(function(){var c=o.value!==void 0?o.value:s.value;e.postState&&(c=e.postState(c)),l.value=c});function u(c){var d=l.value;s.value=c,Tt(l.value)!==c&&e.onChange&&e.onChange(c,d)}return We(o,function(){s.value=o.value}),[l,u]}function er(n){var e=typeof n=="function"?n():n,t=ee(e);function r(i){t.value=i}return[t,r]}var zie=["inputValue"];function tH(){return O(O({},GV()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ie.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ie.any,defaultValue:ie.any,onChange:Function,children:Array})}function Kie(n){return!n||at(n)!=="object"}const Gie=be({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:Wn(tH(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,t){var r=t.expose,i=t.attrs,o=t.slots,a=Uie(vn(e,"id")),s=V(function(){return qV(e.mode)}),l=V(function(){return!!(!e.options&&e.children)}),u=V(function(){return e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption}),c=V(function(){return gV(e.fieldNames,l.value)}),d=th("",{value:V(function(){return e.searchValue!==void 0?e.searchValue:e.inputValue}),postState:function(ue){return ue||""}}),f=qe(d,2),h=f[0],p=f[1],v=Wie(vn(e,"options"),vn(e,"children"),c),m=v.valueOptions,g=v.labelOptions,_=v.options,y=function(ue){var _e=eH(ue);return _e.map(function(fe){var ne,ce,Me,Ve;if(Kie(fe))ne=fe;else{var xe;Me=fe.key,ce=fe.label,ne=(xe=fe.value)!==null&&xe!==void 0?xe:Me}var ve=m.value.get(ne);if(ve){var Pe;ce===void 0&&(ce=ve==null?void 0:ve[e.optionLabelProp||c.value.label]),Me===void 0&&(Me=(Pe=ve==null?void 0:ve.key)!==null&&Pe!==void 0?Pe:ne),Ve=ve==null?void 0:ve.disabled}return{label:ce,value:ne,key:Me,disabled:Ve,option:ve}})},C=th(e.defaultValue,{value:vn(e,"value")}),w=qe(C,2),b=w[0],S=w[1],E=V(function(){var he,ue=y(b.value);return e.mode==="combobox"&&!((he=ue[0])!==null&&he!==void 0&&he.value)?[]:ue}),L=jie(E,m),T=qe(L,2),R=T[0],N=T[1],D=V(function(){if(!e.mode&&R.value.length===1){var he=R.value[0];if(he.value===null&&(he.label===null||he.label===void 0))return[]}return R.value.map(function(ue){var _e;return O(O({},ue),{},{label:(_e=typeof ue.label=="function"?ue.label():ue.label)!==null&&_e!==void 0?_e:ue.value})})}),M=V(function(){return new Set(R.value.map(function(he){return he.value}))});Ft(function(){if(e.mode==="combobox"){var he,ue=(he=R.value[0])===null||he===void 0?void 0:he.value;ue!=null&&p(String(ue))}},{flush:"post"});var H=function(ue,_e){var fe,ne=_e??ue;return fe={},U(fe,c.value.value,ue),U(fe,c.value.label,ne),fe},k=Zt();Ft(function(){if(e.mode!=="tags"){k.value=_.value;return}var he=_.value.slice(),ue=function(fe){return m.value.has(fe)};Ge(R.value).sort(function(_e,fe){return _e.value2&&arguments[2]!==void 0?arguments[2]:{},ne=fe.source,ce=ne===void 0?"keyboard":ne;oe(_e),e.backfill&&e.mode==="combobox"&&ue!==null&&ce==="keyboard"&&Y(String(ue))},$=function(ue,_e){var fe=function(){var ye,Ee=N(ue),we=Ee==null?void 0:Ee[c.value.label];return[e.labelInValue?{label:typeof we=="function"?we():we,originLabel:we,value:ue,key:(ye=Ee==null?void 0:Ee.key)!==null&&ye!==void 0?ye:ue}:ue,W1(Ee)]};if(_e&&e.onSelect){var ne=fe(),ce=qe(ne,2),Me=ce[0],Ve=ce[1];e.onSelect(Me,Ve)}else if(!_e&&e.onDeselect){var xe=fe(),ve=qe(xe,2),Pe=ve[0],tt=ve[1];e.onDeselect(Pe,tt)}},A=function(ue,_e){var fe,ne=s.value?_e.selected:!0;ne?fe=s.value?[].concat(Ge(R.value),[ue]):[ue]:fe=R.value.filter(function(ce){return ce.value!==ue}),K(fe),$(ue,ne),e.mode==="combobox"?Y(""):(!s.value||e.autoClearSearchValue)&&(p(""),Y(""))},P=function(ue,_e){K(ue),(_e.type==="remove"||_e.type==="clear")&&_e.values.forEach(function(fe){$(fe.value,!1)})},Q=function(ue,_e){if(p(ue),Y(null),_e.source==="submit"){var fe=(ue||"").trim();if(fe){var ne=Array.from(new Set([].concat(Ge(M.value),[fe])));K(ne),$(fe,!0),p("")}return}if(_e.source!=="blur"){var ce;e.mode==="combobox"&&K(ue),(ce=e.onSearch)===null||ce===void 0||ce.call(e,ue)}},re=function(ue){var _e=ue;e.mode!=="tags"&&(_e=ue.map(function(ne){var ce=g.value.get(ne);return ce==null?void 0:ce.value}).filter(function(ne){return ne!==void 0}));var fe=Array.from(new Set([].concat(Ge(M.value),Ge(_e))));K(fe),fe.forEach(function(ne){$(ne,!0)})},le=V(function(){return e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1});Aie(KV(O(O({},v),{},{flattenOptions:j,onActiveValue:Ce,defaultActiveFirstOption:de,onSelect:A,menuItemSelectedIcon:vn(e,"menuItemSelectedIcon"),rawValues:M,fieldNames:c,virtual:le,listHeight:vn(e,"listHeight"),listItemHeight:vn(e,"listItemHeight"),childrenAsData:l})));var me=ee();r({focus:function(){var ue;(ue=me.value)===null||ue===void 0||ue.focus()},blur:function(){var ue;(ue=me.value)===null||ue===void 0||ue.blur()},scrollTo:function(ue){var _e;(_e=me.value)===null||_e===void 0||_e.scrollTo(ue)}});var ge=V(function(){return nr(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])});return function(){return I(hie,O(O(O({},ge.value),i),{},{id:a,prefixCls:e.prefixCls,ref:me,omitDomProps:zie,mode:e.mode,displayValues:D.value,onDisplayValuesChange:P,searchValue:h.value,onSearch:Q,onSearchSplit:re,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:kie,emptyOptions:!j.value.length,activeValue:z.value,activeDescendantId:"".concat(a,"_list_").concat(ae.value)}),o)}}});var zx=function(){return null};zx.isSelectOption=!0;zx.displayName="ASelectOption";const qie=zx;var Kx=function(){return null};Kx.isSelectOptGroup=!0;Kx.displayName="ASelectOptGroup";const Yie=Kx;var Xie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Zie=Xie;function yM(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},t=n.loading,r=n.multiple,i=n.prefixCls,o=n.suffixIcon||e.suffixIcon&&e.suffixIcon(),a=n.clearIcon||e.clearIcon&&e.clearIcon(),s=n.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),l=n.removeIcon||e.removeIcon&&e.removeIcon(),u=a;a||(u=I(Ng,null,null));var c=null;if(o!==void 0)c=o;else if(t)c=I(_u,{spin:!0},null);else{var d="".concat(i,"-suffix");c=function(v){var m=v.open,g=v.showSearch;return m&&g?I(Xx,{class:d},null):I(tC,{class:d},null)}}var f=null;s!==void 0?f=s:r?f=I(nH,null,null):f=null;var h=null;return l!==void 0?h=l:h=I(Dg,null,null),{clearIcon:u,suffixIcon:c,itemIcon:f,removeIcon:h}}var _y=Symbol("ContextProps"),yy=Symbol("InternalContextProps"),aoe=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V(function(){return!0}),r=ee(new Map),i=function(s,l){r.value.set(s,l),r.value=new Map(r.value)},o=function(s){r.value.delete(s),r.value=new Map(r.value)};We([t,r],function(){}),qt(_y,e),qt(yy,{addFormItemField:i,removeFormItemField:o})},X1={id:V(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},Z1={addFormItemField:function(){},removeFormItemField:function(){}},ps=function(){var e=yt(yy,Z1),t=Symbol("FormItemFieldKey"),r=Dr();return e.addFormItemField(t,r.type),Xt(function(){e.removeFormItemField(t)}),qt(yy,Z1),qt(_y,X1),yt(_y,X1)};const Q1=be({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,t){var r=t.slots;return qt(yy,Z1),qt(_y,X1),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});var Zx=function(){return O(O({},nr(tH(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:ie.any,suffixIcon:ie.any,itemIcon:ie.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},wM="SECRET_COMBOBOX_MODE_DO_NOT_USE",Fa=be({compatConfig:{MODE:3},name:"ASelect",Option:qie,OptGroup:Yie,inheritAttrs:!1,props:Wn(Zx(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:wM,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,t){var r=t.attrs,i=t.emit,o=t.slots,a=t.expose,s=ee(),l=ps(),u=function(){var T;(T=s.value)===null||T===void 0||T.focus()},c=function(){var T;(T=s.value)===null||T===void 0||T.blur()},d=function(T){var R;(R=s.value)===null||R===void 0||R.scrollTo(T)},f=V(function(){var L=e.mode;if(L!=="combobox")return L===wM?"combobox":L}),h=Et("select",e),p=h.prefixCls,v=h.direction,m=h.configProvider,g=h.size,_=h.getPrefixCls,y=V(function(){return _()}),C=V(function(){return Mv(y.value,"slide-up",e.transitionName)}),w=V(function(){var L;return Ne((L={},U(L,"".concat(p.value,"-lg"),g.value==="large"),U(L,"".concat(p.value,"-sm"),g.value==="small"),U(L,"".concat(p.value,"-rtl"),v.value==="rtl"),U(L,"".concat(p.value,"-borderless"),!e.bordered),L))}),b=function(){for(var T=arguments.length,R=new Array(T),N=0;N=1},subscribe:function(e){return ju.size||this.register(),J0+=1,ju.set(J0,e),e(Nm),J0},unsubscribe:function(e){ju.delete(e),ju.size||this.unregister()},unregister:function(){var e=this;Object.keys(Om).forEach(function(t){var r=Om[t],i=e.matchHandlers[r];i==null||i.mql.removeListener(i==null?void 0:i.listener)}),ju.clear()},register:function(){var e=this;Object.keys(Om).forEach(function(t){var r=Om[t],i=function(s){var l=s.matches;e.dispatch(O(O({},Nm),{},U({},t,l)))},o=window.matchMedia(r);o.addListener(i),e.matchHandlers[r]={mql:o,listener:i},i(o)})}};const Cy=coe;function eO(){var n=ee({}),e=null;return Wt(function(){e=Cy.subscribe(function(t){n.value=t})}),Ia(function(){Cy.unsubscribe(e)}),n}var doe=Symbol("SizeProvider"),foe=function(e){var t=e?V(function(){return e.size}):yt(doe,V(function(){return"default"}));return t};function Wo(n){var e=Zt();return Ft(function(){e.value=n()},{flush:"sync"}),e}var Po={adjustX:1,adjustY:1},Mo=[0,0],rH={left:{points:["cr","cl"],overflow:Po,offset:[-4,0],targetOffset:Mo},right:{points:["cl","cr"],overflow:Po,offset:[4,0],targetOffset:Mo},top:{points:["bc","tc"],overflow:Po,offset:[0,-4],targetOffset:Mo},bottom:{points:["tc","bc"],overflow:Po,offset:[0,4],targetOffset:Mo},topLeft:{points:["bl","tl"],overflow:Po,offset:[0,-4],targetOffset:Mo},leftTop:{points:["tr","tl"],overflow:Po,offset:[-4,0],targetOffset:Mo},topRight:{points:["br","tr"],overflow:Po,offset:[0,-4],targetOffset:Mo},rightTop:{points:["tl","tr"],overflow:Po,offset:[4,0],targetOffset:Mo},bottomRight:{points:["tr","br"],overflow:Po,offset:[0,4],targetOffset:Mo},rightBottom:{points:["bl","br"],overflow:Po,offset:[4,0],targetOffset:Mo},bottomLeft:{points:["tl","bl"],overflow:Po,offset:[0,4],targetOffset:Mo},leftBottom:{points:["br","bl"],overflow:Po,offset:[-4,0],targetOffset:Mo}},hoe={prefixCls:String,id:String,overlayInnerStyle:ie.any};const poe=be({compatConfig:{MODE:3},name:"Content",props:hoe,slots:["overlay"],setup:function(e,t){var r=t.slots;return function(){var i;return I("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(i=r.overlay)===null||i===void 0?void 0:i.call(r)])}}});var voe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function SM(){}const goe=be({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ie.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ie.string.def("right"),transitionName:String,animation:ie.any,afterVisibleChange:ie.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ie.string.def("rc-tooltip"),mouseEnterDelay:ie.number.def(.1),mouseLeaveDelay:ie.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ie.object.def(function(){return{}}),arrowContent:ie.any.def(null),tipId:String,builtinPlacements:ie.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=ee(),s=function(){var f=e.prefixCls,h=e.tipId,p=e.overlayInnerStyle;return[I("div",{class:"".concat(f,"-arrow"),key:"arrow"},[Xa(r,e,"arrowContent")]),I(poe,{key:"content",prefixCls:f,id:h,overlayInnerStyle:p},{overlay:r.overlay})]},l=function(){return a.value.getPopupDomNode()};o({getPopupDomNode:l,triggerDOM:a,forcePopupAlign:function(){var f;return(f=a.value)===null||f===void 0?void 0:f.forcePopupAlign()}});var u=ee(!1),c=ee(!1);return Ft(function(){var d=e.destroyTooltipOnHide;if(typeof d=="boolean")u.value=d;else if(d&&at(d)==="object"){var f=d.keepParent;u.value=f===!0,c.value=f===!1}}),function(){var d=e.overlayClassName,f=e.trigger,h=e.mouseEnterDelay,p=e.mouseLeaveDelay,v=e.overlayStyle,m=e.prefixCls,g=e.afterVisibleChange,_=e.transitionName,y=e.animation,C=e.placement,w=e.align;e.destroyTooltipOnHide;var b=e.defaultVisible,S=Nt(e,voe),E=O({},S);e.visible!==void 0&&(E.popupVisible=e.visible);var L=O(O(O({popupClassName:d,prefixCls:m,action:f,builtinPlacements:rH,popupPlacement:C,popupAlign:w,afterPopupVisibleChange:g,popupTransitionName:_,popupAnimation:y,defaultPopupVisible:b,destroyPopupOnHide:u.value,autoDestroy:c.value,mouseLeaveDelay:p,popupStyle:v,mouseEnterDelay:h},E),i),{},{onPopupVisibleChange:e.onVisibleChange||SM,onPopupAlign:e.onPopupAlign||SM,ref:a,popup:s()});return I(Zb,L,{default:r.default})}}});Si("success","processing","error","default","warning");var moe=Si("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const _oe=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var yoe={adjustX:1,adjustY:1},EM={adjustX:0,adjustY:0},boe=[0,0];function LM(n){return typeof n=="boolean"?n?yoe:EM:O(O({},EM),n)}function iH(n){var e=n.arrowWidth,t=e===void 0?4:e,r=n.horizontalArrowShift,i=r===void 0?16:r,o=n.verticalArrowShift,a=o===void 0?8:o,s=n.autoAdjustOverflow,l=n.arrowPointAtCenter,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+t)]},topRight:{points:["br","tc"],offset:[i+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+t)]},bottomRight:{points:["tr","bc"],offset:[i+t,4]},rightBottom:{points:["bl","cr"],offset:[4,a+t]},bottomLeft:{points:["tl","bc"],offset:[-(i+t),4]},leftBottom:{points:["br","cl"],offset:[-4,a+t]}};return Object.keys(u).forEach(function(c){u[c]=l?O(O({},u[c]),{},{overflow:LM(s),targetOffset:boe}):O(O({},rH[c]),{},{overflow:LM(s)}),u[c].ignoreShake=!0}),u}function wy(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,t=n.length;e=0||L.indexOf("Bottom")>=0?R.top="".concat(T.height-S.offset[1],"px"):(L.indexOf("Top")>=0||L.indexOf("bottom")>=0)&&(R.top="".concat(-S.offset[1],"px")),L.indexOf("left")>=0||L.indexOf("Right")>=0?R.left="".concat(T.width-S.offset[0],"px"):(L.indexOf("right")>=0||L.indexOf("Left")>=0)&&(R.left="".concat(-S.offset[0],"px")),b.style.transformOrigin="".concat(R.left," ").concat(R.top)}};return function(){var w,b,S,E=e.openClassName,L=e.color,T=e.overlayClassName,R=(w=To((b=r.default)===null||b===void 0?void 0:b.call(r)))!==null&&w!==void 0?w:null;R=R.length===1?R[0]:R;var N=c.value;if(e.visible===void 0&&h()&&(N=!1),!R)return null;var D=_(ni(R)?R:I("span",null,[R])),M=Ne((S={},U(S,E||"".concat(l.value,"-open"),!0),U(S,D.props&&D.props.class,D.props&&D.props.class),S)),H=Ne(T,U({},"".concat(l.value,"-").concat(L),L&&IM.test(L))),k,W;L&&!IM.test(L)&&(k={backgroundColor:L},W={backgroundColor:L});var F=O(O(O({},o),e),{},{prefixCls:l.value,getPopupContainer:u.value,builtinPlacements:m.value,visible:N,ref:d,overlayClassName:H,overlayInnerStyle:k,onVisibleChange:p,onPopupAlign:C});return I(goe,F,{default:function(){return[c.value?Fn(D,{class:M}):D]},arrowContent:function(){return I("span",{class:"".concat(l.value,"-arrow-content"),style:W},null)},overlay:y})}}}),nC=Lu(Soe);var Md={adjustX:1,adjustY:1},kd=[0,0],Eoe={topLeft:{points:["bl","tl"],overflow:Md,offset:[0,-4],targetOffset:kd},topCenter:{points:["bc","tc"],overflow:Md,offset:[0,-4],targetOffset:kd},topRight:{points:["br","tr"],overflow:Md,offset:[0,-4],targetOffset:kd},bottomLeft:{points:["tl","bl"],overflow:Md,offset:[0,4],targetOffset:kd},bottomCenter:{points:["tc","bc"],overflow:Md,offset:[0,4],targetOffset:kd},bottomRight:{points:["tr","br"],overflow:Md,offset:[0,4],targetOffset:kd}};const Loe=Eoe;var Ioe=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const oH=be({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ie.string.def("rc-dropdown"),transitionName:String,overlayClassName:ie.string.def(""),openClassName:String,animation:ie.any,align:ie.object,overlayStyle:{type:Object,default:void 0},placement:ie.string.def("bottomLeft"),overlay:ie.any,trigger:ie.oneOfType([ie.string,ie.arrayOf(ie.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ie.array,hideAction:ie.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ie.number.def(.15),mouseLeaveDelay:ie.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.expose,a=ee(!!e.visible);We(function(){return e.visible},function(p){p!==void 0&&(a.value=p)});var s=ee();o({triggerRef:s});var l=function(v){e.visible===void 0&&(a.value=!1),i("overlayClick",v)},u=function(v){e.visible===void 0&&(a.value=v),i("visibleChange",v)},c=function(){var v,m=(v=r.overlay)===null||v===void 0?void 0:v.call(r),g={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:l,getPopupContainer:function(){return s.value.getPopupDomNode()}};return I(kt,null,[e.arrow&&I("div",{class:"".concat(e.prefixCls,"-arrow")},null),Fn(m,g,!1)])},d=V(function(){var p=e.minOverlayWidthMatchTrigger,v=p===void 0?!e.alignPoint:p;return v}),f=function(){var v,m=(v=r.default)===null||v===void 0?void 0:v.call(r);return a.value&&m?Fn(m[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):m},h=V(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var p=e.prefixCls,v=e.arrow,m=e.showAction,g=e.overlayStyle,_=e.trigger,y=e.placement,C=e.align,w=e.getPopupContainer,b=e.transitionName,S=e.animation,E=e.overlayClassName,L=Nt(e,Ioe);return I(Zb,O(O({},L),{},{prefixCls:p,ref:s,popupClassName:Ne(E,U({},"".concat(p,"-show-arrow"),v)),popupStyle:g,builtinPlacements:Loe,action:_,showAction:m,hideAction:h.value||[],popupPlacement:y,popupAlign:C,popupTransitionName:b,popupAnimation:S,popupVisible:a.value,stretch:d.value?"minWidth":"",onPopupVisibleChange:u,getPopupContainer:w}),{popup:c,default:f})}}});var ew={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},tw={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},af=[],sf=[];function Toe(){var n=document.createElement("div"),e=n.style;"AnimationEvent"in window||(delete ew.animationstart.animation,delete tw.animationend.animation),"TransitionEvent"in window||(delete ew.transitionstart.transition,delete tw.transitionend.transition);function t(r,i){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];for(var s in a)if(s in e){i.push(a[s]);break}}}t(ew,af),t(tw,sf)}typeof window<"u"&&typeof document<"u"&&Toe();function TM(n,e,t){n.addEventListener(e,t,!1)}function xM(n,e,t){n.removeEventListener(e,t,!1)}var xoe={startEvents:af,addStartEventListener:function(e,t){if(af.length===0){setTimeout(t,0);return}af.forEach(function(r){TM(e,r,t)})},removeStartEventListener:function(e,t){af.length!==0&&af.forEach(function(r){xM(e,r,t)})},endEvents:sf,addEndEventListener:function(e,t){if(sf.length===0){setTimeout(t,0);return}sf.forEach(function(r){TM(e,r,t)})},removeEndEventListener:function(e,t){sf.length!==0&&sf.forEach(function(r){xM(e,r,t)})}};const Dm=xoe;var _l;function OM(n){return!n||n.offsetParent===null}function Ooe(n){var e=(n||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}const Noe=be({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,t){var r=t.slots,i=t.expose,o=Dr(),a=Et("",e),s=a.csp,l=a.prefixCls;i({csp:s});var u=null,c=null,d=null,f=!1,h=null,p=!1,v=function(b){if(!p){var S=Ic(o);!b||b.target!==S||f||y(S)}},m=function(b){!b||b.animationName!=="fadeEffect"||y(b.target)},g=function(){var b=e.insertExtraNode;return b?"".concat(l.value,"-click-animating"):"".concat(l.value,"-click-animating-without-extra-node")},_=function(b,S){var E=e.insertExtraNode,L=e.disabled;if(!(L||!b||OM(b)||b.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var T=g();if(b.removeAttribute(T),b.setAttribute(T,"true"),_l=_l||document.createElement("style"),S&&S!=="#ffffff"&&S!=="rgb(255, 255, 255)"&&Ooe(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&S!=="transparent"){var R;(R=s.value)!==null&&R!==void 0&&R.nonce&&(_l.nonce=s.value.nonce),h.style.borderColor=S,_l.innerHTML=` [`.concat(l.value,"-click-animating-without-extra-node='true']::after, .").concat(l.value,`-click-animating-node { --antd-wave-shadow-color: `).concat(S,`; - }`),document.body.contains(ml)||document.body.appendChild(ml)}L&&C.appendChild(h),xm.addStartEventListener(C,v),xm.addEndEventListener(C,m)}},y=function(C){if(!(!C||C===h||!(C instanceof Element))){var S=e.insertExtraNode,L=g();C.setAttribute(L,"false"),ml&&(ml.innerHTML=""),S&&h&&C.contains(h)&&C.removeChild(h),xm.removeStartEventListener(C,v),xm.removeEndEventListener(C,m)}},b=function(C){if(!(!C||!C.getAttribute||C.getAttribute("disabled")||C.className.indexOf("disabled")>=0)){var S=function(E){if(!(E.target.tagName==="INPUT"||OM(E.target))){y(C);var T=getComputedStyle(C).getPropertyValue("border-top-color")||getComputedStyle(C).getPropertyValue("border-color")||getComputedStyle(C).getPropertyValue("background-color");c=setTimeout(function(){return _(C,T)},0),Mt.cancel(d),f=!0,d=Mt(function(){f=!1},10)}};return C.addEventListener("click",S,!0),{cancel:function(){C.removeEventListener("click",S,!0)}}}};return Wt(function(){en(function(){var w=Lc(o);w.nodeType===1&&(u=b(w))})}),Zt(function(){u&&u.cancel(),clearTimeout(c),p=!0}),function(){var w;return(w=r.default)===null||w===void 0?void 0:w.call(r)[0]}}});function uH(n){return n==="danger"?{danger:!0}:{type:n}}var cH=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ne.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}},NM=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},AM=function(e){en(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},DM=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const goe=be({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var t=e.existIcon,r=e.prefixCls,i=e.loading;if(t)return I("span",{class:"".concat(r,"-loading-icon")},[I(_u,null,null)]);var o=!!i;return I(Qo,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:NM,onEnter:AM,onAfterEnter:DM,onBeforeLeave:AM,onLeave:function(s){setTimeout(function(){NM(s)})},onAfterLeave:DM},{default:function(){return[o?I("span",{class:"".concat(r,"-loading-icon")},[I(_u,null,null)]):null]}})}}});var RM=/^[\u4e00-\u9fa5]{2}$/,PM=RM.test.bind(RM);function Om(n){return n==="text"||n==="link"}const bi=be({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Wn(cH(),{type:"default"}),slots:["icon"],setup:function(e,t){var r=t.slots,i=t.attrs,o=t.emit,a=St("btn",e),s=a.prefixCls,l=a.autoInsertSpaceInButton,u=a.direction,c=a.size,d=J(null),f=J(void 0),h=!1,p=J(!1),v=J(!1),m=V(function(){return l.value!==!1}),g=V(function(){return at(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});Ve(g,function(C){clearTimeout(f.value),typeof g.value=="number"?f.value=setTimeout(function(){p.value=C},g.value):p.value=C},{immediate:!0});var _=V(function(){var C,S=e.type,L=e.shape,E=L===void 0?"default":L,T=e.ghost,P=e.block,A=e.danger,D=s.value,M={large:"lg",small:"sm",middle:void 0},H=c.value,k=H&&M[H]||"";return C={},U(C,"".concat(D),!0),U(C,"".concat(D,"-").concat(S),S),U(C,"".concat(D,"-").concat(E),E!=="default"&&E),U(C,"".concat(D,"-").concat(k),k),U(C,"".concat(D,"-loading"),p.value),U(C,"".concat(D,"-background-ghost"),T&&!Om(S)),U(C,"".concat(D,"-two-chinese-chars"),v.value&&m.value),U(C,"".concat(D,"-block"),P),U(C,"".concat(D,"-dangerous"),!!A),U(C,"".concat(D,"-rtl"),u.value==="rtl"),C}),y=function(){var S=d.value;if(!(!S||l.value===!1)){var L=S.textContent;h&&PM(L)?v.value||(v.value=!0):v.value&&(v.value=!1)}},b=function(S){if(p.value||e.disabled){S.preventDefault();return}o("click",S)},w=function(S,L){var E=L?" ":"";if(S.type===cl){var T=S.children.trim();return PM(T)&&(T=T.split("").join(E)),I("span",null,[T])}return S};return Ft(function(){Kn(!(e.ghost&&Om(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Wt(y),Zo(y),Zt(function(){f.value&&clearTimeout(f.value)}),function(){var C,S,L=e.icon,E=L===void 0?(C=r.icon)===null||C===void 0?void 0:C.call(r):L,T=sr((S=r.default)===null||S===void 0?void 0:S.call(r));h=T.length===1&&!E&&!Om(e.type);var P=e.type,A=e.htmlType,D=e.disabled,M=e.href,H=e.title,k=e.target,B=e.onMousedown,F=p.value?"loading":E,W=O(O({},i),{},{title:H,disabled:D,class:[_.value,i.class,U({},"".concat(s.value,"-icon-only"),T.length===0&&!!F)],onClick:b,onMousedown:B});D||delete W.disabled;var $=E&&!p.value?E:I(goe,{existIcon:!!E,prefixCls:s.value,loading:!!p.value},null),j=T.map(function(Z){return w(Z,h&&m.value)});if(M!==void 0)return I("a",O(O({},W),{},{href:M,target:k,ref:d}),[$,j]);var X=I("button",O(O({},W),{},{ref:d,type:A}),[$,j]);return Om(P)?X:I(voe,{ref:"wave",disabled:!!p.value},{default:function(){return[X]}})}}});function MM(n,e){for(var t=0;t=0?"".concat(l.value,"-slide-down"):"".concat(l.value,"-slide-up")}),f=function(){var m,g,_,y=e.overlay||((m=r.overlay)===null||m===void 0?void 0:m.call(r)),b=Array.isArray(y)?y[0]:y;if(!b)return null;var w=b.props||{};Kn(!w.mode||w.mode==="vertical","Dropdown",'mode="'.concat(w.mode,`" is not supported for Dropdown's Menu.`));var C=w.selectable,S=C===void 0?!1:C,L=w.expandIcon,E=L===void 0?(g=b.children)===null||g===void 0||(_=g.expandIcon)===null||_===void 0?void 0:_.call(g):L,T=typeof E<"u"&&ni(E)?E:I("span",{class:"".concat(s.value,"-menu-submenu-arrow")},[I(oO,{class:"".concat(s.value,"-menu-submenu-arrow-icon")},null)]),P=ni(b)?Fn(b,{mode:"vertical",selectable:S,expandIcon:function(){return T}}):b;return P},h=V(function(){var v=e.placement;if(!v)return u.value==="rtl"?"bottomRight":"bottomLeft";if(v.includes("Center")){var m=v.slice(0,v.indexOf("Center"));return Kn(!v.includes("Center"),"Dropdown","You are using '".concat(v,"' placement in Dropdown, which is deprecated. Try to use '").concat(m,"' instead.")),m}return v}),p=function(m){o("update:visible",m),o("visibleChange",m)};return function(){var v,m,g=e.arrow,_=e.trigger,y=e.disabled,b=e.overlayClassName,w=(v=r.default)===null||v===void 0?void 0:v.call(r)[0],C=Fn(w,fn({class:Re(w==null||(m=w.props)===null||m===void 0?void 0:m.class,U({},"".concat(s.value,"-rtl"),u.value==="rtl"),"".concat(s.value,"-trigger"))},y?{disabled:y}:{})),S=Re(b,U({},"".concat(s.value,"-rtl"),u.value==="rtl")),L=y?[]:_,E;L&&L.indexOf("contextmenu")!==-1&&(E=!0);var T=sH({arrowPointAtCenter:at(g)==="object"&&g.pointAtCenter,autoAdjustOverflow:!0}),P=nr(O(O(O({},e),i),{},{builtinPlacements:T,overlayClassName:S,arrow:g,alignPoint:E,prefixCls:s.value,getPopupContainer:c.value,transitionName:d.value,trigger:L,onVisibleChange:p,placement:h.value}),["overlay","onUpdate:visible"]);return I(lH,P,{default:function(){return[C]},overlay:f})}}});fH.Button=Sy;const Qs=fH;var xoe=["class","style"],Ooe=function(){return{prefixCls:String,href:String,separator:ne.any,overlay:ne.any,onClick:Function}};const Ey=be({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Ooe(),slots:["separator","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,o=St("breadcrumb",e),a=o.prefixCls,s=function(u,c){var d=Ya(r,e,"overlay");return d?I(Qs,{overlay:d,placement:"bottom"},{default:function(){return[I("span",{class:"".concat(c,"-overlay-link")},[u,I(rC,null,null)])]}}):u};return function(){var l,u=(l=Ya(r,e,"separator"))!==null&&l!==void 0?l:"/",c=Ya(r,e),d=i.class,f=i.style,h=Nt(i,xoe),p;return e.href!==void 0?p=I("a",O({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]):p=I("span",O({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]),p=s(p,a.value),c?I("span",{class:d,style:f},[p,u&&I("span",{class:"".concat(a.value,"-separator")},[u])]):null}}});function Noe(n,e,t,r){var i=t?t.call(r,n,e):void 0;if(i!==void 0)return!!i;if(n===e)return!0;if(at(n)!=="object"||!n||at(e)!=="object"||!e)return!1;var o=Object.keys(n),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l-1}function CH(n,e,t){for(var r=-1,i=n==null?0:n.length;++r=Voe){var u=e?null:Woe(n);if(u)return Mx(u);a=!1,i=py,l=new Jf}else l=e?[]:s;e:for(;++r"u"?Ce=E&&ue?ie:"":oe===!1&&(Ce="");var me={title:Ce};!b.value&&!y.value&&(me.title=null,me.visible=!1);var N={};e.role==="option"&&(N["aria-selected"]=M.value);var R=Ya(r,e,"icon");return I(iC,O(O({},me),{},{placement:_.value?"left":"right",overlayClassName:"".concat(p.value,"-inline-collapsed-tooltip")}),{default:function(){return[I(Mf.Item,O(O(O({component:"li"},o),{},{id:e.id,style:O(O({},o.style||{}),Z.value),class:[H.value,(K={},U(K,"".concat(o.class),!!o.class),U(K,"".concat(p.value,"-item-only-child"),(R?ue+1:ue)===1),K)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},N),{},{onMouseenter:F,onMouseleave:W,onClick:B,onKeydown:$,onFocus:j,title:typeof oe=="string"?oe:void 0}),{default:function(){return[Fn(R,{class:"".concat(p.value,"-item-icon")},!1),X(R,ie)]}})]}})}}});var Zl={adjustX:1,adjustY:1},Goe={topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Zl,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Zl,offset:[4,0]}},qoe={topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Zl,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Zl,offset:[4,0]}},Yoe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const WM=be({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,t){var r=t.slots,i=t.emit,o=J(!1),a=Tu(),s=a.getPopupContainer,l=a.rtl,u=a.subMenuOpenDelay,c=a.subMenuCloseDelay,d=a.builtinPlacements,f=a.triggerSubMenuAction,h=a.isRootMenu,p=a.forceSubMenuRender,v=a.motion,m=a.defaultMotions,g=gH(),_=V(function(){return l.value?O(O({},qoe),d.value):O(O({},Goe),d.value)}),y=V(function(){return Yoe[e.mode]}),b=J();Ve(function(){return e.visible},function(S){Mt.cancel(b.value),b.value=Mt(function(){o.value=S})},{immediate:!0}),Zt(function(){Mt.cancel(b.value)});var w=function(L){i("visibleChange",L)},C=V(function(){var S,L,E=v.value||((S=m.value)===null||S===void 0?void 0:S[e.mode])||((L=m.value)===null||L===void 0?void 0:L.other),T=typeof E=="function"?E():E;return T?Ig(T.name,{css:!0}):void 0});return function(){var S=e.prefixCls,L=e.popupClassName,E=e.mode,T=e.popupOffset,P=e.disabled;return I(Jb,{prefixCls:S,popupClassName:Re("".concat(S,"-popup"),U({},"".concat(S,"-rtl"),l.value),L),stretch:E==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(A){return A.parentNode},builtinPlacements:_.value,popupPlacement:y.value,popupVisible:o.value,popupAlign:T&&{offset:T},action:P?[]:[f.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:w,forceRender:g||p.value,popupAnimation:C.value},{popup:r.popup,default:r.default})}}});var LH=function(e,t){var r,i=t.slots,o=t.attrs,a=Tu(),s=a.prefixCls,l=a.mode;return I("ul",O(O({},o),{},{class:Re(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=i.default)===null||r===void 0?void 0:r.call(i)])};LH.displayName="SubMenuList";const IH=LH,Xoe=be({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,t){var r=t.slots,i=V(function(){return"inline"}),o=Tu(),a=o.motion,s=o.mode,l=o.defaultMotions,u=V(function(){return s.value===i.value}),c=J(!u.value),d=V(function(){return u.value?e.open:!1});Ve(s,function(){u.value&&(c.value=!1)},{flush:"post"});var f=V(function(){var h,p,v=a.value||((h=l.value)===null||h===void 0?void 0:h[i.value])||((p=l.value)===null||p===void 0?void 0:p.other),m=typeof v=="function"?v():v;return O(O({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:I(Ly,{mode:i.value},{default:function(){return[I(Qo,f.value,{default:function(){return[Ki(I(IH,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[dl,d.value]])]}})]}})}}});var VM=0,Zoe=function(){return{icon:ne.any,title:ne.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Vv=be({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Zoe(),slots:["icon","title","expandIcon"],setup:function(e,t){var r,i,o=t.slots,a=t.attrs,s=t.emit;_H(!1);var l=sO(),u=Rr(),c=at(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Kn(at(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=O1(c)?c:"sub_menu_".concat(++VM,"_$$_not_set_key"),f=(r=e.eventKey)!==null&&r!==void 0?r:O1(c)?"sub_menu_".concat(++VM,"_$$_").concat(c):d,h=aO(),p=h.parentEventKeys,v=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(Ge(m.value),[d])}),_=J([]),y={eventKey:f,key:d,parentEventKeys:p,childrenEventKeys:_,parentKeys:m};(i=v.childrenEventKeys)===null||i===void 0||i.value.push(f),Zt(function(){if(v.childrenEventKeys){var le;v.childrenEventKeys.value=(le=v.childrenEventKeys)===null||le===void 0?void 0:le.value.filter(function(ve){return ve!=f})}}),joe(f,d,y);var b=Tu(),w=b.prefixCls,C=b.activeKeys,S=b.disabled,L=b.changeActiveKeys,E=b.mode,T=b.inlineCollapsed,P=b.antdMenuTheme,A=b.openKeys,D=b.overflowDisabled,M=b.onOpenChange,H=b.registerMenuInfo,k=b.unRegisterMenuInfo,B=b.selectedSubMenuKeys,F=b.expandIcon,W=c!=null,$=!l&&(gH()||!W);Aoe($),(l&&W||!l&&!W||$)&&(H(f,y),Zt(function(){k(f)}));var j=V(function(){return"".concat(w.value,"-submenu")}),X=V(function(){return S.value||e.disabled}),Z=J(),z=J(),Y=V(function(){return A.value.includes(d)}),ee=V(function(){return!D.value&&Y.value}),K=V(function(){return B.value.includes(d)}),oe=J(!1);Ve(C,function(){oe.value=!!C.value.find(function(le){return le===d})},{immediate:!0});var ie=function(ve){X.value||(s("titleClick",ve,d),E.value==="inline"&&M(d,!Y.value))},ue=function(ve){X.value||(L(g.value),s("mouseenter",ve))},Ce=function(ve){X.value||(L([]),s("mouseleave",ve))},me=EH(V(function(){return g.value.length})),N=function(ve){E.value!=="inline"&&M(d,ve)},R=function(){L(g.value)},G=f&&"".concat(f,"-popup"),te=V(function(){return Re(w.value,"".concat(w.value,"-").concat(P.value),e.popupClassName)}),re=function(ve,Ae){if(!Ae)return T.value&&!m.value.length&&ve&&typeof ve=="string"?I("div",{class:"".concat(w.value,"-inline-collapsed-noicon")},[ve.charAt(0)]):I("span",{class:"".concat(w.value,"-title-content")},[ve]);var Ie=ni(ve)&&ve.type==="span";return I(kt,null,[Fn(Ae,{class:"".concat(w.value,"-item-icon")},!1),Ie?ve:I("span",{class:"".concat(w.value,"-title-content")},[ve])])},pe=V(function(){return E.value!=="inline"&&g.value.length>1?"vertical":E.value}),Se=V(function(){return E.value==="horizontal"?"vertical":E.value}),fe=V(function(){return pe.value==="horizontal"?"vertical":pe.value}),de=function(){var ve=j.value,Ae=Ya(o,e,"icon"),Ie=e.expandIcon||o.expandIcon||F.value,se=re(Ya(o,e,"title"),Ae);return I("div",{style:me.value,class:"".concat(ve,"-title"),tabindex:X.value?null:-1,ref:Z,title:typeof se=="string"?se:null,"data-menu-id":d,"aria-expanded":ee.value,"aria-haspopup":!0,"aria-controls":G,"aria-disabled":X.value,onClick:ie,onFocus:R},[se,E.value!=="horizontal"&&Ie?Ie(O(O({},e),{},{isOpen:ee.value})):I("i",{class:"".concat(ve,"-arrow")},null)])};return function(){var le;if(l){var ve;return W?(ve=o.default)===null||ve===void 0?void 0:ve.call(o):null}var Ae=j.value,Ie=function(){return null};return!D.value&&E.value!=="inline"?Ie=function(){return I(WM,{mode:pe.value,prefixCls:Ae,visible:!e.internalPopupClose&&ee.value,popupClassName:te.value,popupOffset:e.popupOffset,disabled:X.value,onVisibleChange:N},{default:function(){return[de()]},popup:function(){return I(Ly,{mode:fe.value,isRootMenu:!1},{default:function(){return[I(IH,{id:G,ref:z},{default:o.default})]}})}})}:Ie=function(){return I(WM,null,{default:de})},I(Ly,{mode:Se.value},{default:function(){return[I(Mf.Item,O(O({component:"li"},a),{},{role:"none",class:Re(Ae,"".concat(Ae,"-").concat(E.value),a.class,(le={},U(le,"".concat(Ae,"-open"),ee.value),U(le,"".concat(Ae,"-active"),oe.value),U(le,"".concat(Ae,"-selected"),K.value),U(le,"".concat(Ae,"-disabled"),X.value),le)),onMouseenter:ue,onMouseleave:Ce,"data-submenu-id":d}),{default:function(){return I(kt,null,[Ie(),!D.value&&I(Xoe,{id:G,open:ee.value,keyPath:g.value},{default:o.default})])}})]}})}}});function TH(n,e){if(n.classList)return n.classList.contains(e);var t=n.className;return" ".concat(t," ").indexOf(" ".concat(e," "))>-1}function HM(n,e){n.classList?n.classList.add(e):TH(n,e)||(n.className="".concat(n.className," ").concat(e))}function UM(n,e){if(n.classList)n.classList.remove(e);else if(TH(n,e)){var t=n.className;n.className=" ".concat(t," ").replace(" ".concat(e," ")," ")}}var Dg=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:function(i){i.style.height="0px",i.style.opacity="0",HM(i,e)},onEnter:function(i){en(function(){i.style.height="".concat(i.scrollHeight,"px"),i.style.opacity="1"})},onAfterEnter:function(i){i&&(UM(i,e),i.style.height=null,i.style.opacity=null)},onBeforeLeave:function(i){HM(i,e),i.style.height="".concat(i.offsetHeight,"px"),i.style.opacity=null},onLeave:function(i){setTimeout(function(){i.style.height="0px",i.style.opacity="0"})},onAfterLeave:function(i){i&&(UM(i,e),i.style&&(i.style.height=null,i.style.opacity=null))}}},Qoe=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},$M=[];const Ci=be({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Qoe(),slots:["expandIcon","overflowedIndicator"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.attrs,a=St("menu",e),s=a.prefixCls,l=a.direction,u=a.getPrefixCls,c=J({}),d=yt(Uoe,J(void 0)),f=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=J(!1);Wt(function(){h.value=!0}),Ft(function(){Kn(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Kn(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var p=J([]),v=J([]),m=J({});Ve(c,function(){for(var z={},Y=0,ee=Object.values(c.value);Y0&&arguments[0]!==void 0?arguments[0]:y.value;ap(y.value,z)||(y.value=z.slice())},{immediate:!0,deep:!0});var b,w=function(Y){clearTimeout(b),b=setTimeout(function(){e.activeKey===void 0&&(p.value=Y),i("update:activeKey",Y[Y.length-1])})},C=V(function(){return!!e.disabled}),S=V(function(){return l.value==="rtl"}),L=J("vertical"),E=J(!1);Ft(function(){(e.mode==="inline"||e.mode==="vertical")&&f.value?(L.value="vertical",E.value=f.value):(L.value=e.mode,E.value=!1)});var T=V(function(){return L.value==="inline"}),P=function(Y){y.value=Y,i("update:openKeys",Y),i("openChange",Y)},A=J(y.value),D=J(!1);Ve(y,function(){T.value&&(A.value=y.value)},{immediate:!0}),Ve(T,function(){if(!D.value){D.value=!0;return}T.value?y.value=A.value:P($M)},{immediate:!0});var M=V(function(){var z;return z={},U(z,"".concat(s.value),!0),U(z,"".concat(s.value,"-root"),!0),U(z,"".concat(s.value,"-").concat(L.value),!0),U(z,"".concat(s.value,"-inline-collapsed"),E.value),U(z,"".concat(s.value,"-rtl"),S.value),U(z,"".concat(s.value,"-").concat(e.theme),!0),z}),H=V(function(){return u()}),k=V(function(){return{horizontal:{name:"".concat(H.value,"-slide-up")},inline:Dg,other:{name:"".concat(H.value,"-zoom-big")}}});_H(!0);var B=function z(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ee=[],K=c.value;return Y.forEach(function(oe){var ie=K[oe],ue=ie.key,Ce=ie.childrenEventKeys;ee.push.apply(ee,[ue].concat(Ge(z(vr(Ce)))))}),ee},F=function(Y){i("click",Y),_(Y)},W=function(Y,ee){var K=m.value[Y].childrenEventKeys,oe=y.value.filter(function(ue){return ue!==Y});if(ee)oe.push(Y);else if(L.value!=="inline"){var ie=B(vr(K));oe=lw(oe.filter(function(ue){return!ie.includes(ue)}))}ap(y,oe)||P(oe)},$=function(Y,ee){c.value=O(O({},c.value),{},U({},Y,ee))},j=function(Y){delete c.value[Y],c.value=O({},c.value)},X=J(0),Z=V(function(){return e.expandIcon||r.expandIcon?function(z){var Y=e.expandIcon||r.expandIcon;return Y=typeof Y=="function"?Y(z):Y,Fn(Y,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return Roe({store:c,prefixCls:s,activeKeys:p,openKeys:y,selectedKeys:v,changeActiveKeys:w,disabled:C,rtl:S,mode:L,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:E,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?k.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:J(void 0),onOpenChange:W,onItemClick:F,registerMenuInfo:$,unRegisterMenuInfo:j,selectedSubMenuKeys:g,isRootMenu:J(!0),expandIcon:Z,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var z,Y,ee=sr((z=r.default)===null||z===void 0?void 0:z.call(r)),K=X.value>=ee.length-1||L.value!=="horizontal"||e.disabledOverflow,oe=L.value!=="horizontal"||e.disabledOverflow?ee:ee.map(function(ue,Ce){return I(Ly,{key:ue.key,overflowDisabled:Ce>X.value},{default:function(){return ue}})}),ie=((Y=r.overflowedIndicator)===null||Y===void 0?void 0:Y.call(r))||I(rO,null,null);return I(Mf,O(O({},o),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:Wv,class:[M.value,o.class],role:"menu",id:e.id,data:oe,renderRawItem:function(Ce){return Ce},renderRawRest:function(Ce){var me=Ce.length,N=me?ee.slice(-me):null;return I(kt,null,[I(Vv,{eventKey:Nm,key:Nm,title:ie,disabled:K,internalPopupClose:me===0},{default:function(){return N}}),I(BM,null,{default:function(){return[I(Vv,{eventKey:Nm,key:Nm,title:ie,disabled:K,internalPopupClose:me===0},{default:function(){return N}})]}})])},maxCount:L.value!=="horizontal"||e.disabledOverflow?Mf.INVALIDATE:Mf.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ce){X.value=Ce}}),{default:function(){return[I(tx,{to:"body"},{default:function(){return[I("div",{style:{display:"none"},"aria-hidden":!0},[I(BM,null,{default:function(){return[oe]}})])]}})]}})}}});var Joe=function(){return{title:ne.any}};const rE=be({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Joe(),slots:["title"],setup:function(e,t){var r=t.slots,i=t.attrs,o=Tu(),a=o.prefixCls,s=V(function(){return"".concat(a.value,"-item-group")}),l=sO();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):I("li",O(O({},i),{},{onClick:function(f){return f.stopPropagation()},class:s.value}),[I("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Ya(r,e,"title")]),I("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var eae=function(){return{prefixCls:String,dashed:Boolean}};const iE=be({compatConfig:{MODE:3},name:"AMenuDivider",props:eae(),setup:function(e){var t=St("menu",e),r=t.prefixCls,i=V(function(){var o;return o={},U(o,"".concat(r.value,"-item-divider"),!0),U(o,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),o});return function(){return I("li",{class:i.value},null)}}});Ci.install=function(n){return n.component(Ci.name,Ci),n.component(Wv.name,Wv),n.component(Vv.name,Vv),n.component(iE.name,iE),n.component(rE.name,rE),n};Ci.Item=Wv;Ci.Divider=iE;Ci.SubMenu=Vv;Ci.ItemGroup=rE;var tae=function(){return{prefixCls:String,routes:{type:Array},params:ne.any,separator:ne.any,itemRender:{type:Function}}};function nae(n,e){if(!n.breadcrumbName)return null;var t=Object.keys(e).join("|"),r=n.breadcrumbName.replace(new RegExp(":(".concat(t,")"),"g"),function(i,o){return e[o]||i});return r}function jM(n){var e=n.route,t=n.params,r=n.routes,i=n.paths,o=r.indexOf(e)===r.length-1,a=nae(e,t);return o?I("span",null,[a]):I("a",{href:"#/".concat(i.join("/"))},[a])}const kf=be({compatConfig:{MODE:3},name:"ABreadcrumb",props:tae(),slots:["separator","itemRender"],setup:function(e,t){var r=t.slots,i=St("breadcrumb",e),o=i.prefixCls,a=i.direction,s=function(d,f){return d=(d||"").replace(/^\//,""),Object.keys(f).forEach(function(h){d=d.replace(":".concat(h),f[h])}),d},l=function(d,f,h){var p=Ge(d),v=s(f||"",h);return v&&p.push(v),p},u=function(d){var f=d.routes,h=f===void 0?[]:f,p=d.params,v=p===void 0?{}:p,m=d.separator,g=d.itemRender,_=g===void 0?jM:g,y=[];return h.map(function(b){var w=s(b.path,v);w&&y.push(w);var C=[].concat(y),S=null;return b.children&&b.children.length&&(S=I(Ci,null,{default:function(){return[b.children.map(function(E){return I(Ci.Item,{key:E.path||E.breadcrumbName},{default:function(){return[_({route:E,params:v,routes:h,paths:l(C,E.path,v)})]}})})]}})),I(Ey,{overlay:S,separator:m,key:w||b.breadcrumbName},{default:function(){return[_({route:b,params:v,routes:h,paths:C})]}})})};return function(){var c,d,f,h=e.routes,p=e.params,v=p===void 0?{}:p,m=sr(Ya(r,e)),g=(c=Ya(r,e,"separator"))!==null&&c!==void 0?c:"/",_=e.itemRender||r.itemRender||jM;h&&h.length>0?f=u({routes:h,params:v,separator:g,itemRender:_}):m.length&&(f=m.map(function(b,w){return _a(at(b.type)==="object"&&(b.type.__ANT_BREADCRUMB_ITEM||b.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),ji(b,{separator:g,key:w})}));var y=(d={},U(d,o.value,!0),U(d,"".concat(o.value,"-rtl"),a.value==="rtl"),d);return I("div",{class:y},[f])}}});var rae=["separator","class"],iae=function(){return{prefixCls:String}};const oE=be({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:iae(),setup:function(e,t){var r=t.slots,i=t.attrs,o=St("breadcrumb",e),a=o.prefixCls;return function(){var s;i.separator;var l=i.class,u=Nt(i,rae),c=sr((s=r.default)===null||s===void 0?void 0:s.call(r));return I("span",O({class:["".concat(a.value,"-separator"),l]},u),[c.length>0?c:"/"])}}});kf.Item=Ey;kf.Separator=oE;kf.install=function(n){return n.component(kf.name,kf),n.component(Ey.name,Ey),n.component(oE.name,oE),n};function sC(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++ti?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r0){var C=v==="button"?"".concat(s.value,"-button"):s.value;w=p.map(function(L){if(typeof L=="string"||typeof L=="number")return I(Ri,{key:L,prefixCls:C,disabled:e.disabled,value:L,checked:c.value===L},{default:function(){return[L]}});var E=L.value,T=L.disabled,P=L.label;return I(Ri,{key:"radio-group-value-options-".concat(E),prefixCls:C,disabled:T||e.disabled,value:E,checked:c.value===E},{default:function(){return[P]}})})}else{var S;w=(S=r.default)===null||S===void 0?void 0:S.call(r)}return I("div",{class:b,id:_},[w])}}}),Tae=be({compatConfig:{MODE:3},name:"ARadioButton",props:NH(),setup:function(e,t){var r=t.slots,i=St("radio-button",e),o=i.prefixCls,a=yt("radioGroupContext",void 0);return function(){var s,l=O(O({},e),{},{prefixCls:o.value});return a&&(l.onChange=a.onRadioChange,l.checked=l.value===a.stateValue.value,l.disabled=l.disabled||a.props.disabled),I(Ri,l,{default:function(){return[(s=r.default)===null||s===void 0?void 0:s.call(r)]}})}}});Ri.Group=Iae;Ri.Button=Tae;Ri.install=function(n){return n.component(Ri.name,Ri),n.component(Ri.Group.name,Ri.Group),n.component(Ri.Button.name,Ri.Button),n};function xae(n){var e=J(),t=J(!1);function r(){for(var i=arguments.length,o=new Array(i),a=0;aF?(k=M,C.value="x"):(k=H,C.value="y"),e(-k,-k)&&D.preventDefault()}var L=J({onTouchStart:y,onTouchMove:b,onTouchEnd:w,onWheel:S});function E(D){L.value.onTouchStart(D)}function T(D){L.value.onTouchMove(D)}function P(D){L.value.onTouchEnd(D)}function A(D){L.value.onWheel(D)}Wt(function(){var D,M;document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",P,{passive:!1}),(D=n.value)===null||D===void 0||D.addEventListener("touchstart",E,{passive:!1}),(M=n.value)===null||M===void 0||M.addEventListener("wheel",A,{passive:!1})}),Zt(function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",P)})}function QM(n,e){var t=J(n);function r(i){var o=typeof i=="function"?i(t.value):i;o!==t.value&&e(o,t.value),t.value=o}return[t,r]}var PH=function(){var e=J(new Map),t=function(i){return function(o){e.value.set(i,o)}};return L5(function(){e.value=new Map}),[t,e]},Fae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bae=/^\w*$/;function lO(n,e){if(Go(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||lC(n)?!0:Bae.test(n)||!Fae.test(n)||e!=null&&n in Object(e)}var Wae="Expected a function";function uO(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Wae);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(uO.Cache||hl),t}uO.Cache=hl;var Vae=500;function Hae(n){var e=uO(n,function(r){return t.size===Vae&&t.clear(),r}),t=e.cache;return e}var Uae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$ae=/\\(\\)?/g,jae=Hae(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Uae,function(t,r,i,o){e.push(i?o.replace($ae,"$1"):r||t)}),e});function Nh(n,e){return Go(n)?n:lO(n,e)?[n]:jae(bae(n))}var zae=1/0;function Ah(n){if(typeof n=="string"||lC(n))return n;var e=n+"";return e=="0"&&1/n==-zae?"-0":e}function uC(n,e){e=Nh(e,n);for(var t=0,r=e.length;n!=null&&t0&&t(s)?e>1?FH(s,e-1,t,r,i):kx(i,s):r||(i[i.length]=s)}return i}function ese(n){var e=n==null?0:n.length;return e?FH(n,1):[]}function tse(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var ek=Math.max;function BH(n,e,t){return e=ek(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=ek(r.length-e,0),a=Array(o);++i0){if(++e>=ose)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var WH=lse(ise);function VH(n){return WH(BH(n,void 0,ese),n+"")}var HH=VH(function(n,e){return n==null?{}:Qae(n,e)}),tk={width:0,height:0,left:0,top:0,right:0},use=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ne.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const nk=be({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:use(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,t){var r=t.attrs,i=t.slots,o=RH(),a=o.tabs,s=o.prefixCls,l=J(),u=J(),c=J(),d=J(),f=PH(),h=Ye(f,2),p=h[0],v=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=QM(0,function(Xe,Qe){m.value&&e.onTabScroll&&e.onTabScroll({direction:Xe>Qe?"left":"right"})}),_=Ye(g,2),y=_[0],b=_[1],w=QM(0,function(Xe,Qe){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Xe>Qe?"top":"bottom"})}),C=Ye(w,2),S=C[0],L=C[1],E=er(0),T=Ye(E,2),P=T[0],A=T[1],D=er(0),M=Ye(D,2),H=M[0],k=M[1],B=er(null),F=Ye(B,2),W=F[0],$=F[1],j=er(null),X=Ye(j,2),Z=X[0],z=X[1],Y=er(0),ee=Ye(Y,2),K=ee[0],oe=ee[1],ie=er(0),ue=Ye(ie,2),Ce=ue[0],me=ue[1],N=Oae(new Map),R=Ye(N,2),G=R[0],te=R[1],re=Aae(a,G),pe=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),Se=J(0),fe=J(0);Ft(function(){m.value?e.rtl?(Se.value=0,fe.value=Math.max(0,P.value-W.value)):(Se.value=Math.min(0,W.value-P.value),fe.value=0):(Se.value=Math.min(0,Z.value-H.value),fe.value=0)});var de=function(Qe){return Qefe.value?fe.value:Qe},le=J(),ve=er(),Ae=Ye(ve,2),Ie=Ae[0],se=Ae[1],ge=function(){se(Date.now())},_e=function(){clearTimeout(le.value)},ce=function(Qe,it){Qe(function(pt){var vt=de(pt+it);return vt})};kae(l,function(Xe,Qe){if(m.value){if(W.value>=P.value)return!1;ce(b,Xe)}else{if(Z.value>=H.value)return!1;ce(L,Qe)}return _e(),ge(),!0}),Ve(Ie,function(){_e(),Ie.value&&(le.value=setTimeout(function(){se(0)},100))});var Pe=function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,it=re.value.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var pt=y.value;e.rtl?it.righty.value+W.value&&(pt=it.right+it.width-W.value):it.left<-y.value?pt=-it.left:it.left+it.width>-y.value+W.value&&(pt=-(it.left+it.width-W.value)),L(0),b(de(pt))}else{var vt=S.value;it.top<-S.value?vt=-it.top:it.top+it.height>-S.value+Z.value&&(vt=-(it.top+it.height-Z.value)),b(0),L(de(vt))}},qe=J(0),De=J(0);Ft(function(){var Xe,Qe,it,pt,vt,xt,wt,_n=re.value;["top","bottom"].includes(e.tabPosition)?(Qe="width",vt=W.value,xt=P.value,wt=K.value,it=e.rtl?"right":"left",pt=Math.abs(y.value)):(Qe="height",vt=Z.value,xt=P.value,wt=Ce.value,it="top",pt=-S.value);var At=vt;xt+wt>vt&&xtpt+At){Hn=Br-1;break}}for(var Ln=0,Yn=fr-1;Yn>=0;Yn-=1){var rr=_n.get(wn[Yn].key)||tk;if(rr[it]0,Ln=y.value+W.value0?"".concat(h[0]/-2,"px"):void 0,m=h[1]>0?"".concat(h[1]/-2,"px"):void 0;return v&&(p.marginLeft=v,p.marginRight=v),u.value?p.rowGap="".concat(h[1],"px"):m&&(p.marginTop=m,p.marginBottom=m),p});return function(){var h;return I("div",{class:d.value,style:f.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}});const hO=Lse;function Ise(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var Tse=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const cC=be({compatConfig:{MODE:3},name:"ACol",props:Tse(),setup:function(e,t){var r=t.slots,i=Sse(),o=i.gutter,a=i.supportFlexGap,s=i.wrap,l=St("col",e),u=l.prefixCls,c=l.direction,d=V(function(){var h,p=e.span,v=e.order,m=e.offset,g=e.push,_=e.pull,y=u.value,b={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(w){var C,S={},L=e[w];typeof L=="number"?S.span=L:at(L)==="object"&&(S=L||{}),b=O(O({},b),{},(C={},U(C,"".concat(y,"-").concat(w,"-").concat(S.span),S.span!==void 0),U(C,"".concat(y,"-").concat(w,"-order-").concat(S.order),S.order||S.order===0),U(C,"".concat(y,"-").concat(w,"-offset-").concat(S.offset),S.offset||S.offset===0),U(C,"".concat(y,"-").concat(w,"-push-").concat(S.push),S.push||S.push===0),U(C,"".concat(y,"-").concat(w,"-pull-").concat(S.pull),S.pull||S.pull===0),U(C,"".concat(y,"-rtl"),c.value==="rtl"),C))}),Re(y,(h={},U(h,"".concat(y,"-").concat(p),p!==void 0),U(h,"".concat(y,"-order-").concat(v),v),U(h,"".concat(y,"-offset-").concat(m),m),U(h,"".concat(y,"-push-").concat(g),g),U(h,"".concat(y,"-pull-").concat(_),_),h),b)}),f=V(function(){var h=e.flex,p=o.value,v={};if(p&&p[0]>0){var m="".concat(p[0]/2,"px");v.paddingLeft=m,v.paddingRight=m}if(p&&p[1]>0&&!a.value){var g="".concat(p[1]/2,"px");v.paddingTop=g,v.paddingBottom=g}return h&&(v.flex=Ise(h),s.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return function(){var h;return I("div",{class:d.value,style:f.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}}),xse=Lu(hO),Ose=Lu(cC);var Nse=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:ne.object,expandIconPosition:ne.oneOf(Si("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},KH=function(){return{openAnimation:ne.object,prefixCls:String,header:ne.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:ne.any,panelKey:ne.oneOfType([ne.string,ne.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function ok(n){var e=n;if(!Array.isArray(e)){var t=at(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(r){return String(r)})}const nv=be({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Wn(Nse(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Dg("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var r=t.attrs,i=t.slots,o=t.emit,a=J(ok(wy([e.activeKey,e.defaultActiveKey])));Ve(function(){return e.activeKey},function(){a.value=ok(e.activeKey)},{deep:!0});var s=St("collapse",e),l=s.prefixCls,u=s.direction,c=V(function(){var m=e.expandIconPosition;return m!==void 0?m:u.value==="rtl"?"right":"left"}),d=function(g){var _=e.expandIcon,y=_===void 0?i.expandIcon:_,b=y?y(g):I(oO,{rotate:g.isActive?90:void 0},null);return I("div",null,[ni(Array.isArray(y)?b[0]:b)?Fn(b,{class:"".concat(l.value,"-arrow")},!1):b])},f=function(g){e.activeKey===void 0&&(a.value=g);var _=e.accordion?g[0]:g;o("update:activeKey",_),o("change",_)},h=function(g){var _=a.value;if(e.accordion)_=_[0]===g?[]:[g];else{_=Ge(_);var y=_.indexOf(g),b=y>-1;b?_.splice(y,1):_.push(g)}f(_)},p=function(g,_){var y,b,w;if(!jb(g)){var C=a.value,S=e.accordion,L=e.destroyInactivePanel,E=e.collapsible,T=e.openAnimation,P=String((y=g.key)!==null&&y!==void 0?y:_),A=g.props||{},D=A.header,M=D===void 0?(b=g.children)===null||b===void 0||(w=b.header)===null||w===void 0?void 0:w.call(b):D,H=A.headerClass,k=A.collapsible,B=A.disabled,F=!1;S?F=C[0]===P:F=C.indexOf(P)>-1;var W=k??E;(B||B==="")&&(W="disabled");var $={key:P,panelKey:P,header:M,headerClass:H,isActive:F,prefixCls:l.value,destroyInactivePanel:L,openAnimation:T,accordion:S,onItemClick:W==="disabled"?null:h,expandIcon:d,collapsible:W};return Fn(g,$)}},v=function(){var g;return sr((g=i.default)===null||g===void 0?void 0:g.call(i)).map(p)};return function(){var m,g=e.accordion,_=e.bordered,y=e.ghost,b=Re((m={},U(m,l.value,!0),U(m,"".concat(l.value,"-borderless"),!_),U(m,"".concat(l.value,"-icon-position-").concat(c.value),!0),U(m,"".concat(l.value,"-rtl"),u.value==="rtl"),U(m,"".concat(l.value,"-ghost"),!!y),U(m,r.class,!!r.class),m));return I("div",O(O({class:b},FX(r)),{},{style:r.style,role:g?"tablist":null}),[v()])}}}),Ase=be({compatConfig:{MODE:3},name:"PanelContent",props:KH(),setup:function(e,t){var r=t.slots,i=J(!1);return Ft(function(){(e.isActive||e.forceRender)&&(i.value=!0)}),function(){var o,a;if(!i.value)return null;var s=e.prefixCls,l=e.isActive,u=e.role;return I("div",{ref:J,class:Re("".concat(s,"-content"),(o={},U(o,"".concat(s,"-content-active"),l),U(o,"".concat(s,"-content-inactive"),!l),o)),role:u},[I("div",{class:"".concat(s,"-content-box")},[(a=r.default)===null||a===void 0?void 0:a.call(r)])])}}}),lE=be({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Wn(KH(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.attrs;Kn(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var a=St("collapse",e),s=a.prefixCls,l=function(){i("itemClick",e.panelKey)},u=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var c,d,f,h,p=e.header,v=p===void 0?(c=r.header)===null||c===void 0?void 0:c.call(r):p,m=e.headerClass,g=e.isActive,_=e.showArrow,y=e.destroyInactivePanel,b=e.accordion,w=e.forceRender,C=e.openAnimation,S=e.expandIcon,L=S===void 0?r.expandIcon:S,E=e.extra,T=E===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):E,P=e.collapsible,A=P==="disabled",D=s.value,M=Re("".concat(D,"-header"),(f={},U(f,m,m),U(f,"".concat(D,"-header-collapsible-only"),P==="header"),f)),H=Re((h={},U(h,"".concat(D,"-item"),!0),U(h,"".concat(D,"-item-active"),g),U(h,"".concat(D,"-item-disabled"),A),U(h,"".concat(D,"-no-arrow"),!_),U(h,"".concat(o.class),!!o.class),h)),k=I("i",{class:"arrow"},null);_&&typeof L=="function"&&(k=L(e));var B=Ki(I(Ase,{prefixCls:D,isActive:g,forceRender:w,role:b?"tabpanel":null},{default:r.default}),[[dl,g]]),F=O({appear:!1,css:!1},C);return I("div",O(O({},o),{},{class:H}),[I("div",{class:M,onClick:function(){return P!=="header"&&l()},role:b?"tab":"button",tabindex:A?-1:0,"aria-expanded":g,onKeypress:u},[_&&k,P==="header"?I("span",{onClick:l,class:"".concat(D,"-header-text")},[v]):v,T&&I("div",{class:"".concat(D,"-extra")},[T])]),I(Qo,F,{default:function(){return[!y||g?B:null]}})])}}});nv.Panel=lE;nv.install=function(n){return n.component(nv.name,nv),n.component(lE.name,lE),n};var uw=function(){return Ta.Date.now()},Dse="Expected a function",Rse=Math.max,Pse=Math.min;function pO(n,e,t){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(Dse);e=aE(e)||0,wa(t)&&(c=!!t.leading,d="maxWait"in t,o=d?Rse(aE(t.maxWait)||0,e):o,f="trailing"in t?!!t.trailing:f);function h(C){var S=r,L=i;return r=i=void 0,u=C,a=n.apply(L,S),a}function p(C){return u=C,s=setTimeout(g,e),c?h(C):a}function v(C){var S=C-l,L=C-u,E=e-S;return d?Pse(E,o-L):E}function m(C){var S=C-l,L=C-u;return l===void 0||S>=e||S<0||d&&L>=o}function g(){var C=uw();if(m(C))return _(C);s=setTimeout(g,v(C))}function _(C){return s=void 0,f&&r?h(C):(r=i=void 0,a)}function y(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function b(){return s===void 0?a:_(uw())}function w(){var C=uw(),S=m(C);if(r=arguments,i=this,l=C,S){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),a}return w.cancel=y,w.flush=b,w}var GH=Symbol("TreeContextKey"),Mse=be({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var r=t.slots;return qt(GH,V(function(){return e.value})),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}}),vO=function(){return yt(GH,V(function(){return{}}))},qH=Symbol("KeysStateKey"),kse=function(e){qt(qH,e)},YH=function(){return yt(qH,{expandedKeys:Yt([]),selectedKeys:Yt([]),loadedKeys:Yt([]),loadingKeys:Yt([]),checkedKeys:Yt([]),halfCheckedKeys:Yt([]),expandedKeysSet:V(function(){return new Set}),selectedKeysSet:V(function(){return new Set}),loadedKeysSet:V(function(){return new Set}),loadingKeysSet:V(function(){return new Set}),checkedKeysSet:V(function(){return new Set}),halfCheckedKeysSet:V(function(){return new Set}),flattenNodes:Yt([])})},Fse=function(e){for(var t=e.prefixCls,r=e.level,i=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l=0&&t.splice(r,1),t}function Dl(n,e){var t=(n||[]).slice();return t.indexOf(e)===-1&&t.push(e),t}function mO(n){return n.split("-")}function ZH(n,e){return"".concat(n,"-").concat(e)}function Use(n){return n&&n.type&&n.type.isTreeNode}function $se(n,e){var t=[],r=e[n];function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var s=a.key,l=a.children;t.push(s),i(l)})}return i(r.children),t}function jse(n){if(n.parent){var e=mO(n.pos);return Number(e[e.length-1])===n.parent.children.length-1}return!1}function zse(n){var e=mO(n.pos);return Number(e[e.length-1])===0}function lk(n,e,t,r,i,o,a,s,l,u){var c,d=n.clientX,f=n.clientY,h=n.target.getBoundingClientRect(),p=h.top,v=h.height,m=(u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),g=(m-12)/r,_=s[t.eventKey];if(f-1.5?o({dragNode:A,dropNode:D,dropPosition:1})?E=1:M=!1:o({dragNode:A,dropNode:D,dropPosition:0})?E=0:o({dragNode:A,dropNode:D,dropPosition:1})?E=1:M=!1:o({dragNode:A,dropNode:D,dropPosition:1})?E=1:M=!1,{dropPosition:E,dropLevelOffset:T,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:L,dropContainerKey:E===0?null:((c=_.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:M}}function uk(n,e){if(n){var t=e.multiple;return t?n.slice():n.length?[n[0]]:n}}function cw(n){if(!n)return null;var e;if(Array.isArray(n))e={checkedKeys:n,halfCheckedKeys:void 0};else if(at(n)==="object")e={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return null;return e}function cE(n,e){var t=new Set;function r(i){if(!t.has(i)){var o=e[i];if(o){t.add(i);var a=o.parent,s=o.node;s.disabled||a&&r(a.key)}}}return(n||[]).forEach(function(i){r(i)}),Ge(t)}var Kse=["title","icon","switcherIcon"];function Rg(n,e){return n??e}function dC(n){var e=n||{},t=e.title,r=e._title,i=e.key,o=e.children,a=t||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function dE(n){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=To(t);return r.map(function(i){var o,a,s,l;if(!Use(i))return null;for(var u=i.children||{},c=i.key,d={},f=0,h=Object.entries(i.props);f1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(f,h){for(var p=ZH(d?d.pos:"0",h),v=Rg(f[o],p),m,g=0;g1&&arguments[1]!==void 0?arguments[1]:{},t=e.initWrapper,r=e.processEntity,i=e.onProcessFinished,o=e.externalGetKey,a=e.childrenPropName,s=e.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=o||l,c={},d={},f={posEntities:c,keyEntities:d};return t&&(f=t(f)||f),qse(n,function(h){var p=h.node,v=h.index,m=h.pos,g=h.key,_=h.parentPos,y=h.level,b=h.nodes,w={node:p,nodes:b,index:v,key:g,pos:m,level:y},C=Rg(g,m);c[m]=w,d[C]=w,w.parent=c[_],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,f)},{externalGetKey:u,childrenPropName:a,fieldNames:s}),i&&i(f),f}function fE(n,e){var t=e.expandedKeysSet,r=e.selectedKeysSet,i=e.loadedKeysSet,o=e.loadingKeysSet,a=e.checkedKeysSet,s=e.halfCheckedKeysSet,l=e.dragOverNodeKey,u=e.dropPosition,c=e.keyEntities,d=c[n],f={eventKey:n,expanded:t.has(n),selected:r.has(n),loaded:i.has(n),loading:o.has(n),checked:a.has(n),halfChecked:s.has(n),pos:String(d?d.pos:""),parent:d.parent,dragOver:l===n&&u===0,dragOverGapTop:l===n&&u===-1,dragOverGapBottom:l===n&&u===1};return f}function hE(n){var e=n.data,t=n.expanded,r=n.selected,i=n.checked,o=n.loaded,a=n.loading,s=n.halfChecked,l=n.dragOver,u=n.dragOverGapTop,c=n.dragOverGapBottom,d=n.pos,f=n.active,h=n.eventKey,p=O(O({dataRef:e},e),{},{expanded:t,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:h,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return n}}),p}function QH(n,e){var t=new Set;return n.forEach(function(r){e.has(r)||t.add(r)}),t}function Yse(n){var e=n||{},t=e.disabled,r=e.disableCheckbox,i=e.checkable;return!!(t||r)||i===!1}function Xse(n,e,t,r){for(var i=new Set(n),o=new Set,a=0;a<=t;a+=1){var s=e.get(a)||new Set;s.forEach(function(d){var f=d.key,h=d.node,p=d.children,v=p===void 0?[]:p;i.has(f)&&!r(h)&&v.filter(function(m){return!r(m.node)}).forEach(function(m){i.add(m.key)})})}for(var l=new Set,u=t;u>=0;u-=1){var c=e.get(u)||new Set;c.forEach(function(d){var f=d.parent,h=d.node;if(!(r(h)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var p=!0,v=!1;(f.children||[]).filter(function(m){return!r(m.node)}).forEach(function(m){var g=m.key,_=i.has(g);p&&!_&&(p=!1),!v&&(_||o.has(g))&&(v=!0)}),p&&i.add(f.key),v&&o.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(QH(o,i))}}function Zse(n,e,t,r,i){for(var o=new Set(n),a=new Set(e),s=0;s<=r;s+=1){var l=t.get(s)||new Set;l.forEach(function(f){var h=f.key,p=f.node,v=f.children,m=v===void 0?[]:v;!o.has(h)&&!a.has(h)&&!i(p)&&m.filter(function(g){return!i(g.node)}).forEach(function(g){o.delete(g.key)})})}a=new Set;for(var u=new Set,c=r;c>=0;c-=1){var d=t.get(c)||new Set;d.forEach(function(f){var h=f.parent,p=f.node;if(!(i(p)||!f.parent||u.has(f.parent.key))){if(i(f.parent.node)){u.add(h.key);return}var v=!0,m=!1;(h.children||[]).filter(function(g){return!i(g.node)}).forEach(function(g){var _=g.key,y=o.has(_);v&&!y&&(v=!1),!m&&(y||a.has(_))&&(m=!0)}),v||o.delete(h.key),m&&a.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(QH(a,o))}}function Ff(n,e,t,r,i,o){var a;o?a=o:a=Yse;var s=new Set(n.filter(function(u){var c=!!t[u];return c})),l;return e===!0?l=Xse(s,i,r,a):l=Zse(s,e.halfCheckedKeys,i,r,a),l}function JH(n){var e=J(0),t=Yt();return Ft(function(){var r=new Map,i=0,o=n.value||{};for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a],l=s.level,u=r.get(l);u||(u=new Set,r.set(l,u)),u.add(s),i=Math.max(i,l)}e.value=i,t.value=r}),{maxLevel:e,levelEntities:t}}var Qse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Jse=Qse;function ck(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function O_(n,e,t){return Iue()?O_=Reflect.construct.bind():O_=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&Hv(u,a.prototype),u},O_.apply(null,arguments)}function Tue(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function vE(n){var e=typeof Map=="function"?new Map:void 0;return vE=function(r){if(r===null||!Tue(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return O_(r,arguments,pE(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hv(i,r)},vE(n)}var xue=/%[sdj%]/g,Oue=function(){};function gE(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function wo(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=o)return s;switch(s){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return s}});return a}return n}function Nue(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Gr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||Nue(e)&&typeof n=="string"&&!n)}function Aue(n,e,t){var r=[],i=0,o=n.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&t(r)}n.forEach(function(s){e(s,a)})}function yk(n,e,t){var r=0,i=n.length;function o(a){if(a&&a.length){t(a);return}var s=r;r=r+1,s=0)){var S=function(L){if(!(L.target.tagName==="INPUT"||OM(L.target))){y(b);var T=getComputedStyle(b).getPropertyValue("border-top-color")||getComputedStyle(b).getPropertyValue("border-color")||getComputedStyle(b).getPropertyValue("background-color");c=setTimeout(function(){return _(b,T)},0),Mt.cancel(d),f=!0,d=Mt(function(){f=!1},10)}};return b.addEventListener("click",S,!0),{cancel:function(){b.removeEventListener("click",S,!0)}}}};return Wt(function(){en(function(){var w=Ic(o);w.nodeType===1&&(u=C(w))})}),Xt(function(){u&&u.cancel(),clearTimeout(c),p=!0}),function(){var w;return(w=r.default)===null||w===void 0?void 0:w.call(r)[0]}}});function aH(n){return n==="danger"?{danger:!0}:{type:n}}var Doe=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ie.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const sH=Doe;var NM=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},DM=function(e){en(function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")})},AM=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};const Aoe=be({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var t=e.existIcon,r=e.prefixCls,i=e.loading;if(t)return I("span",{class:"".concat(r,"-loading-icon")},[I(_u,null,null)]);var o=!!i;return I(Zo,{name:"".concat(r,"-loading-icon-motion"),onBeforeEnter:NM,onEnter:DM,onAfterEnter:AM,onBeforeLeave:DM,onLeave:function(s){setTimeout(function(){NM(s)})},onAfterLeave:AM},{default:function(){return[o?I("span",{class:"".concat(r,"-loading-icon")},[I(_u,null,null)]):null]}})}}});var RM=/^[\u4e00-\u9fa5]{2}$/,PM=RM.test.bind(RM);function Am(n){return n==="text"||n==="link"}const bi=be({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Wn(sH(),{type:"default"}),slots:["icon"],setup:function(e,t){var r=t.slots,i=t.attrs,o=t.emit,a=Et("btn",e),s=a.prefixCls,l=a.autoInsertSpaceInButton,u=a.direction,c=a.size,d=ee(null),f=ee(void 0),h=!1,p=ee(!1),v=ee(!1),m=V(function(){return l.value!==!1}),g=V(function(){return at(e.loading)==="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading});We(g,function(b){clearTimeout(f.value),typeof g.value=="number"?f.value=setTimeout(function(){p.value=b},g.value):p.value=b},{immediate:!0});var _=V(function(){var b,S=e.type,E=e.shape,L=E===void 0?"default":E,T=e.ghost,R=e.block,N=e.danger,D=s.value,M={large:"lg",small:"sm",middle:void 0},H=c.value,k=H&&M[H]||"";return b={},U(b,"".concat(D),!0),U(b,"".concat(D,"-").concat(S),S),U(b,"".concat(D,"-").concat(L),L!=="default"&&L),U(b,"".concat(D,"-").concat(k),k),U(b,"".concat(D,"-loading"),p.value),U(b,"".concat(D,"-background-ghost"),T&&!Am(S)),U(b,"".concat(D,"-two-chinese-chars"),v.value&&m.value),U(b,"".concat(D,"-block"),R),U(b,"".concat(D,"-dangerous"),!!N),U(b,"".concat(D,"-rtl"),u.value==="rtl"),b}),y=function(){var S=d.value;if(!(!S||l.value===!1)){var E=S.textContent;h&&PM(E)?v.value||(v.value=!0):v.value&&(v.value=!1)}},C=function(S){if(p.value||e.disabled){S.preventDefault();return}o("click",S)},w=function(S,E){var L=E?" ":"";if(S.type===dl){var T=S.children.trim();return PM(T)&&(T=T.split("").join(L)),I("span",null,[T])}return S};return Ft(function(){Kn(!(e.ghost&&Am(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Wt(y),Xo(y),Xt(function(){f.value&&clearTimeout(f.value)}),function(){var b,S,E=e.icon,L=E===void 0?(b=r.icon)===null||b===void 0?void 0:b.call(r):E,T=lr((S=r.default)===null||S===void 0?void 0:S.call(r));h=T.length===1&&!L&&!Am(e.type);var R=e.type,N=e.htmlType,D=e.disabled,M=e.href,H=e.title,k=e.target,W=e.onMousedown,F=p.value?"loading":L,B=O(O({},i),{},{title:H,disabled:D,class:[_.value,i.class,U({},"".concat(s.value,"-icon-only"),T.length===0&&!!F)],onClick:C,onMousedown:W});D||delete B.disabled;var j=L&&!p.value?L:I(Aoe,{existIcon:!!L,prefixCls:s.value,loading:!!p.value},null),K=T.map(function(Z){return w(Z,h&&m.value)});if(M!==void 0)return I("a",O(O({},B),{},{href:M,target:k,ref:d}),[j,K]);var X=I("button",O(O({},B),{},{ref:d,type:N}),[j,K]);return Am(R)?X:I(Noe,{ref:"wave",disabled:!!p.value},{default:function(){return[X]}})}}});function MM(n,e){for(var t=0;t=0?"".concat(l.value,"-slide-down"):"".concat(l.value,"-slide-up")}),f=function(){var m,g,_,y=e.overlay||((m=r.overlay)===null||m===void 0?void 0:m.call(r)),C=Array.isArray(y)?y[0]:y;if(!C)return null;var w=C.props||{};Kn(!w.mode||w.mode==="vertical","Dropdown",'mode="'.concat(w.mode,`" is not supported for Dropdown's Menu.`));var b=w.selectable,S=b===void 0?!1:b,E=w.expandIcon,L=E===void 0?(g=C.children)===null||g===void 0||(_=g.expandIcon)===null||_===void 0?void 0:_.call(g):E,T=typeof L<"u"&&ni(L)?L:I("span",{class:"".concat(s.value,"-menu-submenu-arrow")},[I(iO,{class:"".concat(s.value,"-menu-submenu-arrow-icon")},null)]),R=ni(C)?Fn(C,{mode:"vertical",selectable:S,expandIcon:function(){return T}}):C;return R},h=V(function(){var v=e.placement;if(!v)return u.value==="rtl"?"bottomRight":"bottomLeft";if(v.includes("Center")){var m=v.slice(0,v.indexOf("Center"));return Kn(!v.includes("Center"),"Dropdown","You are using '".concat(v,"' placement in Dropdown, which is deprecated. Try to use '").concat(m,"' instead.")),m}return v}),p=function(m){o("update:visible",m),o("visibleChange",m)};return function(){var v,m,g=e.arrow,_=e.trigger,y=e.disabled,C=e.overlayClassName,w=(v=r.default)===null||v===void 0?void 0:v.call(r)[0],b=Fn(w,fn({class:Ne(w==null||(m=w.props)===null||m===void 0?void 0:m.class,U({},"".concat(s.value,"-rtl"),u.value==="rtl"),"".concat(s.value,"-trigger"))},y?{disabled:y}:{})),S=Ne(C,U({},"".concat(s.value,"-rtl"),u.value==="rtl")),E=y?[]:_,L;E&&E.indexOf("contextmenu")!==-1&&(L=!0);var T=iH({arrowPointAtCenter:at(g)==="object"&&g.pointAtCenter,autoAdjustOverflow:!0}),R=nr(O(O(O({},e),i),{},{builtinPlacements:T,overlayClassName:S,arrow:g,alignPoint:L,prefixCls:s.value,getPopupContainer:c.value,transitionName:d.value,trigger:E,onVisibleChange:p,placement:h.value}),["overlay","onUpdate:visible"]);return I(oH,R,{default:function(){return[b]},overlay:f})}}});uH.Button=Sy;const Js=uH;var joe=["class","style"],zoe=function(){return{prefixCls:String,href:String,separator:ie.any,overlay:ie.any,onClick:Function}};const Ey=be({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:zoe(),slots:["separator","overlay"],setup:function(e,t){var r=t.slots,i=t.attrs,o=Et("breadcrumb",e),a=o.prefixCls,s=function(u,c){var d=Xa(r,e,"overlay");return d?I(Js,{overlay:d,placement:"bottom"},{default:function(){return[I("span",{class:"".concat(c,"-overlay-link")},[u,I(tC,null,null)])]}}):u};return function(){var l,u=(l=Xa(r,e,"separator"))!==null&&l!==void 0?l:"/",c=Xa(r,e),d=i.class,f=i.style,h=Nt(i,joe),p;return e.href!==void 0?p=I("a",O({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]):p=I("span",O({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]),p=s(p,a.value),c?I("span",{class:d,style:f},[p,u&&I("span",{class:"".concat(a.value,"-separator")},[u])]):null}}});function Koe(n,e,t,r){var i=t?t.call(r,n,e):void 0;if(i!==void 0)return!!i;if(n===e)return!0;if(at(n)!=="object"||!n||at(e)!=="object"||!e)return!1;var o=Object.keys(n),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),l=0;l-1}function _H(n,e,t){for(var r=-1,i=n==null?0:n.length;++r=rae){var u=e?null:nae(n);if(u)return Px(u);a=!1,i=py,l=new Jf}else l=e?[]:s;e:for(;++r"u"?Ce=L&&de?oe:"":ae===!1&&(Ce="");var $={title:Ce};!C.value&&!y.value&&($.title=null,$.visible=!1);var A={};e.role==="option"&&(A["aria-selected"]=M.value);var P=Xa(r,e,"icon");return I(nC,O(O({},$),{},{placement:_.value?"left":"right",overlayClassName:"".concat(p.value,"-inline-collapsed-tooltip")}),{default:function(){return[I(Mf.Item,O(O(O({component:"li"},o),{},{id:e.id,style:O(O({},o.style||{}),Z.value),class:[H.value,(G={},U(G,"".concat(o.class),!!o.class),U(G,"".concat(p.value,"-item-only-child"),(P?de+1:de)===1),G)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},A),{},{onMouseenter:F,onMouseleave:B,onClick:W,onKeydown:j,onFocus:K,title:typeof ae=="string"?ae:void 0}),{default:function(){return[Fn(P,{class:"".concat(p.value,"-item-icon")},!1),X(P,oe)]}})]}})}}});var Zl={adjustX:1,adjustY:1},cae={topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Zl,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Zl,offset:[4,0]}},dae={topLeft:{points:["bl","tl"],overflow:Zl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Zl,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Zl,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Zl,offset:[4,0]}},fae={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const WM=be({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,t){var r=t.slots,i=t.emit,o=ee(!1),a=Tu(),s=a.getPopupContainer,l=a.rtl,u=a.subMenuOpenDelay,c=a.subMenuCloseDelay,d=a.builtinPlacements,f=a.triggerSubMenuAction,h=a.isRootMenu,p=a.forceSubMenuRender,v=a.motion,m=a.defaultMotions,g=hH(),_=V(function(){return l.value?O(O({},dae),d.value):O(O({},cae),d.value)}),y=V(function(){return fae[e.mode]}),C=ee();We(function(){return e.visible},function(S){Mt.cancel(C.value),C.value=Mt(function(){o.value=S})},{immediate:!0}),Xt(function(){Mt.cancel(C.value)});var w=function(E){i("visibleChange",E)},b=V(function(){var S,E,L=v.value||((S=m.value)===null||S===void 0?void 0:S[e.mode])||((E=m.value)===null||E===void 0?void 0:E.other),T=typeof L=="function"?L():L;return T?Og(T.name,{css:!0}):void 0});return function(){var S=e.prefixCls,E=e.popupClassName,L=e.mode,T=e.popupOffset,R=e.disabled;return I(Zb,{prefixCls:S,popupClassName:Ne("".concat(S,"-popup"),U({},"".concat(S,"-rtl"),l.value),E),stretch:L==="horizontal"?"minWidth":null,getPopupContainer:h.value?s.value:function(N){return N.parentNode},builtinPlacements:_.value,popupPlacement:y.value,popupVisible:o.value,popupAlign:T&&{offset:T},action:R?[]:[f.value],mouseEnterDelay:u.value,mouseLeaveDelay:c.value,onPopupVisibleChange:w,forceRender:g||p.value,popupAnimation:b.value},{popup:r.popup,default:r.default})}}});var wH=function(e,t){var r,i=t.slots,o=t.attrs,a=Tu(),s=a.prefixCls,l=a.mode;return I("ul",O(O({},o),{},{class:Ne(s.value,"".concat(s.value,"-sub"),"".concat(s.value,"-").concat(l.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(r=i.default)===null||r===void 0?void 0:r.call(i)])};wH.displayName="SubMenuList";const SH=wH,hae=be({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,t){var r=t.slots,i=V(function(){return"inline"}),o=Tu(),a=o.motion,s=o.mode,l=o.defaultMotions,u=V(function(){return s.value===i.value}),c=ee(!u.value),d=V(function(){return u.value?e.open:!1});We(s,function(){u.value&&(c.value=!1)},{flush:"post"});var f=V(function(){var h,p,v=a.value||((h=l.value)===null||h===void 0?void 0:h[i.value])||((p=l.value)===null||p===void 0?void 0:p.other),m=typeof v=="function"?v():v;return O(O({},m),{},{appear:e.keyPath.length<=1})});return function(){var h;return c.value?null:I(Ly,{mode:i.value},{default:function(){return[I(Zo,f.value,{default:function(){return[Ki(I(SH,{id:e.id},{default:function(){return[(h=r.default)===null||h===void 0?void 0:h.call(r)]}}),[[fl,d.value]])]}})]}})}}});var VM=0,pae=function(){return{icon:ie.any,title:ie.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const jv=be({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:pae(),slots:["icon","title","expandIcon"],setup:function(e,t){var r,i,o=t.slots,a=t.attrs,s=t.emit;vH(!1);var l=aO(),u=Dr(),c=at(u.vnode.key)==="symbol"?String(u.vnode.key):u.vnode.key;Kn(at(u.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var d=L1(c)?c:"sub_menu_".concat(++VM,"_$$_not_set_key"),f=(r=e.eventKey)!==null&&r!==void 0?r:L1(c)?"sub_menu_".concat(++VM,"_$$_").concat(c):d,h=oO(),p=h.parentEventKeys,v=h.parentInfo,m=h.parentKeys,g=V(function(){return[].concat(Ge(m.value),[d])}),_=ee([]),y={eventKey:f,key:d,parentEventKeys:p,childrenEventKeys:_,parentKeys:m};(i=v.childrenEventKeys)===null||i===void 0||i.value.push(f),Xt(function(){if(v.childrenEventKeys){var _e;v.childrenEventKeys.value=(_e=v.childrenEventKeys)===null||_e===void 0?void 0:_e.value.filter(function(fe){return fe!=f})}}),sae(f,d,y);var C=Tu(),w=C.prefixCls,b=C.activeKeys,S=C.disabled,E=C.changeActiveKeys,L=C.mode,T=C.inlineCollapsed,R=C.antdMenuTheme,N=C.openKeys,D=C.overflowDisabled,M=C.onOpenChange,H=C.registerMenuInfo,k=C.unRegisterMenuInfo,W=C.selectedSubMenuKeys,F=C.expandIcon,B=c!=null,j=!l&&(hH()||!B);Goe(j),(l&&B||!l&&!B||j)&&(H(f,y),Xt(function(){k(f)}));var K=V(function(){return"".concat(w.value,"-submenu")}),X=V(function(){return S.value||e.disabled}),Z=ee(),z=ee(),Y=V(function(){return N.value.includes(d)}),te=V(function(){return!D.value&&Y.value}),G=V(function(){return W.value.includes(d)}),ae=ee(!1);We(b,function(){ae.value=!!b.value.find(function(_e){return _e===d})},{immediate:!0});var oe=function(fe){X.value||(s("titleClick",fe,d),L.value==="inline"&&M(d,!Y.value))},de=function(fe){X.value||(E(g.value),s("mouseenter",fe))},Ce=function(fe){X.value||(E([]),s("mouseleave",fe))},$=CH(V(function(){return g.value.length})),A=function(fe){L.value!=="inline"&&M(d,fe)},P=function(){E(g.value)},Q=f&&"".concat(f,"-popup"),re=V(function(){return Ne(w.value,"".concat(w.value,"-").concat(R.value),e.popupClassName)}),le=function(fe,ne){if(!ne)return T.value&&!m.value.length&&fe&&typeof fe=="string"?I("div",{class:"".concat(w.value,"-inline-collapsed-noicon")},[fe.charAt(0)]):I("span",{class:"".concat(w.value,"-title-content")},[fe]);var ce=ni(fe)&&fe.type==="span";return I(kt,null,[Fn(ne,{class:"".concat(w.value,"-item-icon")},!1),ce?fe:I("span",{class:"".concat(w.value,"-title-content")},[fe])])},me=V(function(){return L.value!=="inline"&&g.value.length>1?"vertical":L.value}),ge=V(function(){return L.value==="horizontal"?"vertical":L.value}),he=V(function(){return me.value==="horizontal"?"vertical":me.value}),ue=function(){var fe=K.value,ne=Xa(o,e,"icon"),ce=e.expandIcon||o.expandIcon||F.value,Me=le(Xa(o,e,"title"),ne);return I("div",{style:$.value,class:"".concat(fe,"-title"),tabindex:X.value?null:-1,ref:Z,title:typeof Me=="string"?Me:null,"data-menu-id":d,"aria-expanded":te.value,"aria-haspopup":!0,"aria-controls":Q,"aria-disabled":X.value,onClick:oe,onFocus:P},[Me,L.value!=="horizontal"&&ce?ce(O(O({},e),{},{isOpen:te.value})):I("i",{class:"".concat(fe,"-arrow")},null)])};return function(){var _e;if(l){var fe;return B?(fe=o.default)===null||fe===void 0?void 0:fe.call(o):null}var ne=K.value,ce=function(){return null};return!D.value&&L.value!=="inline"?ce=function(){return I(WM,{mode:me.value,prefixCls:ne,visible:!e.internalPopupClose&&te.value,popupClassName:re.value,popupOffset:e.popupOffset,disabled:X.value,onVisibleChange:A},{default:function(){return[ue()]},popup:function(){return I(Ly,{mode:he.value,isRootMenu:!1},{default:function(){return[I(SH,{id:Q,ref:z},{default:o.default})]}})}})}:ce=function(){return I(WM,null,{default:ue})},I(Ly,{mode:ge.value},{default:function(){return[I(Mf.Item,O(O({component:"li"},a),{},{role:"none",class:Ne(ne,"".concat(ne,"-").concat(L.value),a.class,(_e={},U(_e,"".concat(ne,"-open"),te.value),U(_e,"".concat(ne,"-active"),ae.value),U(_e,"".concat(ne,"-selected"),G.value),U(_e,"".concat(ne,"-disabled"),X.value),_e)),onMouseenter:de,onMouseleave:Ce,"data-submenu-id":d}),{default:function(){return I(kt,null,[ce(),!D.value&&I(hae,{id:Q,open:te.value,keyPath:g.value},{default:o.default})])}})]}})}}});function EH(n,e){if(n.classList)return n.classList.contains(e);var t=n.className;return" ".concat(t," ").indexOf(" ".concat(e," "))>-1}function HM(n,e){n.classList?n.classList.add(e):EH(n,e)||(n.className="".concat(n.className," ").concat(e))}function UM(n,e){if(n.classList)n.classList.remove(e);else if(EH(n,e)){var t=n.className;n.className=" ".concat(t," ").replace(" ".concat(e," ")," ")}}var vae=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:function(i){i.style.height="0px",i.style.opacity="0",HM(i,e)},onEnter:function(i){en(function(){i.style.height="".concat(i.scrollHeight,"px"),i.style.opacity="1"})},onAfterEnter:function(i){i&&(UM(i,e),i.style.height=null,i.style.opacity=null)},onBeforeLeave:function(i){HM(i,e),i.style.height="".concat(i.offsetHeight,"px"),i.style.opacity=null},onLeave:function(i){setTimeout(function(){i.style.height="0px",i.style.opacity="0"})},onAfterLeave:function(i){i&&(UM(i,e),i.style&&(i.style.height=null,i.style.opacity=null))}}};const Mg=vae;var gae=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},$M=[];const Ci=be({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:gae(),slots:["expandIcon","overflowedIndicator"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.attrs,a=Et("menu",e),s=a.prefixCls,l=a.direction,u=a.getPrefixCls,c=ee({}),d=yt(oae,ee(void 0)),f=V(function(){return d.value!==void 0?d.value:e.inlineCollapsed}),h=ee(!1);Wt(function(){h.value=!0}),Ft(function(){Kn(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Kn(!(d.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var p=ee([]),v=ee([]),m=ee({});We(c,function(){for(var z={},Y=0,te=Object.values(c.value);Y0&&arguments[0]!==void 0?arguments[0]:y.value;sp(y.value,z)||(y.value=z.slice())},{immediate:!0,deep:!0});var C,w=function(Y){clearTimeout(C),C=setTimeout(function(){e.activeKey===void 0&&(p.value=Y),i("update:activeKey",Y[Y.length-1])})},b=V(function(){return!!e.disabled}),S=V(function(){return l.value==="rtl"}),E=ee("vertical"),L=ee(!1);Ft(function(){(e.mode==="inline"||e.mode==="vertical")&&f.value?(E.value="vertical",L.value=f.value):(E.value=e.mode,L.value=!1)});var T=V(function(){return E.value==="inline"}),R=function(Y){y.value=Y,i("update:openKeys",Y),i("openChange",Y)},N=ee(y.value),D=ee(!1);We(y,function(){T.value&&(N.value=y.value)},{immediate:!0}),We(T,function(){if(!D.value){D.value=!0;return}T.value?y.value=N.value:R($M)},{immediate:!0});var M=V(function(){var z;return z={},U(z,"".concat(s.value),!0),U(z,"".concat(s.value,"-root"),!0),U(z,"".concat(s.value,"-").concat(E.value),!0),U(z,"".concat(s.value,"-inline-collapsed"),L.value),U(z,"".concat(s.value,"-rtl"),S.value),U(z,"".concat(s.value,"-").concat(e.theme),!0),z}),H=V(function(){return u()}),k=V(function(){return{horizontal:{name:"".concat(H.value,"-slide-up")},inline:Mg,other:{name:"".concat(H.value,"-zoom-big")}}});vH(!0);var W=function z(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=[],G=c.value;return Y.forEach(function(ae){var oe=G[ae],de=oe.key,Ce=oe.childrenEventKeys;te.push.apply(te,[de].concat(Ge(z(gr(Ce)))))}),te},F=function(Y){i("click",Y),_(Y)},B=function(Y,te){var G=m.value[Y].childrenEventKeys,ae=y.value.filter(function(de){return de!==Y});if(te)ae.push(Y);else if(E.value!=="inline"){var oe=W(gr(G));ae=rw(ae.filter(function(de){return!oe.includes(de)}))}sp(y,ae)||R(ae)},j=function(Y,te){c.value=O(O({},c.value),{},U({},Y,te))},K=function(Y){delete c.value[Y],c.value=O({},c.value)},X=ee(0),Z=V(function(){return e.expandIcon||r.expandIcon?function(z){var Y=e.expandIcon||r.expandIcon;return Y=typeof Y=="function"?Y(z):Y,Fn(Y,{class:"".concat(s.value,"-submenu-expand-icon")},!1)}:null});return Yoe({store:c,prefixCls:s,activeKeys:p,openKeys:y,selectedKeys:v,changeActiveKeys:w,disabled:b,rtl:S,mode:E,inlineIndent:V(function(){return e.inlineIndent}),subMenuCloseDelay:V(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:V(function(){return e.subMenuOpenDelay}),builtinPlacements:V(function(){return e.builtinPlacements}),triggerSubMenuAction:V(function(){return e.triggerSubMenuAction}),getPopupContainer:V(function(){return e.getPopupContainer}),inlineCollapsed:L,antdMenuTheme:V(function(){return e.theme}),siderCollapsed:d,defaultMotions:V(function(){return h.value?k.value:null}),motion:V(function(){return h.value?e.motion:null}),overflowDisabled:ee(void 0),onOpenChange:B,onItemClick:F,registerMenuInfo:j,unRegisterMenuInfo:K,selectedSubMenuKeys:g,isRootMenu:ee(!0),expandIcon:Z,forceSubMenuRender:V(function(){return e.forceSubMenuRender})}),function(){var z,Y,te=lr((z=r.default)===null||z===void 0?void 0:z.call(r)),G=X.value>=te.length-1||E.value!=="horizontal"||e.disabledOverflow,ae=E.value!=="horizontal"||e.disabledOverflow?te:te.map(function(de,Ce){return I(Ly,{key:de.key,overflowDisabled:Ce>X.value},{default:function(){return de}})}),oe=((Y=r.overflowedIndicator)===null||Y===void 0?void 0:Y.call(r))||I(nO,null,null);return I(Mf,O(O({},o),{},{onMousedown:e.onMousedown,prefixCls:"".concat(s.value,"-overflow"),component:"ul",itemComponent:$v,class:[M.value,o.class],role:"menu",id:e.id,data:ae,renderRawItem:function(Ce){return Ce},renderRawRest:function(Ce){var $=Ce.length,A=$?te.slice(-$):null;return I(kt,null,[I(jv,{eventKey:Rm,key:Rm,title:oe,disabled:G,internalPopupClose:$===0},{default:function(){return A}}),I(BM,null,{default:function(){return[I(jv,{eventKey:Rm,key:Rm,title:oe,disabled:G,internalPopupClose:$===0},{default:function(){return A}})]}})])},maxCount:E.value!=="horizontal"||e.disabledOverflow?Mf.INVALIDATE:Mf.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ce){X.value=Ce}}),{default:function(){return[I(QT,{to:"body"},{default:function(){return[I("div",{style:{display:"none"},"aria-hidden":!0},[I(BM,null,{default:function(){return[ae]}})])]}})]}})}}});var mae=function(){return{title:ie.any}};const eE=be({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:mae(),slots:["title"],setup:function(e,t){var r=t.slots,i=t.attrs,o=Tu(),a=o.prefixCls,s=V(function(){return"".concat(a.value,"-item-group")}),l=aO();return function(){var u,c;return l?(u=r.default)===null||u===void 0?void 0:u.call(r):I("li",O(O({},i),{},{onClick:function(f){return f.stopPropagation()},class:s.value}),[I("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(s.value,"-title")},[Xa(r,e,"title")]),I("ul",{class:"".concat(s.value,"-list")},[(c=r.default)===null||c===void 0?void 0:c.call(r)])])}}});var _ae=function(){return{prefixCls:String,dashed:Boolean}};const tE=be({compatConfig:{MODE:3},name:"AMenuDivider",props:_ae(),setup:function(e){var t=Et("menu",e),r=t.prefixCls,i=V(function(){var o;return o={},U(o,"".concat(r.value,"-item-divider"),!0),U(o,"".concat(r.value,"-item-divider-dashed"),!!e.dashed),o});return function(){return I("li",{class:i.value},null)}}});Ci.install=function(n){return n.component(Ci.name,Ci),n.component($v.name,$v),n.component(jv.name,jv),n.component(tE.name,tE),n.component(eE.name,eE),n};Ci.Item=$v;Ci.Divider=tE;Ci.SubMenu=jv;Ci.ItemGroup=eE;var yae=function(){return{prefixCls:String,routes:{type:Array},params:ie.any,separator:ie.any,itemRender:{type:Function}}};function bae(n,e){if(!n.breadcrumbName)return null;var t=Object.keys(e).join("|"),r=n.breadcrumbName.replace(new RegExp(":(".concat(t,")"),"g"),function(i,o){return e[o]||i});return r}function jM(n){var e=n.route,t=n.params,r=n.routes,i=n.paths,o=r.indexOf(e)===r.length-1,a=bae(e,t);return o?I("span",null,[a]):I("a",{href:"#/".concat(i.join("/"))},[a])}const kf=be({compatConfig:{MODE:3},name:"ABreadcrumb",props:yae(),slots:["separator","itemRender"],setup:function(e,t){var r=t.slots,i=Et("breadcrumb",e),o=i.prefixCls,a=i.direction,s=function(d,f){return d=(d||"").replace(/^\//,""),Object.keys(f).forEach(function(h){d=d.replace(":".concat(h),f[h])}),d},l=function(d,f,h){var p=Ge(d),v=s(f||"",h);return v&&p.push(v),p},u=function(d){var f=d.routes,h=f===void 0?[]:f,p=d.params,v=p===void 0?{}:p,m=d.separator,g=d.itemRender,_=g===void 0?jM:g,y=[];return h.map(function(C){var w=s(C.path,v);w&&y.push(w);var b=[].concat(y),S=null;return C.children&&C.children.length&&(S=I(Ci,null,{default:function(){return[C.children.map(function(L){return I(Ci.Item,{key:L.path||L.breadcrumbName},{default:function(){return[_({route:L,params:v,routes:h,paths:l(b,L.path,v)})]}})})]}})),I(Ey,{overlay:S,separator:m,key:w||C.breadcrumbName},{default:function(){return[_({route:C,params:v,routes:h,paths:b})]}})})};return function(){var c,d,f,h=e.routes,p=e.params,v=p===void 0?{}:p,m=lr(Xa(r,e)),g=(c=Xa(r,e,"separator"))!==null&&c!==void 0?c:"/",_=e.itemRender||r.itemRender||jM;h&&h.length>0?f=u({routes:h,params:v,separator:g,itemRender:_}):m.length&&(f=m.map(function(C,w){return _a(at(C.type)==="object"&&(C.type.__ANT_BREADCRUMB_ITEM||C.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),ji(C,{separator:g,key:w})}));var y=(d={},U(d,o.value,!0),U(d,"".concat(o.value,"-rtl"),a.value==="rtl"),d);return I("div",{class:y},[f])}}});var Cae=["separator","class"],wae=function(){return{prefixCls:String}};const nE=be({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:wae(),setup:function(e,t){var r=t.slots,i=t.attrs,o=Et("breadcrumb",e),a=o.prefixCls;return function(){var s;i.separator;var l=i.class,u=Nt(i,Cae),c=lr((s=r.default)===null||s===void 0?void 0:s.call(r));return I("span",O({class:["".concat(a.value,"-separator"),l]},u),[c.length>0?c:"/"])}}});kf.Item=Ey;kf.Separator=nE;kf.install=function(n){return n.component(kf.name,kf),n.component(Ey.name,Ey),n.component(nE.name,nE),n};function oC(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++ti?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r0){var b=v==="button"?"".concat(s.value,"-button"):s.value;w=p.map(function(E){if(typeof E=="string"||typeof E=="number")return I(Ri,{key:E,prefixCls:b,disabled:e.disabled,value:E,checked:c.value===E},{default:function(){return[E]}});var L=E.value,T=E.disabled,R=E.label;return I(Ri,{key:"radio-group-value-options-".concat(L),prefixCls:b,disabled:T||e.disabled,value:L,checked:c.value===L},{default:function(){return[R]}})})}else{var S;w=(S=r.default)===null||S===void 0?void 0:S.call(r)}return I("div",{class:C,id:_},[w])}}}),zae=be({compatConfig:{MODE:3},name:"ARadioButton",props:TH(),setup:function(e,t){var r=t.slots,i=Et("radio-button",e),o=i.prefixCls,a=yt("radioGroupContext",void 0);return function(){var s,l=O(O({},e),{},{prefixCls:o.value});return a&&(l.onChange=a.onRadioChange,l.checked=l.value===a.stateValue.value,l.disabled=l.disabled||a.props.disabled),I(Ri,l,{default:function(){return[(s=r.default)===null||s===void 0?void 0:s.call(r)]}})}}});Ri.Group=jae;Ri.Button=zae;Ri.install=function(n){return n.component(Ri.name,Ri),n.component(Ri.Group.name,Ri.Group),n.component(Ri.Button.name,Ri.Button),n};function Kae(n){var e=ee(),t=ee(!1);function r(){for(var i=arguments.length,o=new Array(i),a=0;aF?(k=M,b.value="x"):(k=H,b.value="y"),e(-k,-k)&&D.preventDefault()}var E=ee({onTouchStart:y,onTouchMove:C,onTouchEnd:w,onWheel:S});function L(D){E.value.onTouchStart(D)}function T(D){E.value.onTouchMove(D)}function R(D){E.value.onTouchEnd(D)}function N(D){E.value.onWheel(D)}Wt(function(){var D,M;document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),(D=n.value)===null||D===void 0||D.addEventListener("touchstart",L,{passive:!1}),(M=n.value)===null||M===void 0||M.addEventListener("wheel",N,{passive:!1})}),Xt(function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",R)})}function QM(n,e){var t=ee(n);function r(i){var o=typeof i=="function"?i(t.value):i;o!==t.value&&e(o,t.value),t.value=o}return[t,r]}var tse=function(){var e=ee(new Map),t=function(i){return function(o){e.value.set(i,o)}};return S5(function(){e.value=new Map}),[t,e]};const DH=tse;var nse=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rse=/^\w*$/;function sO(n,e){if(Ko(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||aC(n)?!0:rse.test(n)||!nse.test(n)||e!=null&&n in Object(e)}var ise="Expected a function";function lO(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(ise);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(lO.Cache||pl),t}lO.Cache=pl;var ose=500;function ase(n){var e=lO(n,function(r){return t.size===ose&&t.clear(),r}),t=e.cache;return e}var sse=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lse=/\\(\\)?/g,use=ase(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(sse,function(t,r,i,o){e.push(i?o.replace(lse,"$1"):r||t)}),e});const cse=use;function Ah(n,e){return Ko(n)?n:sO(n,e)?[n]:cse(Bae(n))}var dse=1/0;function Rh(n){if(typeof n=="string"||aC(n))return n;var e=n+"";return e=="0"&&1/n==-dse?"-0":e}function sC(n,e){e=Ah(e,n);for(var t=0,r=e.length;n!=null&&t0&&t(s)?e>1?PH(s,e-1,t,r,i):Mx(i,s):r||(i[i.length]=s)}return i}function Cse(n){var e=n==null?0:n.length;return e?PH(n,1):[]}function wse(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var ek=Math.max;function MH(n,e,t){return e=ek(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=ek(r.length-e,0),a=Array(o);++i0){if(++e>=Ise)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Nse=Ose(Lse);const kH=Nse;function FH(n){return kH(MH(n,void 0,Cse),n+"")}var Dse=FH(function(n,e){return n==null?{}:yse(n,e)});const BH=Dse;var tk={width:0,height:0,left:0,top:0,right:0},Ase=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:ie.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}};const nk=be({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Ase(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,t){var r=t.attrs,i=t.slots,o=NH(),a=o.tabs,s=o.prefixCls,l=ee(),u=ee(),c=ee(),d=ee(),f=DH(),h=qe(f,2),p=h[0],v=h[1],m=V(function(){return e.tabPosition==="top"||e.tabPosition==="bottom"}),g=QM(0,function(Ye,Ze){m.value&&e.onTabScroll&&e.onTabScroll({direction:Ye>Ze?"left":"right"})}),_=qe(g,2),y=_[0],C=_[1],w=QM(0,function(Ye,Ze){!m.value&&e.onTabScroll&&e.onTabScroll({direction:Ye>Ze?"top":"bottom"})}),b=qe(w,2),S=b[0],E=b[1],L=er(0),T=qe(L,2),R=T[0],N=T[1],D=er(0),M=qe(D,2),H=M[0],k=M[1],W=er(null),F=qe(W,2),B=F[0],j=F[1],K=er(null),X=qe(K,2),Z=X[0],z=X[1],Y=er(0),te=qe(Y,2),G=te[0],ae=te[1],oe=er(0),de=qe(oe,2),Ce=de[0],$=de[1],A=Gae(new Map),P=qe(A,2),Q=P[0],re=P[1],le=Yae(a,Q),me=V(function(){return"".concat(s.value,"-nav-operations-hidden")}),ge=ee(0),he=ee(0);Ft(function(){m.value?e.rtl?(ge.value=0,he.value=Math.max(0,R.value-B.value)):(ge.value=Math.min(0,B.value-R.value),he.value=0):(ge.value=Math.min(0,Z.value-H.value),he.value=0)});var ue=function(Ze){return Zehe.value?he.value:Ze},_e=ee(),fe=er(),ne=qe(fe,2),ce=ne[0],Me=ne[1],Ve=function(){Me(Date.now())},xe=function(){clearTimeout(_e.value)},ve=function(Ze,it){Ze(function(pt){var vt=ue(pt+it);return vt})};ese(l,function(Ye,Ze){if(m.value){if(B.value>=R.value)return!1;ve(C,Ye)}else{if(Z.value>=H.value)return!1;ve(E,Ze)}return xe(),Ve(),!0}),We(ce,function(){xe(),ce.value&&(_e.value=setTimeout(function(){Me(0)},100))});var Pe=function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,it=le.value.get(Ze)||{width:0,height:0,left:0,right:0,top:0};if(m.value){var pt=y.value;e.rtl?it.righty.value+B.value&&(pt=it.right+it.width-B.value):it.left<-y.value?pt=-it.left:it.left+it.width>-y.value+B.value&&(pt=-(it.left+it.width-B.value)),E(0),C(ue(pt))}else{var vt=S.value;it.top<-S.value?vt=-it.top:it.top+it.height>-S.value+Z.value&&(vt=-(it.top+it.height-Z.value)),C(0),E(ue(vt))}},tt=ee(0),De=ee(0);Ft(function(){var Ye,Ze,it,pt,vt,xt,wt,_n=le.value;["top","bottom"].includes(e.tabPosition)?(Ze="width",vt=B.value,xt=R.value,wt=G.value,it=e.rtl?"right":"left",pt=Math.abs(y.value)):(Ze="height",vt=Z.value,xt=R.value,wt=Ce.value,it="top",pt=-S.value);var Dt=vt;xt+wt>vt&&xtpt+Dt){Hn=Fr-1;break}}for(var Ln=0,Yn=hr-1;Yn>=0;Yn-=1){var rr=_n.get(wn[Yn].key)||tk;if(rr[it]0,Ln=y.value+B.value0?"".concat(h[0]/-2,"px"):void 0,m=h[1]>0?"".concat(h[1]/-2,"px"):void 0;return v&&(p.marginLeft=v,p.marginRight=v),u.value?p.rowGap="".concat(h[1],"px"):m&&(p.marginTop=m,p.marginBottom=m),p});return function(){var h;return I("div",{class:d.value,style:f.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}});const fO=qse;function Yse(n){return typeof n=="number"?"".concat(n," ").concat(n," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(n)?"0 0 ".concat(n):n}var Xse=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}};const lC=be({compatConfig:{MODE:3},name:"ACol",props:Xse(),setup:function(e,t){var r=t.slots,i=Kse(),o=i.gutter,a=i.supportFlexGap,s=i.wrap,l=Et("col",e),u=l.prefixCls,c=l.direction,d=V(function(){var h,p=e.span,v=e.order,m=e.offset,g=e.push,_=e.pull,y=u.value,C={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach(function(w){var b,S={},E=e[w];typeof E=="number"?S.span=E:at(E)==="object"&&(S=E||{}),C=O(O({},C),{},(b={},U(b,"".concat(y,"-").concat(w,"-").concat(S.span),S.span!==void 0),U(b,"".concat(y,"-").concat(w,"-order-").concat(S.order),S.order||S.order===0),U(b,"".concat(y,"-").concat(w,"-offset-").concat(S.offset),S.offset||S.offset===0),U(b,"".concat(y,"-").concat(w,"-push-").concat(S.push),S.push||S.push===0),U(b,"".concat(y,"-").concat(w,"-pull-").concat(S.pull),S.pull||S.pull===0),U(b,"".concat(y,"-rtl"),c.value==="rtl"),b))}),Ne(y,(h={},U(h,"".concat(y,"-").concat(p),p!==void 0),U(h,"".concat(y,"-order-").concat(v),v),U(h,"".concat(y,"-offset-").concat(m),m),U(h,"".concat(y,"-push-").concat(g),g),U(h,"".concat(y,"-pull-").concat(_),_),h),C)}),f=V(function(){var h=e.flex,p=o.value,v={};if(p&&p[0]>0){var m="".concat(p[0]/2,"px");v.paddingLeft=m,v.paddingRight=m}if(p&&p[1]>0&&!a.value){var g="".concat(p[1]/2,"px");v.paddingTop=g,v.paddingBottom=g}return h&&(v.flex=Yse(h),s.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return function(){var h;return I("div",{class:d.value,style:f.value},[(h=r.default)===null||h===void 0?void 0:h.call(r)])}}}),Zse=Lu(fO),Qse=Lu(lC);var Jse=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:ie.object,expandIconPosition:ie.oneOf(Si("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},$H=function(){return{openAnimation:ie.object,prefixCls:String,header:ie.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:ie.any,panelKey:ie.oneOfType([ie.string,ie.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function ok(n){var e=n;if(!Array.isArray(e)){var t=at(e);e=t==="number"||t==="string"?[e]:[]}return e.map(function(r){return String(r)})}const rv=be({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Wn(Jse(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Mg("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var r=t.attrs,i=t.slots,o=t.emit,a=ee(ok(wy([e.activeKey,e.defaultActiveKey])));We(function(){return e.activeKey},function(){a.value=ok(e.activeKey)},{deep:!0});var s=Et("collapse",e),l=s.prefixCls,u=s.direction,c=V(function(){var m=e.expandIconPosition;return m!==void 0?m:u.value==="rtl"?"right":"left"}),d=function(g){var _=e.expandIcon,y=_===void 0?i.expandIcon:_,C=y?y(g):I(iO,{rotate:g.isActive?90:void 0},null);return I("div",null,[ni(Array.isArray(y)?C[0]:C)?Fn(C,{class:"".concat(l.value,"-arrow")},!1):C])},f=function(g){e.activeKey===void 0&&(a.value=g);var _=e.accordion?g[0]:g;o("update:activeKey",_),o("change",_)},h=function(g){var _=a.value;if(e.accordion)_=_[0]===g?[]:[g];else{_=Ge(_);var y=_.indexOf(g),C=y>-1;C?_.splice(y,1):_.push(g)}f(_)},p=function(g,_){var y,C,w;if(!Ub(g)){var b=a.value,S=e.accordion,E=e.destroyInactivePanel,L=e.collapsible,T=e.openAnimation,R=String((y=g.key)!==null&&y!==void 0?y:_),N=g.props||{},D=N.header,M=D===void 0?(C=g.children)===null||C===void 0||(w=C.header)===null||w===void 0?void 0:w.call(C):D,H=N.headerClass,k=N.collapsible,W=N.disabled,F=!1;S?F=b[0]===R:F=b.indexOf(R)>-1;var B=k??L;(W||W==="")&&(B="disabled");var j={key:R,panelKey:R,header:M,headerClass:H,isActive:F,prefixCls:l.value,destroyInactivePanel:E,openAnimation:T,accordion:S,onItemClick:B==="disabled"?null:h,expandIcon:d,collapsible:B};return Fn(g,j)}},v=function(){var g;return lr((g=i.default)===null||g===void 0?void 0:g.call(i)).map(p)};return function(){var m,g=e.accordion,_=e.bordered,y=e.ghost,C=Ne((m={},U(m,l.value,!0),U(m,"".concat(l.value,"-borderless"),!_),U(m,"".concat(l.value,"-icon-position-").concat(c.value),!0),U(m,"".concat(l.value,"-rtl"),u.value==="rtl"),U(m,"".concat(l.value,"-ghost"),!!y),U(m,r.class,!!r.class),m));return I("div",O(O({class:C},TX(r)),{},{style:r.style,role:g?"tablist":null}),[v()])}}}),ele=be({compatConfig:{MODE:3},name:"PanelContent",props:$H(),setup:function(e,t){var r=t.slots,i=ee(!1);return Ft(function(){(e.isActive||e.forceRender)&&(i.value=!0)}),function(){var o,a;if(!i.value)return null;var s=e.prefixCls,l=e.isActive,u=e.role;return I("div",{ref:ee,class:Ne("".concat(s,"-content"),(o={},U(o,"".concat(s,"-content-active"),l),U(o,"".concat(s,"-content-inactive"),!l),o)),role:u},[I("div",{class:"".concat(s,"-content-box")},[(a=r.default)===null||a===void 0?void 0:a.call(r)])])}}}),oE=be({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Wn($H(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var r=t.slots,i=t.emit,o=t.attrs;Kn(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var a=Et("collapse",e),s=a.prefixCls,l=function(){i("itemClick",e.panelKey)},u=function(d){(d.key==="Enter"||d.keyCode===13||d.which===13)&&l()};return function(){var c,d,f,h,p=e.header,v=p===void 0?(c=r.header)===null||c===void 0?void 0:c.call(r):p,m=e.headerClass,g=e.isActive,_=e.showArrow,y=e.destroyInactivePanel,C=e.accordion,w=e.forceRender,b=e.openAnimation,S=e.expandIcon,E=S===void 0?r.expandIcon:S,L=e.extra,T=L===void 0?(d=r.extra)===null||d===void 0?void 0:d.call(r):L,R=e.collapsible,N=R==="disabled",D=s.value,M=Ne("".concat(D,"-header"),(f={},U(f,m,m),U(f,"".concat(D,"-header-collapsible-only"),R==="header"),f)),H=Ne((h={},U(h,"".concat(D,"-item"),!0),U(h,"".concat(D,"-item-active"),g),U(h,"".concat(D,"-item-disabled"),N),U(h,"".concat(D,"-no-arrow"),!_),U(h,"".concat(o.class),!!o.class),h)),k=I("i",{class:"arrow"},null);_&&typeof E=="function"&&(k=E(e));var W=Ki(I(ele,{prefixCls:D,isActive:g,forceRender:w,role:C?"tabpanel":null},{default:r.default}),[[fl,g]]),F=O({appear:!1,css:!1},b);return I("div",O(O({},o),{},{class:H}),[I("div",{class:M,onClick:function(){return R!=="header"&&l()},role:C?"tab":"button",tabindex:N?-1:0,"aria-expanded":g,onKeypress:u},[_&&k,R==="header"?I("span",{onClick:l,class:"".concat(D,"-header-text")},[v]):v,T&&I("div",{class:"".concat(D,"-extra")},[T])]),I(Zo,F,{default:function(){return[!y||g?W:null]}})])}}});rv.Panel=oE;rv.install=function(n){return n.component(rv.name,rv),n.component(oE.name,oE),n};var tle=function(){return Ta.Date.now()};const iw=tle;var nle="Expected a function",rle=Math.max,ile=Math.min;function hO(n,e,t){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(nle);e=rE(e)||0,wa(t)&&(c=!!t.leading,d="maxWait"in t,o=d?rle(rE(t.maxWait)||0,e):o,f="trailing"in t?!!t.trailing:f);function h(b){var S=r,E=i;return r=i=void 0,u=b,a=n.apply(E,S),a}function p(b){return u=b,s=setTimeout(g,e),c?h(b):a}function v(b){var S=b-l,E=b-u,L=e-S;return d?ile(L,o-E):L}function m(b){var S=b-l,E=b-u;return l===void 0||S>=e||S<0||d&&E>=o}function g(){var b=iw();if(m(b))return _(b);s=setTimeout(g,v(b))}function _(b){return s=void 0,f&&r?h(b):(r=i=void 0,a)}function y(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function C(){return s===void 0?a:_(iw())}function w(){var b=iw(),S=m(b);if(r=arguments,i=this,l=b,S){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(g,e),h(l)}return s===void 0&&(s=setTimeout(g,e)),a}return w.cancel=y,w.flush=C,w}var jH=Symbol("TreeContextKey"),ole=be({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var r=t.slots;return qt(jH,V(function(){return e.value})),function(){var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}}),pO=function(){return yt(jH,V(function(){return{}}))},zH=Symbol("KeysStateKey"),ale=function(e){qt(zH,e)},KH=function(){return yt(zH,{expandedKeys:Zt([]),selectedKeys:Zt([]),loadedKeys:Zt([]),loadingKeys:Zt([]),checkedKeys:Zt([]),halfCheckedKeys:Zt([]),expandedKeysSet:V(function(){return new Set}),selectedKeysSet:V(function(){return new Set}),loadedKeysSet:V(function(){return new Set}),loadingKeysSet:V(function(){return new Set}),checkedKeysSet:V(function(){return new Set}),halfCheckedKeysSet:V(function(){return new Set}),flattenNodes:Zt([])})},sle=function(e){for(var t=e.prefixCls,r=e.level,i=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l=0&&t.splice(r,1),t}function Pl(n,e){var t=(n||[]).slice();return t.indexOf(e)===-1&&t.push(e),t}function gO(n){return n.split("-")}function qH(n,e){return"".concat(n,"-").concat(e)}function fle(n){return n&&n.type&&n.type.isTreeNode}function hle(n,e){var t=[],r=e[n];function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var s=a.key,l=a.children;t.push(s),i(l)})}return i(r.children),t}function ple(n){if(n.parent){var e=gO(n.pos);return Number(e[e.length-1])===n.parent.children.length-1}return!1}function vle(n){var e=gO(n.pos);return Number(e[e.length-1])===0}function lk(n,e,t,r,i,o,a,s,l,u){var c,d=n.clientX,f=n.clientY,h=n.target.getBoundingClientRect(),p=h.top,v=h.height,m=(u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),g=(m-12)/r,_=s[t.eventKey];if(f-1.5?o({dragNode:N,dropNode:D,dropPosition:1})?L=1:M=!1:o({dragNode:N,dropNode:D,dropPosition:0})?L=0:o({dragNode:N,dropNode:D,dropPosition:1})?L=1:M=!1:o({dragNode:N,dropNode:D,dropPosition:1})?L=1:M=!1,{dropPosition:L,dropLevelOffset:T,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:E,dropContainerKey:L===0?null:((c=_.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:M}}function uk(n,e){if(n){var t=e.multiple;return t?n.slice():n.length?[n[0]]:n}}function ow(n){if(!n)return null;var e;if(Array.isArray(n))e={checkedKeys:n,halfCheckedKeys:void 0};else if(at(n)==="object")e={checkedKeys:n.checked||void 0,halfCheckedKeys:n.halfChecked||void 0};else return null;return e}function sE(n,e){var t=new Set;function r(i){if(!t.has(i)){var o=e[i];if(o){t.add(i);var a=o.parent,s=o.node;s.disabled||a&&r(a.key)}}}return(n||[]).forEach(function(i){r(i)}),Ge(t)}var gle=["title","icon","switcherIcon"];function kg(n,e){return n??e}function uC(n){var e=n||{},t=e.title,r=e._title,i=e.key,o=e.children,a=t||"title";return{title:a,_title:r||[a],key:i||"key",children:o||"children"}}function lE(n){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=To(t);return r.map(function(i){var o,a,s,l;if(!fle(i))return null;for(var u=i.children||{},c=i.key,d={},f=0,h=Object.entries(i.props);f1&&arguments[1]!==void 0?arguments[1]:null;return c.map(function(f,h){for(var p=qH(d?d.pos:"0",h),v=kg(f[o],p),m,g=0;g1&&arguments[1]!==void 0?arguments[1]:{},t=e.initWrapper,r=e.processEntity,i=e.onProcessFinished,o=e.externalGetKey,a=e.childrenPropName,s=e.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=o||l,c={},d={},f={posEntities:c,keyEntities:d};return t&&(f=t(f)||f),_le(n,function(h){var p=h.node,v=h.index,m=h.pos,g=h.key,_=h.parentPos,y=h.level,C=h.nodes,w={node:p,nodes:C,index:v,key:g,pos:m,level:y},b=kg(g,m);c[m]=w,d[b]=w,w.parent=c[_],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,f)},{externalGetKey:u,childrenPropName:a,fieldNames:s}),i&&i(f),f}function uE(n,e){var t=e.expandedKeysSet,r=e.selectedKeysSet,i=e.loadedKeysSet,o=e.loadingKeysSet,a=e.checkedKeysSet,s=e.halfCheckedKeysSet,l=e.dragOverNodeKey,u=e.dropPosition,c=e.keyEntities,d=c[n],f={eventKey:n,expanded:t.has(n),selected:r.has(n),loaded:i.has(n),loading:o.has(n),checked:a.has(n),halfChecked:s.has(n),pos:String(d?d.pos:""),parent:d.parent,dragOver:l===n&&u===0,dragOverGapTop:l===n&&u===-1,dragOverGapBottom:l===n&&u===1};return f}function cE(n){var e=n.data,t=n.expanded,r=n.selected,i=n.checked,o=n.loaded,a=n.loading,s=n.halfChecked,l=n.dragOver,u=n.dragOverGapTop,c=n.dragOverGapBottom,d=n.pos,f=n.active,h=n.eventKey,p=O(O({dataRef:e},e),{},{expanded:t,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:h,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return n}}),p}function YH(n,e){var t=new Set;return n.forEach(function(r){e.has(r)||t.add(r)}),t}function yle(n){var e=n||{},t=e.disabled,r=e.disableCheckbox,i=e.checkable;return!!(t||r)||i===!1}function ble(n,e,t,r){for(var i=new Set(n),o=new Set,a=0;a<=t;a+=1){var s=e.get(a)||new Set;s.forEach(function(d){var f=d.key,h=d.node,p=d.children,v=p===void 0?[]:p;i.has(f)&&!r(h)&&v.filter(function(m){return!r(m.node)}).forEach(function(m){i.add(m.key)})})}for(var l=new Set,u=t;u>=0;u-=1){var c=e.get(u)||new Set;c.forEach(function(d){var f=d.parent,h=d.node;if(!(r(h)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var p=!0,v=!1;(f.children||[]).filter(function(m){return!r(m.node)}).forEach(function(m){var g=m.key,_=i.has(g);p&&!_&&(p=!1),!v&&(_||o.has(g))&&(v=!0)}),p&&i.add(f.key),v&&o.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(YH(o,i))}}function Cle(n,e,t,r,i){for(var o=new Set(n),a=new Set(e),s=0;s<=r;s+=1){var l=t.get(s)||new Set;l.forEach(function(f){var h=f.key,p=f.node,v=f.children,m=v===void 0?[]:v;!o.has(h)&&!a.has(h)&&!i(p)&&m.filter(function(g){return!i(g.node)}).forEach(function(g){o.delete(g.key)})})}a=new Set;for(var u=new Set,c=r;c>=0;c-=1){var d=t.get(c)||new Set;d.forEach(function(f){var h=f.parent,p=f.node;if(!(i(p)||!f.parent||u.has(f.parent.key))){if(i(f.parent.node)){u.add(h.key);return}var v=!0,m=!1;(h.children||[]).filter(function(g){return!i(g.node)}).forEach(function(g){var _=g.key,y=o.has(_);v&&!y&&(v=!1),!m&&(y||a.has(_))&&(m=!0)}),v||o.delete(h.key),m&&a.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(YH(a,o))}}function Ff(n,e,t,r,i,o){var a;o?a=o:a=yle;var s=new Set(n.filter(function(u){var c=!!t[u];return c})),l;return e===!0?l=ble(s,i,r,a):l=Cle(s,e.halfCheckedKeys,i,r,a),l}function XH(n){var e=ee(0),t=Zt();return Ft(function(){var r=new Map,i=0,o=n.value||{};for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a],l=s.level,u=r.get(l);u||(u=new Set,r.set(l,u)),u.add(s),i=Math.max(i,l)}e.value=i,t.value=r}),{maxLevel:e,levelEntities:t}}var wle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Sle=wle;function ck(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D_(n,e,t){return ece()?D_=Reflect.construct.bind():D_=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&zv(u,a.prototype),u},D_.apply(null,arguments)}function tce(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function fE(n){var e=typeof Map=="function"?new Map:void 0;return fE=function(r){if(r===null||!tce(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return D_(r,arguments,dE(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zv(i,r)},fE(n)}var nce=/%[sdj%]/g,rce=function(){};function hE(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function wo(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r=o)return s;switch(s){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return s}});return a}return n}function ice(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Gr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||ice(e)&&typeof n=="string"&&!n)}function oce(n,e,t){var r=[],i=0,o=n.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&t(r)}n.forEach(function(s){e(s,a)})}function yk(n,e,t){var r=0,i=n.length;function o(a){if(a&&a.length){t(a);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},kp={integer:function(e){return kp.number(e)&&parseInt(e,10)===e},float:function(e){return kp.number(e)&&!kp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!kp.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Sk.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Fue())},hex:function(e){return typeof e=="string"&&!!e.match(Sk.hex)}},Bue=function(e,t,r,i,o){if(e.required&&t===void 0){a8(e,t,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?kp[s](t)||i.push(wo(o.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&i.push(wo(o.messages.types[s],e.fullField,e.type))},Wue=function(e,t,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,f=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),h&&(c=t.replace(u,"_").length),a?c!==e.len&&i.push(wo(o.messages[d].len,e.fullField,e.len)):s&&!l&&ce.max?i.push(wo(o.messages[d].max,e.fullField,e.max)):s&&l&&(ce.max)&&i.push(wo(o.messages[d].range,e.fullField,e.min,e.max))},kd="enum",Vue=function(e,t,r,i,o){e[kd]=Array.isArray(e[kd])?e[kd]:[],e[kd].indexOf(t)===-1&&i.push(wo(o.messages[kd],e.fullField,e[kd].join(", ")))},Hue=function(e,t,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(wo(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||i.push(wo(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},on={required:a8,whitespace:kue,type:Bue,range:Wue,enum:Vue,pattern:Hue},Uue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"string")&&!e.required)return r();on.required(e,t,i,a,o,"string"),Gr(t,"string")||(on.type(e,t,i,a,o),on.range(e,t,i,a,o),on.pattern(e,t,i,a,o),e.whitespace===!0&&on.whitespace(e,t,i,a,o))}r(a)},$ue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},jue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(t===""&&(t=void 0),Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},zue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},Kue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),Gr(t)||on.type(e,t,i,a,o)}r(a)},Gue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},que=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},Yue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(t==null&&!e.required)return r();on.required(e,t,i,a,o,"array"),t!=null&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},Xue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},Zue="enum",Que=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on[Zue](e,t,i,a,o)}r(a)},Jue=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"string")&&!e.required)return r();on.required(e,t,i,a,o),Gr(t,"string")||on.pattern(e,t,i,a,o)}r(a)},ece=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"date")&&!e.required)return r();if(on.required(e,t,i,a,o),!Gr(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),on.type(e,l,i,a,o),l&&on.range(e,l.getTime(),i,a,o)}}r(a)},tce=function(e,t,r,i,o){var a=[],s=Array.isArray(t)?"array":typeof t;on.required(e,t,i,a,o,s),r(a)},dw=function(e,t,r,i,o){var a=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(Gr(t,a)&&!e.required)return r();on.required(e,t,i,s,o,a),Gr(t,a)||on.type(e,t,i,s,o)}r(s)},nce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o)}r(a)},iv={string:Uue,method:$ue,number:jue,boolean:zue,regexp:Kue,integer:Gue,float:que,array:Yue,object:Xue,enum:Que,pattern:Jue,date:ece,url:dw,hex:dw,email:dw,required:tce,any:nce};function mE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _E=mE(),Mg=function(){function n(t){this.rules=null,this._messages=_E,this.define(t)}var e=n.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=wk(mE(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var m=[],g={};function _(b){if(Array.isArray(b)){var w;m=(w=m).concat.apply(w,b)}else m.push(b)}for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&t===void 0&&!s8(n,e.slice(0,-1))?n:l8(n,e,t,r)}function yE(n){return ru(n)}function ice(n,e){var t=s8(n,e);return t}function oce(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=rce(n,e,t,r);return i}function ace(n,e){return n&&n.some(function(t){return lce(t,e)})}function Ek(n){return at(n)==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype}function u8(n,e){var t=Array.isArray(n)?Ge(n):O({},n);return e&&Object.keys(e).forEach(function(r){var i=t[r],o=e[r],a=Ek(i)&&Ek(o);t[r]=a?u8(i,o||{}):o}),t}function sce(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r-1?i[o?e[a]:a]:void 0}}var Lce=Math.max;function Ice(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:yae(t);return i<0&&(i=Lce(r+i,0)),yH(n,wO(e),i)}var Tce=Ece(Ice),h8=Symbol("formContextKey"),p8=function(e){qt(h8,e)},SO=function(){return yt(h8,{name:V(function(){}),labelAlign:V(function(){return"right"}),vertical:V(function(){return!1}),addField:function(t,r){},removeField:function(t){},model:V(function(){}),rules:V(function(){}),colon:V(function(){}),labelWrap:V(function(){}),labelCol:V(function(){}),requiredMark:V(function(){return!1}),validateTrigger:V(function(){}),onValidate:function(){},validateMessages:V(function(){return fC})})},v8=Symbol("formItemPrefixContextKey"),xce=function(e){qt(v8,e)},Oce=function(){return yt(v8,{prefixCls:V(function(){return""})})},EO=function(e,t){var r,i,o,a,s=t.slots,l=t.emit,u=t.attrs,c=O(O({},e),u),d=c.prefixCls,f=c.htmlFor,h=c.labelCol,p=c.labelAlign,v=c.colon,m=c.required,g=c.requiredMark,_=Lh("Form"),y=Ye(_,1),b=y[0],w=(r=e.label)!==null&&r!==void 0?r:(i=s.label)===null||i===void 0?void 0:i.call(s);if(!w)return null;var C=SO(),S=C.vertical,L=C.labelAlign,E=C.labelCol,T=C.labelWrap,P=C.colon,A=h||(E==null?void 0:E.value)||{},D=p||(L==null?void 0:L.value),M="".concat(d,"-item-label"),H=Re(M,D==="left"&&"".concat(M,"-left"),A.class,U({},"".concat(M,"-wrap"),!!T.value)),k=w,B=v===!0||(P==null?void 0:P.value)!==!1&&v!==!1,F=B&&!S.value;if(F&&typeof w=="string"&&w.trim()!==""&&(k=w.replace(/[:|:]\s*$/,"")),k=I(kt,null,[k,(o=s.tooltip)===null||o===void 0?void 0:o.call(s,{class:"".concat(d,"-item-tooltip")})]),g==="optional"&&!m){var W,$;k=I(kt,null,[k,I("span",{class:"".concat(d,"-item-optional")},[((W=b.value)===null||W===void 0?void 0:W.optional)||(($=tl.Form)===null||$===void 0?void 0:$.optional)])])}var j=Re((a={},U(a,"".concat(d,"-item-required"),m),U(a,"".concat(d,"-item-required-mark-optional"),g==="optional"),U(a,"".concat(d,"-item-no-colon"),!B),a));return I(cC,O(O({},A),{},{class:H}),{default:function(){return[I("label",{for:f,class:j,title:typeof w=="string"?w:"",onClick:function(z){return l("click",z)}},[k])]}})};EO.displayName="FormItemLabel";EO.inheritAttrs=!1;const Nce=EO,Ace=be({compatConfig:{MODE:3},name:"ErrorList",props:["errors","help","onDomErrorVisibleChange","helpStatus","warnings"],setup:function(e){var t=St("",e),r=t.prefixCls,i=Oce(),o=i.prefixCls,a=i.status,s=V(function(){return"".concat(o.value,"-item-explain")}),l=V(function(){return!!(e.errors&&e.errors.length)}),u=J(a.value);return Ve([l,a],function(){l.value&&(u.value=a.value)}),function(){var c,d,f=Dg("".concat(r.value,"-show-help-item")),h=fx("".concat(r.value,"-show-help-item"),f);return h.class=s.value,(c=e.errors)!==null&&c!==void 0&&c.length?I(ox,O(O({},h),{},{tag:"div"}),{default:function(){return[(d=e.errors)===null||d===void 0?void 0:d.map(function(v,m){return I("div",{key:m,role:"alert",class:u.value?"".concat(s.value,"-").concat(u.value):""},[v])})]}}):null}}});var Dce={success:_x,warning:GV,error:Tg,validating:_u},Rce=be({compatConfig:{MODE:3},slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(e,t){var r=t.slots,i=SO(),o=i.wrapperCol,a=O({},i);return delete a.labelCol,delete a.wrapperCol,p8(a),xce({prefixCls:V(function(){return e.prefixCls}),status:V(function(){return e.status})}),function(){var s,l,u,c=e.prefixCls,d=e.wrapperCol,f=e.help,h=f===void 0?(s=r.help)===null||s===void 0?void 0:s.call(r):f,p=e.errors,v=p===void 0?(l=r.errors)===null||l===void 0?void 0:l.call(r):p,m=e.hasFeedback,g=e.status,_=e.extra,y=_===void 0?(u=r.extra)===null||u===void 0?void 0:u.call(r):_,b="".concat(c,"-item"),w=d||(o==null?void 0:o.value)||{},C=Re("".concat(b,"-control"),w.class),S=g&&Dce[g];return I(cC,O(O({},w),{},{class:C}),{default:function(){var E;return I(kt,null,[I("div",{class:"".concat(b,"-control-input")},[I("div",{class:"".concat(b,"-control-input-content")},[(E=r.default)===null||E===void 0?void 0:E.call(r)]),m&&S?I("span",{class:"".concat(b,"-children-icon")},[I(S,null,null)]):null]),I(Ace,{errors:v,help:h,class:"".concat(b,"-explain-connected")},null),y?I("div",{class:"".concat(b,"-extra")},[y]):null])}})}}});const Pce=Rce;function Mce(n){var e=Yt(n.value.slice()),t=null;return Ft(function(){clearTimeout(t),t=setTimeout(function(){e.value=n.value},n.value.length?0:10)}),e}Si("success","warning","error","validating","");function fw(n,e,t){var r=n,i=e,o=0;try{for(var a=i.length;o0&&arguments[0]!==void 0?arguments[0]:[];if(C.value==="validating"){var oe=K.filter(function(ie){return ie&&ie.errors.length});C.value=oe.length?"error":"success",d.value=oe.map(function(ie){return ie.errors}),u.onValidate(c.value,!d.value.length,d.value.length?Tt(d.value[0]):null)}}),ee}},E=function(){L({triggerName:"blur"})},T=function(){if(f.value){f.value=!1;return}L({triggerName:"change"})},P=function(){C.value=e.validateStatus,f.value=!1,d.value=[]},A=function(){C.value=e.validateStatus,f.value=!0,d.value=[];var $=u.model.value||{},j=g.value,X=fw($,p.value,!0);Array.isArray(j)?X.o[X.k]=[].concat(_.value):X.o[X.k]=_.value,en(function(){f.value=!1})},D=V(function(){return e.htmlFor===void 0?v.value:e.htmlFor}),M=function(){var $=D.value;if(!(!$||!h.value)){var j=h.value.$el.querySelector('[id="'.concat($,'"]'));j&&j.focus&&j.focus()}};o({onFieldBlur:E,onFieldChange:T,clearValidate:P,resetField:A}),Gie({id:v,onFieldBlur:function(){e.autoLink&&E()},onFieldChange:function(){e.autoLink&&T()},clearValidate:P},V(function(){return!!(e.autoLink&&u.model.value&&c.value)}));var H=!1;Ve(c,function(W){W?H||(H=!0,u.addField(a,{fieldValue:g,fieldId:v,fieldName:c,resetField:A,clearValidate:P,namePath:p,validateRules:L,rules:b})):(H=!1,u.removeField(a))},{immediate:!0}),Zt(function(){u.removeField(a)});var k=Mce(d),B=V(function(){return e.validateStatus!==void 0?e.validateStatus:k.value.length?"error":C.value}),F=V(function(){var W;return W={},U(W,"".concat(l.value,"-item"),!0),U(W,"".concat(l.value,"-item-has-feedback"),B.value&&e.hasFeedback),U(W,"".concat(l.value,"-item-has-success"),B.value==="success"),U(W,"".concat(l.value,"-item-has-warning"),B.value==="warning"),U(W,"".concat(l.value,"-item-has-error"),B.value==="error"),U(W,"".concat(l.value,"-item-is-validating"),B.value==="validating"),U(W,"".concat(l.value,"-item-hidden"),e.hidden),W});return function(){var W,$;if(e.noStyle)return(W=r.default)===null||W===void 0?void 0:W.call(r);var j=($=e.help)!==null&&$!==void 0?$:r.help?To(r.help()):null;return I(hO,O(O({},i),{},{class:[F.value,j!=null||k.value.length?"".concat(l.value,"-item-with-help"):"",i.class],key:"row"}),{default:function(){var Z,z,Y,ee;return I(kt,null,[I(Nce,O(O({},e),{},{htmlFor:D.value,required:w.value,requiredMark:u.requiredMark.value,prefixCls:l.value,onClick:M,label:(Z=e.label)!==null&&Z!==void 0?Z:(z=r.label)===null||z===void 0?void 0:z.call(r)}),null),I(Pce,O(O({},e),{},{errors:j!=null?ru(j):k.value,prefixCls:l.value,status:B.value,ref:h,help:j,extra:(Y=e.extra)!==null&&Y!==void 0?Y:(ee=r.extra)===null||ee===void 0?void 0:ee.call(r)}),{default:r.default})])}})}}});function g8(n){var e=!1,t=n.length,r=[];return n.length?new Promise(function(i,o){n.forEach(function(a,s){a.catch(function(l){return e=!0,l}).then(function(l){t-=1,r[s]=l,!(t>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}function Ik(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function Tk(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function hw(n,e){if(n.clientHeighte||o>n&&a=e&&s>=t?o-n-r:a>e&&st?a-e+i:0}var xk=function(n,e){var t=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l=typeof a=="function"?a:function(R){return R!==a};if(!Ik(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;Ik(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&hw(h)&&!hw(document.documentElement)||h!=null&&hw(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,v=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,_=n.getBoundingClientRect(),y=_.height,b=_.width,w=_.top,C=_.right,S=_.bottom,L=_.left,E=i==="start"||i==="nearest"?w:i==="end"?S:w+y/2,T=o==="center"?L+b/2:o==="end"?C:L,P=[],A=0;A=0&&L>=0&&S<=v&&C<=p&&w>=B&&S<=W&&L>=$&&C<=F)return P;var j=getComputedStyle(D),X=parseInt(j.borderLeftWidth,10),Z=parseInt(j.borderTopWidth,10),z=parseInt(j.borderRightWidth,10),Y=parseInt(j.borderBottomWidth,10),ee=0,K=0,oe="offsetWidth"in D?D.offsetWidth-D.clientWidth-X-z:0,ie="offsetHeight"in D?D.offsetHeight-D.clientHeight-Z-Y:0,ue="offsetWidth"in D?D.offsetWidth===0?0:k/D.offsetWidth:0,Ce="offsetHeight"in D?D.offsetHeight===0?0:H/D.offsetHeight:0;if(d===D)ee=i==="start"?E:i==="end"?E-v:i==="nearest"?Rm(g,g+v,v,Z,Y,g+E,g+E+y,y):E-v/2,K=o==="start"?T:o==="center"?T-p/2:o==="end"?T-p:Rm(m,m+p,p,X,z,m+T,m+T+b,b),ee=Math.max(0,ee+g),K=Math.max(0,K+m);else{ee=i==="start"?E-B-Z:i==="end"?E-W+Y+ie:i==="nearest"?Rm(B,W,H,Z,Y+ie,E,E+y,y):E-(B+H/2)+ie/2,K=o==="start"?T-$-X:o==="center"?T-($+k/2)+oe/2:o==="end"?T-F+z+oe:Rm($,F,k,X,z+oe,T,T+b,b);var me=D.scrollLeft,N=D.scrollTop;E+=N-(ee=Math.max(0,Math.min(N+ee/Ce,D.scrollHeight-H/Ce+ie))),T+=me-(K=Math.max(0,Math.min(me+K/ue,D.scrollWidth-k/ue+oe)))}P.push({el:D,top:ee,left:K})}return P};function m8(n){return n===Object(n)&&Object.keys(n).length!==0}function Vce(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&t?i.scroll({top:o,left:a,behavior:e}):(i.scrollTop=o,i.scrollLeft=a)})}function Hce(n){return n===!1?{block:"end",inline:"nearest"}:m8(n)?n:{block:"start",inline:"nearest"}}function Uce(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(m8(e)&&typeof e.behavior=="function")return e.behavior(t?xk(n,e):[]);if(t){var r=Hce(e);return Vce(xk(n,r),r.behavior)}}var $ce=Math.min;function jce(n,e,t){for(var r=t?CH:bH,i=n[0].length,o=n.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=n[a];a&&e&&(c=sC(c,Xb(e))),l=$ce(c.length,l),s[a]=!t&&(e||i>=120&&c.length>=120)?new Jf(a&&c):void 0}c=n[0];var d=-1,f=s[0];e:for(;++d1),o}),Pg(n,n8(n),t),r&&(t=rv(t,Jce|ede|tde,Qce));for(var i=e.length;i--;)Zce(t,e[i]);return t});function Ok(n){var e=!1;return n&&n.length&&n.every(function(t){return t.required?(e=!0,!1):!0}),e}function Nk(n){return n==null?[]:Array.isArray(n)?n:[n]}function pw(n,e,t){var r=n;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");for(var i=e.split("."),o=0,a=i.length;o1&&arguments[1]!==void 0?arguments[1]:J({}),t=arguments.length>2?arguments[2]:void 0,r=x_(vr(n)),i=Rn({}),o=Yt([]),a=function(b){fn(vr(n),O(O({},x_(r)),b)),en(function(){Object.keys(i).forEach(function(w){i[w]={autoLink:!1,required:Ok(vr(e)[w])}})})},s=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?b.filter(function(C){var S=Nk(C.trigger||"change");return qce(S,w).length}):b},l=null,u=function(b){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0,S=[],L={},E=function(H){var k=b[H],B=pw(vr(n),k,C);if(!B.isValid)return"continue";L[k]=B.v;var F=s(vr(e)[k],Nk(w&&w.trigger));F.length&&S.push(c(k,B.v,F,w||{}).then(function(){return{name:k,errors:[],warnings:[]}}).catch(function(W){var $=[],j=[];return W.forEach(function(X){var Z=X.rule.warningOnly,z=X.errors;Z?j.push.apply(j,Ge(z)):$.push.apply($,Ge(z))}),$.length?Promise.reject({name:k,errors:$,warnings:j}):{name:k,errors:$,warnings:j}}))},T=0;T3&&arguments[3]!==void 0?arguments[3]:{},L=c8([b],w,C,O({validateMessages:fC},S),!!S.validateFirst);return i[b]?(i[b].validateStatus="validating",L.catch(function(E){return E}).then(function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i[b].validateStatus==="validating"){var T,P=E.filter(function(A){return A&&A.errors.length});i[b].validateStatus=P.length?"error":"success",i[b].help=P.length?P.map(function(A){return A.errors}):null,t==null||(T=t.onValidate)===null||T===void 0||T.call(t,b,!P.length,P.length?Tt(i[b].help[0]):null)}}),L):L.catch(function(E){return E})},d=function(b,w){var C=[],S=!0;b?Array.isArray(b)?C=b:C=[b]:(S=!1,C=o.value);var L=u(C,w||{},S);return L.catch(function(E){return E}),L},f=function(b){var w=[];b?Array.isArray(b)?w=b:w=[b]:w=o.value,w.forEach(function(C){i[C]&&fn(i[C],{validateStatus:"",help:null})})},h=function(b){for(var w={autoLink:!1},C=[],S=Array.isArray(b)?b:[b],L=0;L-1}):Object.values(b)},L=function(F){if(!e.model){_a(!1,"Form","model is required for resetFields to work.");return}S(F).forEach(function(W){W.resetField()})},E=function(F){S(F).forEach(function(W){W.clearValidate()})},T=function(F){var W=e.scrollToFirstError;if(r("finishFailed",F),W&&F.errorFields.length){var $={};at(W)==="object"&&($=W),A(F.errorFields[0].name,$)}},P=function(){return H.apply(void 0,arguments)},A=function(F){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=S(F?[F]:void 0);if($.length){var j=$[0].fieldId.value,X=j?document.getElementById(j):null;X&&Uce(X,O({scrollMode:"if-needed",block:"nearest"},W))}},D=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(F===!0){var W=[];return Object.values(b).forEach(function($){var j=$.namePath;W.push(j.value)}),Lk(e.model,W)}else return Lk(e.model,F)},M=function(F,W){if(_a(!(F instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return _a(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var $=!!F,j=$?ru(F).map(yE):[],X=[];Object.values(b).forEach(function(Y){var ee;if($||j.push(Y.namePath.value),!!((ee=Y.rules)!==null&&ee!==void 0&&ee.value.length)){var K=Y.namePath.value;if(!$||ace(j,K)){var oe=Y.validateRules(O({validateMessages:g.value},W));X.push(oe.then(function(){return{name:K,errors:[],warnings:[]}}).catch(function(ie){var ue=[],Ce=[];return ie.forEach(function(me){var N=me.rule.warningOnly,R=me.errors;N?Ce.push.apply(Ce,Ge(R)):ue.push.apply(ue,Ge(R))}),ue.length?Promise.reject({name:K,errors:ue,warnings:Ce}):{name:K,errors:ue,warnings:Ce}}))}}});var Z=g8(X);y.value=Z;var z=Z.then(function(){return y.value===Z?Promise.resolve(D(j)):Promise.reject([])}).catch(function(Y){var ee=Y.filter(function(K){return K&&K.errors.length});return Promise.reject({values:D(j),errorFields:ee,outOfDate:y.value!==Z})});return z.catch(function(Y){return Y}),z},H=function(){return M.apply(void 0,arguments)},k=function(F){if(F.preventDefault(),F.stopPropagation(),r("submit",F),e.model){var W=M();W.then(function($){r("finish",$)}).catch(function($){T($)})}};return o({resetFields:L,clearValidate:E,validateFields:M,getFieldsValue:D,validate:P,scrollToField:A}),p8({model:V(function(){return e.model}),name:V(function(){return e.name}),labelAlign:V(function(){return e.labelAlign}),labelCol:V(function(){return e.labelCol}),labelWrap:V(function(){return e.labelWrap}),wrapperCol:V(function(){return e.wrapperCol}),vertical:V(function(){return e.layout==="vertical"}),colon:p,requiredMark:h,validateTrigger:V(function(){return e.validateTrigger}),rules:V(function(){return e.rules}),addField:w,removeField:C,onValidate:function(F,W,$){r("validate",F,W,$)},validateMessages:g}),Ve(function(){return e.rules},function(){e.validateOnRuleChange&&M()}),function(){var B;return I("form",O(O({},a),{},{onSubmit:k,class:[_.value,a.class]}),[(B=i.default)===null||B===void 0?void 0:B.call(i)])}}});const Gl=ade;Gl.useInjectFormItemContext=hs;Gl.ItemRest=tE;Gl.install=function(n){return n.component(Gl.name,Gl),n.component(Gl.Item.name,Gl.Item),n.component(tE.name,tE),n};var sde=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},lde=function(){return O(O({},sde()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},ude=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:ne.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},cde=function(){return O(O({},ude()),{},{indeterminate:{type:Boolean,default:!1}})},_8=Symbol("CheckboxGroupContext"),dde=["indeterminate","skipGroup","id"],fde=["onMouseenter","onMouseleave","onInput","class","style"];const Za=be({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:cde(),setup:function(e,t){var r=t.emit,i=t.attrs,o=t.slots,a=t.expose,s=hs(),l=St("checkbox",e),u=l.prefixCls,c=l.direction,d=yt(_8,void 0),f=Symbol("checkboxUniId");Ft(function(){!e.skipGroup&&d&&d.registerValue(f,e.value)}),Zt(function(){d&&d.cancelValue(f)}),Wt(function(){_a(e.checked!==void 0||d||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var h=function(_){var y=_.target.checked;r("update:checked",y),r("change",_)},p=J(),v=function(){var _;(_=p.value)===null||_===void 0||_.focus()},m=function(){var _;(_=p.value)===null||_===void 0||_.blur()};return a({focus:v,blur:m}),function(){var g,_,y=sr((g=o.default)===null||g===void 0?void 0:g.call(o)),b=e.indeterminate,w=e.skipGroup,C=e.id,S=C===void 0?s.id.value:C,L=Nt(e,dde),E=i.onMouseenter,T=i.onMouseleave;i.onInput;var P=i.class,A=i.style,D=Nt(i,fde),M=O(O({},L),{},{id:S,prefixCls:u.value},D);d&&!w?(M.onChange=function(){for(var B=arguments.length,F=new Array(B),W=0;W=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},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=!0,a=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}const EE=be({compatConfig:{MODE:3},name:"ACheckboxGroup",props:lde(),setup:function(e,t){var r=t.slots,i=t.emit,o=t.expose,a=hs(),s=St("checkbox",e),l=s.prefixCls,u=s.direction,c=J((e.value===void 0?e.defaultValue:e.value)||[]);Ve(function(){return e.value},function(){c.value=e.value||[]});var d=V(function(){return e.options.map(function(_){return typeof _=="string"||typeof _=="number"?{label:_,value:_}:_})}),f=J(Symbol()),h=J(new Map),p=function(y){h.value.delete(y),f.value=Symbol()},v=function(y,b){h.value.set(y,b),f.value=Symbol()},m=J(new Map);Ve(f,function(){var _=new Map,y=hde(h.value.values()),b;try{for(y.s();!(b=y.n()).done;){var w=b.value;_.set(w,!0)}}catch(C){y.e(C)}finally{y.f()}m.value=_});var g=function(y){var b=c.value.indexOf(y.value),w=Ge(c.value);b===-1?w.push(y.value):w.splice(b,1),e.value===void 0&&(c.value=w);var C=w.filter(function(S){return m.value.has(S)}).sort(function(S,L){var E=d.value.findIndex(function(P){return P.value===S}),T=d.value.findIndex(function(P){return P.value===L});return E-T});i("update:value",C),i("change",C),a.onFieldChange()};return qt(_8,{cancelValue:p,registerValue:v,toggleOption:g,mergedValue:c,name:V(function(){return e.name}),disabled:V(function(){return e.disabled})}),o({mergedValue:c}),function(){var _,y=e.id,b=y===void 0?a.id.value:y,w=null,C="".concat(l.value,"-group");return d.value&&d.value.length>0&&(w=d.value.map(function(S){var L;return I(Za,{prefixCls:l.value,key:S.value.toString(),disabled:"disabled"in S?S.disabled:e.disabled,indeterminate:S.indeterminate,value:S.value,checked:c.value.indexOf(S.value)!==-1,onChange:S.onChange,class:"".concat(C,"-item")},{default:function(){return[S.label===void 0?(L=r.label)===null||L===void 0?void 0:L.call(r,S):S.label]}})})),I("div",{class:[C,U({},"".concat(C,"-rtl"),u.value==="rtl")],id:b},[w||((_=r.default)===null||_===void 0?void 0:_.call(r))])}}});Za.Group=EE;Za.install=function(n){return n.component(Za.name,Za),n.component(EE.name,EE),n};var pde=function(){return{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}},vde=be({compatConfig:{MODE:3},name:"ADivider",props:pde(),setup:function(e,t){var r=t.slots,i=St("divider",e),o=i.prefixCls,a=i.direction,s=V(function(){return e.orientation==="left"&&e.orientationMargin!=null}),l=V(function(){return e.orientation==="right"&&e.orientationMargin!=null}),u=V(function(){var f,h=e.type,p=e.dashed,v=e.plain,m=o.value;return f={},U(f,m,!0),U(f,"".concat(m,"-").concat(h),!0),U(f,"".concat(m,"-dashed"),!!p),U(f,"".concat(m,"-plain"),!!v),U(f,"".concat(m,"-rtl"),a.value==="rtl"),U(f,"".concat(m,"-no-default-orientation-margin-left"),s.value),U(f,"".concat(m,"-no-default-orientation-margin-right"),l.value),f}),c=V(function(){var f=typeof e.orientationMargin=="number"?"".concat(e.orientationMargin,"px"):e.orientationMargin;return O(O({},s.value&&{marginLeft:f}),l.value&&{marginRight:f})}),d=V(function(){return e.orientation.length>0?"-"+e.orientation:e.orientation});return function(){var f,h=sr((f=r.default)===null||f===void 0?void 0:f.call(r));return I("div",{class:[u.value,h.length?"".concat(o.value,"-with-text ").concat(o.value,"-with-text").concat(d.value):""],role:"separator"},[h.length?I("span",{class:"".concat(o.value,"-inner-text"),style:c.value},[h]):null])}}});const gde=Lu(vde);Qs.Button=Sy;Qs.install=function(n){return n.component(Qs.name,Qs),n.component(Sy.name,Sy),n};var vw;function Uv(n){if(typeof document>"u")return 0;if(n||vw===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div"),r=t.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var i=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;i===o&&(o=t.clientWidth),document.body.removeChild(t),vw=i-o}return vw}function Ak(n){var e=n.match(/^(.*)px$/),t=Number(e==null?void 0:e[1]);return Number.isNaN(t)?Uv():t}function mde(n){if(typeof document>"u"||!n||!(n instanceof Element))return{width:0,height:0};var e=getComputedStyle(n,"::-webkit-scrollbar"),t=e.width,r=e.height;return{width:Ak(t),height:Ak(r)}}function rh(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.element,r=t===void 0?document.body:t,i={},o=Object.keys(n);return o.forEach(function(a){i[a]=r.style[a]}),o.forEach(function(a){r.style[a]=n[a]}),i}function _de(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var gw={};const Dk=function(n){if(!(!_de()&&!n)){var e="ant-scrolling-effect",t=new RegExp("".concat(e),"g"),r=document.body.className;if(n){if(!t.test(r))return;rh(gw),gw={},document.body.className=r.replace(t,"").trim();return}var i=Uv();if(i&&(gw=rh({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!t.test(r))){var o="".concat(r," ").concat(e);document.body.className=o.trim()}}};var ko=[],y8="ant-scrolling-effect",mw=new RegExp("".concat(y8),"g"),yde=0,_w=new Map,bde=oC(function n(e){var t=this;aC(this,n),U(this,"getContainer",function(){var r;return(r=t.options)===null||r===void 0?void 0:r.container}),U(this,"reLock",function(r){var i=ko.find(function(o){var a=o.target;return a===t.lockTarget});i&&t.unLock(),t.options=r,i&&(i.options=r,t.lock())}),U(this,"lock",function(){var r;if(!ko.some(function(l){var u=l.target;return u===t.lockTarget})){if(ko.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=t.options)===null||u===void 0?void 0:u.container)})){ko=[].concat(Ge(ko),[{target:t.lockTarget,options:t.options}]);return}var i=0,o=((r=t.options)===null||r===void 0?void 0:r.container)||document.body;(o===document.body&&window.innerWidth-document.documentElement.clientWidth>0||o.scrollHeight>o.clientHeight)&&(i=Uv());var a=o.className;if(ko.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=t.options)===null||u===void 0?void 0:u.container)}).length===0&&_w.set(o,rh({width:i!==0?"calc(100% - ".concat(i,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!mw.test(a)){var s="".concat(a," ").concat(y8);o.className=s.trim()}ko=[].concat(Ge(ko),[{target:t.lockTarget,options:t.options}])}}),U(this,"unLock",function(){var r,i=ko.find(function(s){var l=s.target;return l===t.lockTarget});if(ko=ko.filter(function(s){var l=s.target;return l!==t.lockTarget}),!(!i||ko.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=i.options)===null||l===void 0?void 0:l.container)}))){var o=((r=t.options)===null||r===void 0?void 0:r.container)||document.body,a=o.className;mw.test(a)&&(rh(_w.get(o),{element:o}),_w.delete(o),o.className=o.className.replace(mw,"").trim())}}),this.lockTarget=yde++,this.options=e}),ws=0,Fp=vd(),Pm={},Fd=function(e){if(!Fp)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(at(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const Cde=be({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ne.any,visible:{type:Boolean,default:void 0}},setup:function(e,t){var r=t.slots,i=J(),o=J(),a=J(),s=new bde({container:Fd(e.getContainer)}),l=function(){var v,m;(v=i.value)===null||v===void 0||(m=v.parentNode)===null||m===void 0||m.removeChild(i.value)},u=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(v||i.value&&!i.value.parentNode){var m=Fd(e.getContainer);return m?(m.appendChild(i.value),!0):!1}return!0},c=function(){return Fp?(i.value||(i.value=document.createElement("div"),u(!0)),d(),i.value):null},d=function(){var v=e.wrapperClassName;i.value&&v&&v!==i.value.className&&(i.value.className=v)};Zo(function(){d(),u()});var f=function(){ws===1&&!Object.keys(Pm).length?(Dk(),Pm=rh({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):ws||(rh(Pm),Pm={},Dk(!0))},h=Rr();return Wt(function(){var p=!1;Ve([function(){return e.visible},function(){return e.getContainer}],function(v,m){var g=Ye(v,2),_=g[0],y=g[1],b=Ye(m,2),w=b[0],C=b[1];if(Fp&&Fd(e.getContainer)===document.body&&(_&&!w?ws+=1:p&&(ws-=1)),p){var S=typeof y=="function"&&typeof C=="function";(S?y.toString()!==C.toString():y!==C)&&l(),_&&_!==w&&Fp&&Fd(y)!==s.getContainer()&&s.reLock({container:Fd(y)})}p=!0},{immediate:!0,flush:"post"}),en(function(){u()||(a.value=Mt(function(){h.update()}))})}),Zt(function(){var p=e.visible,v=e.getContainer;Fp&&Fd(v)===document.body&&(ws=p&&ws?ws-1:ws),l(),Mt.cancel(a.value)}),function(){var p=e.forceRender,v=e.visible,m=null,g={getOpenCount:function(){return ws},getContainer:c,switchScrollingEffect:f,scrollLocker:s};return(p||v||o.value)&&(m=I(Z1,{getContainer:c,ref:o},{default:function(){var y;return(y=r.default)===null||y===void 0?void 0:y.call(r,g)}})),m}}});var hC=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ne.oneOfType([ne.string,ne.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,suffix:ne.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}},b8=function(){return O(O({},nr(hC(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function C8(n,e,t,r,i){var o;return Re(n,(o={},U(o,"".concat(n,"-sm"),t==="small"),U(o,"".concat(n,"-lg"),t==="large"),U(o,"".concat(n,"-disabled"),r),U(o,"".concat(n,"-rtl"),i==="rtl"),U(o,"".concat(n,"-borderless"),!e),o))}var ov=function(e){return e!=null&&(Array.isArray(e)?To(e).length:!0)};function wde(n){return ov(n.prefix)||ov(n.suffix)||ov(n.allowClear)}function yw(n){return ov(n.addonBefore)||ov(n.addonAfter)}var Sde=["text","input"];const w8=be({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ne.oneOf(Si("text","input")),value:ne.any,defaultValue:ne.any,allowClear:{type:Boolean,default:void 0},element:ne.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ne.any,prefix:ne.any,addonBefore:ne.any,addonAfter:ne.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,t){var r=t.slots,i=t.attrs,o=J(),a=function(h){var p;if((p=o.value)!==null&&p!==void 0&&p.contains(h.target)){var v=e.triggerFocus;v==null||v()}},s=function(h){var p,v=e.allowClear,m=e.value,g=e.disabled,_=e.readonly,y=e.handleReset,b=e.suffix,w=b===void 0?r.suffix:b;if(!v)return null;var C=!g&&!_&&m,S="".concat(h,"-clear-icon");return I(Tg,{onClick:y,onMousedown:function(E){return E.preventDefault()},class:Re((p={},U(p,"".concat(S,"-hidden"),!C),U(p,"".concat(S,"-has-suffix"),!!w),p),S),role:"button"},null)},l=function(h){var p,v=e.suffix,m=v===void 0?(p=r.suffix)===null||p===void 0?void 0:p.call(r):v,g=e.allowClear;return m||g?I("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,p){var v,m,g,_=e.focused,y=e.value,b=e.prefix,w=b===void 0?(v=r.prefix)===null||v===void 0?void 0:v.call(r):b,C=e.size,S=e.suffix,L=S===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):S,E=e.disabled,T=e.allowClear,P=e.direction,A=e.readonly,D=e.bordered,M=e.hidden,H=e.addonAfter,k=H===void 0?r.addonAfter:H,B=e.addonBefore,F=B===void 0?r.addonBefore:B,W=l(h);if(!wde({prefix:w,suffix:L,allowClear:T}))return Fn(p,{value:y});var $=w?I("span",{class:"".concat(h,"-prefix")},[w]):null,j=Re("".concat(h,"-affix-wrapper"),(g={},U(g,"".concat(h,"-affix-wrapper-focused"),_),U(g,"".concat(h,"-affix-wrapper-disabled"),E),U(g,"".concat(h,"-affix-wrapper-sm"),C==="small"),U(g,"".concat(h,"-affix-wrapper-lg"),C==="large"),U(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),L&&T&&y),U(g,"".concat(h,"-affix-wrapper-rtl"),P==="rtl"),U(g,"".concat(h,"-affix-wrapper-readonly"),A),U(g,"".concat(h,"-affix-wrapper-borderless"),!D),U(g,"".concat(i.class),!yw({addonAfter:k,addonBefore:F})&&i.class),g));return I("span",{ref:o,class:j,style:i.style,onMouseup:a,hidden:M},[$,Fn(p,{style:null,value:y,class:C8(h,D,C,E)}),W])},c=function(h,p){var v,m,g,_=e.addonBefore,y=_===void 0?(v=r.addonBefore)===null||v===void 0?void 0:v.call(r):_,b=e.addonAfter,w=b===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):b,C=e.size,S=e.direction,L=e.hidden;if(!yw({addonBefore:y,addonAfter:w}))return p;var E="".concat(h,"-group"),T="".concat(E,"-addon"),P=y?I("span",{class:T},[y]):null,A=w?I("span",{class:T},[w]):null,D=Re("".concat(h,"-wrapper"),E,U({},"".concat(E,"-rtl"),S==="rtl")),M=Re("".concat(h,"-group-wrapper"),(g={},U(g,"".concat(h,"-group-wrapper-sm"),C==="small"),U(g,"".concat(h,"-group-wrapper-lg"),C==="large"),U(g,"".concat(h,"-group-wrapper-rtl"),S==="rtl"),g),i.class);return I("span",{class:M,style:i.style,hidden:L},[I("span",{class:D},[P,Fn(p,{style:null}),A])])},d=function(h,p){var v,m=e.value,g=e.allowClear,_=e.direction,y=e.bordered,b=e.hidden,w=e.addonAfter,C=w===void 0?r.addonAfter:w,S=e.addonBefore,L=S===void 0?r.addonBefore:S;if(!g)return Fn(p,{value:m});var E=Re("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(v={},U(v,"".concat(h,"-affix-wrapper-rtl"),_==="rtl"),U(v,"".concat(h,"-affix-wrapper-borderless"),!y),U(v,"".concat(i.class),!yw({addonAfter:C,addonBefore:L})&&i.class),v));return I("span",{class:E,style:i.style,hidden:b},[Fn(p,{style:null,value:m}),s(h)])};return function(){var f,h=e.prefixCls,p=e.inputType,v=e.element,m=v===void 0?(f=r.element)===null||f===void 0?void 0:f.call(r):v;return p===Sde[0]?d(h,m):c(h,u(h,m))}}});function LE(n){return typeof n>"u"||n===null?"":String(n)}function av(n,e,t,r){if(t){var i=e;if(e.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});var o=n.cloneNode(!0);i.target=o,i.currentTarget=o,o.value="",t(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=n,i.currentTarget=n,n.value=r,t(i);return}t(i)}}function S8(n,e){if(n){n.focus(e);var t=e||{},r=t.cursor;if(r){var i=n.value.length;switch(r){case"start":n.setSelectionRange(0,0);break;case"end":n.setSelectionRange(i,i);break;default:n.setSelectionRange(0,i)}}}}const Vr=be({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:hC(),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=t.emit,s=J(),l=J(),u,c=hs(),d=St("input",e),f=d.direction,h=d.prefixCls,p=d.size,v=d.autocomplete,m=J(e.value===void 0?e.defaultValue:e.value),g=J(!1);Ve(function(){return e.value},function(){m.value=e.value}),Ve(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var _=function(){u=setTimeout(function(){var F;((F=s.value)===null||F===void 0?void 0:F.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},y=function(F){S8(s.value,F)},b=function(){var F;(F=s.value)===null||F===void 0||F.blur()},w=function(F,W,$){var j;(j=s.value)===null||j===void 0||j.setSelectionRange(F,W,$)},C=function(){var F;(F=s.value)===null||F===void 0||F.select()};o({focus:y,blur:b,input:s,stateValue:m,setSelectionRange:w,select:C});var S=function(F){var W=e.onFocus;g.value=!0,W==null||W(F),en(function(){_()})},L=function(F){var W=e.onBlur;g.value=!1,W==null||W(F),c.onFieldBlur(),en(function(){_()})},E=function(F){a("update:value",F.target.value),a("change",F),a("input",F),c.onFieldChange()},T=Rr(),P=function(F,W){m.value!==F&&(e.value===void 0?m.value=F:en(function(){s.value.value!==m.value&&T.update()}),en(function(){W&&W()}))},A=function(F){av(s.value,F,E),P("",function(){y()})},D=function(F){var W=F.target,$=W.value,j=W.composing;if(!((F.isComposing||j)&&e.lazy||m.value===$)){var X=F.target.value;av(s.value,F,E),P(X,function(){_()})}},M=function(F){F.keyCode===13&&a("pressEnter",F),a("keydown",F)};Wt(function(){_()}),Zt(function(){clearTimeout(u)});var H=function(){var F,W=e.addonBefore,$=W===void 0?r.addonBefore:W,j=e.addonAfter,X=j===void 0?r.addonAfter:j,Z=e.disabled,z=e.bordered,Y=z===void 0?!0:z,ee=e.valueModifiers,K=ee===void 0?{}:ee,oe=e.htmlSize,ie=nr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),ue=O(O(O({},ie),i),{},{autocomplete:v.value,onChange:D,onInput:D,onFocus:S,onBlur:L,onKeydown:M,class:Re(C8(h.value,Y,p.value,Z,f.value),U({},i.class,i.class&&!$&&!X)),ref:s,key:"ant-input",size:oe,id:(F=ie.id)!==null&&F!==void 0?F:c.id.value});K.lazy&&delete ue.onInput,ue.autofocus||delete ue.autofocus;var Ce=I("input",nr(ue,["size"]),null);return Ki(Ce,[[Ag]])},k=function(){var F,W=m.value,$=e.maxlength,j=e.suffix,X=j===void 0?(F=r.suffix)===null||F===void 0?void 0:F.call(r):j,Z=e.showCount,z=Number($)>0;if(X||Z){var Y=Ge(LE(W)).length,ee=null;return at(Z)==="object"?ee=Z.formatter({count:Y,maxlength:$}):ee="".concat(Y).concat(z?" / ".concat($):""),I(kt,null,[!!Z&&I("span",{class:Re("".concat(h.value,"-show-count-suffix"),U({},"".concat(h.value,"-show-count-has-suffix"),!!X))},[ee]),X])}return null};return function(){var B=O(O(O({},i),e),{},{prefixCls:h.value,inputType:"input",value:LE(m.value),handleReset:A,focused:g.value&&!e.disabled});return I(w8,O(O({},nr(B,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),O(O({},r),{},{element:H,suffix:k}))}}}),Ede=be({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,t){var r=t.slots,i=St("input-group",e),o=i.prefixCls,a=i.direction,s=V(function(){var l,u=o.value;return l={},U(l,"".concat(u),!0),U(l,"".concat(u,"-lg"),e.size==="large"),U(l,"".concat(u,"-sm"),e.size==="small"),U(l,"".concat(u,"-compact"),e.compact),U(l,"".concat(u,"-rtl"),a.value==="rtl"),l});return function(){var l;return I("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var bw=/iPhone/i,Rk=/iPod/i,Pk=/iPad/i,Cw=/\bAndroid(?:.+)Mobile\b/i,Mk=/Android/i,Bd=/\bAndroid(?:.+)SD4930UR\b/i,Mm=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Ss=/Windows Phone/i,kk=/\bWindows(?:.+)ARM\b/i,Fk=/BlackBerry/i,Bk=/BB10/i,Wk=/Opera Mini/i,Vk=/\b(CriOS|Chrome)(?:.+)Mobile/i,Hk=/Mobile(?:.+)Firefox\b/i;function Dt(n,e){return n.test(e)}function Uk(n){var e=n||(typeof navigator<"u"?navigator.userAgent:""),t=e.split("[FBAN");if(typeof t[1]<"u"){var r=t,i=Ye(r,1);e=i[0]}if(t=e.split("Twitter"),typeof t[1]<"u"){var o=t,a=Ye(o,1);e=a[0]}var s={apple:{phone:Dt(bw,e)&&!Dt(Ss,e),ipod:Dt(Rk,e),tablet:!Dt(bw,e)&&Dt(Pk,e)&&!Dt(Ss,e),device:(Dt(bw,e)||Dt(Rk,e)||Dt(Pk,e))&&!Dt(Ss,e)},amazon:{phone:Dt(Bd,e),tablet:!Dt(Bd,e)&&Dt(Mm,e),device:Dt(Bd,e)||Dt(Mm,e)},android:{phone:!Dt(Ss,e)&&Dt(Bd,e)||!Dt(Ss,e)&&Dt(Cw,e),tablet:!Dt(Ss,e)&&!Dt(Bd,e)&&!Dt(Cw,e)&&(Dt(Mm,e)||Dt(Mk,e)),device:!Dt(Ss,e)&&(Dt(Bd,e)||Dt(Mm,e)||Dt(Cw,e)||Dt(Mk,e))||Dt(/\bokhttp\b/i,e)},windows:{phone:Dt(Ss,e),tablet:Dt(kk,e),device:Dt(Ss,e)||Dt(kk,e)},other:{blackberry:Dt(Fk,e),blackberry10:Dt(Bk,e),opera:Dt(Wk,e),firefox:Dt(Hk,e),chrome:Dt(Vk,e),device:Dt(Fk,e)||Dt(Bk,e)||Dt(Wk,e)||Dt(Hk,e)||Dt(Vk,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var Lde=O(O({},Uk()),{},{isMobile:Uk}),Ide=["disabled","loading","addonAfter","suffix"];const Tde=be({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:O(O({},hC()),{},{inputPrefixCls:String,enterButton:ne.any,onSearch:{type:Function}}),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=t.emit,s=J(),l=function(){var b;(b=s.value)===null||b===void 0||b.focus()},u=function(){var b;(b=s.value)===null||b===void 0||b.blur()};o({focus:l,blur:u});var c=function(b){a("update:value",b.target.value),b&&b.target&&b.type==="click"&&a("search",b.target.value,b),a("change",b)},d=function(b){var w;document.activeElement===((w=s.value)===null||w===void 0?void 0:w.input)&&b.preventDefault()},f=function(b){var w;a("search",(w=s.value)===null||w===void 0?void 0:w.stateValue,b),Lde.tablet||s.value.focus()},h=St("input-search",e),p=h.prefixCls,v=h.getPrefixCls,m=h.direction,g=h.size,_=V(function(){return v("input",e.inputPrefixCls)});return function(){var y,b,w,C,S,L=e.disabled,E=e.loading,T=e.addonAfter,P=T===void 0?(y=r.addonAfter)===null||y===void 0?void 0:y.call(r):T,A=e.suffix,D=A===void 0?(b=r.suffix)===null||b===void 0?void 0:b.call(r):A,M=Nt(e,Ide),H=e.enterButton,k=H===void 0?(w=(C=r.enterButton)===null||C===void 0?void 0:C.call(r))!==null&&w!==void 0?w:!1:H;k=k||k==="";var B=typeof k=="boolean"?I(Zx,null,null):null,F="".concat(p.value,"-button"),W=Array.isArray(k)?k[0]:k,$,j=W.type&&gV(W.type)&&W.type.__ANT_BUTTON;if(j||W.tagName==="button")$=Fn(W,O({onMousedown:d,onClick:f,key:"enterButton"},j?{class:F,size:g.value}:{}),!1);else{var X=B&&!k;$=I(bi,{class:F,type:k?"primary":void 0,size:g.value,disabled:L,key:"enterButton",onMousedown:d,onClick:f,loading:E,icon:X?B:null},{default:function(){return[X?null:B||k]}})}P&&($=[$,P]);var Z=Re(p.value,(S={},U(S,"".concat(p.value,"-rtl"),m.value==="rtl"),U(S,"".concat(p.value,"-").concat(g.value),!!g.value),U(S,"".concat(p.value,"-with-button"),!!k),S),i.class);return I(Vr,O(O(O({ref:s},nr(M,["onUpdate:value","onSearch","enterButton"])),i),{},{onPressEnter:f,size:g.value,prefixCls:_.value,addonAfter:$,suffix:D,onChange:c,class:Z,disabled:L}),r)}}});var xde=` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+t+"$)|(?:^"+i+"$)"),a=new RegExp("^"+t+"$"),s=new RegExp("^"+i+"$"),l=function(C){return C&&C.exact?o:new RegExp("(?:"+e(C)+t+e(C)+")|(?:"+e(C)+i+e(C)+")","g")};l.v4=function(y){return y&&y.exact?a:new RegExp(""+e(y)+t+e(y),"g")},l.v6=function(y){return y&&y.exact?s:new RegExp(""+e(y)+i+e(y),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',_="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+h+p+v+")"+m+g;return Mm=new RegExp("(?:^"+_+"$)","i"),Mm},Sk={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Bp={integer:function(e){return Bp.number(e)&&parseInt(e,10)===e},float:function(e){return Bp.number(e)&&!Bp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Bp.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Sk.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(dce())},hex:function(e){return typeof e=="string"&&!!e.match(Sk.hex)}},fce=function(e,t,r,i,o){if(e.required&&t===void 0){r8(e,t,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?Bp[s](t)||i.push(wo(o.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&i.push(wo(o.messages.types[s],e.fullField,e.type))},hce=function(e,t,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,d=null,f=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(c=t.length),h&&(c=t.replace(u,"_").length),a?c!==e.len&&i.push(wo(o.messages[d].len,e.fullField,e.len)):s&&!l&&ce.max?i.push(wo(o.messages[d].max,e.fullField,e.max)):s&&l&&(ce.max)&&i.push(wo(o.messages[d].range,e.fullField,e.min,e.max))},Fd="enum",pce=function(e,t,r,i,o){e[Fd]=Array.isArray(e[Fd])?e[Fd]:[],e[Fd].indexOf(t)===-1&&i.push(wo(o.messages[Fd],e.fullField,e[Fd].join(", ")))},vce=function(e,t,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(wo(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||i.push(wo(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},on={required:r8,whitespace:cce,type:fce,range:hce,enum:pce,pattern:vce},gce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"string")&&!e.required)return r();on.required(e,t,i,a,o,"string"),Gr(t,"string")||(on.type(e,t,i,a,o),on.range(e,t,i,a,o),on.pattern(e,t,i,a,o),e.whitespace===!0&&on.whitespace(e,t,i,a,o))}r(a)},mce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},_ce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(t===""&&(t=void 0),Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},yce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},bce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),Gr(t)||on.type(e,t,i,a,o)}r(a)},Cce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},wce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},Sce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(t==null&&!e.required)return r();on.required(e,t,i,a,o,"array"),t!=null&&(on.type(e,t,i,a,o),on.range(e,t,i,a,o))}r(a)},Ece=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on.type(e,t,i,a,o)}r(a)},Lce="enum",Ice=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o),t!==void 0&&on[Lce](e,t,i,a,o)}r(a)},Tce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"string")&&!e.required)return r();on.required(e,t,i,a,o),Gr(t,"string")||on.pattern(e,t,i,a,o)}r(a)},xce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t,"date")&&!e.required)return r();if(on.required(e,t,i,a,o),!Gr(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),on.type(e,l,i,a,o),l&&on.range(e,l.getTime(),i,a,o)}}r(a)},Oce=function(e,t,r,i,o){var a=[],s=Array.isArray(t)?"array":typeof t;on.required(e,t,i,a,o,s),r(a)},aw=function(e,t,r,i,o){var a=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(Gr(t,a)&&!e.required)return r();on.required(e,t,i,s,o,a),Gr(t,a)||on.type(e,t,i,s,o)}r(s)},Nce=function(e,t,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Gr(t)&&!e.required)return r();on.required(e,t,i,a,o)}r(a)},ov={string:gce,method:mce,number:_ce,boolean:yce,regexp:bce,integer:Cce,float:wce,array:Sce,object:Ece,enum:Ice,pattern:Tce,date:xce,url:aw,hex:aw,email:aw,required:Oce,any:Nce};function pE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var vE=pE(),Bg=function(){function n(t){this.rules=null,this._messages=vE,this.define(t)}var e=n.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=wk(pE(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var m=[],g={};function _(C){if(Array.isArray(C)){var w;m=(w=m).concat.apply(w,C)}else m.push(C)}for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&t===void 0&&!i8(n,e.slice(0,-1))?n:o8(n,e,t,r)}function gE(n){return ru(n)}function Ace(n,e){var t=i8(n,e);return t}function Rce(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=Dce(n,e,t,r);return i}function Pce(n,e){return n&&n.some(function(t){return kce(t,e)})}function Ek(n){return at(n)==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype}function a8(n,e){var t=Array.isArray(n)?Ge(n):O({},n);return e&&Object.keys(e).forEach(function(r){var i=t[r],o=e[r],a=Ek(i)&&Ek(o);t[r]=a?a8(i,o||{}):o}),t}function Mce(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r-1?i[o?e[a]:a]:void 0}}var Jce=Math.max;function ede(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=t==null?0:Fae(t);return i<0&&(i=Jce(r+i,0)),gH(n,CO(e),i)}var tde=Qce(ede);const nde=tde;var c8=Symbol("formContextKey"),d8=function(e){qt(c8,e)},wO=function(){return yt(c8,{name:V(function(){}),labelAlign:V(function(){return"right"}),vertical:V(function(){return!1}),addField:function(t,r){},removeField:function(t){},model:V(function(){}),rules:V(function(){}),colon:V(function(){}),labelWrap:V(function(){}),labelCol:V(function(){}),requiredMark:V(function(){return!1}),validateTrigger:V(function(){}),onValidate:function(){},validateMessages:V(function(){return cC})})},f8=Symbol("formItemPrefixContextKey"),rde=function(e){qt(f8,e)},ide=function(){return yt(f8,{prefixCls:V(function(){return""})})},SO=function(e,t){var r,i,o,a,s=t.slots,l=t.emit,u=t.attrs,c=O(O({},e),u),d=c.prefixCls,f=c.htmlFor,h=c.labelCol,p=c.labelAlign,v=c.colon,m=c.required,g=c.requiredMark,_=Th("Form"),y=qe(_,1),C=y[0],w=(r=e.label)!==null&&r!==void 0?r:(i=s.label)===null||i===void 0?void 0:i.call(s);if(!w)return null;var b=wO(),S=b.vertical,E=b.labelAlign,L=b.labelCol,T=b.labelWrap,R=b.colon,N=h||(L==null?void 0:L.value)||{},D=p||(E==null?void 0:E.value),M="".concat(d,"-item-label"),H=Ne(M,D==="left"&&"".concat(M,"-left"),N.class,U({},"".concat(M,"-wrap"),!!T.value)),k=w,W=v===!0||(R==null?void 0:R.value)!==!1&&v!==!1,F=W&&!S.value;if(F&&typeof w=="string"&&w.trim()!==""&&(k=w.replace(/[:|:]\s*$/,"")),k=I(kt,null,[k,(o=s.tooltip)===null||o===void 0?void 0:o.call(s,{class:"".concat(d,"-item-tooltip")})]),g==="optional"&&!m){var B,j;k=I(kt,null,[k,I("span",{class:"".concat(d,"-item-optional")},[((B=C.value)===null||B===void 0?void 0:B.optional)||((j=nl.Form)===null||j===void 0?void 0:j.optional)])])}var K=Ne((a={},U(a,"".concat(d,"-item-required"),m),U(a,"".concat(d,"-item-required-mark-optional"),g==="optional"),U(a,"".concat(d,"-item-no-colon"),!W),a));return I(lC,O(O({},N),{},{class:H}),{default:function(){return[I("label",{for:f,class:K,title:typeof w=="string"?w:"",onClick:function(z){return l("click",z)}},[k])]}})};SO.displayName="FormItemLabel";SO.inheritAttrs=!1;const ode=SO,ade=be({compatConfig:{MODE:3},name:"ErrorList",props:["errors","help","onDomErrorVisibleChange","helpStatus","warnings"],setup:function(e){var t=Et("",e),r=t.prefixCls,i=ide(),o=i.prefixCls,a=i.status,s=V(function(){return"".concat(o.value,"-item-explain")}),l=V(function(){return!!(e.errors&&e.errors.length)}),u=ee(a.value);return We([l,a],function(){l.value&&(u.value=a.value)}),function(){var c,d,f=Mg("".concat(r.value,"-show-help-item")),h=dx("".concat(r.value,"-show-help-item"),f);return h.class=s.value,(c=e.errors)!==null&&c!==void 0&&c.length?I(ix,O(O({},h),{},{tag:"div"}),{default:function(){return[(d=e.errors)===null||d===void 0?void 0:d.map(function(v,m){return I("div",{key:m,role:"alert",class:u.value?"".concat(s.value,"-").concat(u.value):""},[v])})]}}):null}}});var sde={success:mx,warning:j6,error:Ng,validating:_u},lde=be({compatConfig:{MODE:3},slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(e,t){var r=t.slots,i=wO(),o=i.wrapperCol,a=O({},i);return delete a.labelCol,delete a.wrapperCol,d8(a),rde({prefixCls:V(function(){return e.prefixCls}),status:V(function(){return e.status})}),function(){var s,l,u,c=e.prefixCls,d=e.wrapperCol,f=e.help,h=f===void 0?(s=r.help)===null||s===void 0?void 0:s.call(r):f,p=e.errors,v=p===void 0?(l=r.errors)===null||l===void 0?void 0:l.call(r):p,m=e.hasFeedback,g=e.status,_=e.extra,y=_===void 0?(u=r.extra)===null||u===void 0?void 0:u.call(r):_,C="".concat(c,"-item"),w=d||(o==null?void 0:o.value)||{},b=Ne("".concat(C,"-control"),w.class),S=g&&sde[g];return I(lC,O(O({},w),{},{class:b}),{default:function(){var L;return I(kt,null,[I("div",{class:"".concat(C,"-control-input")},[I("div",{class:"".concat(C,"-control-input-content")},[(L=r.default)===null||L===void 0?void 0:L.call(r)]),m&&S?I("span",{class:"".concat(C,"-children-icon")},[I(S,null,null)]):null]),I(ade,{errors:v,help:h,class:"".concat(C,"-explain-connected")},null),y?I("div",{class:"".concat(C,"-extra")},[y]):null])}})}}});const ude=lde;function cde(n){var e=Zt(n.value.slice()),t=null;return Ft(function(){clearTimeout(t),t=setTimeout(function(){e.value=n.value},n.value.length?0:10)}),e}Si("success","warning","error","validating","");function sw(n,e,t){var r=n,i=e,o=0;try{for(var a=i.length;o0&&arguments[0]!==void 0?arguments[0]:[];if(b.value==="validating"){var ae=G.filter(function(oe){return oe&&oe.errors.length});b.value=ae.length?"error":"success",d.value=ae.map(function(oe){return oe.errors}),u.onValidate(c.value,!d.value.length,d.value.length?Tt(d.value[0]):null)}}),te}},L=function(){E({triggerName:"blur"})},T=function(){if(f.value){f.value=!1;return}E({triggerName:"change"})},R=function(){b.value=e.validateStatus,f.value=!1,d.value=[]},N=function(){b.value=e.validateStatus,f.value=!0,d.value=[];var j=u.model.value||{},K=g.value,X=sw(j,p.value,!0);Array.isArray(K)?X.o[X.k]=[].concat(_.value):X.o[X.k]=_.value,en(function(){f.value=!1})},D=V(function(){return e.htmlFor===void 0?v.value:e.htmlFor}),M=function(){var j=D.value;if(!(!j||!h.value)){var K=h.value.$el.querySelector('[id="'.concat(j,'"]'));K&&K.focus&&K.focus()}};o({onFieldBlur:L,onFieldChange:T,clearValidate:R,resetField:N}),aoe({id:v,onFieldBlur:function(){e.autoLink&&L()},onFieldChange:function(){e.autoLink&&T()},clearValidate:R},V(function(){return!!(e.autoLink&&u.model.value&&c.value)}));var H=!1;We(c,function(B){B?H||(H=!0,u.addField(a,{fieldValue:g,fieldId:v,fieldName:c,resetField:N,clearValidate:R,namePath:p,validateRules:E,rules:C})):(H=!1,u.removeField(a))},{immediate:!0}),Xt(function(){u.removeField(a)});var k=cde(d),W=V(function(){return e.validateStatus!==void 0?e.validateStatus:k.value.length?"error":b.value}),F=V(function(){var B;return B={},U(B,"".concat(l.value,"-item"),!0),U(B,"".concat(l.value,"-item-has-feedback"),W.value&&e.hasFeedback),U(B,"".concat(l.value,"-item-has-success"),W.value==="success"),U(B,"".concat(l.value,"-item-has-warning"),W.value==="warning"),U(B,"".concat(l.value,"-item-has-error"),W.value==="error"),U(B,"".concat(l.value,"-item-is-validating"),W.value==="validating"),U(B,"".concat(l.value,"-item-hidden"),e.hidden),B});return function(){var B,j;if(e.noStyle)return(B=r.default)===null||B===void 0?void 0:B.call(r);var K=(j=e.help)!==null&&j!==void 0?j:r.help?To(r.help()):null;return I(fO,O(O({},i),{},{class:[F.value,K!=null||k.value.length?"".concat(l.value,"-item-with-help"):"",i.class],key:"row"}),{default:function(){var Z,z,Y,te;return I(kt,null,[I(ode,O(O({},e),{},{htmlFor:D.value,required:w.value,requiredMark:u.requiredMark.value,prefixCls:l.value,onClick:M,label:(Z=e.label)!==null&&Z!==void 0?Z:(z=r.label)===null||z===void 0?void 0:z.call(r)}),null),I(ude,O(O({},e),{},{errors:K!=null?ru(K):k.value,prefixCls:l.value,status:W.value,ref:h,help:K,extra:(Y=e.extra)!==null&&Y!==void 0?Y:(te=r.extra)===null||te===void 0?void 0:te.call(r)}),{default:r.default})])}})}}});function h8(n){var e=!1,t=n.length,r=[];return n.length?new Promise(function(i,o){n.forEach(function(a,s){a.catch(function(l){return e=!0,l}).then(function(l){t-=1,r[s]=l,!(t>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}function Ik(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function Tk(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function lw(n,e){if(n.clientHeighte||o>n&&a=e&&s>=t?o-n-r:a>e&&st?a-e+i:0}var xk=function(n,e){var t=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l=typeof a=="function"?a:function(P){return P!==a};if(!Ik(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;Ik(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&lw(h)&&!lw(document.documentElement)||h!=null&&lw(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,v=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,_=n.getBoundingClientRect(),y=_.height,C=_.width,w=_.top,b=_.right,S=_.bottom,E=_.left,L=i==="start"||i==="nearest"?w:i==="end"?S:w+y/2,T=o==="center"?E+C/2:o==="end"?b:E,R=[],N=0;N=0&&E>=0&&S<=v&&b<=p&&w>=W&&S<=B&&E>=j&&b<=F)return R;var K=getComputedStyle(D),X=parseInt(K.borderLeftWidth,10),Z=parseInt(K.borderTopWidth,10),z=parseInt(K.borderRightWidth,10),Y=parseInt(K.borderBottomWidth,10),te=0,G=0,ae="offsetWidth"in D?D.offsetWidth-D.clientWidth-X-z:0,oe="offsetHeight"in D?D.offsetHeight-D.clientHeight-Z-Y:0,de="offsetWidth"in D?D.offsetWidth===0?0:k/D.offsetWidth:0,Ce="offsetHeight"in D?D.offsetHeight===0?0:H/D.offsetHeight:0;if(d===D)te=i==="start"?L:i==="end"?L-v:i==="nearest"?km(g,g+v,v,Z,Y,g+L,g+L+y,y):L-v/2,G=o==="start"?T:o==="center"?T-p/2:o==="end"?T-p:km(m,m+p,p,X,z,m+T,m+T+C,C),te=Math.max(0,te+g),G=Math.max(0,G+m);else{te=i==="start"?L-W-Z:i==="end"?L-B+Y+oe:i==="nearest"?km(W,B,H,Z,Y+oe,L,L+y,y):L-(W+H/2)+oe/2,G=o==="start"?T-j-X:o==="center"?T-(j+k/2)+ae/2:o==="end"?T-F+z+ae:km(j,F,k,X,z+ae,T,T+C,C);var $=D.scrollLeft,A=D.scrollTop;L+=A-(te=Math.max(0,Math.min(A+te/Ce,D.scrollHeight-H/Ce+oe))),T+=$-(G=Math.max(0,Math.min($+G/de,D.scrollWidth-k/de+ae)))}R.push({el:D,top:te,left:G})}return R};function p8(n){return n===Object(n)&&Object.keys(n).length!==0}function vde(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&t?i.scroll({top:o,left:a,behavior:e}):(i.scrollTop=o,i.scrollLeft=a)})}function gde(n){return n===!1?{block:"end",inline:"nearest"}:p8(n)?n:{block:"start",inline:"nearest"}}function mde(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(p8(e)&&typeof e.behavior=="function")return e.behavior(t?xk(n,e):[]);if(t){var r=gde(e);return vde(xk(n,r),r.behavior)}}var _de=Math.min;function yde(n,e,t){for(var r=t?_H:mH,i=n[0].length,o=n.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=n[a];a&&e&&(c=oC(c,qb(e))),l=_de(c.length,l),s[a]=!t&&(e||i>=120&&c.length>=120)?new Jf(a&&c):void 0}c=n[0];var d=-1,f=s[0];e:for(;++d1),o}),Fg(n,JH(n),t),r&&(t=iv(t,Ode|Nde|Dde,xde));for(var i=e.length;i--;)Tde(t,e[i]);return t});const Rde=Ade;function Ok(n){var e=!1;return n&&n.length&&n.every(function(t){return t.required?(e=!0,!1):!0}),e}function Nk(n){return n==null?[]:Array.isArray(n)?n:[n]}function uw(n,e,t){var r=n;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");for(var i=e.split("."),o=0,a=i.length;o1&&arguments[1]!==void 0?arguments[1]:ee({}),t=arguments.length>2?arguments[2]:void 0,r=N_(gr(n)),i=Rn({}),o=Zt([]),a=function(C){fn(gr(n),O(O({},N_(r)),C)),en(function(){Object.keys(i).forEach(function(w){i[w]={autoLink:!1,required:Ok(gr(e)[w])}})})},s=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?C.filter(function(b){var S=Nk(b.trigger||"change");return Ede(S,w).length}):C},l=null,u=function(C){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments.length>2?arguments[2]:void 0,S=[],E={},L=function(H){var k=C[H],W=uw(gr(n),k,b);if(!W.isValid)return"continue";E[k]=W.v;var F=s(gr(e)[k],Nk(w&&w.trigger));F.length&&S.push(c(k,W.v,F,w||{}).then(function(){return{name:k,errors:[],warnings:[]}}).catch(function(B){var j=[],K=[];return B.forEach(function(X){var Z=X.rule.warningOnly,z=X.errors;Z?K.push.apply(K,Ge(z)):j.push.apply(j,Ge(z))}),j.length?Promise.reject({name:k,errors:j,warnings:K}):{name:k,errors:j,warnings:K}}))},T=0;T3&&arguments[3]!==void 0?arguments[3]:{},E=s8([C],w,b,O({validateMessages:cC},S),!!S.validateFirst);return i[C]?(i[C].validateStatus="validating",E.catch(function(L){return L}).then(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(i[C].validateStatus==="validating"){var T,R=L.filter(function(N){return N&&N.errors.length});i[C].validateStatus=R.length?"error":"success",i[C].help=R.length?R.map(function(N){return N.errors}):null,t==null||(T=t.onValidate)===null||T===void 0||T.call(t,C,!R.length,R.length?Tt(i[C].help[0]):null)}}),E):E.catch(function(L){return L})},d=function(C,w){var b=[],S=!0;C?Array.isArray(C)?b=C:b=[C]:(S=!1,b=o.value);var E=u(b,w||{},S);return E.catch(function(L){return L}),E},f=function(C){var w=[];C?Array.isArray(C)?w=C:w=[C]:w=o.value,w.forEach(function(b){i[b]&&fn(i[b],{validateStatus:"",help:null})})},h=function(C){for(var w={autoLink:!1},b=[],S=Array.isArray(C)?C:[C],E=0;E-1}):Object.values(C)},E=function(F){if(!e.model){_a(!1,"Form","model is required for resetFields to work.");return}S(F).forEach(function(B){B.resetField()})},L=function(F){S(F).forEach(function(B){B.clearValidate()})},T=function(F){var B=e.scrollToFirstError;if(r("finishFailed",F),B&&F.errorFields.length){var j={};at(B)==="object"&&(j=B),N(F.errorFields[0].name,j)}},R=function(){return H.apply(void 0,arguments)},N=function(F){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=S(F?[F]:void 0);if(j.length){var K=j[0].fieldId.value,X=K?document.getElementById(K):null;X&&mde(X,O({scrollMode:"if-needed",block:"nearest"},B))}},D=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(F===!0){var B=[];return Object.values(C).forEach(function(j){var K=j.namePath;B.push(K.value)}),Lk(e.model,B)}else return Lk(e.model,F)},M=function(F,B){if(_a(!(F instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return _a(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var j=!!F,K=j?ru(F).map(gE):[],X=[];Object.values(C).forEach(function(Y){var te;if(j||K.push(Y.namePath.value),!!((te=Y.rules)!==null&&te!==void 0&&te.value.length)){var G=Y.namePath.value;if(!j||Pce(K,G)){var ae=Y.validateRules(O({validateMessages:g.value},B));X.push(ae.then(function(){return{name:G,errors:[],warnings:[]}}).catch(function(oe){var de=[],Ce=[];return oe.forEach(function($){var A=$.rule.warningOnly,P=$.errors;A?Ce.push.apply(Ce,Ge(P)):de.push.apply(de,Ge(P))}),de.length?Promise.reject({name:G,errors:de,warnings:Ce}):{name:G,errors:de,warnings:Ce}}))}}});var Z=h8(X);y.value=Z;var z=Z.then(function(){return y.value===Z?Promise.resolve(D(K)):Promise.reject([])}).catch(function(Y){var te=Y.filter(function(G){return G&&G.errors.length});return Promise.reject({values:D(K),errorFields:te,outOfDate:y.value!==Z})});return z.catch(function(Y){return Y}),z},H=function(){return M.apply(void 0,arguments)},k=function(F){if(F.preventDefault(),F.stopPropagation(),r("submit",F),e.model){var B=M();B.then(function(j){r("finish",j)}).catch(function(j){T(j)})}};return o({resetFields:E,clearValidate:L,validateFields:M,getFieldsValue:D,validate:R,scrollToField:N}),d8({model:V(function(){return e.model}),name:V(function(){return e.name}),labelAlign:V(function(){return e.labelAlign}),labelCol:V(function(){return e.labelCol}),labelWrap:V(function(){return e.labelWrap}),wrapperCol:V(function(){return e.wrapperCol}),vertical:V(function(){return e.layout==="vertical"}),colon:p,requiredMark:h,validateTrigger:V(function(){return e.validateTrigger}),rules:V(function(){return e.rules}),addField:w,removeField:b,onValidate:function(F,B,j){r("validate",F,B,j)},validateMessages:g}),We(function(){return e.rules},function(){e.validateOnRuleChange&&M()}),function(){var W;return I("form",O(O({},a),{},{onSubmit:k,class:[_.value,a.class]}),[(W=i.default)===null||W===void 0?void 0:W.call(i)])}}});const Gl=Fde;Gl.useInjectFormItemContext=ps;Gl.ItemRest=Q1;Gl.install=function(n){return n.component(Gl.name,Gl),n.component(Gl.Item.name,Gl.Item),n.component(Q1.name,Q1),n};var Bde=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},Wde=function(){return O(O({},Bde()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},Vde=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:ie.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},Hde=function(){return O(O({},Vde()),{},{indeterminate:{type:Boolean,default:!1}})},v8=Symbol("CheckboxGroupContext"),Ude=["indeterminate","skipGroup","id"],$de=["onMouseenter","onMouseleave","onInput","class","style"];const Qa=be({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:Hde(),setup:function(e,t){var r=t.emit,i=t.attrs,o=t.slots,a=t.expose,s=ps(),l=Et("checkbox",e),u=l.prefixCls,c=l.direction,d=yt(v8,void 0),f=Symbol("checkboxUniId");Ft(function(){!e.skipGroup&&d&&d.registerValue(f,e.value)}),Xt(function(){d&&d.cancelValue(f)}),Wt(function(){_a(e.checked!==void 0||d||e.value===void 0,"Checkbox","`value` is not validate prop, do you mean `checked`?")});var h=function(_){var y=_.target.checked;r("update:checked",y),r("change",_)},p=ee(),v=function(){var _;(_=p.value)===null||_===void 0||_.focus()},m=function(){var _;(_=p.value)===null||_===void 0||_.blur()};return a({focus:v,blur:m}),function(){var g,_,y=lr((g=o.default)===null||g===void 0?void 0:g.call(o)),C=e.indeterminate,w=e.skipGroup,b=e.id,S=b===void 0?s.id.value:b,E=Nt(e,Ude),L=i.onMouseenter,T=i.onMouseleave;i.onInput;var R=i.class,N=i.style,D=Nt(i,$de),M=O(O({},E),{},{id:S,prefixCls:u.value},D);d&&!w?(M.onChange=function(){for(var W=arguments.length,F=new Array(W),B=0;B=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},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=!0,a=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(a)throw s}}}}const CE=be({compatConfig:{MODE:3},name:"ACheckboxGroup",props:Wde(),setup:function(e,t){var r=t.slots,i=t.emit,o=t.expose,a=ps(),s=Et("checkbox",e),l=s.prefixCls,u=s.direction,c=ee((e.value===void 0?e.defaultValue:e.value)||[]);We(function(){return e.value},function(){c.value=e.value||[]});var d=V(function(){return e.options.map(function(_){return typeof _=="string"||typeof _=="number"?{label:_,value:_}:_})}),f=ee(Symbol()),h=ee(new Map),p=function(y){h.value.delete(y),f.value=Symbol()},v=function(y,C){h.value.set(y,C),f.value=Symbol()},m=ee(new Map);We(f,function(){var _=new Map,y=jde(h.value.values()),C;try{for(y.s();!(C=y.n()).done;){var w=C.value;_.set(w,!0)}}catch(b){y.e(b)}finally{y.f()}m.value=_});var g=function(y){var C=c.value.indexOf(y.value),w=Ge(c.value);C===-1?w.push(y.value):w.splice(C,1),e.value===void 0&&(c.value=w);var b=w.filter(function(S){return m.value.has(S)}).sort(function(S,E){var L=d.value.findIndex(function(R){return R.value===S}),T=d.value.findIndex(function(R){return R.value===E});return L-T});i("update:value",b),i("change",b),a.onFieldChange()};return qt(v8,{cancelValue:p,registerValue:v,toggleOption:g,mergedValue:c,name:V(function(){return e.name}),disabled:V(function(){return e.disabled})}),o({mergedValue:c}),function(){var _,y=e.id,C=y===void 0?a.id.value:y,w=null,b="".concat(l.value,"-group");return d.value&&d.value.length>0&&(w=d.value.map(function(S){var E;return I(Qa,{prefixCls:l.value,key:S.value.toString(),disabled:"disabled"in S?S.disabled:e.disabled,indeterminate:S.indeterminate,value:S.value,checked:c.value.indexOf(S.value)!==-1,onChange:S.onChange,class:"".concat(b,"-item")},{default:function(){return[S.label===void 0?(E=r.label)===null||E===void 0?void 0:E.call(r,S):S.label]}})})),I("div",{class:[b,U({},"".concat(b,"-rtl"),u.value==="rtl")],id:C},[w||((_=r.default)===null||_===void 0?void 0:_.call(r))])}}});Qa.Group=CE;Qa.install=function(n){return n.component(Qa.name,Qa),n.component(CE.name,CE),n};var zde=function(){return{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}},Kde=be({compatConfig:{MODE:3},name:"ADivider",props:zde(),setup:function(e,t){var r=t.slots,i=Et("divider",e),o=i.prefixCls,a=i.direction,s=V(function(){return e.orientation==="left"&&e.orientationMargin!=null}),l=V(function(){return e.orientation==="right"&&e.orientationMargin!=null}),u=V(function(){var f,h=e.type,p=e.dashed,v=e.plain,m=o.value;return f={},U(f,m,!0),U(f,"".concat(m,"-").concat(h),!0),U(f,"".concat(m,"-dashed"),!!p),U(f,"".concat(m,"-plain"),!!v),U(f,"".concat(m,"-rtl"),a.value==="rtl"),U(f,"".concat(m,"-no-default-orientation-margin-left"),s.value),U(f,"".concat(m,"-no-default-orientation-margin-right"),l.value),f}),c=V(function(){var f=typeof e.orientationMargin=="number"?"".concat(e.orientationMargin,"px"):e.orientationMargin;return O(O({},s.value&&{marginLeft:f}),l.value&&{marginRight:f})}),d=V(function(){return e.orientation.length>0?"-"+e.orientation:e.orientation});return function(){var f,h=lr((f=r.default)===null||f===void 0?void 0:f.call(r));return I("div",{class:[u.value,h.length?"".concat(o.value,"-with-text ").concat(o.value,"-with-text").concat(d.value):""],role:"separator"},[h.length?I("span",{class:"".concat(o.value,"-inner-text"),style:c.value},[h]):null])}}});const Gde=Lu(Kde);Js.Button=Sy;Js.install=function(n){return n.component(Js.name,Js),n.component(Sy.name,Sy),n};var cw;function Kv(n){if(typeof document>"u")return 0;if(n||cw===void 0){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div"),r=t.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var i=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;i===o&&(o=t.clientWidth),document.body.removeChild(t),cw=i-o}return cw}function Dk(n){var e=n.match(/^(.*)px$/),t=Number(e==null?void 0:e[1]);return Number.isNaN(t)?Kv():t}function qde(n){if(typeof document>"u"||!n||!(n instanceof Element))return{width:0,height:0};var e=getComputedStyle(n,"::-webkit-scrollbar"),t=e.width,r=e.height;return{width:Dk(t),height:Dk(r)}}function rh(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.element,r=t===void 0?document.body:t,i={},o=Object.keys(n);return o.forEach(function(a){i[a]=r.style[a]}),o.forEach(function(a){r.style[a]=n[a]}),i}function Yde(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var dw={};const Ak=function(n){if(!(!Yde()&&!n)){var e="ant-scrolling-effect",t=new RegExp("".concat(e),"g"),r=document.body.className;if(n){if(!t.test(r))return;rh(dw),dw={},document.body.className=r.replace(t,"").trim();return}var i=Kv();if(i&&(dw=rh({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!t.test(r))){var o="".concat(r," ").concat(e);document.body.className=o.trim()}}};var ko=[],g8="ant-scrolling-effect",fw=new RegExp("".concat(g8),"g"),Xde=0,hw=new Map,Zde=rC(function n(e){var t=this;iC(this,n),U(this,"getContainer",function(){var r;return(r=t.options)===null||r===void 0?void 0:r.container}),U(this,"reLock",function(r){var i=ko.find(function(o){var a=o.target;return a===t.lockTarget});i&&t.unLock(),t.options=r,i&&(i.options=r,t.lock())}),U(this,"lock",function(){var r;if(!ko.some(function(l){var u=l.target;return u===t.lockTarget})){if(ko.some(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=t.options)===null||u===void 0?void 0:u.container)})){ko=[].concat(Ge(ko),[{target:t.lockTarget,options:t.options}]);return}var i=0,o=((r=t.options)===null||r===void 0?void 0:r.container)||document.body;(o===document.body&&window.innerWidth-document.documentElement.clientWidth>0||o.scrollHeight>o.clientHeight)&&(i=Kv());var a=o.className;if(ko.filter(function(l){var u,c=l.options;return(c==null?void 0:c.container)===((u=t.options)===null||u===void 0?void 0:u.container)}).length===0&&hw.set(o,rh({width:i!==0?"calc(100% - ".concat(i,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:o})),!fw.test(a)){var s="".concat(a," ").concat(g8);o.className=s.trim()}ko=[].concat(Ge(ko),[{target:t.lockTarget,options:t.options}])}}),U(this,"unLock",function(){var r,i=ko.find(function(s){var l=s.target;return l===t.lockTarget});if(ko=ko.filter(function(s){var l=s.target;return l!==t.lockTarget}),!(!i||ko.some(function(s){var l,u=s.options;return(u==null?void 0:u.container)===((l=i.options)===null||l===void 0?void 0:l.container)}))){var o=((r=t.options)===null||r===void 0?void 0:r.container)||document.body,a=o.className;fw.test(a)&&(rh(hw.get(o),{element:o}),hw.delete(o),o.className=o.className.replace(fw,"").trim())}}),this.lockTarget=Xde++,this.options=e}),Ss=0,Wp=vd(),Fm={},Bd=function(e){if(!Wp)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(at(e)==="object"&&e instanceof window.HTMLElement)return e}return document.body};const Qde=be({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ie.any,visible:{type:Boolean,default:void 0}},setup:function(e,t){var r=t.slots,i=ee(),o=ee(),a=ee(),s=new Zde({container:Bd(e.getContainer)}),l=function(){var v,m;(v=i.value)===null||v===void 0||(m=v.parentNode)===null||m===void 0||m.removeChild(i.value)},u=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(v||i.value&&!i.value.parentNode){var m=Bd(e.getContainer);return m?(m.appendChild(i.value),!0):!1}return!0},c=function(){return Wp?(i.value||(i.value=document.createElement("div"),u(!0)),d(),i.value):null},d=function(){var v=e.wrapperClassName;i.value&&v&&v!==i.value.className&&(i.value.className=v)};Xo(function(){d(),u()});var f=function(){Ss===1&&!Object.keys(Fm).length?(Ak(),Fm=rh({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):Ss||(rh(Fm),Fm={},Ak(!0))},h=Dr();return Wt(function(){var p=!1;We([function(){return e.visible},function(){return e.getContainer}],function(v,m){var g=qe(v,2),_=g[0],y=g[1],C=qe(m,2),w=C[0],b=C[1];if(Wp&&Bd(e.getContainer)===document.body&&(_&&!w?Ss+=1:p&&(Ss-=1)),p){var S=typeof y=="function"&&typeof b=="function";(S?y.toString()!==b.toString():y!==b)&&l(),_&&_!==w&&Wp&&Bd(y)!==s.getContainer()&&s.reLock({container:Bd(y)})}p=!0},{immediate:!0,flush:"post"}),en(function(){u()||(a.value=Mt(function(){h.update()}))})}),Xt(function(){var p=e.visible,v=e.getContainer;Wp&&Bd(v)===document.body&&(Ss=p&&Ss?Ss-1:Ss),l(),Mt.cancel(a.value)}),function(){var p=e.forceRender,v=e.visible,m=null,g={getOpenCount:function(){return Ss},getContainer:c,switchScrollingEffect:f,scrollLocker:s};return(p||v||o.value)&&(m=I(q1,{getContainer:c,ref:o},{default:function(){var y;return(y=r.default)===null||y===void 0?void 0:y.call(r,g)}})),m}}});var m8=function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:ie.oneOfType([ie.string,ie.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:ie.any,addonAfter:ie.any,prefix:ie.any,suffix:ie.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}};const EO=m8;var _8=function(){return O(O({},nr(m8(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function y8(n,e,t,r,i){var o;return Ne(n,(o={},U(o,"".concat(n,"-sm"),t==="small"),U(o,"".concat(n,"-lg"),t==="large"),U(o,"".concat(n,"-disabled"),r),U(o,"".concat(n,"-rtl"),i==="rtl"),U(o,"".concat(n,"-borderless"),!e),o))}var av=function(e){return e!=null&&(Array.isArray(e)?To(e).length:!0)};function Jde(n){return av(n.prefix)||av(n.suffix)||av(n.allowClear)}function pw(n){return av(n.addonBefore)||av(n.addonAfter)}var efe=["text","input"];const b8=be({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ie.oneOf(Si("text","input")),value:ie.any,defaultValue:ie.any,allowClear:{type:Boolean,default:void 0},element:ie.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:ie.any,prefix:ie.any,addonBefore:ie.any,addonAfter:ie.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,t){var r=t.slots,i=t.attrs,o=ee(),a=function(h){var p;if((p=o.value)!==null&&p!==void 0&&p.contains(h.target)){var v=e.triggerFocus;v==null||v()}},s=function(h){var p,v=e.allowClear,m=e.value,g=e.disabled,_=e.readonly,y=e.handleReset,C=e.suffix,w=C===void 0?r.suffix:C;if(!v)return null;var b=!g&&!_&&m,S="".concat(h,"-clear-icon");return I(Ng,{onClick:y,onMousedown:function(L){return L.preventDefault()},class:Ne((p={},U(p,"".concat(S,"-hidden"),!b),U(p,"".concat(S,"-has-suffix"),!!w),p),S),role:"button"},null)},l=function(h){var p,v=e.suffix,m=v===void 0?(p=r.suffix)===null||p===void 0?void 0:p.call(r):v,g=e.allowClear;return m||g?I("span",{class:"".concat(h,"-suffix")},[s(h),m]):null},u=function(h,p){var v,m,g,_=e.focused,y=e.value,C=e.prefix,w=C===void 0?(v=r.prefix)===null||v===void 0?void 0:v.call(r):C,b=e.size,S=e.suffix,E=S===void 0?(m=r.suffix)===null||m===void 0?void 0:m.call(r):S,L=e.disabled,T=e.allowClear,R=e.direction,N=e.readonly,D=e.bordered,M=e.hidden,H=e.addonAfter,k=H===void 0?r.addonAfter:H,W=e.addonBefore,F=W===void 0?r.addonBefore:W,B=l(h);if(!Jde({prefix:w,suffix:E,allowClear:T}))return Fn(p,{value:y});var j=w?I("span",{class:"".concat(h,"-prefix")},[w]):null,K=Ne("".concat(h,"-affix-wrapper"),(g={},U(g,"".concat(h,"-affix-wrapper-focused"),_),U(g,"".concat(h,"-affix-wrapper-disabled"),L),U(g,"".concat(h,"-affix-wrapper-sm"),b==="small"),U(g,"".concat(h,"-affix-wrapper-lg"),b==="large"),U(g,"".concat(h,"-affix-wrapper-input-with-clear-btn"),E&&T&&y),U(g,"".concat(h,"-affix-wrapper-rtl"),R==="rtl"),U(g,"".concat(h,"-affix-wrapper-readonly"),N),U(g,"".concat(h,"-affix-wrapper-borderless"),!D),U(g,"".concat(i.class),!pw({addonAfter:k,addonBefore:F})&&i.class),g));return I("span",{ref:o,class:K,style:i.style,onMouseup:a,hidden:M},[j,Fn(p,{style:null,value:y,class:y8(h,D,b,L)}),B])},c=function(h,p){var v,m,g,_=e.addonBefore,y=_===void 0?(v=r.addonBefore)===null||v===void 0?void 0:v.call(r):_,C=e.addonAfter,w=C===void 0?(m=r.addonAfter)===null||m===void 0?void 0:m.call(r):C,b=e.size,S=e.direction,E=e.hidden;if(!pw({addonBefore:y,addonAfter:w}))return p;var L="".concat(h,"-group"),T="".concat(L,"-addon"),R=y?I("span",{class:T},[y]):null,N=w?I("span",{class:T},[w]):null,D=Ne("".concat(h,"-wrapper"),L,U({},"".concat(L,"-rtl"),S==="rtl")),M=Ne("".concat(h,"-group-wrapper"),(g={},U(g,"".concat(h,"-group-wrapper-sm"),b==="small"),U(g,"".concat(h,"-group-wrapper-lg"),b==="large"),U(g,"".concat(h,"-group-wrapper-rtl"),S==="rtl"),g),i.class);return I("span",{class:M,style:i.style,hidden:E},[I("span",{class:D},[R,Fn(p,{style:null}),N])])},d=function(h,p){var v,m=e.value,g=e.allowClear,_=e.direction,y=e.bordered,C=e.hidden,w=e.addonAfter,b=w===void 0?r.addonAfter:w,S=e.addonBefore,E=S===void 0?r.addonBefore:S;if(!g)return Fn(p,{value:m});var L=Ne("".concat(h,"-affix-wrapper"),"".concat(h,"-affix-wrapper-textarea-with-clear-btn"),(v={},U(v,"".concat(h,"-affix-wrapper-rtl"),_==="rtl"),U(v,"".concat(h,"-affix-wrapper-borderless"),!y),U(v,"".concat(i.class),!pw({addonAfter:b,addonBefore:E})&&i.class),v));return I("span",{class:L,style:i.style,hidden:C},[Fn(p,{style:null,value:m}),s(h)])};return function(){var f,h=e.prefixCls,p=e.inputType,v=e.element,m=v===void 0?(f=r.element)===null||f===void 0?void 0:f.call(r):v;return p===efe[0]?d(h,m):c(h,u(h,m))}}});function wE(n){return typeof n>"u"||n===null?"":String(n)}function sv(n,e,t,r){if(t){var i=e;if(e.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});var o=n.cloneNode(!0);i.target=o,i.currentTarget=o,o.value="",t(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=n,i.currentTarget=n,n.value=r,t(i);return}t(i)}}function C8(n,e){if(n){n.focus(e);var t=e||{},r=t.cursor;if(r){var i=n.value.length;switch(r){case"start":n.setSelectionRange(0,0);break;case"end":n.setSelectionRange(i,i);break;default:n.setSelectionRange(0,i)}}}}const Wr=be({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:EO(),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=t.emit,s=ee(),l=ee(),u,c=ps(),d=Et("input",e),f=d.direction,h=d.prefixCls,p=d.size,v=d.autocomplete,m=ee(e.value===void 0?e.defaultValue:e.value),g=ee(!1);We(function(){return e.value},function(){m.value=e.value}),We(function(){return e.disabled},function(){e.value!==void 0&&(m.value=e.value),e.disabled&&(g.value=!1)});var _=function(){u=setTimeout(function(){var F;((F=s.value)===null||F===void 0?void 0:F.getAttribute("type"))==="password"&&s.value.hasAttribute("value")&&s.value.removeAttribute("value")})},y=function(F){C8(s.value,F)},C=function(){var F;(F=s.value)===null||F===void 0||F.blur()},w=function(F,B,j){var K;(K=s.value)===null||K===void 0||K.setSelectionRange(F,B,j)},b=function(){var F;(F=s.value)===null||F===void 0||F.select()};o({focus:y,blur:C,input:s,stateValue:m,setSelectionRange:w,select:b});var S=function(F){var B=e.onFocus;g.value=!0,B==null||B(F),en(function(){_()})},E=function(F){var B=e.onBlur;g.value=!1,B==null||B(F),c.onFieldBlur(),en(function(){_()})},L=function(F){a("update:value",F.target.value),a("change",F),a("input",F),c.onFieldChange()},T=Dr(),R=function(F,B){m.value!==F&&(e.value===void 0?m.value=F:en(function(){s.value.value!==m.value&&T.update()}),en(function(){B&&B()}))},N=function(F){sv(s.value,F,L),R("",function(){y()})},D=function(F){var B=F.target,j=B.value,K=B.composing;if(!((F.isComposing||K)&&e.lazy||m.value===j)){var X=F.target.value;sv(s.value,F,L),R(X,function(){_()})}},M=function(F){F.keyCode===13&&a("pressEnter",F),a("keydown",F)};Wt(function(){_()}),Xt(function(){clearTimeout(u)});var H=function(){var F,B=e.addonBefore,j=B===void 0?r.addonBefore:B,K=e.addonAfter,X=K===void 0?r.addonAfter:K,Z=e.disabled,z=e.bordered,Y=z===void 0?!0:z,te=e.valueModifiers,G=te===void 0?{}:te,ae=e.htmlSize,oe=nr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),de=O(O(O({},oe),i),{},{autocomplete:v.value,onChange:D,onInput:D,onFocus:S,onBlur:E,onKeydown:M,class:Ne(y8(h.value,Y,p.value,Z,f.value),U({},i.class,i.class&&!j&&!X)),ref:s,key:"ant-input",size:ae,id:(F=oe.id)!==null&&F!==void 0?F:c.id.value});G.lazy&&delete de.onInput,de.autofocus||delete de.autofocus;var Ce=I("input",nr(de,["size"]),null);return Ki(Ce,[[Pg]])},k=function(){var F,B=m.value,j=e.maxlength,K=e.suffix,X=K===void 0?(F=r.suffix)===null||F===void 0?void 0:F.call(r):K,Z=e.showCount,z=Number(j)>0;if(X||Z){var Y=Ge(wE(B)).length,te=null;return at(Z)==="object"?te=Z.formatter({count:Y,maxlength:j}):te="".concat(Y).concat(z?" / ".concat(j):""),I(kt,null,[!!Z&&I("span",{class:Ne("".concat(h.value,"-show-count-suffix"),U({},"".concat(h.value,"-show-count-has-suffix"),!!X))},[te]),X])}return null};return function(){var W=O(O(O({},i),e),{},{prefixCls:h.value,inputType:"input",value:wE(m.value),handleReset:N,focused:g.value&&!e.disabled});return I(b8,O(O({},nr(W,["element","valueModifiers","suffix","showCount"])),{},{ref:l}),O(O({},r),{},{element:H,suffix:k}))}}}),tfe=be({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,t){var r=t.slots,i=Et("input-group",e),o=i.prefixCls,a=i.direction,s=V(function(){var l,u=o.value;return l={},U(l,"".concat(u),!0),U(l,"".concat(u,"-lg"),e.size==="large"),U(l,"".concat(u,"-sm"),e.size==="small"),U(l,"".concat(u,"-compact"),e.compact),U(l,"".concat(u,"-rtl"),a.value==="rtl"),l});return function(){var l;return I("span",{class:s.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[(l=r.default)===null||l===void 0?void 0:l.call(r)])}}});var vw=/iPhone/i,Rk=/iPod/i,Pk=/iPad/i,gw=/\bAndroid(?:.+)Mobile\b/i,Mk=/Android/i,Wd=/\bAndroid(?:.+)SD4930UR\b/i,Bm=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Es=/Windows Phone/i,kk=/\bWindows(?:.+)ARM\b/i,Fk=/BlackBerry/i,Bk=/BB10/i,Wk=/Opera Mini/i,Vk=/\b(CriOS|Chrome)(?:.+)Mobile/i,Hk=/Mobile(?:.+)Firefox\b/i;function At(n,e){return n.test(e)}function Uk(n){var e=n||(typeof navigator<"u"?navigator.userAgent:""),t=e.split("[FBAN");if(typeof t[1]<"u"){var r=t,i=qe(r,1);e=i[0]}if(t=e.split("Twitter"),typeof t[1]<"u"){var o=t,a=qe(o,1);e=a[0]}var s={apple:{phone:At(vw,e)&&!At(Es,e),ipod:At(Rk,e),tablet:!At(vw,e)&&At(Pk,e)&&!At(Es,e),device:(At(vw,e)||At(Rk,e)||At(Pk,e))&&!At(Es,e)},amazon:{phone:At(Wd,e),tablet:!At(Wd,e)&&At(Bm,e),device:At(Wd,e)||At(Bm,e)},android:{phone:!At(Es,e)&&At(Wd,e)||!At(Es,e)&&At(gw,e),tablet:!At(Es,e)&&!At(Wd,e)&&!At(gw,e)&&(At(Bm,e)||At(Mk,e)),device:!At(Es,e)&&(At(Wd,e)||At(Bm,e)||At(gw,e)||At(Mk,e))||At(/\bokhttp\b/i,e)},windows:{phone:At(Es,e),tablet:At(kk,e),device:At(Es,e)||At(kk,e)},other:{blackberry:At(Fk,e),blackberry10:At(Bk,e),opera:At(Wk,e),firefox:At(Hk,e),chrome:At(Vk,e),device:At(Fk,e)||At(Bk,e)||At(Wk,e)||At(Hk,e)||At(Vk,e)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var nfe=O(O({},Uk()),{},{isMobile:Uk});const rfe=nfe;var ife=["disabled","loading","addonAfter","suffix"];const ofe=be({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:O(O({},EO()),{},{inputPrefixCls:String,enterButton:ie.any,onSearch:{type:Function}}),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=t.emit,s=ee(),l=function(){var C;(C=s.value)===null||C===void 0||C.focus()},u=function(){var C;(C=s.value)===null||C===void 0||C.blur()};o({focus:l,blur:u});var c=function(C){a("update:value",C.target.value),C&&C.target&&C.type==="click"&&a("search",C.target.value,C),a("change",C)},d=function(C){var w;document.activeElement===((w=s.value)===null||w===void 0?void 0:w.input)&&C.preventDefault()},f=function(C){var w;a("search",(w=s.value)===null||w===void 0?void 0:w.stateValue,C),rfe.tablet||s.value.focus()},h=Et("input-search",e),p=h.prefixCls,v=h.getPrefixCls,m=h.direction,g=h.size,_=V(function(){return v("input",e.inputPrefixCls)});return function(){var y,C,w,b,S,E=e.disabled,L=e.loading,T=e.addonAfter,R=T===void 0?(y=r.addonAfter)===null||y===void 0?void 0:y.call(r):T,N=e.suffix,D=N===void 0?(C=r.suffix)===null||C===void 0?void 0:C.call(r):N,M=Nt(e,ife),H=e.enterButton,k=H===void 0?(w=(b=r.enterButton)===null||b===void 0?void 0:b.call(r))!==null&&w!==void 0?w:!1:H;k=k||k==="";var W=typeof k=="boolean"?I(Xx,null,null):null,F="".concat(p.value,"-button"),B=Array.isArray(k)?k[0]:k,j,K=B.type&&f6(B.type)&&B.type.__ANT_BUTTON;if(K||B.tagName==="button")j=Fn(B,O({onMousedown:d,onClick:f,key:"enterButton"},K?{class:F,size:g.value}:{}),!1);else{var X=W&&!k;j=I(bi,{class:F,type:k?"primary":void 0,size:g.value,disabled:E,key:"enterButton",onMousedown:d,onClick:f,loading:L,icon:X?W:null},{default:function(){return[X?null:W||k]}})}R&&(j=[j,R]);var Z=Ne(p.value,(S={},U(S,"".concat(p.value,"-rtl"),m.value==="rtl"),U(S,"".concat(p.value,"-").concat(g.value),!!g.value),U(S,"".concat(p.value,"-with-button"),!!k),S),i.class);return I(Wr,O(O(O({ref:s},nr(M,["onUpdate:value","onSearch","enterButton"])),i),{},{onPressEnter:f,size:g.value,prefixCls:_.value,addonAfter:j,suffix:D,onChange:c,class:Z,disabled:E}),r)}}});var afe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -157,74 +135,74 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho z-index:-1000 !important; top:0 !important; right:0 !important -`,Ode=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],ww={},Fo;function Nde(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if(e&&ww[t])return ww[t];var r=window.getComputedStyle(n),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Ode.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return e&&t&&(ww[t]=l),l}function Ade(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Fo||(Fo=document.createElement("textarea"),Fo.setAttribute("tab-index","-1"),Fo.setAttribute("aria-hidden","true"),document.body.appendChild(Fo)),n.getAttribute("wrap")?Fo.setAttribute("wrap",n.getAttribute("wrap")):Fo.removeAttribute("wrap");var i=Nde(n,e),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Fo.setAttribute("style","".concat(l,";").concat(xde)),Fo.value=n.value||n.placeholder||"";var u=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=Fo.scrollHeight,f;if(s==="border-box"?d+=a:s==="content-box"&&(d-=o),t!==null||r!==null){Fo.value=" ";var h=Fo.scrollHeight-o;t!==null&&(u=h*t,s==="border-box"&&(u=u+o+a),d=Math.max(u,d)),r!==null&&(c=h*r,s==="border-box"&&(c=c+o+a),f=d>c?"":"hidden",d=Math.min(c,d))}return{height:"".concat(d,"px"),minHeight:"".concat(u,"px"),maxHeight:"".concat(c,"px"),overflowY:f,resize:"none"}}var Sw=0,$k=1,Dde=2,Rde=be({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:b8(),setup:function(e,t){var r=t.attrs,i=t.emit,o=t.expose,a,s,l=J(),u=J({}),c=J(Sw);Zt(function(){Mt.cancel(a),Mt.cancel(s)});var d=function(){try{if(document.activeElement===l.value){var _=l.value.selectionStart,y=l.value.selectionEnd;l.value.setSelectionRange(_,y)}}catch{}},f=function(){var _=e.autoSize||e.autosize;if(!(!_||!l.value)){var y=_.minRows,b=_.maxRows;u.value=Ade(l.value,!1,y,b),c.value=$k,Mt.cancel(s),s=Mt(function(){c.value=Dde,s=Mt(function(){c.value=Sw,d()})})}},h=function(){Mt.cancel(a),a=Mt(f)},p=function(_){if(c.value===Sw){i("resize",_);var y=e.autoSize||e.autosize;y&&h()}};_a(e.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var v=function(){var _=e.prefixCls,y=e.autoSize,b=e.autosize,w=e.disabled,C=nr(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),S=Re(_,r.class,U({},"".concat(_,"-disabled"),w)),L=[r.style,u.value,c.value===$k?{overflowX:"hidden",overflowY:"hidden"}:null],E=O(O(O({},C),r),{},{style:L,class:S});return E.autofocus||delete E.autofocus,E.rows===0&&delete E.rows,I(mu,{onResize:p,disabled:!(y||b)},{default:function(){return[Ki(I("textarea",O(O({},E),{},{ref:l}),null),[[Ag]])]}})};Ve(function(){return e.value},function(){en(function(){f()})}),Wt(function(){en(function(){f()})});var m=Rr();return o({resizeTextarea:f,textArea:l,instance:m}),function(){return v()}}});const Pde=Rde;function E8(n,e){return Ge(n||"").slice(0,e).join("")}function jk(n,e,t,r){var i=t;return n?i=E8(t,r):Ge(e||"").lengthr&&(i=e),i}const Mde=be({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:b8(),setup:function(e,t){var r=t.attrs,i=t.expose,o=t.emit,a=hs(),s=J(e.value===void 0?e.defaultValue:e.value),l=J(),u=J(""),c=St("input",e),d=c.prefixCls,f=c.size,h=c.direction,p=V(function(){return e.showCount===""||e.showCount||!1}),v=V(function(){return Number(e.maxlength)>0}),m=J(!1),g=J(),_=J(0),y=function(k){m.value=!0,g.value=u.value,_.value=k.currentTarget.selectionStart,o("compositionstart",k)},b=function(k){m.value=!1;var B=k.currentTarget.value;if(v.value){var F,W=_.value>=e.maxlength+1||_.value===((F=g.value)===null||F===void 0?void 0:F.length);B=jk(W,g.value,B,e.maxlength)}B!==u.value&&(L(B),av(k.currentTarget,k,P,B)),o("compositionend",k)},w=Rr();Ve(function(){return e.value},function(){"value"in w.vnode.props;var H;s.value=(H=e.value)!==null&&H!==void 0?H:""});var C=function(k){var B;S8((B=l.value)===null||B===void 0?void 0:B.textArea,k)},S=function(){var k,B;(k=l.value)===null||k===void 0||(B=k.textArea)===null||B===void 0||B.blur()},L=function(k,B){s.value!==k&&(e.value===void 0?s.value=k:en(function(){if(l.value.textArea.value!==u.value){var F,W,$;(F=l.value)===null||F===void 0||(W=($=F.instance).update)===null||W===void 0||W.call($)}}),en(function(){B&&B()}))},E=function(k){k.keyCode===13&&o("pressEnter",k),o("keydown",k)},T=function(k){var B=e.onBlur;B==null||B(k),a.onFieldBlur()},P=function(k){o("update:value",k.target.value),o("change",k),o("input",k),a.onFieldChange()},A=function(k){av(l.value.textArea,k,P),L("",function(){C()})},D=function(k){var B=k.target.composing,F=k.target.value;if(m.value=!!(k.isComposing||B),!(m.value&&e.lazy||s.value===F)){if(v.value){var W=k.target,$=W.selectionStart>=e.maxlength+1||W.selectionStart===F.length||!W.selectionStart;F=jk($,u.value,F,e.maxlength)}av(k.currentTarget,k,P,F),L(F)}},M=function(){var k,B,F,W=r.style,$=r.class,j=e.bordered,X=j===void 0?!0:j,Z=O(O(O({},nr(e,["allowClear"])),r),{},{style:p.value?{}:W,class:(k={},U(k,"".concat(d.value,"-borderless"),!X),U(k,"".concat($),$&&!p.value),U(k,"".concat(d.value,"-sm"),f.value==="small"),U(k,"".concat(d.value,"-lg"),f.value==="large"),k),showCount:null,prefixCls:d.value,onInput:D,onChange:D,onBlur:T,onKeydown:E,onCompositionstart:y,onCompositionend:b});return(B=e.valueModifiers)!==null&&B!==void 0&&B.lazy&&delete Z.onInput,I(Pde,O(O({},Z),{},{id:(F=Z.id)!==null&&F!==void 0?F:a.id.value,ref:l,maxlength:e.maxlength}),null)};return i({focus:C,blur:S,resizableTextArea:l}),Ft(function(){var H=LE(s.value);!m.value&&v.value&&(e.value===null||e.value===void 0)&&(H=E8(H,e.maxlength)),u.value=H}),function(){var H=e.maxlength,k=e.bordered,B=k===void 0?!0:k,F=e.hidden,W=r.style,$=r.class,j=O(O(O({},e),r),{},{prefixCls:d.value,inputType:"text",handleReset:A,direction:h.value,bordered:B,style:p.value?void 0:W}),X=I(w8,O(O({},j),{},{value:u.value}),{element:M});if(p.value){var Z=Ge(u.value).length,z="";at(p.value)==="object"?z=p.value.formatter({count:Z,maxlength:H}):z="".concat(Z).concat(v.value?" / ".concat(H):""),X=I("div",{hidden:F,class:Re("".concat(d.value,"-textarea"),U({},"".concat(d.value,"-textarea-rtl"),h.value==="rtl"),"".concat(d.value,"-textarea-show-count"),$),style:W,"data-count":at(z)!=="object"?z:void 0},[X])}return X}}});var kde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const Fde=kde;function zk(n){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(IE()?BigInt(n).toString():Number.MAX_SAFE_INTEGER);if(nNumber.MAX_SAFE_INTEGER)return new n(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":NO(this.number):this.origin}}]),n}(),afe=function(){function n(e){if(aC(this,n),U(this,"origin",""),!e&&e!==0||!String(e).trim()){this.empty=!0;return}if(this.origin=String(e),e==="-"){this.nan=!0;return}var t=e;if(OO(t)&&(t=Number(t)),t=typeof t=="string"?t:NO(t),AO(t)){var r=sv(t);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return oC(n,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(r)}},{key:"negate",value:function(){var t=new n(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new n(t);var r=new n(t);if(r.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),o=this.alignDecimal(i),a=r.alignDecimal(i),s=(o+a).toString(),l=sv(s),u=l.negativeStr,c=l.trimStr,d="".concat(u).concat(c.padStart(i+1,"0"));return new n("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":sv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),n}();function ka(n){return IE()?new afe(n):new ofe(n)}function TE(n,e,t){if(n==="")return"";var r=sv(n),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,s="".concat(e).concat(a),l="".concat(i).concat(o);if(t>=0){var u=Number(a[t]);if(u>=5){var c=ka(n).add("".concat(i,"0.").concat("0".repeat(t)).concat(10-u));return TE(c.toString(),e,t)}return t===0?l:"".concat(l).concat(e).concat(a.padEnd(t,"0").slice(0,t))}return s===".0"?l:"".concat(l).concat(s)}var sfe=200,lfe=600;const ufe=be({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var r=t.slots,i=t.emit,o=J(),a=function(u,c){u.preventDefault(),i("step",c);function d(){i("step",c),o.value=setTimeout(d,sfe)}o.value=setTimeout(d,lfe)},s=function(){clearTimeout(o.value)};return Zt(function(){s()}),function(){if(zx())return null;var l=e.prefixCls,u=e.upDisabled,c=e.downDisabled,d="".concat(l,"-handler"),f=Re(d,"".concat(d,"-up"),U({},"".concat(d,"-up-disabled"),u)),h=Re(d,"".concat(d,"-down"),U({},"".concat(d,"-down-disabled"),c)),p={unselectable:"on",role:"button",onMouseup:s,onMouseleave:s},v=r.upNode,m=r.downNode;return I("div",{class:"".concat(d,"-wrap")},[I("span",O(O({},p),{},{onMousedown:function(_){a(_,!0)},"aria-label":"Increase Value","aria-disabled":u,class:f}),[(v==null?void 0:v())||I("span",{unselectable:"on",class:"".concat(l,"-handler-up-inner")},null)]),I("span",O(O({},p),{},{onMousedown:function(_){a(_,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:h}),[(m==null?void 0:m())||I("span",{unselectable:"on",class:"".concat(l,"-handler-down-inner")},null)])])}}});function cfe(n,e){var t=J(null);function r(){try{var o=n.value,a=o.selectionStart,s=o.selectionEnd,l=o.value,u=l.substring(0,a),c=l.substring(s);t.value={start:a,end:s,value:l,beforeTxt:u,afterTxt:c}}catch{}}function i(){if(n.value&&t.value&&e.value)try{var o=n.value.value,a=t.value,s=a.beforeTxt,l=a.afterTxt,u=a.start,c=o.length;if(o.endsWith(l))c=o.length-t.value.afterTxt.length;else if(o.startsWith(s))c=s.length;else{var d=s[u-1],f=o.indexOf(d,u-1);f!==-1&&(c=f+1)}n.value.setSelectionRange(c,c)}catch(h){"Something warning of cursor restore. Please fire issue about this: ".concat(h.message)}}return[r,i]}const dfe=function(){var n=J(0),e=function(){Mt.cancel(n.value)};return Zt(function(){e()}),function(t){e(),n.value=Mt(function(){t()})}};var ffe=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],e2=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},t2=function(e){var t=ka(e);return t.isInvalidate()?null:t},I8=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const hfe=be({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:O(O({},I8()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var r=t.attrs,i=t.slots,o=t.emit,a=t.expose,s=J(),l=J(!1),u=J(!1),c=J(!1),d=J(ka(e.value));function f(z){e.value===void 0&&(d.value=z)}var h=function(Y,ee){if(!ee)return e.precision>=0?e.precision:Math.max($v(Y),$v(e.step))},p=function(Y){var ee=String(Y);if(e.parser)return e.parser(ee);var K=ee;return e.decimalSeparator&&(K=K.replace(e.decimalSeparator,".")),K.replace(/[^\w.-]+/g,"")},v=J(""),m=function(Y,ee){if(e.formatter)return e.formatter(Y,{userTyping:ee,input:String(v.value)});var K=typeof Y=="number"?NO(Y):Y;if(!ee){var oe=h(K,ee);if(AO(K)&&(e.decimalSeparator||oe>=0)){var ie=e.decimalSeparator||".";K=TE(K,ie,oe)}}return K},g=function(){var z=e.value;return d.value.isInvalidate()&&["string","number"].includes(at(z))?Number.isNaN(z)?"":z:m(d.value.toString(),!1)}();v.value=g;function _(z,Y){v.value=m(z.isInvalidate()?z.toString(!1):z.toString(!Y),Y)}var y=V(function(){return t2(e.max)}),b=V(function(){return t2(e.min)}),w=V(function(){return!y.value||!d.value||d.value.isInvalidate()?!1:y.value.lessEquals(d.value)}),C=V(function(){return!b.value||!d.value||d.value.isInvalidate()?!1:d.value.lessEquals(b.value)}),S=cfe(s,l),L=Ye(S,2),E=L[0],T=L[1],P=function(Y){return y.value&&!Y.lessEquals(y.value)?y.value:b.value&&!b.value.lessEquals(Y)?b.value:null},A=function(Y){return!P(Y)},D=function(Y,ee){var K=Y,oe=A(K)||K.isEmpty();if(!K.isEmpty()&&!ee&&(K=P(K)||K,oe=!0),!e.readonly&&!e.disabled&&oe){var ie=K.toString(),ue=h(ie,ee);if(ue>=0&&(K=ka(TE(ie,".",ue))),!K.equals(d.value)){var Ce;f(K),(Ce=e.onChange)===null||Ce===void 0||Ce.call(e,K.isEmpty()?null:e2(e.stringMode,K)),e.value===void 0&&_(K,ee)}return K}return d.value},M=dfe(),H=function z(Y){var ee;if(E(),v.value=Y,!c.value){var K=p(Y),oe=ka(K);oe.isNaN()||D(oe,!0)}(ee=e.onInput)===null||ee===void 0||ee.call(e,Y),M(function(){var ie=Y;e.parser||(ie=Y.replace(/。/g,".")),ie!==Y&&z(ie)})},k=function(){c.value=!0},B=function(){c.value=!1,H(s.value.value)},F=function(Y){H(Y.target.value)},W=function(Y){var ee,K;if(!(Y&&w.value||!Y&&C.value)){u.value=!1;var oe=ka(e.step);Y||(oe=oe.negate());var ie=(d.value||ka(0)).add(oe.toString()),ue=D(ie,!1);(ee=e.onStep)===null||ee===void 0||ee.call(e,e2(e.stringMode,ue),{offset:e.step,type:Y?"up":"down"}),(K=s.value)===null||K===void 0||K.focus()}},$=function(Y){var ee=ka(p(v.value)),K=ee;ee.isNaN()?K=d.value:K=D(ee,Y),e.value!==void 0?_(d.value,!1):K.isNaN()||_(K,!1)},j=function(Y){var ee=Y.which;if(u.value=!0,ee===ct.ENTER){var K;c.value||(u.value=!1),$(!1),(K=e.onPressEnter)===null||K===void 0||K.call(e,Y)}e.keyboard!==!1&&!c.value&&[ct.UP,ct.DOWN].includes(ee)&&(W(ct.UP===ee),Y.preventDefault())},X=function(){u.value=!1},Z=function(Y){$(!1),l.value=!1,u.value=!1,o("blur",Y)};return Ve(function(){return e.precision},function(){d.value.isInvalidate()||_(d.value,!1)},{flush:"post"}),Ve(function(){return e.value},function(){var z=ka(e.value);d.value=z;var Y=ka(p(v.value));(!z.equals(Y)||!u.value||e.formatter)&&_(z,u.value)},{flush:"post"}),Ve(v,function(){e.formatter&&T()},{flush:"post"}),Ve(function(){return e.disabled},function(z){z&&(l.value=!1)}),a({focus:function(){var Y;(Y=s.value)===null||Y===void 0||Y.focus()},blur:function(){var Y;(Y=s.value)===null||Y===void 0||Y.blur()}}),function(){var z,Y=O(O({},r),e),ee=Y.prefixCls,K=ee===void 0?"rc-input-number":ee,oe=Y.min,ie=Y.max,ue=Y.step,Ce=ue===void 0?1:ue;Y.defaultValue,Y.value;var me=Y.disabled,N=Y.readonly;Y.keyboard;var R=Y.controls,G=R===void 0?!0:R,te=Y.autofocus;Y.stringMode,Y.parser,Y.formatter,Y.precision,Y.decimalSeparator,Y.onChange,Y.onInput,Y.onPressEnter,Y.onStep;var re=Y.lazy,pe=Y.class,Se=Y.style,fe=Nt(Y,ffe),de=i.upHandler,le=i.downHandler,ve="".concat(K,"-input"),Ae={};return re?Ae.onChange=F:Ae.onInput=F,I("div",{class:Re(K,pe,(z={},U(z,"".concat(K,"-focused"),l.value),U(z,"".concat(K,"-disabled"),me),U(z,"".concat(K,"-readonly"),N),U(z,"".concat(K,"-not-a-number"),d.value.isNaN()),U(z,"".concat(K,"-out-of-range"),!d.value.isInvalidate()&&!A(d.value)),z)),style:Se,onKeydown:j,onKeyup:X},[G&&I(ufe,{prefixCls:K,upDisabled:w.value,downDisabled:C.value,onStep:W},{upNode:de,downNode:le}),I("div",{class:"".concat(ve,"-wrap")},[I("input",O(O(O({autofocus:te,autocomplete:"off",role:"spinbutton","aria-valuemin":oe,"aria-valuemax":ie,"aria-valuenow":d.value.isInvalidate()?null:d.value.toString(),step:Ce},fe),{},{ref:s,class:ve,value:v.value,disabled:me,readonly:N,onFocus:function(se){l.value=!0,o("focus",se)}},Ae),{},{onBlur:Z,onCompositionstart:k,onCompositionend:B}),null)])])}}});function Ew(n){return n!=null}var pfe=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],n2=I8(),vfe=function(){return O(O({},n2),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,"onUpdate:value":n2.onChange,valueModifiers:Object})},Lw=be({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:vfe(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var r=t.emit,i=t.expose,o=t.attrs,a=t.slots,s=hs(),l=St("input-number",e),u=l.prefixCls,c=l.size,d=l.direction,f=J(e.value===void 0?e.defaultValue:e.value),h=J(!1);Ve(function(){return e.value},function(){f.value=e.value});var p=J(null),v=function(){var w;(w=p.value)===null||w===void 0||w.focus()},m=function(){var w;(w=p.value)===null||w===void 0||w.blur()};i({focus:v,blur:m});var g=function(w){e.value===void 0&&(f.value=w),r("update:value",w),r("change",w),s.onFieldChange()},_=function(w){h.value=!1,r("blur",w),s.onFieldBlur()},y=function(w){h.value=!0,r("focus",w)};return function(){var b,w,C,S,L=O(O({},o),e),E=L.class,T=L.bordered,P=L.readonly,A=L.style,D=L.addonBefore,M=D===void 0?(b=a.addonBefore)===null||b===void 0?void 0:b.call(a):D,H=L.addonAfter,k=H===void 0?(w=a.addonAfter)===null||w===void 0?void 0:w.call(a):H,B=L.prefix,F=B===void 0?(C=a.prefix)===null||C===void 0?void 0:C.call(a):B,W=L.valueModifiers,$=W===void 0?{}:W,j=Nt(L,pfe),X=u.value,Z=c.value,z=Re((S={},U(S,"".concat(X,"-lg"),Z==="large"),U(S,"".concat(X,"-sm"),Z==="small"),U(S,"".concat(X,"-rtl"),d.value==="rtl"),U(S,"".concat(X,"-readonly"),P),U(S,"".concat(X,"-borderless"),!T),S),E),Y=I(hfe,O(O({},nr(j,["size","defaultValue"])),{},{ref:p,lazy:!!$.lazy,value:f.value,class:z,prefixCls:X,readonly:P,onChange:g,onBlur:_,onFocus:y}),{upHandler:function(){return I(ife,{class:"".concat(X,"-handler-up-inner")},null)},downHandler:function(){return I(rC,{class:"".concat(X,"-handler-down-inner")},null)}}),ee=Ew(M)||Ew(k);if(Ew(F)){var K,oe=Re("".concat(X,"-affix-wrapper"),(K={},U(K,"".concat(X,"-affix-wrapper-focused"),h.value),U(K,"".concat(X,"-affix-wrapper-disabled"),e.disabled),U(K,"".concat(X,"-affix-wrapper-rtl"),d.value==="rtl"),U(K,"".concat(X,"-affix-wrapper-readonly"),P),U(K,"".concat(X,"-affix-wrapper-borderless"),!T),U(K,"".concat(E),!ee&&E),K));Y=I("div",{class:oe,style:A,onMouseup:function(){return p.value.focus()}},[I("span",{class:"".concat(X,"-prefix")},[F]),Y])}if(ee){var ie,ue="".concat(X,"-group"),Ce="".concat(ue,"-addon"),me=M?I("div",{class:Ce},[M]):null,N=k?I("div",{class:Ce},[k]):null,R=Re("".concat(X,"-wrapper"),ue,U({},"".concat(ue,"-rtl"),d.value==="rtl")),G=Re("".concat(X,"-group-wrapper"),(ie={},U(ie,"".concat(X,"-group-wrapper-sm"),Z==="small"),U(ie,"".concat(X,"-group-wrapper-lg"),Z==="large"),U(ie,"".concat(X,"-group-wrapper-rtl"),d.value==="rtl"),ie),E);Y=I("div",{class:G,style:A},[I("div",{class:R},[me,Y,N])])}return Fn(Y,{style:A})}}});const gfe=fn(Lw,{install:function(e){return e.component(Lw.name,Lw),e}});var mfe=["class","style"],_fe=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ne.any,delay:Number,indicator:ne.any}},N_=null;function yfe(n,e){return!!n&&!!e&&!isNaN(Number(e))}function bfe(n){var e=n.indicator;N_=typeof e=="function"?e:function(){return I(e,null,null)}}const iu=be({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Wn(_fe(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:yt("configProvider",_6)}},data:function(){var e=this.spinning,t=this.delay,r=yfe(e,t);return{sSpinning:e&&!r}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;en(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var t=e||this.$props,r=t.delay;r&&(this.cancelExistingSpin(),this.updateSpinning=pO(this.originalUpdateSpinning,r))},updateSpinning:function(){var e=this.spinning,t=this.sSpinning;t!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var t="".concat(e,"-dot"),r=ux(this,"indicator");return r===null?null:(Array.isArray(r)&&(r=r.length===1?r[0]:r),Ui(r)?ji(r,{class:t}):N_&&Ui(N_())?ji(N_(),{class:t}):I("span",{class:"".concat(t," ").concat(e,"-dot-spin")},[I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,t,r,i=this.$props,o=i.size,a=i.prefixCls,s=i.tip,l=s===void 0?(e=(t=this.$slots).tip)===null||e===void 0?void 0:e.call(t):s,u=i.wrapperClassName,c=this.$attrs,d=c.class,f=c.style,h=Nt(c,mfe),p=this.configProvider,v=p.getPrefixCls,m=p.direction,g=v("spin",a),_=this.sSpinning,y=(r={},U(r,g,!0),U(r,"".concat(g,"-sm"),o==="small"),U(r,"".concat(g,"-lg"),o==="large"),U(r,"".concat(g,"-spinning"),_),U(r,"".concat(g,"-show-text"),!!l),U(r,"".concat(g,"-rtl"),m==="rtl"),U(r,d,!!d),r),b=I("div",O(O({},h),{},{style:f,class:y}),[this.renderIndicator(g),l?I("div",{class:"".concat(g,"-text")},[l]):null]),w=_V(this);if(w&&w.length){var C,S=(C={},U(C,"".concat(g,"-container"),!0),U(C,"".concat(g,"-blur"),_),C);return I("div",{class:["".concat(g,"-nested-loading"),u]},[_&&I("div",{key:"loading"},[b]),I("div",{class:S,key:"container"},[w])])}return b}});iu.setDefaultIndicator=bfe;iu.install=function(n){return n.component(iu.name,iu),n};var Cfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const wfe=Cfe;function r2(n){for(var e=1;e=0||c.relatedTarget.className.indexOf("".concat(h,"-item"))>=0)){t.value="";return}else f(r.value),t.value=""},s=function(c){t.value!==""&&(c.keyCode===oc.ENTER||c.type==="click")&&(e.quickGo(r.value),t.value="")},l=V(function(){var u=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===u.toString()})?c:c.concat([u.toString()]).sort(function(d,f){var h=isNaN(Number(d))?0:Number(d),p=isNaN(Number(f))?0:Number(f);return h-p})});return function(){var u=e.rootPrefixCls,c=e.locale,d=e.changeSize,f=e.quickGo,h=e.goButton,p=e.selectComponentClass,v=e.selectPrefixCls,m=e.pageSize,g=e.disabled,_="".concat(u,"-options"),y=null,b=null,w=null;if(!d&&!f)return null;if(d&&p){var C=e.buildOptionText||i,S=l.value.map(function(L,E){return I(p.Option,{key:E,value:L},{default:function(){return[C({value:L})]}})});y=I(p,{disabled:g,prefixCls:v,showSearch:!1,class:"".concat(_,"-size-changer"),optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:function(E){return d(Number(E))},getPopupContainer:function(E){return E.parentNode}},{default:function(){return[S]}})}return f&&(h&&(w=typeof h=="boolean"?I("button",{type:"button",onClick:s,onKeyup:s,disabled:g,class:"".concat(_,"-quick-jumper-button")},[c.jump_to_confirm]):I("span",{onClick:s,onKeyup:s},[h])),b=I("div",{class:"".concat(_,"-quick-jumper")},[c.jump_to,Ki(I("input",{disabled:g,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:s,onBlur:a},null),[[Ag]]),c.page,w])),I("li",{class:"".concat(_)},[y,b])}}}),T8={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var Afe=["class"];function Dfe(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function Rfe(n){var e=n.originalElement;return e}function Es(n,e,t){var r=typeof n>"u"?e.statePageSize:n;return Math.floor((t.total-1)/r)+1}const Pfe=be({compatConfig:{MODE:3},name:"Pagination",mixins:[H6],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ne.string.def("rc-pagination"),selectPrefixCls:ne.string.def("rc-select"),current:Number,defaultCurrent:ne.number.def(1),total:ne.number.def(0),pageSize:Number,defaultPageSize:ne.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ne.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ne.oneOfType([ne.looseBool,ne.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ne.arrayOf(ne.oneOfType([ne.number,ne.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ne.object.def(T8),itemRender:ne.func.def(Rfe),prevIcon:ne.any,nextIcon:ne.any,jumpPrevIcon:ne.any,jumpNextIcon:ne.any,totalBoundaryShowSizeChanger:ne.number.def(50)},data:function(){var e=this.$props,t=wy([this.current,this.defaultCurrent]),r=wy([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Es(r,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:r}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var t={},r=this.stateCurrent,i=Es(e,this.$data,this.$props);r=r>i?i:r,nf(this,"current")||(t.stateCurrent=r,t.stateCurrentInputValue=r),t.statePageSize=e,this.setState(t)},stateCurrent:function(e,t){var r=this;this.$nextTick(function(){if(r.$refs.paginationNode){var i=r.$refs.paginationNode.querySelector(".".concat(r.prefixCls,"-item-").concat(t));i&&document.activeElement===i&&i.blur()}})},total:function(){var e={},t=Es(this.pageSize,this.$data,this.$props);if(nf(this,"current")){var r=Math.min(this.current,t);e.stateCurrent=r,e.stateCurrentInputValue=r}else{var i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(Es(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e,t){var r=this.$props.prefixCls,i=ux(this,e,this.$props)||I("button",{type:"button","aria-label":t,class:"".concat(r,"-item-link")},null);return i},getValidValue:function(e){var t=e.target.value,r=Es(void 0,this.$data,this.$props),i=this.$data.stateCurrentInputValue,o;return t===""?o=t:isNaN(Number(t))?o=i:t>=r?o=r:o=Number(t),o},isValid:function(e){return Dfe(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper:function(){var e=this.$props,t=e.showQuickJumper,r=e.pageSize,i=e.total;return i<=r?!1:t},handleKeyDown:function(e){(e.keyCode===oc.ARROW_UP||e.keyCode===oc.ARROW_DOWN)&&e.preventDefault()},handleKeyUp:function(e){if(!(e.isComposing||e.target.composing)){var t=this.getValidValue(e),r=this.stateCurrentInputValue;t!==r&&this.setState({stateCurrentInputValue:t}),e.keyCode===oc.ENTER?this.handleChange(t):e.keyCode===oc.ARROW_UP?this.handleChange(t-1):e.keyCode===oc.ARROW_DOWN&&this.handleChange(t+1)}},changePageSize:function(e){var t=this.stateCurrent,r=t,i=Es(e,this.$data,this.$props);t=t>i?i:t,i===0&&(t=this.stateCurrent),typeof e=="number"&&(nf(this,"pageSize")||this.setState({statePageSize:e}),nf(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==r&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange:function(e){var t=this.$props.disabled,r=e;if(this.isValid(r)&&!t){var i=Es(void 0,this.$data,this.$props);return r>i?r=i:r<1&&(r=1),nf(this,"current")||this.setState({stateCurrent:r,stateCurrentInputValue:r}),this.__emit("update:current",r),this.__emit("change",r,this.statePageSize),r}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrenti},runIfEnter:function(e,t){if(e.key==="Enter"||e.charCode===13){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o0?b-1:0,W=b+1=B*2&&b!==3&&(T[0]=I(zu,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:K,page:K,class:"".concat(r,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:h},null),T.unshift(P)),E-b>=B*2&&b!==E-2&&(T[T.length-1]=I(zu,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:oe,page:oe,class:"".concat(r,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:h},null),T.push(A)),K!==1&&T.unshift(D),oe!==E&&T.push(M)}var Ce=null;d&&(Ce=I("li",{class:"".concat(r,"-total-text")},[d(a,[a===0?0:(b-1)*w+1,b*w>a?a:b*w])]));var me=!$||!E,N=!j||!E,R=this.buildOptionText||this.$slots.buildOptionText;return I("ul",O(O({unselectable:"on",ref:"paginationNode"},L),{},{class:Re((e={},U(e,"".concat(r),!0),U(e,"".concat(r,"-disabled"),i),e),S)}),[Ce,I("li",{title:c?s.prev_page:null,onClick:this.prev,tabindex:me?null:0,onKeypress:this.runIfEnterPrev,class:Re("".concat(r,"-prev"),U({},"".concat(r,"-disabled"),me)),"aria-disabled":me},[this.renderPrev(F)]),T,I("li",{title:c?s.next_page:null,onClick:this.next,tabindex:N?null:0,onKeypress:this.runIfEnterNext,class:Re("".concat(r,"-next"),U({},"".concat(r,"-disabled"),N)),"aria-disabled":N},[this.renderNext(W)]),I(Nfe,{disabled:i,locale:s,rootPrefixCls:r,selectComponentClass:g,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:b,pageSize:w,pageSizeOptions:y,buildOptionText:R||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:k},null)])}});var Mfe=["size","itemRender","buildOptionText","selectComponentClass","responsive"],kfe=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}};const Ffe=be({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:kfe(),setup:function(e,t){var r=t.slots,i=t.attrs,o=St("pagination",e),a=o.prefixCls,s=o.configProvider,l=o.direction,u=V(function(){return s.getPrefixCls("select",e.selectPrefixCls)}),c=tO(),d=Lh("Pagination",SV,vn(e,"locale")),f=Ye(d,1),h=f[0],p=function(m){var g=I("span",{class:"".concat(m,"-item-ellipsis")},[Yc("•••")]),_=I("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[I(tle,null,null)]),y=I("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[I(oO,null,null)]),b=I("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[I("div",{class:"".concat(m,"-item-container")},[I(Efe,{class:"".concat(m,"-item-link-icon")},null),g])]),w=I("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[I("div",{class:"".concat(m,"-item-container")},[I(xfe,{class:"".concat(m,"-item-link-icon")},null),g])]);if(l.value==="rtl"){var C=[y,_];_=C[0],y=C[1];var S=[w,b];b=S[0],w=S[1]}return{prevIcon:_,nextIcon:y,jumpPrevIcon:b,jumpNextIcon:w}};return function(){var v,m=e.size,g=e.itemRender,_=g===void 0?r.itemRender:g,y=e.buildOptionText,b=y===void 0?r.buildOptionText:y,w=e.selectComponentClass,C=e.responsive,S=Nt(e,Mfe),L=m==="small"||!!((v=c.value)!==null&&v!==void 0&&v.xs&&!m&&C),E=O(O(O(O({},S),p(a.value)),{},{prefixCls:a.value,selectPrefixCls:u.value,selectComponentClass:w||(L?Ofe:nh),locale:h.value,buildOptionText:b},i),{},{class:Re(U({mini:L},"".concat(a.value,"-rtl"),l.value==="rtl"),i.class),itemRender:_});return I(Pfe,E,null)}}}),PO=Lu(Ffe);var Bfe=function(){return{avatar:ne.any,description:ne.any,prefixCls:String,title:ne.any}};const Wfe=be({compatConfig:{MODE:3},name:"AListItemMeta",props:Bfe(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:["avatar","description","title"],setup:function(e,t){var r=t.slots,i=St("list",e),o=i.prefixCls;return function(){var a,s,l,u,c,d,f="".concat(o.value,"-item-meta"),h=(a=e.title)!==null&&a!==void 0?a:(s=r.title)===null||s===void 0?void 0:s.call(r),p=(l=e.description)!==null&&l!==void 0?l:(u=r.description)===null||u===void 0?void 0:u.call(r),v=(c=e.avatar)!==null&&c!==void 0?c:(d=r.avatar)===null||d===void 0?void 0:d.call(r),m=I("div",{class:"".concat(o.value,"-item-meta-content")},[h&&I("h4",{class:"".concat(o.value,"-item-meta-title")},[h]),p&&I("div",{class:"".concat(o.value,"-item-meta-description")},[p])]);return I("div",{class:f},[v&&I("div",{class:"".concat(o.value,"-item-meta-avatar")},[v]),(h||p)&&m])}}});var x8=Symbol("ListContextKey"),Vfe=["class"],Hfe=function(){return{prefixCls:String,extra:ne.any,actions:ne.array,grid:Object,colStyle:{type:Object,default:void 0}}};const Ufe=be({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:Wfe,props:Hfe(),slots:["actions","extra"],setup:function(e,t){var r=t.slots,i=t.attrs,o=yt(x8,{grid:J(),itemLayout:J()}),a=o.itemLayout,s=o.grid,l=St("list",e),u=l.prefixCls,c=function(){var h,p=((h=r.default)===null||h===void 0?void 0:h.call(r))||[],v;return p.forEach(function(m){bZ(m)&&!jb(m)&&(v=!0)}),v&&p.length>1},d=function(){var h,p,v=(h=e.extra)!==null&&h!==void 0?h:(p=r.extra)===null||p===void 0?void 0:p.call(r);return a.value==="vertical"?!!v:!c()};return function(){var f,h,p,v,m,g=i.class,_=Nt(i,Vfe),y=u.value,b=(f=e.extra)!==null&&f!==void 0?f:(h=r.extra)===null||h===void 0?void 0:h.call(r),w=(p=r.default)===null||p===void 0?void 0:p.call(r),C=(v=e.actions)!==null&&v!==void 0?v:sr((m=r.actions)===null||m===void 0?void 0:m.call(r));C=C&&!Array.isArray(C)?[C]:C;var S=C&&C.length>0&&I("ul",{class:"".concat(y,"-item-action"),key:"actions"},[C.map(function(T,P){return I("li",{key:"".concat(y,"-item-action-").concat(P)},[T,P!==C.length-1&&I("em",{class:"".concat(y,"-item-action-split")},null)])})]),L=s.value?"div":"li",E=I(L,O(O({},_),{},{class:Re("".concat(y,"-item"),U({},"".concat(y,"-item-no-flex"),!d()),g)}),{default:function(){return[a.value==="vertical"&&b?[I("div",{class:"".concat(y,"-item-main"),key:"content"},[w,S]),I("div",{class:"".concat(y,"-item-extra"),key:"extra"},[b])]:[w,S,Fn(b,{key:"extra"})]]}});return s.value?I(cC,{flex:1,style:e.colStyle},{default:function(){return[E]}}):E}}});var $fe=function(){return{bordered:{type:Boolean,default:void 0},dataSource:ne.array,extra:ne.any,grid:{type:Object,default:void 0},itemLayout:String,loading:{type:[Boolean,Object],default:void 0},loadMore:ne.any,pagination:{type:[Boolean,Object],default:void 0},prefixCls:String,rowKey:[String,Number,Function],renderItem:Function,size:String,split:{type:Boolean,default:void 0},header:ne.any,footer:ne.any,locale:{type:Object}}},Rl=be({compatConfig:{MODE:3},name:"AList",Item:Ufe,props:Wn($fe(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:["extra","loadMore","renderItem","header","footer"],setup:function(e,t){var r,i,o=t.slots;qt(x8,{grid:vn(e,"grid"),itemLayout:vn(e,"itemLayout")});var a={current:1,total:0},s=St("list",e),l=s.prefixCls,u=s.direction,c=s.renderEmpty,d=V(function(){return e.pagination&&at(e.pagination)==="object"?e.pagination:{}}),f=J((r=d.value.defaultCurrent)!==null&&r!==void 0?r:1),h=J((i=d.value.defaultPageSize)!==null&&i!==void 0?i:10);Ve(d,function(){"current"in d.value&&(f.value=d.value.current),"pageSize"in d.value&&(h.value=d.value.pageSize)});var p=[],v=function(M){return function(H,k){f.value=H,h.value=k,d.value[M]&&d.value[M](H,k)}},m=v("onChange"),g=v("onShowSizeChange"),_=function(M){var H;return I("div",{class:"".concat(l.value,"-empty-text")},[((H=e.locale)===null||H===void 0?void 0:H.emptyText)||M("List")])},y=V(function(){return typeof e.loading=="boolean"?{spinning:e.loading}:e.loading}),b=V(function(){return y.value&&y.value.spinning}),w=V(function(){var D="";switch(e.size){case"large":D="lg";break;case"small":D="sm";break}return D}),C=V(function(){var D;return D={},U(D,"".concat(l.value),!0),U(D,"".concat(l.value,"-vertical"),e.itemLayout==="vertical"),U(D,"".concat(l.value,"-").concat(w.value),w.value),U(D,"".concat(l.value,"-split"),e.split),U(D,"".concat(l.value,"-bordered"),e.bordered),U(D,"".concat(l.value,"-loading"),b.value),U(D,"".concat(l.value,"-grid"),!!e.grid),U(D,"".concat(l.value,"-rtl"),u.value==="rtl"),D}),S=V(function(){var D=O(O({},a),{},{total:e.dataSource.length,current:f.value,pageSize:h.value},e.pagination||{}),M=Math.ceil(D.total/D.pageSize);return D.current>M&&(D.current=M),D}),L=V(function(){var D=Ge(e.dataSource);return e.pagination&&e.dataSource.length>(S.value.current-1)*S.value.pageSize&&(D=Ge(e.dataSource).splice((S.value.current-1)*S.value.pageSize,S.value.pageSize)),D}),E=tO(),T=Wo(function(){for(var D=0;D0){p.length=0;var oe=L.value.map(function(Ce,me){return A(Ce,me)}),ie=oe.map(function(Ce,me){return I("div",{key:p[me],style:P.value},[Ce])});K=e.grid?I(hO,{gutter:e.grid.gutter},{default:function(){return[ie]}}):I("ul",{class:"".concat(l.value,"-items")},[oe])}else!Z.length&&!b.value&&(K=_(c.value));var ue=S.value.position||"bottom";return I("div",{class:Y},[(ue==="top"||ue==="both")&&ee,X&&I("div",{class:"".concat(l.value,"-header")},[X]),I(iu,y.value,{default:function(){return[K,Z]}}),j&&I("div",{class:"".concat(l.value,"-footer")},[j]),$||(ue==="bottom"||ue==="both")&&ee])}}});Rl.install=function(n){return n.component(Rl.name,Rl),n.component(Rl.Item.name,Rl.Item),n.component(Rl.Item.Meta.name,Rl.Item.Meta),n};const jfe=Rl;var zfe=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],xE=null,Kfe=function(e){xE={x:e.pageX,y:e.pageY},setTimeout(function(){return xE=null},100)};$H()&&Co(document.documentElement,"click",Kfe,!0);var Gfe=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ne.any,closable:{type:Boolean,default:void 0},closeIcon:ne.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ne.any,okText:ne.any,okType:String,cancelText:ne.any,icon:ne.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},gf=[];const jo=be({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Wn(Gfe(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,t){var r=t.emit,i=t.slots,o=t.attrs,a=Lh("Modal"),s=Ye(a,1),l=s[0],u=St("modal",e),c=u.prefixCls,d=u.rootPrefixCls,f=u.direction,h=u.getPopupContainer,p=function(_){r("update:visible",!1),r("cancel",_),r("change",!1)},v=function(_){r("ok",_)},m=function(){var _,y,b=e.okText,w=b===void 0?(_=i.okText)===null||_===void 0?void 0:_.call(i):b,C=e.okType,S=e.cancelText,L=S===void 0?(y=i.cancelText)===null||y===void 0?void 0:y.call(i):S,E=e.confirmLoading;return I(kt,null,[I(bi,O({onClick:p},e.cancelButtonProps),{default:function(){return[L||l.value.cancelText]}}),I(bi,O(O({},uH(C)),{},{loading:E,onClick:v},e.okButtonProps),{default:function(){return[w||l.value.okText]}})])};return function(){var g,_;e.prefixCls;var y=e.visible,b=e.wrapClassName,w=e.centered,C=e.getContainer,S=e.closeIcon,L=S===void 0?(g=i.closeIcon)===null||g===void 0?void 0:g.call(i):S,E=e.focusTriggerAfterClose,T=E===void 0?!0:E,P=Nt(e,zfe),A=Re(b,(_={},U(_,"".concat(c.value,"-centered"),!!w),U(_,"".concat(c.value,"-wrap-rtl"),f.value==="rtl"),_));return I(efe,O(O(O({},P),o),{},{getContainer:C||h.value,prefixCls:c.value,wrapClassName:A,visible:y,mousePosition:xE,onClose:p,focusTriggerAfterClose:T,transitionName:Av(d.value,"zoom",e.transitionName),maskTransitionName:Av(d.value,"fade",e.maskTransitionName)}),O(O({},i),{},{footer:i.footer||m,closeIcon:function(){return I("span",{class:"".concat(c.value,"-close-x")},[L||I(xg,{class:"".concat(c.value,"-close-icon")},null)])}}))}}});var qfe=function(){var e=J(!1);return Zt(function(){e.value=!0}),e},Yfe={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function o2(n){return!!(n&&n.then)}const a2=be({compatConfig:{MODE:3},name:"ActionButton",props:Yfe,setup:function(e,t){var r=t.slots,i=J(!1),o=J(),a=J(!1),s,l=qfe();Wt(function(){e.autofocus&&(s=setTimeout(function(){var d;return(d=o.value.$el)===null||d===void 0?void 0:d.focus()}))}),Zt(function(){clearTimeout(s)});var u=function(f){var h=e.close;o2(f)&&(a.value=!0,f.then(function(){l.value||(a.value=!1),h.apply(void 0,arguments),i.value=!1},function(p){console.error(p),l.value||(a.value=!1),i.value=!1}))},c=function(f){var h=e.actionFn,p=e.close,v=p===void 0?function(){}:p;if(!i.value){if(i.value=!0,!h){v();return}var m;if(e.emitEvent){if(m=h(f),e.quitOnNullishReturnValue&&!o2(m)){i.value=!1,v(f);return}}else if(h.length)m=h(v),i.value=!1;else if(m=h(),!m){v();return}u(m)}};return function(){var d=e.type,f=e.prefixCls,h=e.buttonProps;return I(bi,O(O(O({},uH(d)),{},{onClick:c,loading:a.value,prefixCls:f},h),{},{ref:o}),r)}}});function sp(n){return typeof n=="function"?n():n}const Xfe=be({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,t){var r=t.attrs,i=Lh("Modal"),o=Ye(i,1),a=o[0];return function(){var s=e.icon,l=e.onCancel,u=e.onOk,c=e.close,d=e.closable,f=d===void 0?!1:d,h=e.zIndex,p=e.afterClose,v=e.visible,m=e.keyboard,g=e.centered,_=e.getContainer,y=e.maskStyle,b=e.okButtonProps,w=e.cancelButtonProps,C=e.okCancel,S=C===void 0?!0:C,L=e.width,E=L===void 0?416:L,T=e.mask,P=T===void 0?!0:T,A=e.maskClosable,D=A===void 0?!1:A,M=e.type,H=e.title,k=e.content,B=e.direction,F=e.closeIcon,W=e.modalRender,$=e.focusTriggerAfterClose,j=e.rootPrefixCls,X=e.bodyStyle,Z=e.wrapClassName,z=e.okType||"primary",Y=e.prefixCls||"ant-modal",ee="".concat(Y,"-confirm"),K=r.style||{},oe=sp(e.okText)||(S?a.value.okText:a.value.justOkText),ie=sp(e.cancelText)||a.value.cancelText,ue=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",Ce=Re(ee,"".concat(ee,"-").concat(M),"".concat(Y,"-").concat(M),U({},"".concat(ee,"-rtl"),B==="rtl"),r.class),me=S&&I(a2,{actionFn:l,close:c,autofocus:ue==="cancel",buttonProps:w,prefixCls:"".concat(j,"-btn")},{default:function(){return[ie]}});return I(jo,{prefixCls:Y,class:Ce,wrapClassName:Re(U({},"".concat(ee,"-centered"),!!g),Z),onCancel:function(R){return c({triggerCancel:!0},R)},visible:v,title:"",footer:"",transitionName:Av(j,"zoom",e.transitionName),maskTransitionName:Av(j,"fade",e.maskTransitionName),mask:P,maskClosable:D,maskStyle:y,style:K,bodyStyle:X,width:E,zIndex:h,afterClose:p,keyboard:m,centered:g,getContainer:_,closable:f,closeIcon:F,modalRender:W,focusTriggerAfterClose:$},{default:function(){return[I("div",{class:"".concat(ee,"-body-wrapper")},[I("div",{class:"".concat(ee,"-body")},[sp(s),H===void 0?null:I("span",{class:"".concat(ee,"-title")},[sp(H)]),I("div",{class:"".concat(ee,"-content")},[sp(k)])]),I("div",{class:"".concat(ee,"-btns")},[me,I(a2,{type:z,actionFn:u,close:c,autofocus:ue==="ok",buttonProps:b,prefixCls:"".concat(j,"-btn")},{default:function(){return[oe]}})])])]}})}}});var kg=function(e){var t=document.createDocumentFragment(),r=O(O({},nr(e,["parentContext","appContext"])),{},{close:a,visible:!0}),i=null;function o(){i&&(uy(null,t),i.component.update(),i=null);for(var c=arguments.length,d=new Array(c),f=0;f100?100:n}function Ty(n){var e=n.success,t=n.successPercent,r=t;return e&&"progress"in e&&(Kn(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=e.progress),e&&"percent"in e&&(r=e.percent),r}var ihe=["from","to","direction"],ohe=function(){return O(O({},pC()),{},{prefixCls:String,direction:{type:String}})},ahe=function(e){var t=[];return Object.keys(e).forEach(function(r){var i=parseFloat(r.replace(/%/g,""));isNaN(i)||t.push({key:i,value:e[r]})}),t=t.sort(function(r,i){return r.key-i.key}),t.map(function(r){var i=r.key,o=r.value;return"".concat(o," ").concat(i,"%")}).join(", ")},she=function(e,t){var r=e.from,i=r===void 0?Af.blue:r,o=e.to,a=o===void 0?Af.blue:o,s=e.direction,l=s===void 0?t==="rtl"?"to left":"to right":s,u=Nt(e,ihe);if(Object.keys(u).length!==0){var c=ahe(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(c,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(i,", ").concat(a,")")}};const lhe=be({compatConfig:{MODE:3},name:"Line",props:ohe(),setup:function(e,t){var r=t.slots,i=V(function(){var u=e.strokeColor,c=e.direction;return u&&typeof u!="string"?she(u,c):{background:u}}),o=V(function(){return e.trailColor?{backgroundColor:e.trailColor}:void 0}),a=V(function(){var u=e.percent,c=e.strokeWidth,d=e.strokeLinecap,f=e.size;return O({width:"".concat(Mc(u),"%"),height:"".concat(c||(f==="small"?6:8),"px"),borderRadius:d==="square"?0:""},i.value)}),s=V(function(){return Ty(e)}),l=V(function(){var u=e.strokeWidth,c=e.size,d=e.strokeLinecap,f=e.success;return{width:"".concat(Mc(s.value),"%"),height:"".concat(u||(c==="small"?6:8),"px"),borderRadius:d==="square"?0:"",backgroundColor:f==null?void 0:f.strokeColor}});return function(){var u;return I(kt,null,[I("div",{class:"".concat(e.prefixCls,"-outer")},[I("div",{class:"".concat(e.prefixCls,"-inner"),style:o.value},[I("div",{class:"".concat(e.prefixCls,"-bg"),style:a.value},null),s.value!==void 0?I("div",{class:"".concat(e.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=r.default)===null||u===void 0?void 0:u.call(r)])}}});var uhe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},che=function(e){var t=J(null);return Zo(function(){var r=Date.now(),i=!1;e.value.forEach(function(o){var a=(o==null?void 0:o.$el)||o;if(a){i=!0;var s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.value&&r-t.value<100&&(s.transitionDuration="0s, 0s")}}),i&&(t.value=Date.now())}),e},dhe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},fhe=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],s2=0;function l2(n){return+n.replace("%","")}function u2(n){return Array.isArray(n)?n:[n]}function c2(n,e,t,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,u=0,c=-2*a;switch(o){case"left":s=-a,l=0,u=2*a,c=0;break;case"right":s=a,l=0,u=-2*a,c=0;break;case"bottom":l=a,c=2*a;break}var d="M 50,50 m ".concat(s,",").concat(l,` +`,sfe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],mw={},Fo;function lfe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if(e&&mw[t])return mw[t];var r=window.getComputedStyle(n),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=sfe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return e&&t&&(mw[t]=l),l}function ufe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Fo||(Fo=document.createElement("textarea"),Fo.setAttribute("tab-index","-1"),Fo.setAttribute("aria-hidden","true"),document.body.appendChild(Fo)),n.getAttribute("wrap")?Fo.setAttribute("wrap",n.getAttribute("wrap")):Fo.removeAttribute("wrap");var i=lfe(n,e),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Fo.setAttribute("style","".concat(l,";").concat(afe)),Fo.value=n.value||n.placeholder||"";var u=Number.MIN_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=Fo.scrollHeight,f;if(s==="border-box"?d+=a:s==="content-box"&&(d-=o),t!==null||r!==null){Fo.value=" ";var h=Fo.scrollHeight-o;t!==null&&(u=h*t,s==="border-box"&&(u=u+o+a),d=Math.max(u,d)),r!==null&&(c=h*r,s==="border-box"&&(c=c+o+a),f=d>c?"":"hidden",d=Math.min(c,d))}return{height:"".concat(d,"px"),minHeight:"".concat(u,"px"),maxHeight:"".concat(c,"px"),overflowY:f,resize:"none"}}var _w=0,$k=1,cfe=2,dfe=be({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:_8(),setup:function(e,t){var r=t.attrs,i=t.emit,o=t.expose,a,s,l=ee(),u=ee({}),c=ee(_w);Xt(function(){Mt.cancel(a),Mt.cancel(s)});var d=function(){try{if(document.activeElement===l.value){var _=l.value.selectionStart,y=l.value.selectionEnd;l.value.setSelectionRange(_,y)}}catch{}},f=function(){var _=e.autoSize||e.autosize;if(!(!_||!l.value)){var y=_.minRows,C=_.maxRows;u.value=ufe(l.value,!1,y,C),c.value=$k,Mt.cancel(s),s=Mt(function(){c.value=cfe,s=Mt(function(){c.value=_w,d()})})}},h=function(){Mt.cancel(a),a=Mt(f)},p=function(_){if(c.value===_w){i("resize",_);var y=e.autoSize||e.autosize;y&&h()}};_a(e.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var v=function(){var _=e.prefixCls,y=e.autoSize,C=e.autosize,w=e.disabled,b=nr(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),S=Ne(_,r.class,U({},"".concat(_,"-disabled"),w)),E=[r.style,u.value,c.value===$k?{overflowX:"hidden",overflowY:"hidden"}:null],L=O(O(O({},b),r),{},{style:E,class:S});return L.autofocus||delete L.autofocus,L.rows===0&&delete L.rows,I(mu,{onResize:p,disabled:!(y||C)},{default:function(){return[Ki(I("textarea",O(O({},L),{},{ref:l}),null),[[Pg]])]}})};We(function(){return e.value},function(){en(function(){f()})}),Wt(function(){en(function(){f()})});var m=Dr();return o({resizeTextarea:f,textArea:l,instance:m}),function(){return v()}}});const ffe=dfe;function w8(n,e){return Ge(n||"").slice(0,e).join("")}function jk(n,e,t,r){var i=t;return n?i=w8(t,r):Ge(e||"").lengthr&&(i=e),i}const hfe=be({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:_8(),setup:function(e,t){var r=t.attrs,i=t.expose,o=t.emit,a=ps(),s=ee(e.value===void 0?e.defaultValue:e.value),l=ee(),u=ee(""),c=Et("input",e),d=c.prefixCls,f=c.size,h=c.direction,p=V(function(){return e.showCount===""||e.showCount||!1}),v=V(function(){return Number(e.maxlength)>0}),m=ee(!1),g=ee(),_=ee(0),y=function(k){m.value=!0,g.value=u.value,_.value=k.currentTarget.selectionStart,o("compositionstart",k)},C=function(k){m.value=!1;var W=k.currentTarget.value;if(v.value){var F,B=_.value>=e.maxlength+1||_.value===((F=g.value)===null||F===void 0?void 0:F.length);W=jk(B,g.value,W,e.maxlength)}W!==u.value&&(E(W),sv(k.currentTarget,k,R,W)),o("compositionend",k)},w=Dr();We(function(){return e.value},function(){"value"in w.vnode.props;var H;s.value=(H=e.value)!==null&&H!==void 0?H:""});var b=function(k){var W;C8((W=l.value)===null||W===void 0?void 0:W.textArea,k)},S=function(){var k,W;(k=l.value)===null||k===void 0||(W=k.textArea)===null||W===void 0||W.blur()},E=function(k,W){s.value!==k&&(e.value===void 0?s.value=k:en(function(){if(l.value.textArea.value!==u.value){var F,B,j;(F=l.value)===null||F===void 0||(B=(j=F.instance).update)===null||B===void 0||B.call(j)}}),en(function(){W&&W()}))},L=function(k){k.keyCode===13&&o("pressEnter",k),o("keydown",k)},T=function(k){var W=e.onBlur;W==null||W(k),a.onFieldBlur()},R=function(k){o("update:value",k.target.value),o("change",k),o("input",k),a.onFieldChange()},N=function(k){sv(l.value.textArea,k,R),E("",function(){b()})},D=function(k){var W=k.target.composing,F=k.target.value;if(m.value=!!(k.isComposing||W),!(m.value&&e.lazy||s.value===F)){if(v.value){var B=k.target,j=B.selectionStart>=e.maxlength+1||B.selectionStart===F.length||!B.selectionStart;F=jk(j,u.value,F,e.maxlength)}sv(k.currentTarget,k,R,F),E(F)}},M=function(){var k,W,F,B=r.style,j=r.class,K=e.bordered,X=K===void 0?!0:K,Z=O(O(O({},nr(e,["allowClear"])),r),{},{style:p.value?{}:B,class:(k={},U(k,"".concat(d.value,"-borderless"),!X),U(k,"".concat(j),j&&!p.value),U(k,"".concat(d.value,"-sm"),f.value==="small"),U(k,"".concat(d.value,"-lg"),f.value==="large"),k),showCount:null,prefixCls:d.value,onInput:D,onChange:D,onBlur:T,onKeydown:L,onCompositionstart:y,onCompositionend:C});return(W=e.valueModifiers)!==null&&W!==void 0&&W.lazy&&delete Z.onInput,I(ffe,O(O({},Z),{},{id:(F=Z.id)!==null&&F!==void 0?F:a.id.value,ref:l,maxlength:e.maxlength}),null)};return i({focus:b,blur:S,resizableTextArea:l}),Ft(function(){var H=wE(s.value);!m.value&&v.value&&(e.value===null||e.value===void 0)&&(H=w8(H,e.maxlength)),u.value=H}),function(){var H=e.maxlength,k=e.bordered,W=k===void 0?!0:k,F=e.hidden,B=r.style,j=r.class,K=O(O(O({},e),r),{},{prefixCls:d.value,inputType:"text",handleReset:N,direction:h.value,bordered:W,style:p.value?void 0:B}),X=I(b8,O(O({},K),{},{value:u.value}),{element:M});if(p.value){var Z=Ge(u.value).length,z="";at(p.value)==="object"?z=p.value.formatter({count:Z,maxlength:H}):z="".concat(Z).concat(v.value?" / ".concat(H):""),X=I("div",{hidden:F,class:Ne("".concat(d.value,"-textarea"),U({},"".concat(d.value,"-textarea-rtl"),h.value==="rtl"),"".concat(d.value,"-textarea-show-count"),j),style:B,"data-count":at(z)!=="object"?z:void 0},[X])}return X}}});var pfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const vfe=pfe;function zk(n){for(var e=1;eNumber.MAX_SAFE_INTEGER)return String(SE()?BigInt(n).toString():Number.MAX_SAFE_INTEGER);if(nNumber.MAX_SAFE_INTEGER)return new n(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":NO(this.number):this.origin}}]),n}(),Bfe=function(){function n(e){if(iC(this,n),U(this,"origin",""),!e&&e!==0||!String(e).trim()){this.empty=!0;return}if(this.origin=String(e),e==="-"){this.nan=!0;return}var t=e;if(OO(t)&&(t=Number(t)),t=typeof t=="string"?t:NO(t),DO(t)){var r=lv(t);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return rC(n,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(t){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(t,"0"));return BigInt(r)}},{key:"negate",value:function(){var t=new n(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new n(t);var r=new n(t);if(r.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),o=this.alignDecimal(i),a=r.alignDecimal(i),s=(o+a).toString(),l=lv(s),u=l.negativeStr,c=l.trimStr,d="".concat(u).concat(c.padStart(i+1,"0"));return new n("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(t){return this.toString()===(t==null?void 0:t.toString())}},{key:"lessEquals",value:function(t){return this.add(t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t?this.isInvalidate()?"":lv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),n}();function ka(n){return SE()?new Bfe(n):new Ffe(n)}function EE(n,e,t){if(n==="")return"";var r=lv(n),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,s="".concat(e).concat(a),l="".concat(i).concat(o);if(t>=0){var u=Number(a[t]);if(u>=5){var c=ka(n).add("".concat(i,"0.").concat("0".repeat(t)).concat(10-u));return EE(c.toString(),e,t)}return t===0?l:"".concat(l).concat(e).concat(a.padEnd(t,"0").slice(0,t))}return s===".0"?l:"".concat(l).concat(s)}var Wfe=200,Vfe=600;const Hfe=be({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var r=t.slots,i=t.emit,o=ee(),a=function(u,c){u.preventDefault(),i("step",c);function d(){i("step",c),o.value=setTimeout(d,Wfe)}o.value=setTimeout(d,Vfe)},s=function(){clearTimeout(o.value)};return Xt(function(){s()}),function(){if(jx())return null;var l=e.prefixCls,u=e.upDisabled,c=e.downDisabled,d="".concat(l,"-handler"),f=Ne(d,"".concat(d,"-up"),U({},"".concat(d,"-up-disabled"),u)),h=Ne(d,"".concat(d,"-down"),U({},"".concat(d,"-down-disabled"),c)),p={unselectable:"on",role:"button",onMouseup:s,onMouseleave:s},v=r.upNode,m=r.downNode;return I("div",{class:"".concat(d,"-wrap")},[I("span",O(O({},p),{},{onMousedown:function(_){a(_,!0)},"aria-label":"Increase Value","aria-disabled":u,class:f}),[(v==null?void 0:v())||I("span",{unselectable:"on",class:"".concat(l,"-handler-up-inner")},null)]),I("span",O(O({},p),{},{onMousedown:function(_){a(_,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:h}),[(m==null?void 0:m())||I("span",{unselectable:"on",class:"".concat(l,"-handler-down-inner")},null)])])}}});function Ufe(n,e){var t=ee(null);function r(){try{var o=n.value,a=o.selectionStart,s=o.selectionEnd,l=o.value,u=l.substring(0,a),c=l.substring(s);t.value={start:a,end:s,value:l,beforeTxt:u,afterTxt:c}}catch{}}function i(){if(n.value&&t.value&&e.value)try{var o=n.value.value,a=t.value,s=a.beforeTxt,l=a.afterTxt,u=a.start,c=o.length;if(o.endsWith(l))c=o.length-t.value.afterTxt.length;else if(o.startsWith(s))c=s.length;else{var d=s[u-1],f=o.indexOf(d,u-1);f!==-1&&(c=f+1)}n.value.setSelectionRange(c,c)}catch(h){"Something warning of cursor restore. Please fire issue about this: ".concat(h.message)}}return[r,i]}const $fe=function(){var n=ee(0),e=function(){Mt.cancel(n.value)};return Xt(function(){e()}),function(t){e(),n.value=Mt(function(){t()})}};var jfe=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],e2=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},t2=function(e){var t=ka(e);return t.isInvalidate()?null:t},E8=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}};const zfe=be({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:O(O({},E8()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var r=t.attrs,i=t.slots,o=t.emit,a=t.expose,s=ee(),l=ee(!1),u=ee(!1),c=ee(!1),d=ee(ka(e.value));function f(z){e.value===void 0&&(d.value=z)}var h=function(Y,te){if(!te)return e.precision>=0?e.precision:Math.max(Gv(Y),Gv(e.step))},p=function(Y){var te=String(Y);if(e.parser)return e.parser(te);var G=te;return e.decimalSeparator&&(G=G.replace(e.decimalSeparator,".")),G.replace(/[^\w.-]+/g,"")},v=ee(""),m=function(Y,te){if(e.formatter)return e.formatter(Y,{userTyping:te,input:String(v.value)});var G=typeof Y=="number"?NO(Y):Y;if(!te){var ae=h(G,te);if(DO(G)&&(e.decimalSeparator||ae>=0)){var oe=e.decimalSeparator||".";G=EE(G,oe,ae)}}return G},g=function(){var z=e.value;return d.value.isInvalidate()&&["string","number"].includes(at(z))?Number.isNaN(z)?"":z:m(d.value.toString(),!1)}();v.value=g;function _(z,Y){v.value=m(z.isInvalidate()?z.toString(!1):z.toString(!Y),Y)}var y=V(function(){return t2(e.max)}),C=V(function(){return t2(e.min)}),w=V(function(){return!y.value||!d.value||d.value.isInvalidate()?!1:y.value.lessEquals(d.value)}),b=V(function(){return!C.value||!d.value||d.value.isInvalidate()?!1:d.value.lessEquals(C.value)}),S=Ufe(s,l),E=qe(S,2),L=E[0],T=E[1],R=function(Y){return y.value&&!Y.lessEquals(y.value)?y.value:C.value&&!C.value.lessEquals(Y)?C.value:null},N=function(Y){return!R(Y)},D=function(Y,te){var G=Y,ae=N(G)||G.isEmpty();if(!G.isEmpty()&&!te&&(G=R(G)||G,ae=!0),!e.readonly&&!e.disabled&&ae){var oe=G.toString(),de=h(oe,te);if(de>=0&&(G=ka(EE(oe,".",de))),!G.equals(d.value)){var Ce;f(G),(Ce=e.onChange)===null||Ce===void 0||Ce.call(e,G.isEmpty()?null:e2(e.stringMode,G)),e.value===void 0&&_(G,te)}return G}return d.value},M=$fe(),H=function z(Y){var te;if(L(),v.value=Y,!c.value){var G=p(Y),ae=ka(G);ae.isNaN()||D(ae,!0)}(te=e.onInput)===null||te===void 0||te.call(e,Y),M(function(){var oe=Y;e.parser||(oe=Y.replace(/。/g,".")),oe!==Y&&z(oe)})},k=function(){c.value=!0},W=function(){c.value=!1,H(s.value.value)},F=function(Y){H(Y.target.value)},B=function(Y){var te,G;if(!(Y&&w.value||!Y&&b.value)){u.value=!1;var ae=ka(e.step);Y||(ae=ae.negate());var oe=(d.value||ka(0)).add(ae.toString()),de=D(oe,!1);(te=e.onStep)===null||te===void 0||te.call(e,e2(e.stringMode,de),{offset:e.step,type:Y?"up":"down"}),(G=s.value)===null||G===void 0||G.focus()}},j=function(Y){var te=ka(p(v.value)),G=te;te.isNaN()?G=d.value:G=D(te,Y),e.value!==void 0?_(d.value,!1):G.isNaN()||_(G,!1)},K=function(Y){var te=Y.which;if(u.value=!0,te===ct.ENTER){var G;c.value||(u.value=!1),j(!1),(G=e.onPressEnter)===null||G===void 0||G.call(e,Y)}e.keyboard!==!1&&!c.value&&[ct.UP,ct.DOWN].includes(te)&&(B(ct.UP===te),Y.preventDefault())},X=function(){u.value=!1},Z=function(Y){j(!1),l.value=!1,u.value=!1,o("blur",Y)};return We(function(){return e.precision},function(){d.value.isInvalidate()||_(d.value,!1)},{flush:"post"}),We(function(){return e.value},function(){var z=ka(e.value);d.value=z;var Y=ka(p(v.value));(!z.equals(Y)||!u.value||e.formatter)&&_(z,u.value)},{flush:"post"}),We(v,function(){e.formatter&&T()},{flush:"post"}),We(function(){return e.disabled},function(z){z&&(l.value=!1)}),a({focus:function(){var Y;(Y=s.value)===null||Y===void 0||Y.focus()},blur:function(){var Y;(Y=s.value)===null||Y===void 0||Y.blur()}}),function(){var z,Y=O(O({},r),e),te=Y.prefixCls,G=te===void 0?"rc-input-number":te,ae=Y.min,oe=Y.max,de=Y.step,Ce=de===void 0?1:de;Y.defaultValue,Y.value;var $=Y.disabled,A=Y.readonly;Y.keyboard;var P=Y.controls,Q=P===void 0?!0:P,re=Y.autofocus;Y.stringMode,Y.parser,Y.formatter,Y.precision,Y.decimalSeparator,Y.onChange,Y.onInput,Y.onPressEnter,Y.onStep;var le=Y.lazy,me=Y.class,ge=Y.style,he=Nt(Y,jfe),ue=i.upHandler,_e=i.downHandler,fe="".concat(G,"-input"),ne={};return le?ne.onChange=F:ne.onInput=F,I("div",{class:Ne(G,me,(z={},U(z,"".concat(G,"-focused"),l.value),U(z,"".concat(G,"-disabled"),$),U(z,"".concat(G,"-readonly"),A),U(z,"".concat(G,"-not-a-number"),d.value.isNaN()),U(z,"".concat(G,"-out-of-range"),!d.value.isInvalidate()&&!N(d.value)),z)),style:ge,onKeydown:K,onKeyup:X},[Q&&I(Hfe,{prefixCls:G,upDisabled:w.value,downDisabled:b.value,onStep:B},{upNode:ue,downNode:_e}),I("div",{class:"".concat(fe,"-wrap")},[I("input",O(O(O({autofocus:re,autocomplete:"off",role:"spinbutton","aria-valuemin":ae,"aria-valuemax":oe,"aria-valuenow":d.value.isInvalidate()?null:d.value.toString(),step:Ce},he),{},{ref:s,class:fe,value:v.value,disabled:$,readonly:A,onFocus:function(Me){l.value=!0,o("focus",Me)}},ne),{},{onBlur:Z,onCompositionstart:k,onCompositionend:W}),null)])])}}});function yw(n){return n!=null}var Kfe=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],n2=E8(),Gfe=function(){return O(O({},n2),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:ie.any,addonAfter:ie.any,prefix:ie.any,"onUpdate:value":n2.onChange,valueModifiers:Object})},bw=be({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Gfe(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var r=t.emit,i=t.expose,o=t.attrs,a=t.slots,s=ps(),l=Et("input-number",e),u=l.prefixCls,c=l.size,d=l.direction,f=ee(e.value===void 0?e.defaultValue:e.value),h=ee(!1);We(function(){return e.value},function(){f.value=e.value});var p=ee(null),v=function(){var w;(w=p.value)===null||w===void 0||w.focus()},m=function(){var w;(w=p.value)===null||w===void 0||w.blur()};i({focus:v,blur:m});var g=function(w){e.value===void 0&&(f.value=w),r("update:value",w),r("change",w),s.onFieldChange()},_=function(w){h.value=!1,r("blur",w),s.onFieldBlur()},y=function(w){h.value=!0,r("focus",w)};return function(){var C,w,b,S,E=O(O({},o),e),L=E.class,T=E.bordered,R=E.readonly,N=E.style,D=E.addonBefore,M=D===void 0?(C=a.addonBefore)===null||C===void 0?void 0:C.call(a):D,H=E.addonAfter,k=H===void 0?(w=a.addonAfter)===null||w===void 0?void 0:w.call(a):H,W=E.prefix,F=W===void 0?(b=a.prefix)===null||b===void 0?void 0:b.call(a):W,B=E.valueModifiers,j=B===void 0?{}:B,K=Nt(E,Kfe),X=u.value,Z=c.value,z=Ne((S={},U(S,"".concat(X,"-lg"),Z==="large"),U(S,"".concat(X,"-sm"),Z==="small"),U(S,"".concat(X,"-rtl"),d.value==="rtl"),U(S,"".concat(X,"-readonly"),R),U(S,"".concat(X,"-borderless"),!T),S),L),Y=I(zfe,O(O({},nr(K,["size","defaultValue"])),{},{ref:p,lazy:!!j.lazy,value:f.value,class:z,prefixCls:X,readonly:R,onChange:g,onBlur:_,onFocus:y}),{upHandler:function(){return I(kfe,{class:"".concat(X,"-handler-up-inner")},null)},downHandler:function(){return I(tC,{class:"".concat(X,"-handler-down-inner")},null)}}),te=yw(M)||yw(k);if(yw(F)){var G,ae=Ne("".concat(X,"-affix-wrapper"),(G={},U(G,"".concat(X,"-affix-wrapper-focused"),h.value),U(G,"".concat(X,"-affix-wrapper-disabled"),e.disabled),U(G,"".concat(X,"-affix-wrapper-rtl"),d.value==="rtl"),U(G,"".concat(X,"-affix-wrapper-readonly"),R),U(G,"".concat(X,"-affix-wrapper-borderless"),!T),U(G,"".concat(L),!te&&L),G));Y=I("div",{class:ae,style:N,onMouseup:function(){return p.value.focus()}},[I("span",{class:"".concat(X,"-prefix")},[F]),Y])}if(te){var oe,de="".concat(X,"-group"),Ce="".concat(de,"-addon"),$=M?I("div",{class:Ce},[M]):null,A=k?I("div",{class:Ce},[k]):null,P=Ne("".concat(X,"-wrapper"),de,U({},"".concat(de,"-rtl"),d.value==="rtl")),Q=Ne("".concat(X,"-group-wrapper"),(oe={},U(oe,"".concat(X,"-group-wrapper-sm"),Z==="small"),U(oe,"".concat(X,"-group-wrapper-lg"),Z==="large"),U(oe,"".concat(X,"-group-wrapper-rtl"),d.value==="rtl"),oe),L);Y=I("div",{class:Q,style:N},[I("div",{class:P},[$,Y,A])])}return Fn(Y,{style:N})}}});const qfe=fn(bw,{install:function(e){return e.component(bw.name,bw),e}});var Yfe=["class","style"],Xfe=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ie.any,delay:Number,indicator:ie.any}},A_=null;function Zfe(n,e){return!!n&&!!e&&!isNaN(Number(e))}function Qfe(n){var e=n.indicator;A_=typeof e=="function"?e:function(){return I(e,null,null)}}const iu=be({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Wn(Xfe(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:yt("configProvider",vV)}},data:function(){var e=this.spinning,t=this.delay,r=Zfe(e,t);return{sSpinning:e&&!r}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;en(function(){e.debouncifyUpdateSpinning(),e.updateSpinning()})},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var t=e||this.$props,r=t.delay;r&&(this.cancelExistingSpin(),this.updateSpinning=hO(this.originalUpdateSpinning,r))},updateSpinning:function(){var e=this.spinning,t=this.sSpinning;t!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var t="".concat(e,"-dot"),r=lx(this,"indicator");return r===null?null:(Array.isArray(r)&&(r=r.length===1?r[0]:r),Ui(r)?ji(r,{class:t}):A_&&Ui(A_())?ji(A_(),{class:t}):I("span",{class:"".concat(t," ").concat(e,"-dot-spin")},[I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null),I("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,t,r,i=this.$props,o=i.size,a=i.prefixCls,s=i.tip,l=s===void 0?(e=(t=this.$slots).tip)===null||e===void 0?void 0:e.call(t):s,u=i.wrapperClassName,c=this.$attrs,d=c.class,f=c.style,h=Nt(c,Yfe),p=this.configProvider,v=p.getPrefixCls,m=p.direction,g=v("spin",a),_=this.sSpinning,y=(r={},U(r,g,!0),U(r,"".concat(g,"-sm"),o==="small"),U(r,"".concat(g,"-lg"),o==="large"),U(r,"".concat(g,"-spinning"),_),U(r,"".concat(g,"-show-text"),!!l),U(r,"".concat(g,"-rtl"),m==="rtl"),U(r,d,!!d),r),C=I("div",O(O({},h),{},{style:f,class:y}),[this.renderIndicator(g),l?I("div",{class:"".concat(g,"-text")},[l]):null]),w=p6(this);if(w&&w.length){var b,S=(b={},U(b,"".concat(g,"-container"),!0),U(b,"".concat(g,"-blur"),_),b);return I("div",{class:["".concat(g,"-nested-loading"),u]},[_&&I("div",{key:"loading"},[C]),I("div",{class:S,key:"container"},[w])])}return C}});iu.setDefaultIndicator=Qfe;iu.install=function(n){return n.component(iu.name,iu),n};var Jfe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const ehe=Jfe;function r2(n){for(var e=1;e=0||c.relatedTarget.className.indexOf("".concat(h,"-item"))>=0)){t.value="";return}else f(r.value),t.value=""},s=function(c){t.value!==""&&(c.keyCode===oc.ENTER||c.type==="click")&&(e.quickGo(r.value),t.value="")},l=V(function(){var u=e.pageSize,c=e.pageSizeOptions;return c.some(function(d){return d.toString()===u.toString()})?c:c.concat([u.toString()]).sort(function(d,f){var h=isNaN(Number(d))?0:Number(d),p=isNaN(Number(f))?0:Number(f);return h-p})});return function(){var u=e.rootPrefixCls,c=e.locale,d=e.changeSize,f=e.quickGo,h=e.goButton,p=e.selectComponentClass,v=e.selectPrefixCls,m=e.pageSize,g=e.disabled,_="".concat(u,"-options"),y=null,C=null,w=null;if(!d&&!f)return null;if(d&&p){var b=e.buildOptionText||i,S=l.value.map(function(E,L){return I(p.Option,{key:L,value:E},{default:function(){return[b({value:E})]}})});y=I(p,{disabled:g,prefixCls:v,showSearch:!1,class:"".concat(_,"-size-changer"),optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:function(L){return d(Number(L))},getPopupContainer:function(L){return L.parentNode}},{default:function(){return[S]}})}return f&&(h&&(w=typeof h=="boolean"?I("button",{type:"button",onClick:s,onKeyup:s,disabled:g,class:"".concat(_,"-quick-jumper-button")},[c.jump_to_confirm]):I("span",{onClick:s,onKeyup:s},[h])),C=I("div",{class:"".concat(_,"-quick-jumper")},[c.jump_to,Ki(I("input",{disabled:g,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:s,onBlur:a},null),[[Pg]]),c.page,w])),I("li",{class:"".concat(_)},[y,C])}}}),L8={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var uhe=["class"];function che(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function dhe(n){var e=n.originalElement;return e}function Ls(n,e,t){var r=typeof n>"u"?e.statePageSize:n;return Math.floor((t.total-1)/r)+1}const fhe=be({compatConfig:{MODE:3},name:"Pagination",mixins:[BV],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:ie.string.def("rc-pagination"),selectPrefixCls:ie.string.def("rc-select"),current:Number,defaultCurrent:ie.number.def(1),total:ie.number.def(0),pageSize:Number,defaultPageSize:ie.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:ie.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:ie.oneOfType([ie.looseBool,ie.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:ie.arrayOf(ie.oneOfType([ie.number,ie.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:ie.object.def(L8),itemRender:ie.func.def(dhe),prevIcon:ie.any,nextIcon:ie.any,jumpPrevIcon:ie.any,jumpNextIcon:ie.any,totalBoundaryShowSizeChanger:ie.number.def(50)},data:function(){var e=this.$props,t=wy([this.current,this.defaultCurrent]),r=wy([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Ls(r,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:r}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var t={},r=this.stateCurrent,i=Ls(e,this.$data,this.$props);r=r>i?i:r,rf(this,"current")||(t.stateCurrent=r,t.stateCurrentInputValue=r),t.statePageSize=e,this.setState(t)},stateCurrent:function(e,t){var r=this;this.$nextTick(function(){if(r.$refs.paginationNode){var i=r.$refs.paginationNode.querySelector(".".concat(r.prefixCls,"-item-").concat(t));i&&document.activeElement===i&&i.blur()}})},total:function(){var e={},t=Ls(this.pageSize,this.$data,this.$props);if(rf(this,"current")){var r=Math.min(this.current,t);e.stateCurrent=r,e.stateCurrentInputValue=r}else{var i=this.stateCurrent;i===0&&t>0?i=1:i=Math.min(this.stateCurrent,t),e.stateCurrent=i}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(Ls(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e,t){var r=this.$props.prefixCls,i=lx(this,e,this.$props)||I("button",{type:"button","aria-label":t,class:"".concat(r,"-item-link")},null);return i},getValidValue:function(e){var t=e.target.value,r=Ls(void 0,this.$data,this.$props),i=this.$data.stateCurrentInputValue,o;return t===""?o=t:isNaN(Number(t))?o=i:t>=r?o=r:o=Number(t),o},isValid:function(e){return che(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper:function(){var e=this.$props,t=e.showQuickJumper,r=e.pageSize,i=e.total;return i<=r?!1:t},handleKeyDown:function(e){(e.keyCode===oc.ARROW_UP||e.keyCode===oc.ARROW_DOWN)&&e.preventDefault()},handleKeyUp:function(e){if(!(e.isComposing||e.target.composing)){var t=this.getValidValue(e),r=this.stateCurrentInputValue;t!==r&&this.setState({stateCurrentInputValue:t}),e.keyCode===oc.ENTER?this.handleChange(t):e.keyCode===oc.ARROW_UP?this.handleChange(t-1):e.keyCode===oc.ARROW_DOWN&&this.handleChange(t+1)}},changePageSize:function(e){var t=this.stateCurrent,r=t,i=Ls(e,this.$data,this.$props);t=t>i?i:t,i===0&&(t=this.stateCurrent),typeof e=="number"&&(rf(this,"pageSize")||this.setState({statePageSize:e}),rf(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==r&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange:function(e){var t=this.$props.disabled,r=e;if(this.isValid(r)&&!t){var i=Ls(void 0,this.$data,this.$props);return r>i?r=i:r<1&&(r=1),rf(this,"current")||this.setState({stateCurrent:r,stateCurrentInputValue:r}),this.__emit("update:current",r),this.__emit("change",r,this.statePageSize),r}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrenti},runIfEnter:function(e,t){if(e.key==="Enter"||e.charCode===13){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o0?C-1:0,B=C+1=W*2&&C!==3&&(T[0]=I(zu,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:G,page:G,class:"".concat(r,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:h},null),T.unshift(R)),L-C>=W*2&&C!==L-2&&(T[T.length-1]=I(zu,{locale:s,rootPrefixCls:r,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ae,page:ae,class:"".concat(r,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:h},null),T.push(N)),G!==1&&T.unshift(D),ae!==L&&T.push(M)}var Ce=null;d&&(Ce=I("li",{class:"".concat(r,"-total-text")},[d(a,[a===0?0:(C-1)*w+1,C*w>a?a:C*w])]));var $=!j||!L,A=!K||!L,P=this.buildOptionText||this.$slots.buildOptionText;return I("ul",O(O({unselectable:"on",ref:"paginationNode"},E),{},{class:Ne((e={},U(e,"".concat(r),!0),U(e,"".concat(r,"-disabled"),i),e),S)}),[Ce,I("li",{title:c?s.prev_page:null,onClick:this.prev,tabindex:$?null:0,onKeypress:this.runIfEnterPrev,class:Ne("".concat(r,"-prev"),U({},"".concat(r,"-disabled"),$)),"aria-disabled":$},[this.renderPrev(F)]),T,I("li",{title:c?s.next_page:null,onClick:this.next,tabindex:A?null:0,onKeypress:this.runIfEnterNext,class:Ne("".concat(r,"-next"),U({},"".concat(r,"-disabled"),A)),"aria-disabled":A},[this.renderNext(B)]),I(lhe,{disabled:i,locale:s,rootPrefixCls:r,selectComponentClass:g,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:C,pageSize:w,pageSizeOptions:y,buildOptionText:P||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:k},null)])}});var hhe=["size","itemRender","buildOptionText","selectComponentClass","responsive"],phe=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}};const vhe=be({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:phe(),setup:function(e,t){var r=t.slots,i=t.attrs,o=Et("pagination",e),a=o.prefixCls,s=o.configProvider,l=o.direction,u=V(function(){return s.getPrefixCls("select",e.selectPrefixCls)}),c=eO(),d=Th("Pagination",y6,vn(e,"locale")),f=qe(d,1),h=f[0],p=function(m){var g=I("span",{class:"".concat(m,"-item-ellipsis")},[Zc("•••")]),_=I("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[I(Lle,null,null)]),y=I("button",{class:"".concat(m,"-item-link"),type:"button",tabindex:-1},[I(iO,null,null)]),C=I("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[I("div",{class:"".concat(m,"-item-container")},[I(nhe,{class:"".concat(m,"-item-link-icon")},null),g])]),w=I("a",{rel:"nofollow",class:"".concat(m,"-item-link")},[I("div",{class:"".concat(m,"-item-container")},[I(ahe,{class:"".concat(m,"-item-link-icon")},null),g])]);if(l.value==="rtl"){var b=[y,_];_=b[0],y=b[1];var S=[w,C];C=S[0],w=S[1]}return{prevIcon:_,nextIcon:y,jumpPrevIcon:C,jumpNextIcon:w}};return function(){var v,m=e.size,g=e.itemRender,_=g===void 0?r.itemRender:g,y=e.buildOptionText,C=y===void 0?r.buildOptionText:y,w=e.selectComponentClass,b=e.responsive,S=Nt(e,hhe),E=m==="small"||!!((v=c.value)!==null&&v!==void 0&&v.xs&&!m&&b),L=O(O(O(O({},S),p(a.value)),{},{prefixCls:a.value,selectPrefixCls:u.value,selectComponentClass:w||(E?she:nh),locale:h.value,buildOptionText:C},i),{},{class:Ne(U({mini:E},"".concat(a.value,"-rtl"),l.value==="rtl"),i.class),itemRender:_});return I(fhe,L,null)}}}),PO=Lu(vhe);var ghe=function(){return{avatar:ie.any,description:ie.any,prefixCls:String,title:ie.any}};const mhe=be({compatConfig:{MODE:3},name:"AListItemMeta",props:ghe(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:["avatar","description","title"],setup:function(e,t){var r=t.slots,i=Et("list",e),o=i.prefixCls;return function(){var a,s,l,u,c,d,f="".concat(o.value,"-item-meta"),h=(a=e.title)!==null&&a!==void 0?a:(s=r.title)===null||s===void 0?void 0:s.call(r),p=(l=e.description)!==null&&l!==void 0?l:(u=r.description)===null||u===void 0?void 0:u.call(r),v=(c=e.avatar)!==null&&c!==void 0?c:(d=r.avatar)===null||d===void 0?void 0:d.call(r),m=I("div",{class:"".concat(o.value,"-item-meta-content")},[h&&I("h4",{class:"".concat(o.value,"-item-meta-title")},[h]),p&&I("div",{class:"".concat(o.value,"-item-meta-description")},[p])]);return I("div",{class:f},[v&&I("div",{class:"".concat(o.value,"-item-meta-avatar")},[v]),(h||p)&&m])}}});var I8=Symbol("ListContextKey"),_he=["class"],yhe=function(){return{prefixCls:String,extra:ie.any,actions:ie.array,grid:Object,colStyle:{type:Object,default:void 0}}};const bhe=be({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:mhe,props:yhe(),slots:["actions","extra"],setup:function(e,t){var r=t.slots,i=t.attrs,o=yt(I8,{grid:ee(),itemLayout:ee()}),a=o.itemLayout,s=o.grid,l=Et("list",e),u=l.prefixCls,c=function(){var h,p=((h=r.default)===null||h===void 0?void 0:h.call(r))||[],v;return p.forEach(function(m){gZ(m)&&!Ub(m)&&(v=!0)}),v&&p.length>1},d=function(){var h,p,v=(h=e.extra)!==null&&h!==void 0?h:(p=r.extra)===null||p===void 0?void 0:p.call(r);return a.value==="vertical"?!!v:!c()};return function(){var f,h,p,v,m,g=i.class,_=Nt(i,_he),y=u.value,C=(f=e.extra)!==null&&f!==void 0?f:(h=r.extra)===null||h===void 0?void 0:h.call(r),w=(p=r.default)===null||p===void 0?void 0:p.call(r),b=(v=e.actions)!==null&&v!==void 0?v:lr((m=r.actions)===null||m===void 0?void 0:m.call(r));b=b&&!Array.isArray(b)?[b]:b;var S=b&&b.length>0&&I("ul",{class:"".concat(y,"-item-action"),key:"actions"},[b.map(function(T,R){return I("li",{key:"".concat(y,"-item-action-").concat(R)},[T,R!==b.length-1&&I("em",{class:"".concat(y,"-item-action-split")},null)])})]),E=s.value?"div":"li",L=I(E,O(O({},_),{},{class:Ne("".concat(y,"-item"),U({},"".concat(y,"-item-no-flex"),!d()),g)}),{default:function(){return[a.value==="vertical"&&C?[I("div",{class:"".concat(y,"-item-main"),key:"content"},[w,S]),I("div",{class:"".concat(y,"-item-extra"),key:"extra"},[C])]:[w,S,Fn(C,{key:"extra"})]]}});return s.value?I(lC,{flex:1,style:e.colStyle},{default:function(){return[L]}}):L}}});var Che=function(){return{bordered:{type:Boolean,default:void 0},dataSource:ie.array,extra:ie.any,grid:{type:Object,default:void 0},itemLayout:String,loading:{type:[Boolean,Object],default:void 0},loadMore:ie.any,pagination:{type:[Boolean,Object],default:void 0},prefixCls:String,rowKey:[String,Number,Function],renderItem:Function,size:String,split:{type:Boolean,default:void 0},header:ie.any,footer:ie.any,locale:{type:Object}}},Ml=be({compatConfig:{MODE:3},name:"AList",Item:bhe,props:Wn(Che(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:["extra","loadMore","renderItem","header","footer"],setup:function(e,t){var r,i,o=t.slots;qt(I8,{grid:vn(e,"grid"),itemLayout:vn(e,"itemLayout")});var a={current:1,total:0},s=Et("list",e),l=s.prefixCls,u=s.direction,c=s.renderEmpty,d=V(function(){return e.pagination&&at(e.pagination)==="object"?e.pagination:{}}),f=ee((r=d.value.defaultCurrent)!==null&&r!==void 0?r:1),h=ee((i=d.value.defaultPageSize)!==null&&i!==void 0?i:10);We(d,function(){"current"in d.value&&(f.value=d.value.current),"pageSize"in d.value&&(h.value=d.value.pageSize)});var p=[],v=function(M){return function(H,k){f.value=H,h.value=k,d.value[M]&&d.value[M](H,k)}},m=v("onChange"),g=v("onShowSizeChange"),_=function(M){var H;return I("div",{class:"".concat(l.value,"-empty-text")},[((H=e.locale)===null||H===void 0?void 0:H.emptyText)||M("List")])},y=V(function(){return typeof e.loading=="boolean"?{spinning:e.loading}:e.loading}),C=V(function(){return y.value&&y.value.spinning}),w=V(function(){var D="";switch(e.size){case"large":D="lg";break;case"small":D="sm";break}return D}),b=V(function(){var D;return D={},U(D,"".concat(l.value),!0),U(D,"".concat(l.value,"-vertical"),e.itemLayout==="vertical"),U(D,"".concat(l.value,"-").concat(w.value),w.value),U(D,"".concat(l.value,"-split"),e.split),U(D,"".concat(l.value,"-bordered"),e.bordered),U(D,"".concat(l.value,"-loading"),C.value),U(D,"".concat(l.value,"-grid"),!!e.grid),U(D,"".concat(l.value,"-rtl"),u.value==="rtl"),D}),S=V(function(){var D=O(O({},a),{},{total:e.dataSource.length,current:f.value,pageSize:h.value},e.pagination||{}),M=Math.ceil(D.total/D.pageSize);return D.current>M&&(D.current=M),D}),E=V(function(){var D=Ge(e.dataSource);return e.pagination&&e.dataSource.length>(S.value.current-1)*S.value.pageSize&&(D=Ge(e.dataSource).splice((S.value.current-1)*S.value.pageSize,S.value.pageSize)),D}),L=eO(),T=Wo(function(){for(var D=0;D0){p.length=0;var ae=E.value.map(function(Ce,$){return N(Ce,$)}),oe=ae.map(function(Ce,$){return I("div",{key:p[$],style:R.value},[Ce])});G=e.grid?I(fO,{gutter:e.grid.gutter},{default:function(){return[oe]}}):I("ul",{class:"".concat(l.value,"-items")},[ae])}else!Z.length&&!C.value&&(G=_(c.value));var de=S.value.position||"bottom";return I("div",{class:Y},[(de==="top"||de==="both")&&te,X&&I("div",{class:"".concat(l.value,"-header")},[X]),I(iu,y.value,{default:function(){return[G,Z]}}),K&&I("div",{class:"".concat(l.value,"-footer")},[K]),j||(de==="bottom"||de==="both")&&te])}}});Ml.install=function(n){return n.component(Ml.name,Ml),n.component(Ml.Item.name,Ml.Item),n.component(Ml.Item.Meta.name,Ml.Item.Meta),n};const whe=Ml;var She=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],LE=null,Ehe=function(e){LE={x:e.pageX,y:e.pageY},setTimeout(function(){return LE=null},100)};VH()&&Co(document.documentElement,"click",Ehe,!0);var Lhe=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ie.any,closable:{type:Boolean,default:void 0},closeIcon:ie.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ie.any,okText:ie.any,okType:String,cancelText:ie.any,icon:ie.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},mf=[];const $o=be({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Wn(Lhe(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,t){var r=t.emit,i=t.slots,o=t.attrs,a=Th("Modal"),s=qe(a,1),l=s[0],u=Et("modal",e),c=u.prefixCls,d=u.rootPrefixCls,f=u.direction,h=u.getPopupContainer,p=function(_){r("update:visible",!1),r("cancel",_),r("change",!1)},v=function(_){r("ok",_)},m=function(){var _,y,C=e.okText,w=C===void 0?(_=i.okText)===null||_===void 0?void 0:_.call(i):C,b=e.okType,S=e.cancelText,E=S===void 0?(y=i.cancelText)===null||y===void 0?void 0:y.call(i):S,L=e.confirmLoading;return I(kt,null,[I(bi,O({onClick:p},e.cancelButtonProps),{default:function(){return[E||l.value.cancelText]}}),I(bi,O(O({},aH(b)),{},{loading:L,onClick:v},e.okButtonProps),{default:function(){return[w||l.value.okText]}})])};return function(){var g,_;e.prefixCls;var y=e.visible,C=e.wrapClassName,w=e.centered,b=e.getContainer,S=e.closeIcon,E=S===void 0?(g=i.closeIcon)===null||g===void 0?void 0:g.call(i):S,L=e.focusTriggerAfterClose,T=L===void 0?!0:L,R=Nt(e,She),N=Ne(C,(_={},U(_,"".concat(c.value,"-centered"),!!w),U(_,"".concat(c.value,"-wrap-rtl"),f.value==="rtl"),_));return I(Afe,O(O(O({},R),o),{},{getContainer:b||h.value,prefixCls:c.value,wrapClassName:N,visible:y,mousePosition:LE,onClose:p,focusTriggerAfterClose:T,transitionName:Mv(d.value,"zoom",e.transitionName),maskTransitionName:Mv(d.value,"fade",e.maskTransitionName)}),O(O({},i),{},{footer:i.footer||m,closeIcon:function(){return I("span",{class:"".concat(c.value,"-close-x")},[E||I(Dg,{class:"".concat(c.value,"-close-icon")},null)])}}))}}});var Ihe=function(){var e=ee(!1);return Xt(function(){e.value=!0}),e};const The=Ihe;var xhe={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function o2(n){return!!(n&&n.then)}const a2=be({compatConfig:{MODE:3},name:"ActionButton",props:xhe,setup:function(e,t){var r=t.slots,i=ee(!1),o=ee(),a=ee(!1),s,l=The();Wt(function(){e.autofocus&&(s=setTimeout(function(){var d;return(d=o.value.$el)===null||d===void 0?void 0:d.focus()}))}),Xt(function(){clearTimeout(s)});var u=function(f){var h=e.close;o2(f)&&(a.value=!0,f.then(function(){l.value||(a.value=!1),h.apply(void 0,arguments),i.value=!1},function(p){console.error(p),l.value||(a.value=!1),i.value=!1}))},c=function(f){var h=e.actionFn,p=e.close,v=p===void 0?function(){}:p;if(!i.value){if(i.value=!0,!h){v();return}var m;if(e.emitEvent){if(m=h(f),e.quitOnNullishReturnValue&&!o2(m)){i.value=!1,v(f);return}}else if(h.length)m=h(v),i.value=!1;else if(m=h(),!m){v();return}u(m)}};return function(){var d=e.type,f=e.prefixCls,h=e.buttonProps;return I(bi,O(O(O({},aH(d)),{},{onClick:c,loading:a.value,prefixCls:f},h),{},{ref:o}),r)}}});function lp(n){return typeof n=="function"?n():n}const Ohe=be({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,t){var r=t.attrs,i=Th("Modal"),o=qe(i,1),a=o[0];return function(){var s=e.icon,l=e.onCancel,u=e.onOk,c=e.close,d=e.closable,f=d===void 0?!1:d,h=e.zIndex,p=e.afterClose,v=e.visible,m=e.keyboard,g=e.centered,_=e.getContainer,y=e.maskStyle,C=e.okButtonProps,w=e.cancelButtonProps,b=e.okCancel,S=b===void 0?!0:b,E=e.width,L=E===void 0?416:E,T=e.mask,R=T===void 0?!0:T,N=e.maskClosable,D=N===void 0?!1:N,M=e.type,H=e.title,k=e.content,W=e.direction,F=e.closeIcon,B=e.modalRender,j=e.focusTriggerAfterClose,K=e.rootPrefixCls,X=e.bodyStyle,Z=e.wrapClassName,z=e.okType||"primary",Y=e.prefixCls||"ant-modal",te="".concat(Y,"-confirm"),G=r.style||{},ae=lp(e.okText)||(S?a.value.okText:a.value.justOkText),oe=lp(e.cancelText)||a.value.cancelText,de=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",Ce=Ne(te,"".concat(te,"-").concat(M),"".concat(Y,"-").concat(M),U({},"".concat(te,"-rtl"),W==="rtl"),r.class),$=S&&I(a2,{actionFn:l,close:c,autofocus:de==="cancel",buttonProps:w,prefixCls:"".concat(K,"-btn")},{default:function(){return[oe]}});return I($o,{prefixCls:Y,class:Ce,wrapClassName:Ne(U({},"".concat(te,"-centered"),!!g),Z),onCancel:function(P){return c({triggerCancel:!0},P)},visible:v,title:"",footer:"",transitionName:Mv(K,"zoom",e.transitionName),maskTransitionName:Mv(K,"fade",e.maskTransitionName),mask:R,maskClosable:D,maskStyle:y,style:G,bodyStyle:X,width:L,zIndex:h,afterClose:p,keyboard:m,centered:g,getContainer:_,closable:f,closeIcon:F,modalRender:B,focusTriggerAfterClose:j},{default:function(){return[I("div",{class:"".concat(te,"-body-wrapper")},[I("div",{class:"".concat(te,"-body")},[lp(s),H===void 0?null:I("span",{class:"".concat(te,"-title")},[lp(H)]),I("div",{class:"".concat(te,"-content")},[lp(k)])]),I("div",{class:"".concat(te,"-btns")},[$,I(a2,{type:z,actionFn:u,close:c,autofocus:de==="ok",buttonProps:C,prefixCls:"".concat(K,"-btn")},{default:function(){return[ae]}})])])]}})}}});var Nhe=function(e){var t=document.createDocumentFragment(),r=O(O({},nr(e,["parentContext","appContext"])),{},{close:a,visible:!0}),i=null;function o(){i&&(ly(null,t),i.component.update(),i=null);for(var c=arguments.length,d=new Array(c),f=0;f100?100:n}function Ty(n){var e=n.success,t=n.successPercent,r=t;return e&&"progress"in e&&(Kn(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=e.progress),e&&"percent"in e&&(r=e.percent),r}var Bhe=["from","to","direction"],Whe=function(){return O(O({},dC()),{},{prefixCls:String,direction:{type:String}})},Vhe=function(e){var t=[];return Object.keys(e).forEach(function(r){var i=parseFloat(r.replace(/%/g,""));isNaN(i)||t.push({key:i,value:e[r]})}),t=t.sort(function(r,i){return r.key-i.key}),t.map(function(r){var i=r.key,o=r.value;return"".concat(o," ").concat(i,"%")}).join(", ")},Hhe=function(e,t){var r=e.from,i=r===void 0?Df.blue:r,o=e.to,a=o===void 0?Df.blue:o,s=e.direction,l=s===void 0?t==="rtl"?"to left":"to right":s,u=Nt(e,Bhe);if(Object.keys(u).length!==0){var c=Vhe(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(c,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(i,", ").concat(a,")")}};const Uhe=be({compatConfig:{MODE:3},name:"Line",props:Whe(),setup:function(e,t){var r=t.slots,i=V(function(){var u=e.strokeColor,c=e.direction;return u&&typeof u!="string"?Hhe(u,c):{background:u}}),o=V(function(){return e.trailColor?{backgroundColor:e.trailColor}:void 0}),a=V(function(){var u=e.percent,c=e.strokeWidth,d=e.strokeLinecap,f=e.size;return O({width:"".concat(kc(u),"%"),height:"".concat(c||(f==="small"?6:8),"px"),borderRadius:d==="square"?0:""},i.value)}),s=V(function(){return Ty(e)}),l=V(function(){var u=e.strokeWidth,c=e.size,d=e.strokeLinecap,f=e.success;return{width:"".concat(kc(s.value),"%"),height:"".concat(u||(c==="small"?6:8),"px"),borderRadius:d==="square"?0:"",backgroundColor:f==null?void 0:f.strokeColor}});return function(){var u;return I(kt,null,[I("div",{class:"".concat(e.prefixCls,"-outer")},[I("div",{class:"".concat(e.prefixCls,"-inner"),style:o.value},[I("div",{class:"".concat(e.prefixCls,"-bg"),style:a.value},null),s.value!==void 0?I("div",{class:"".concat(e.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=r.default)===null||u===void 0?void 0:u.call(r)])}}});var $he={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},jhe=function(e){var t=ee(null);return Xo(function(){var r=Date.now(),i=!1;e.value.forEach(function(o){var a=(o==null?void 0:o.$el)||o;if(a){i=!0;var s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.value&&r-t.value<100&&(s.transitionDuration="0s, 0s")}}),i&&(t.value=Date.now())}),e},zhe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},Khe=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],s2=0;function l2(n){return+n.replace("%","")}function u2(n){return Array.isArray(n)?n:[n]}function c2(n,e,t,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,u=0,c=-2*a;switch(o){case"left":s=-a,l=0,u=2*a,c=0;break;case"right":s=a,l=0,u=-2*a,c=0;break;case"bottom":l=a,c=2*a;break}var d="M 50,50 m ".concat(s,",").concat(l,` a `).concat(a,",").concat(a," 0 1 1 ").concat(u,",").concat(-c,` - a `).concat(a,",").concat(a," 0 1 1 ").concat(-u,",").concat(c),f=Math.PI*2*a,h={stroke:t,strokeDasharray:"".concat(e/100*(f-i),"px ").concat(f,"px"),strokeDashoffset:"-".concat(i/2+n/100*(f-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:h}}const hhe=be({compatConfig:{MODE:3},name:"VCCircle",props:Wn(dhe,uhe),setup:function(e){s2+=1;var t=J(s2),r=V(function(){return u2(e.percent)}),i=V(function(){return u2(e.strokeColor)}),o=PH(),a=Ye(o,2),s=a[0],l=a[1];che(l);var u=function(){var d=e.prefixCls,f=e.strokeWidth,h=e.strokeLinecap,p=e.gapDegree,v=e.gapPosition,m=0;return r.value.map(function(g,_){var y=i.value[_]||i.value[i.value.length-1],b=Object.prototype.toString.call(y)==="[object Object]"?"url(#".concat(d,"-gradient-").concat(t.value,")"):"",w=c2(m,g,y,f,p,v),C=w.pathString,S=w.pathStyle;m+=g;var L={key:_,d:C,stroke:b,"stroke-linecap":h,"stroke-width":f,opacity:g===0?0:1,"fill-opacity":"0",class:"".concat(d,"-circle-path"),style:S};return I("path",O({ref:s(_)},L),null)})};return function(){var c=e.prefixCls,d=e.strokeWidth,f=e.trailWidth,h=e.gapDegree,p=e.gapPosition,v=e.trailColor,m=e.strokeLinecap;e.strokeColor;var g=Nt(e,fhe),_=c2(0,100,v,d,h,p),y=_.pathString,b=_.pathStyle;delete g.percent;var w=i.value.find(function(S){return Object.prototype.toString.call(S)==="[object Object]"}),C={d:y,stroke:v,"stroke-linecap":m,"stroke-width":f||d,"fill-opacity":"0",class:"".concat(c,"-circle-trail"),style:b};return I("svg",O({class:"".concat(c,"-circle"),viewBox:"0 0 100 100"},g),[w&&I("defs",null,[I("linearGradient",{id:"".concat(c,"-gradient-").concat(t.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(w).sort(function(S,L){return l2(S)-l2(L)}).map(function(S,L){return I("stop",{key:L,offset:S,"stop-color":w[S]},null)})])]),I("path",C,null),u().reverse()])}}});function phe(n){var e=n.percent,t=n.success,r=n.successPercent,i=Mc(Ty({success:t,successPercent:r}));return[i,Mc(Mc(e)-i)]}function vhe(n){var e=n.success,t=e===void 0?{}:e,r=n.strokeColor,i=t.strokeColor;return[i||Af.green,r||null]}const ghe=be({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:pC(),setup:function(e,t){var r=t.slots,i=V(function(){if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),o=V(function(){var f=e.width||120;return{width:typeof f=="number"?"".concat(f,"px"):f,height:typeof f=="number"?"".concat(f,"px"):f,fontSize:"".concat(f*.15+6,"px")}}),a=V(function(){return e.strokeWidth||6}),s=V(function(){return e.gapPosition||e.type==="dashboard"&&"bottom"||"top"}),l=V(function(){return phe(e)}),u=V(function(){return Object.prototype.toString.call(e.strokeColor)==="[object Object]"}),c=V(function(){return vhe({success:e.success,strokeColor:e.strokeColor})}),d=V(function(){var f;return f={},U(f,"".concat(e.prefixCls,"-inner"),!0),U(f,"".concat(e.prefixCls,"-circle-gradient"),u.value),f});return function(){var f;return I("div",{class:d.value,style:o.value},[I(hhe,{percent:l.value,strokeWidth:a.value,trailWidth:a.value,strokeColor:c.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:i.value,gapPosition:s.value},null),(f=r.default)===null||f===void 0?void 0:f.call(r)])}}});var mhe=function(){return O(O({},pC()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const _he=be({compatConfig:{MODE:3},name:"Steps",props:mhe(),setup:function(e,t){var r=t.slots,i=V(function(){return Math.round(e.steps*((e.percent||0)/100))}),o=V(function(){return e.size==="small"?2:14}),a=V(function(){for(var s=e.steps,l=e.strokeWidth,u=l===void 0?8:l,c=e.strokeColor,d=e.trailColor,f=e.prefixCls,h=[],p=0;p=100?"success":d||"normal"}),c=function(){var f=e.showInfo,h=e.format,p=e.type,v=e.percent,m=e.title,g=Ty(e);if(!f)return null;var _,y=h||(r==null?void 0:r.format)||function(w){return"".concat(w,"%")},b=p==="line";return h||r!=null&&r.format||u.value!=="exception"&&u.value!=="success"?_=y(Mc(v),Mc(g)):u.value==="exception"?_=I(b?Tg:xg,null,null):u.value==="success"&&(_=I(b?_x:oH,null,null)),I("span",{class:"".concat(o.value,"-text"),title:m===void 0&&typeof _=="string"?_:void 0},[_])};return function(){var d=e.type,f=e.steps,h=e.strokeColor,p=e.title,v=c(),m;d==="line"?m=f?I(_he,O(O({},e),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:o.value,steps:f}),{default:function(){return[v]}}):I(lhe,O(O({},e),{},{prefixCls:o.value}),{default:function(){return[v]}}):(d==="circle"||d==="dashboard")&&(m=I(ghe,O(O({},e),{},{prefixCls:o.value}),{default:function(){return[v]}}));var g=O(O({},s.value),{},U({},"".concat(o.value,"-status-").concat(u.value),!0));return I("div",{class:g,title:p},[m])}}}),bhe=Lu(yhe);var A8=Symbol("TableContextProps"),Che=function(e){qt(A8,e)},ps=function(){return yt(A8,{})},whe="RC_TABLE_KEY";function D8(n){return n==null?[]:Array.isArray(n)?n:[n]}function R8(n,e){if(!e&&typeof e!="number")return n;for(var t=D8(e),r=n,i=0;i=t}function Rhe(n){return n&&at(n)==="object"&&!Array.isArray(n)&&!Ui(n)}const gC=be({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(e,t){var r=t.slots,i=M8(),o=xhe(),a=o.onHover,s=o.startRow,l=o.endRow,u=V(function(){var m,g,_,y;return(m=(g=e.colSpan)!==null&&g!==void 0?g:(_=e.additionalProps)===null||_===void 0?void 0:_.colSpan)!==null&&m!==void 0?m:(y=e.additionalProps)===null||y===void 0?void 0:y.colspan}),c=V(function(){var m,g,_,y;return(m=(g=e.rowSpan)!==null&&g!==void 0?g:(_=e.additionalProps)===null||_===void 0?void 0:_.rowSpan)!==null&&m!==void 0?m:(y=e.additionalProps)===null||y===void 0?void 0:y.rowspan}),d=Wo(function(){var m=e.index;return Dhe(m,c.value||1,s.value,l.value)}),f=Nhe(),h=function(g,_){var y,b=e.record,w=e.index,C=e.additionalProps;b&&a(w,w+_-1),C==null||(y=C.onMouseenter)===null||y===void 0||y.call(C,g)},p=function(g){var _,y=e.record,b=e.additionalProps;y&&a(-1,-1),b==null||(_=b.onMouseleave)===null||_===void 0||_.call(b,g)},v=function m(g){var _=To(g)[0];return Ui(_)?_.type===cl?_.children:Array.isArray(_.children)?m(_.children):void 0:_};return function(){var m,g,_,y,b,w,C=e.prefixCls,S=e.record,L=e.index,E=e.renderIndex,T=e.dataIndex,P=e.customRender,A=e.component,D=A===void 0?"td":A,M=e.fixLeft,H=e.fixRight,k=e.firstFixLeft,B=e.lastFixLeft,F=e.firstFixRight,W=e.lastFixRight,$=e.appendNode,j=$===void 0?(m=r.appendNode)===null||m===void 0?void 0:m.call(r):$,X=e.additionalProps,Z=X===void 0?{}:X,z=e.ellipsis,Y=e.align,ee=e.rowType,K=e.isSticky,oe=e.column,ie=oe===void 0?{}:oe,ue=e.cellType,Ce="".concat(C,"-cell"),me,N,R=(g=r.default)===null||g===void 0?void 0:g.call(r);if(OE(R)||ue==="header")N=R;else{var G,te=R8(S,T);if(N=te,P){var re=P({text:te,value:te,record:S,index:L,renderIndex:E,column:ie.__originColumn__});Rhe(re)?(N=re.children,me=re.props):N=re}if(!(Bf in ie)&&ue==="body"&&i.value.bodyCell&&!((G=ie.slots)!==null&&G!==void 0&&G.customRender)){var pe=I5(i.value,"bodyCell",{text:te,value:te,record:S,index:L,column:ie.__originColumn__},function(){var Ee=N===void 0?te:N;return[at(Ee)==="object"&&ni(Ee)||at(Ee)!=="object"?Ee:null]});N=sr(pe)}e.transformCellText&&(N=e.transformCellText({text:N,record:S,index:L,column:ie.__originColumn__}))}at(N)==="object"&&!Array.isArray(N)&&!Ui(N)&&(N=null),z&&(B||F)&&(N=I("span",{class:"".concat(Ce,"-content")},[N])),Array.isArray(N)&&N.length===1&&(N=N[0]);var Se=me||{},fe=Se.colSpan,de=Se.rowSpan,le=Se.style,ve=Se.class,Ae=Nt(Se,Ahe),Ie=(_=fe!==void 0?fe:u.value)!==null&&_!==void 0?_:1,se=(y=de!==void 0?de:c.value)!==null&&y!==void 0?y:1;if(Ie===0||se===0)return null;var ge={},_e=typeof M=="number"&&f.value,ce=typeof H=="number"&&f.value;_e&&(ge.position="sticky",ge.left="".concat(M,"px")),ce&&(ge.position="sticky",ge.right="".concat(H,"px"));var Pe={};Y&&(Pe.textAlign=Y);var qe,De=z===!0?{showTitle:!0}:z;De&&(De.showTitle||ee==="header")&&(typeof N=="string"||typeof N=="number"?qe=N.toString():Ui(N)&&(qe=v([N])));var ye=O(O(O({title:qe},Ae),Z),{},{colSpan:Ie!==1?Ie:null,rowSpan:se!==1?se:null,class:Re(Ce,(b={},U(b,"".concat(Ce,"-fix-left"),_e&&f.value),U(b,"".concat(Ce,"-fix-left-first"),k&&f.value),U(b,"".concat(Ce,"-fix-left-last"),B&&f.value),U(b,"".concat(Ce,"-fix-right"),ce&&f.value),U(b,"".concat(Ce,"-fix-right-first"),F&&f.value),U(b,"".concat(Ce,"-fix-right-last"),W&&f.value),U(b,"".concat(Ce,"-ellipsis"),z),U(b,"".concat(Ce,"-with-append"),j),U(b,"".concat(Ce,"-fix-sticky"),(_e||ce)&&K&&f.value),U(b,"".concat(Ce,"-row-hover"),!me&&d.value),b),Z.class,ve),onMouseenter:function(xe){h(xe,se)},onMouseleave:p,style:O(O(O(O({},lx(Z.style)),Pe),ge),le)});return I(D,ye,{default:function(){return[j,N,(w=r.dragHandle)===null||w===void 0?void 0:w.call(r)]}})}}});function MO(n,e,t,r,i){var o=t[n]||{},a=t[e]||{},s,l;o.fixed==="left"?s=r.left[n]:a.fixed==="right"&&(l=r.right[e]);var u=!1,c=!1,d=!1,f=!1,h=t[e+1],p=t[n-1];if(i==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";f=!v}else if(l!==void 0){var m=h&&h.fixed==="right";d=!m}}else if(s!==void 0){var g=h&&h.fixed==="left";u=!g}else if(l!==void 0){var _=p&&p.fixed==="right";c=!_}return{fixLeft:s,fixRight:l,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var d2={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},f2=50;const Phe=be({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:f2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(e){var t=0,r={remove:function(){}},i={remove:function(){}},o=function(){r.remove(),i.remove()};Ia(function(){o()}),Ft(function(){Kn(!isNaN(e.width),"Table","width must be a number when use resizable")});var a=Ihe(),s=a.onResizeColumn,l=V(function(){return typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:f2}),u=V(function(){return typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0}),c=Rr(),d=0,f=J(!1),h,p=function(C){var S=0;C.touches?C.touches.length?S=C.touches[0].pageX:S=C.changedTouches[0].pageX:S=C.pageX;var L=t-S,E=Math.max(d-L,l.value);E=Math.min(E,u.value),Mt.cancel(h),h=Mt(function(){s(E,e.column.__originColumn__)})},v=function(C){p(C)},m=function(C){f.value=!1,p(C),o()},g=function(C,S){f.value=!0,o(),d=c.vnode.el.parentNode.getBoundingClientRect().width,!(C instanceof MouseEvent&&C.which!==1)&&(C.stopPropagation&&C.stopPropagation(),t=C.touches?C.touches[0].pageX:C.pageX,r=Co(document.documentElement,S.move,v),i=Co(document.documentElement,S.stop,m))},_=function(C){C.stopPropagation(),C.preventDefault(),g(C,d2.mouse)},y=function(C){C.stopPropagation(),C.preventDefault(),g(C,d2.touch)},b=function(C){C.stopPropagation(),C.preventDefault()};return function(){var w=e.prefixCls,C=U({},Pi?"onTouchstartPassive":"onTouchstart",function(S){return y(S)});return I("div",O(O({class:"".concat(w,"-resize-handle ").concat(f.value?"dragging":""),onMousedown:_},C),{},{onClick:b}),[I("div",{class:"".concat(w,"-resize-handle-line")},null)])}}}),Mhe=be({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(e){var t=ps();return function(){var r=t.prefixCls,i=t.direction,o=e.cells,a=e.stickyOffsets,s=e.flattenColumns,l=e.rowComponent,u=e.cellComponent,c=e.customHeaderRow,d=e.index,f;c&&(f=c(o.map(function(p){return p.column}),d));var h=vC(o.map(function(p){return p.column}));return I(l,f,{default:function(){return[o.map(function(v,m){var g=v.column,_=MO(v.colStart,v.colEnd,s,a,i),y;g&&g.customHeaderCell&&(y=v.column.customHeaderCell(g));var b=g;return I(gC,O(O(O({},v),{},{cellType:"header",ellipsis:g.ellipsis,align:g.align,component:u,prefixCls:r,key:h[m]},_),{},{additionalProps:y,rowType:"header",column:g}),{default:function(){return g.title},dragHandle:function(){return b.resizable?I(Phe,{prefixCls:r,width:b.width,minWidth:b.minWidth,maxWidth:b.maxWidth,column:b},null):null}})})]}})}}});function khe(n){var e=[];function t(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;e[l]=e[l]||[];var u=s,c=a.filter(Boolean).map(function(d){var f={key:d.key,class:Re(d.className,d.class),column:d,colStart:u},h=1,p=d.children;return p&&p.length>0&&(h=t(p,u,l+1).reduce(function(v,m){return v+m},0),f.hasSubColumns=!0),"colSpan"in d&&(h=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=h,f.colEnd=f.colStart+h-1,e[l].push(f),u+=h,h});return c}t(n,0);for(var r=e.length,i=function(s){e[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},o=0;o1?w-1:0),S=1;S0?[].concat(Ge(e),Ge(AE(o).map(function(a){return O({fixed:i},a)}))):[].concat(Ge(e),[O(O({},t),{},{fixed:i})])},[])}function Ghe(n){return n.map(function(e){var t=e.fixed,r=Nt(e,Khe),i=t;return t==="left"?i="right":t==="right"&&(i="left"),O({fixed:i},r)})}function qhe(n,e){var t=n.prefixCls,r=n.columns,i=n.expandable,o=n.expandedKeys,a=n.getRowKey,s=n.onTriggerExpand,l=n.expandIcon,u=n.rowExpandable,c=n.expandIconColumnIndex,d=n.direction,f=n.expandRowByClick,h=n.expandColumnWidth,p=n.expandFixed,v=V(function(){if(i.value){var _,y=r.value.slice();if(!y.includes(Hl)){var b=c.value||0;b>=0&&y.splice(b,0,Hl)}var w=y.indexOf(Hl);y=y.filter(function(M,H){return M!==Hl||H===w});var C=r.value[w],S;(p.value==="left"||p.value)&&!c.value?S="left":(p.value==="right"||p.value)&&c.value===r.value.length?S="right":S=C?C.fixed:null;var L=o.value,E=u.value,T=l.value,P=t.value,A=f.value,D=(_={},U(_,Bf,{class:"".concat(t.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),U(_,"title",""),U(_,"fixed",S),U(_,"class","".concat(t.value,"-row-expand-icon-cell")),U(_,"width",h.value),U(_,"customRender",function(H){var k=H.record,B=H.index,F=a.value(k,B),W=L.has(F),$=E?E(k):!0,j=T({prefixCls:P,expanded:W,expandable:$,record:k,onExpand:s});return A?I("span",{onClick:function(Z){return Z.stopPropagation()}},[j]):j}),_);return y.map(function(M){return M===Hl?D:M})}return r.value.filter(function(M){return M!==Hl})}),m=V(function(){var _=v.value;return e.value&&(_=e.value(_)),_.length||(_=[{customRender:function(){return null}}]),_}),g=V(function(){return d.value==="rtl"?Ghe(AE(m.value)):AE(m.value)});return[m,g]}function j8(n){var e=Yt(n),t,r=Yt([]);function i(o){r.value.push(o),Mt.cancel(t),t=Mt(function(){var a=r.value;r.value=[],a.forEach(function(s){e.value=s(e.value)})})}return Zt(function(){Mt.cancel(t)}),[e,i]}function Yhe(n){var e=J(n||null),t=J();function r(){clearTimeout(t.value)}function i(a){e.value=a,r(),t.value=setTimeout(function(){e.value=null,t.value=void 0},100)}function o(){return e.value}return Zt(function(){r()}),[i,o]}function Xhe(n,e,t){var r=V(function(){for(var i=[],o=[],a=0,s=0,l=n.value,u=e.value,c=t.value,d=0;d=0;s-=1){var l=e[s],u=t&&t[s],c=u&&u[Bf];if(l||c||a){var d=c||{};d.columnType;var f=Nt(d,Zhe);i.unshift(I("col",O({key:s,style:{width:typeof l=="number"?"".concat(l,"px"):l}},f),null)),a=!0}}return I("colgroup",null,[i])}function DE(n,e){var t,r=e.slots;return I("div",null,[(t=r.default)===null||t===void 0?void 0:t.call(r)])}DE.displayName="Panel";var Qhe=0,Jhe=be({name:"Summary",props:["fixed"],setup:function(e,t){var r=t.slots,i=ps(),o="table-summary-uni-key-".concat(++Qhe),a=V(function(){return e.fixed===""||e.fixed});return Ft(function(){i.summaryCollect(o,a.value)}),Zt(function(){i.summaryCollect(o,!1)}),function(){var s;return(s=r.default)===null||s===void 0?void 0:s.call(r)}}});const epe=Jhe,tpe=be({compatConfig:{MODE:3},name:"FooterRow",setup:function(e,t){var r=t.slots;return function(){var i;return I("tr",null,[(i=r.default)===null||i===void 0?void 0:i.call(r)])}}});var K8=Symbol("SummaryContextProps"),npe=function(e){qt(K8,e)},rpe=function(){return yt(K8,{})};const ipe=be({name:"SummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(e,t){var r=t.attrs,i=t.slots,o=ps(),a=rpe();return function(){var s=e.index,l=e.colSpan,u=l===void 0?1:l,c=e.rowSpan,d=e.align,f=o.prefixCls,h=o.direction,p=a.scrollColumnIndex,v=a.stickyOffsets,m=a.flattenColumns,g=s+u-1,_=g+1===p?u+1:u,y=MO(s,s+_-1,m,v,h);return I(gC,O({class:r.class,index:s,component:"td",prefixCls:f,record:null,dataIndex:null,align:d,colSpan:_,rowSpan:c,customRender:function(){var w;return(w=i.default)===null||w===void 0?void 0:w.call(i)}},y),null)}}}),km=be({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(e,t){var r=t.slots,i=ps();return npe(Rn({stickyOffsets:vn(e,"stickyOffsets"),flattenColumns:vn(e,"flattenColumns"),scrollColumnIndex:V(function(){var o=e.flattenColumns.length-1,a=e.flattenColumns[o];return a!=null&&a.scrollbar?o:null})})),function(){var o,a=i.prefixCls;return I("tfoot",{class:"".concat(a,"-summary")},[(o=r.default)===null||o===void 0?void 0:o.call(r)])}}});var ope=epe;function ape(n){var e,t=n.prefixCls,r=n.record,i=n.onExpand,o=n.expanded,a=n.expandable,s="".concat(t,"-row-expand-icon");if(!a)return I("span",{class:[s,"".concat(t,"-row-spaced")]},null);var l=function(c){i(r,c),c.stopPropagation()};return I("span",{class:(e={},U(e,s,!0),U(e,"".concat(t,"-row-expanded"),o),U(e,"".concat(t,"-row-collapsed"),!o),e),onClick:l},null)}function spe(n,e,t){var r=[];function i(o){(o||[]).forEach(function(a,s){r.push(e(a,s)),i(a[t])})}return i(n),r}const lpe=be({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(e,t){var r=t.emit,i=t.expose,o=ps(),a=J(0),s=J(0),l=J(0);Ft(function(){a.value=e.scrollBodySizeInfo.scrollWidth||0,s.value=e.scrollBodySizeInfo.clientWidth||0,l.value=a.value&&s.value*(s.value/a.value)},{flush:"post"});var u=J(),c=j8({scrollLeft:0,isHiddenScrollBar:!0}),d=Ye(c,2),f=d[0],h=d[1],p=J({delta:0,x:0}),v=J(!1),m=function(){v.value=!1},g=function(P){p.value={delta:P.pageX-f.value.scrollLeft,x:0},v.value=!0,P.preventDefault()},_=function(P){var A,D=P||((A=window)===null||A===void 0?void 0:A.event),M=D.buttons;if(!v.value||M===0){v.value&&(v.value=!1);return}var H=p.value.x+P.pageX-p.value.x-p.value.delta;H<=0&&(H=0),H+l.value>=s.value&&(H=s.value-l.value),r("scroll",{scrollLeft:H/s.value*(a.value+2)}),p.value.x=P.pageX},y=function(){if(e.scrollBodyRef.value){var P=Gk(e.scrollBodyRef.value).top,A=P+e.scrollBodyRef.value.offsetHeight,D=e.container===window?document.documentElement.scrollTop+window.innerHeight:Gk(e.container).top+e.container.clientHeight;A-Uv()<=D||P>=D-e.offsetScroll?h(function(M){return O(O({},M),{},{isHiddenScrollBar:!0})}):h(function(M){return O(O({},M),{},{isHiddenScrollBar:!1})})}},b=function(P){h(function(A){return O(O({},A),{},{scrollLeft:P/a.value*s.value||0})})};i({setScrollLeft:b});var w=null,C=null,S=null,L=null;Wt(function(){w=Co(document.body,"mouseup",m,!1),C=Co(document.body,"mousemove",_,!1),S=Co(window,"resize",y,!1)}),XT(function(){en(function(){y()})}),Wt(function(){setTimeout(function(){Ve([l,v],function(){y()},{immediate:!0,flush:"post"})})}),Ve(function(){return e.container},function(){var T;(T=L)===null||T===void 0||T.remove(),L=Co(e.container,"scroll",y,!1)},{immediate:!0,flush:"post"}),Zt(function(){var T,P,A,D;(T=w)===null||T===void 0||T.remove(),(P=C)===null||P===void 0||P.remove(),(A=L)===null||A===void 0||A.remove(),(D=S)===null||D===void 0||D.remove()}),Ve(function(){return O({},f.value)},function(T,P){T.isHiddenScrollBar!==(P==null?void 0:P.isHiddenScrollBar)&&!T.isHiddenScrollBar&&h(function(A){var D=e.scrollBodyRef.value;return D?O(O({},A),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):A})},{immediate:!0});var E=Uv();return function(){if(a.value<=s.value||!l.value||f.value.isHiddenScrollBar)return null;var T=o.prefixCls;return I("div",{style:{height:"".concat(E,"px"),width:"".concat(s.value,"px"),bottom:"".concat(e.offsetScroll,"px")},class:"".concat(T,"-sticky-scroll")},[I("div",{onMousedown:g,ref:u,class:Re("".concat(T,"-sticky-scroll-bar"),U({},"".concat(T,"-sticky-scroll-bar-active"),v)),style:{width:"".concat(l.value,"px"),transform:"translate3d(".concat(f.value.scrollLeft,"px, 0, 0)")}},null)])}}});var p2=vd()?window:null;function upe(n,e){return V(function(){var t=at(n.value)==="object"?n.value:{},r=t.offsetHeader,i=r===void 0?0:r,o=t.offsetSummary,a=o===void 0?0:o,s=t.offsetScroll,l=s===void 0?0:s,u=t.getContainer,c=u===void 0?function(){return p2}:u,d=c()||p2,f=!!n.value;return{isSticky:f,stickyClassName:f?"".concat(e.value,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:d}})}function cpe(n,e){return V(function(){for(var t=[],r=n.value,i=e.value,o=0;o1?e-1:0),r=1;r0)):(k(Qe>0),$(Qe0?i.value:n.value}),h=Math.ceil((i.value||n.value)/f.pageSize);return f.current>h&&(f.current=h||1),f}),c=function(h,p){r.value!==!1&&l({current:h??1,pageSize:p||u.value.pageSize})},d=function(h,p){if(r.value){var v,m;(v=(m=r.value).onChange)===null||v===void 0||v.call(m,h,p)}c(h,p),t(h,p||u.value.pageSize)};return[V(function(){return r.value===!1?{}:O(O({},u.value),{},{onChange:d})}),c]}function _pe(n,e,t){var r=Yt({});Ve([n,e,t],function(){var o=new Map,a=t.value,s=e.value;function l(u){u.forEach(function(c,d){var f=a(c,d);o.set(f,c),c&&at(c)==="object"&&s in c&&l(c[s]||[])})}l(n.value),r.value={kvMap:o}},{deep:!0,immediate:!0});function i(o){return r.value.kvMap.get(o)}return[i]}var Ps={},ME="SELECT_ALL",kE="SELECT_INVERT",FE="SELECT_NONE",ype=[];function G8(n,e){var t=[];return(n||[]).forEach(function(r){t.push(r),r&&at(r)==="object"&&e in r&&(t=[].concat(Ge(t),Ge(G8(r[e],e))))}),t}function bpe(n,e){var t=V(function(){var M=n.value||{},H=M.checkStrictly,k=H===void 0?!0:H;return O(O({},M),{},{checkStrictly:k})}),r=th(t.value.selectedRowKeys||t.value.defaultSelectedRowKeys||ype,{value:V(function(){return t.value.selectedRowKeys})}),i=Ye(r,2),o=i[0],a=i[1],s=Yt(new Map),l=function(H){if(t.value.preserveSelectedRowKeys){var k=new Map;H.forEach(function(B){var F=e.getRecordByKey(B);!F&&s.value.has(B)&&(F=s.value.get(B)),k.set(B,F)}),s.value=k}};Ft(function(){l(o.value)});var u=V(function(){return t.value.checkStrictly?null:_O(e.data.value,{externalGetKey:e.getRowKey.value,childrenPropName:e.childrenColumnName.value}).keyEntities}),c=V(function(){return G8(e.pageData.value,e.childrenColumnName.value)}),d=V(function(){var M=new Map,H=e.getRowKey.value,k=t.value.getCheckboxProps;return c.value.forEach(function(B,F){var W=H(B,F),$=(k?k(B):null)||{};M.set(W,$)}),M}),f=JH(u),h=f.maxLevel,p=f.levelEntities,v=function(H){var k;return!!((k=d.value.get(e.getRowKey.value(H)))!==null&&k!==void 0&&k.disabled)},m=V(function(){if(t.value.checkStrictly)return[o.value||[],[]];var M=Ff(o.value,!0,u.value,h.value,p.value,v),H=M.checkedKeys,k=M.halfCheckedKeys;return[H||[],k]}),g=V(function(){return m.value[0]}),_=V(function(){return m.value[1]}),y=V(function(){var M=t.value.type==="radio"?g.value.slice(0,1):g.value;return new Set(M)}),b=V(function(){return t.value.type==="radio"?new Set:new Set(_.value)}),w=er(null),C=Ye(w,2),S=C[0],L=C[1],E=function(H){var k,B;l(H);var F=t.value,W=F.preserveSelectedRowKeys,$=F.onChange,j=e.getRecordByKey;W?(k=H,B=H.map(function(X){return s.value.get(X)})):(k=[],B=[],H.forEach(function(X){var Z=j(X);Z!==void 0&&(k.push(X),B.push(Z))})),a(k),$==null||$(k,B)},T=function(H,k,B,F){var W=t.value.onSelect,$=e||{},j=$.getRecordByKey;if(W){var X=B.map(function(Z){return j(Z)});W(j(H),k,X,F)}E(B)},P=V(function(){var M=t.value,H=M.onSelectInvert,k=M.onSelectNone,B=M.selections,F=M.hideSelectAll,W=e.data,$=e.pageData,j=e.getRowKey,X=e.locale;if(!B||F)return null;var Z=B===!0?[ME,kE,FE]:B;return Z.map(function(z){return z===ME?{key:"all",text:X.value.selectionAll,onSelect:function(){E(W.value.map(function(ee,K){return j.value(ee,K)}).filter(function(ee){var K=d.value.get(ee);return!(K!=null&&K.disabled)||y.value.has(ee)}))}}:z===kE?{key:"invert",text:X.value.selectInvert,onSelect:function(){var ee=new Set(y.value);$.value.forEach(function(oe,ie){var ue=j.value(oe,ie),Ce=d.value.get(ue);Ce!=null&&Ce.disabled||(ee.has(ue)?ee.delete(ue):ee.add(ue))});var K=Array.from(ee);H&&(Kn(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),H(K)),E(K)}}:z===FE?{key:"none",text:X.value.selectNone,onSelect:function(){k==null||k(),E(Array.from(y.value).filter(function(ee){var K=d.value.get(ee);return K==null?void 0:K.disabled}))}}:z})}),A=V(function(){return c.value.length}),D=function(H){var k,B=t.value,F=B.onSelectAll,W=B.onSelectMultiple,$=B.columnWidth,j=B.type,X=B.fixed,Z=B.renderCell,z=B.hideSelectAll,Y=B.checkStrictly,ee=e.prefixCls,K=e.getRecordByKey,oe=e.getRowKey,ie=e.expandType,ue=e.getPopupContainer;if(!n.value)return H.filter(function(xe){return xe!==Ps});var Ce=H.slice(),me=new Set(y.value),N=c.value.map(oe.value).filter(function(xe){return!d.value.get(xe).disabled}),R=N.every(function(xe){return me.has(xe)}),G=N.some(function(xe){return me.has(xe)}),te=function(){var Fe=[];R?N.forEach(function(je){me.delete(je),Fe.push(je)}):N.forEach(function(je){me.has(je)||(me.add(je),Fe.push(je))});var He=Array.from(me);F==null||F(!R,He.map(function(je){return K(je)}),Fe.map(function(je){return K(je)})),E(He)},re;if(j!=="radio"){var pe;if(P.value){var Se=I(Ci,{getPopupContainer:ue.value},{default:function(){return[P.value.map(function(Fe,He){var je=Fe.key,we=Fe.text,Te=Fe.onSelect;return I(Ci.Item,{key:je||He,onClick:function(){Te==null||Te(N)}},{default:function(){return[we]}})})]}});pe=I("div",{class:"".concat(ee.value,"-selection-extra")},[I(Qs,{overlay:Se,getPopupContainer:ue.value},{default:function(){return[I("span",null,[I(rC,null,null)])]}})])}var fe=c.value.map(function(xe,Fe){var He=oe.value(xe,Fe),je=d.value.get(He)||{};return O({checked:me.has(He)},je)}).filter(function(xe){var Fe=xe.disabled;return Fe}),de=!!fe.length&&fe.length===A.value,le=de&&fe.every(function(xe){var Fe=xe.checked;return Fe}),ve=de&&fe.some(function(xe){var Fe=xe.checked;return Fe});re=!z&&I("div",{class:"".concat(ee.value,"-selection")},[I(Za,{checked:de?le:!!A.value&&R,indeterminate:de?!le&&ve:!R&&G,onChange:te,disabled:A.value===0||de,skipGroup:!0},null),pe])}var Ae;j==="radio"?Ae=function(Fe){var He=Fe.record,je=Fe.index,we=oe.value(He,je),Te=me.has(we);return{node:I(Ri,O(O({},d.value.get(we)),{},{checked:Te,onClick:function(rt){return rt.stopPropagation()},onChange:function(rt){me.has(we)||T(we,!0,[we],rt.nativeEvent)}}),null),checked:Te}}:Ae=function(Fe){var He=Fe.record,je=Fe.index,we=oe.value(He,je),Te=me.has(we),ze=b.value.has(we),rt=d.value.get(we),Xe;if(ie.value==="nest")Xe=ze,Kn(typeof(rt==null?void 0:rt.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");else{var Qe;Xe=(Qe=rt==null?void 0:rt.indeterminate)!==null&&Qe!==void 0?Qe:ze}return{node:I(Za,O(O({},rt),{},{indeterminate:Xe,checked:Te,skipGroup:!0,onClick:function(pt){return pt.stopPropagation()},onChange:function(pt){var vt=pt.nativeEvent,xt=vt.shiftKey,wt=-1,_n=-1;if(xt&&Y){var At=new Set([S.value,we]);N.some(function(ir,ra){if(At.has(ir))if(wt===-1)wt=ra;else return _n=ra,!0;return!1})}if(_n!==-1&&wt!==_n&&Y){var wn=N.slice(wt,_n+1),Vn=[];Te?wn.forEach(function(ir){me.has(ir)&&(Vn.push(ir),me.delete(ir))}):wn.forEach(function(ir){me.has(ir)||(Vn.push(ir),me.add(ir))});var fr=Array.from(me);W==null||W(!Te,fr.map(function(ir){return K(ir)}),Vn.map(function(ir){return K(ir)})),E(fr)}else{var Hn=g.value;if(Y){var Br=Te?Ds(Hn,we):Dl(Hn,we);T(we,!Te,Br,vt)}else{var yr=Ff([].concat(Ge(Hn),[we]),!0,u.value,h.value,p.value,v),Ln=yr.checkedKeys,Yn=yr.halfCheckedKeys,rr=Ln;if(Te){var na=new Set(Ln);na.delete(we),rr=Ff(Array.from(na),{checked:!1,halfCheckedKeys:Yn},u.value,h.value,p.value,v).checkedKeys}T(we,!Te,rr,vt)}}L(we)}}),null),checked:Te}};var Ie=function(Fe){var He=Fe.record,je=Fe.index,we=Ae({record:He,index:je}),Te=we.node,ze=we.checked;return Z?Z(ze,He,je,Te):Te};if(!Ce.includes(Ps))if(Ce.findIndex(function(xe){var Fe;return((Fe=xe[Bf])===null||Fe===void 0?void 0:Fe.columnType)==="EXPAND_COLUMN"})===0){var se=Ce,ge=Tx(se),_e=ge[0],ce=ge.slice(1);Ce=[_e,Ps].concat(Ge(ce))}else Ce=[Ps].concat(Ge(Ce));var Pe=Ce.indexOf(Ps);Ce=Ce.filter(function(xe,Fe){return xe!==Ps||Fe===Pe});var qe=Ce[Pe-1],De=Ce[Pe+1],ye=X;ye===void 0&&((De==null?void 0:De.fixed)!==void 0?ye=De.fixed:(qe==null?void 0:qe.fixed)!==void 0&&(ye=qe.fixed)),ye&&qe&&((k=qe[Bf])===null||k===void 0?void 0:k.columnType)==="EXPAND_COLUMN"&&qe.fixed===void 0&&(qe.fixed=ye);var Ee=U({fixed:ye,width:$,className:"".concat(ee.value,"-selection-column"),title:t.value.columnTitle||re,customRender:Ie},Bf,{class:"".concat(ee.value,"-selection-col")});return Ce.map(function(xe){return xe===Ps?Ee:xe})};return[D,y]}var Cpe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const wpe=Cpe;function m2(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],e=sr(n),t=[];return e.forEach(function(r){var i,o,a;if(r){for(var s=r.key,l=((i=r.props)===null||i===void 0?void 0:i.style)||{},u=((o=r.props)===null||o===void 0?void 0:o.class)||"",c=r.props||{},d=0,f=Object.entries(c);d0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=n.length,r=e.length;if(Math.abs(t-r)!==1)return{add:!1,key:null};function i(o,a){var s=new Map;o.forEach(function(u){s.set(u,!0)});var l=a.filter(function(u){return!s.has(u)});return l.length===1?l[0]:null}return t ").concat(e);return e}const jpe=be({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Wse,setup:function(e,t){var r=t.expose,i=t.attrs,o=J(),a=J(),s=YH(),l=s.expandedKeys,u=s.flattenNodes;r({scrollTo:function(_){o.value.scrollTo(_)},getIndentWidth:function(){return a.value.offsetWidth}});var c=Yt(u.value),d=Yt([]),f=J(null);function h(){c.value=u.value,d.value=[],f.value=null,e.onListChangeEnd()}var p=vO();Ve([function(){return l.value.slice()},u],function(g,_){var y=Ye(g,2),b=y[0],w=y[1],C=Ye(_,2),S=C[0],L=C[1],E=Vpe(S,b);if(E.key!==null){var T=e.virtual,P=e.height,A=e.itemHeight;if(E.add){var D=L.findIndex(function(W){var $=W.key;return $===E.key}),M=T2(E2(L,w,E.key),T,P,A),H=L.slice();H.splice(D+1,0,I2),c.value=H,d.value=M,f.value="show"}else{var k=w.findIndex(function(W){var $=W.key;return $===E.key}),B=T2(E2(w,L,E.key),T,P,A),F=w.slice();F.splice(k+1,0,I2),c.value=F,d.value=B,f.value="hide"}}else L!==w&&(c.value=w)}),Ve(function(){return p.value.dragging},function(g){g||h()});var v=V(function(){return e.motion===void 0?c.value:u.value}),m=function(){e.onActiveChange(null)};return function(){var g=O(O({},e),i),_=g.prefixCls;g.selectable,g.checkable;var y=g.disabled,b=g.motion,w=g.height,C=g.itemHeight,S=g.virtual,L=g.focusable,E=g.activeItem,T=g.focused,P=g.tabindex,A=g.onKeydown,D=g.onFocus,M=g.onBlur,H=g.onListChangeStart;g.onListChangeEnd;var k=Nt(g,Hpe);return I(kt,null,[T&&E&&I("span",{style:L2,"aria-live":"assertive"},[$pe(E)]),I("div",null,[I("input",{style:L2,disabled:L===!1||y,tabindex:L!==!1?P:null,onKeydown:A,onFocus:D,onBlur:M,value:"",onChange:Upe,"aria-label":"for screen reader"},null)]),I("div",{class:"".concat(_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[I("div",{class:"".concat(_,"-indent")},[I("div",{ref:a,class:"".concat(_,"-indent-unit")},null)])]),I(eH,O(O({},nr(k,["onActiveChange"])),{},{data:v.value,itemKey:x2,height:w,fullHeight:!1,virtual:S,itemHeight:C,prefixCls:"".concat(_,"-list"),ref:o,onVisibleChange:function(F,W){var $=new Set(F),j=W.filter(function(X){return!$.has(X)});j.some(function(X){return x2(X)===Jc})&&h()}}),{default:function(F){var W=F.pos,$=fn({},F.data),j=F.title,X=F.key,Z=F.isStart,z=F.isEnd,Y=Rg(X,W);return delete $.key,delete $.children,I(Wpe,O(O({},$),{},{eventKey:Y,title:j,active:!!E&&X===E.key,data:F.data,isStart:Z,isEnd:z,motion:b,motionNodes:X===Jc?d.value:null,motionType:f.value,onMotionStart:H,onMotionEnd:h,onMousemove:m}),null)}})])}}});function zpe(n){var e=n.dropPosition,t=n.dropLevelOffset,r=n.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(e){case-1:i.top=0,i.left="".concat(-t*r,"px");break;case 1:i.bottom=0,i.left="".concat(-t*r,"px");break;case 0:i.bottom=0,i.left="".concat(r);break}return I("div",{style:i},null)}var Kpe=10;const Gpe=be({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:Wn(XH(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:zpe,allowDrop:function(){return!0}}),setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=J(!1),s={},l=J(),u=Yt([]),c=Yt([]),d=Yt([]),f=Yt([]),h=Yt([]),p=Yt([]),v={},m=Rn({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),g=Yt([]);Ve([function(){return e.treeData},function(){return e.children}],function(){g.value=e.treeData!==void 0?Tt(e.treeData).slice():dE(Tt(e.children))},{immediate:!0,deep:!0});var _=Yt({}),y=J(!1),b=J(null),w=J(!1),C=V(function(){return dC(e.fieldNames)}),S=J(),L=null,E=null,T=null,P=V(function(){return{expandedKeysSet:A.value,selectedKeysSet:D.value,loadedKeysSet:M.value,loadingKeysSet:H.value,checkedKeysSet:k.value,halfCheckedKeysSet:B.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:_.value}}),A=V(function(){return new Set(p.value)}),D=V(function(){return new Set(u.value)}),M=V(function(){return new Set(f.value)}),H=V(function(){return new Set(h.value)}),k=V(function(){return new Set(c.value)}),B=V(function(){return new Set(d.value)});Ft(function(){if(g.value){var De=_O(g.value,{fieldNames:C.value});_.value=O(U({},Jc,X8),De.keyEntities)}});var F=!1;Ve([function(){return e.expandedKeys},function(){return e.autoExpandParent},_],function(De,ye){var Ee=Ye(De,2);Ee[0];var xe=Ee[1],Fe=Ye(ye,2);Fe[0];var He=Fe[1],je=p.value;if(e.expandedKeys!==void 0||F&&xe!==He)je=e.autoExpandParent||!F&&e.defaultExpandParent?cE(e.expandedKeys,_.value):e.expandedKeys;else if(!F&&e.defaultExpandAll){var we=O({},_.value);delete we[Jc],je=Object.keys(we).map(function(Te){return we[Te].key})}else!F&&e.defaultExpandedKeys&&(je=e.autoExpandParent||e.defaultExpandParent?cE(e.defaultExpandedKeys,_.value):e.defaultExpandedKeys);je&&(p.value=je),F=!0},{immediate:!0});var W=Yt([]);Ft(function(){W.value=Gse(g.value,p.value,C.value)}),Ft(function(){e.selectable&&(e.selectedKeys!==void 0?u.value=uk(e.selectedKeys,e):!F&&e.defaultSelectedKeys&&(u.value=uk(e.defaultSelectedKeys,e)))});var $=JH(_),j=$.maxLevel,X=$.levelEntities;Ft(function(){if(e.checkable){var De;if(e.checkedKeys!==void 0?De=cw(e.checkedKeys)||{}:!F&&e.defaultCheckedKeys?De=cw(e.defaultCheckedKeys)||{}:g.value&&(De=cw(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:d.value}),De){var ye=De,Ee=ye.checkedKeys,xe=Ee===void 0?[]:Ee,Fe=ye.halfCheckedKeys,He=Fe===void 0?[]:Fe;if(!e.checkStrictly){var je=Ff(xe,!0,_.value,j.value,X.value);xe=je.checkedKeys,He=je.halfCheckedKeys}c.value=xe,d.value=He}}}),Ft(function(){e.loadedKeys&&(f.value=e.loadedKeys)});var Z=function(){fn(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},z=function(ye){S.value.scrollTo(ye)};Ve(function(){return e.activeKey},function(){e.activeKey!==void 0&&(b.value=e.activeKey)},{immediate:!0}),Ve(b,function(De){en(function(){De!==null&&z({key:De})})},{immediate:!0,flush:"post"});var Y=function(ye){e.expandedKeys===void 0&&(p.value=ye)},ee=function(){m.draggingNodeKey!==null&&fn(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),L=null,T=null},K=function(ye,Ee){var xe=e.onDragend;m.dragOverNodeKey=null,ee(),xe==null||xe({event:ye,node:Ee.eventData}),E=null},oe=function De(ye){K(ye,null),window.removeEventListener("dragend",De)},ie=function(ye,Ee){var xe=e.onDragstart,Fe=Ee.eventKey,He=Ee.eventData;E=Ee,L={x:ye.clientX,y:ye.clientY};var je=Ds(p.value,Fe);m.draggingNodeKey=Fe,m.dragChildrenKeys=$se(Fe,_.value),l.value=S.value.getIndentWidth(),Y(je),window.addEventListener("dragend",oe),xe&&xe({event:ye,node:He})},ue=function(ye,Ee){var xe=e.onDragenter,Fe=e.onExpand,He=e.allowDrop,je=e.direction,we=Ee.pos,Te=Ee.eventKey;if(T!==Te&&(T=Te),!E){Z();return}var ze=lk(ye,E,Ee,l.value,L,He,W.value,_.value,A.value,je),rt=ze.dropPosition,Xe=ze.dropLevelOffset,Qe=ze.dropTargetKey,it=ze.dropContainerKey,pt=ze.dropTargetPos,vt=ze.dropAllowed,xt=ze.dragOverNodeKey;if(m.dragChildrenKeys.indexOf(Qe)!==-1||!vt){Z();return}if(s||(s={}),Object.keys(s).forEach(function(wt){clearTimeout(s[wt])}),E.eventKey!==Ee.eventKey&&(s[we]=window.setTimeout(function(){if(m.draggingNodeKey!==null){var wt=p.value.slice(),_n=_.value[Ee.eventKey];_n&&(_n.children||[]).length&&(wt=Dl(p.value,Ee.eventKey)),Y(wt),Fe&&Fe(wt,{node:Ee.eventData,expanded:!0,nativeEvent:ye})}},800)),E.eventKey===Qe&&Xe===0){Z();return}fn(m,{dragOverNodeKey:xt,dropPosition:rt,dropLevelOffset:Xe,dropTargetKey:Qe,dropContainerKey:it,dropTargetPos:pt,dropAllowed:vt}),xe&&xe({event:ye,node:Ee.eventData,expandedKeys:p.value})},Ce=function(ye,Ee){var xe=e.onDragover,Fe=e.allowDrop,He=e.direction;if(E){var je=lk(ye,E,Ee,l.value,L,Fe,W.value,_.value,A.value,He),we=je.dropPosition,Te=je.dropLevelOffset,ze=je.dropTargetKey,rt=je.dropContainerKey,Xe=je.dropAllowed,Qe=je.dropTargetPos,it=je.dragOverNodeKey;m.dragChildrenKeys.indexOf(ze)!==-1||!Xe||(E.eventKey===ze&&Te===0?m.dropPosition===null&&m.dropLevelOffset===null&&m.dropTargetKey===null&&m.dropContainerKey===null&&m.dropTargetPos===null&&m.dropAllowed===!1&&m.dragOverNodeKey===null||Z():we===m.dropPosition&&Te===m.dropLevelOffset&&ze===m.dropTargetKey&&rt===m.dropContainerKey&&Qe===m.dropTargetPos&&Xe===m.dropAllowed&&it===m.dragOverNodeKey||fn(m,{dropPosition:we,dropLevelOffset:Te,dropTargetKey:ze,dropContainerKey:rt,dropTargetPos:Qe,dropAllowed:Xe,dragOverNodeKey:it}),xe&&xe({event:ye,node:Ee.eventData}))}},me=function(ye,Ee){T===Ee.eventKey&&!ye.currentTarget.contains(ye.relatedTarget)&&(Z(),T=null);var xe=e.onDragleave;xe&&xe({event:ye,node:Ee.eventData})},N=function(ye,Ee){var xe,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,He=m.dragChildrenKeys,je=m.dropPosition,we=m.dropTargetKey,Te=m.dropTargetPos,ze=m.dropAllowed;if(ze){var rt=e.onDrop;if(m.dragOverNodeKey=null,ee(),we!==null){var Xe=O(O({},fE(we,Tt(P.value))),{},{active:((xe=_e.value)===null||xe===void 0?void 0:xe.key)===we,data:_.value[we].node});He.indexOf(we);var Qe=mO(Te),it={event:ye,node:hE(Xe),dragNode:E?E.eventData:null,dragNodesKeys:[E.eventKey].concat(He),dropToGap:je!==0,dropPosition:je+Number(Qe[Qe.length-1])};Fe||rt==null||rt(it),E=null}}},R=function(ye,Ee){var xe=e.onClick;xe&&xe(ye,Ee)},G=function(ye,Ee){var xe=e.onDblclick;xe&&xe(ye,Ee)},te=function(ye,Ee){var xe=u.value,Fe=e.onSelect,He=e.multiple,je=Ee.selected,we=Ee[C.value.key],Te=!je;Te?He?xe=Dl(xe,we):xe=[we]:xe=Ds(xe,we);var ze=_.value,rt=xe.map(function(Xe){var Qe=ze[Xe];return Qe?Qe.node:null}).filter(function(Xe){return Xe});e.selectedKeys===void 0&&(u.value=xe),Fe&&Fe(xe,{event:"select",selected:Te,node:Ee,selectedNodes:rt,nativeEvent:ye})},re=function(ye,Ee,xe){var Fe=e.checkStrictly,He=e.onCheck,je=Ee[C.value.key],we,Te={event:"check",node:Ee,checked:xe,nativeEvent:ye},ze=_.value;if(Fe){var rt=xe?Dl(c.value,je):Ds(c.value,je),Xe=Ds(d.value,je);we={checked:rt,halfChecked:Xe},Te.checkedNodes=rt.map(function(wt){return ze[wt]}).filter(function(wt){return wt}).map(function(wt){return wt.node}),e.checkedKeys===void 0&&(c.value=rt)}else{var Qe=Ff([].concat(Ge(c.value),[je]),!0,ze,j.value,X.value),it=Qe.checkedKeys,pt=Qe.halfCheckedKeys;if(!xe){var vt=new Set(it);vt.delete(je);var xt=Ff(Array.from(vt),{checked:!1,halfCheckedKeys:pt},ze,j.value,X.value);it=xt.checkedKeys,pt=xt.halfCheckedKeys}we=it,Te.checkedNodes=[],Te.checkedNodesPositions=[],Te.halfCheckedKeys=pt,it.forEach(function(wt){var _n=ze[wt];if(_n){var At=_n.node,wn=_n.pos;Te.checkedNodes.push(At),Te.checkedNodesPositions.push({node:At,pos:wn})}}),e.checkedKeys===void 0&&(c.value=it,d.value=pt)}He&&He(we,Te)},pe=function(ye){var Ee=ye[C.value.key],xe=new Promise(function(Fe,He){var je=e.loadData,we=e.onLoad;if(!je||M.value.has(Ee)||H.value.has(Ee))return null;var Te=je(ye);Te.then(function(){var ze=Dl(f.value,Ee),rt=Ds(h.value,Ee);we&&we(ze,{event:"load",node:ye}),e.loadedKeys===void 0&&(f.value=ze),h.value=rt,Fe()}).catch(function(ze){var rt=Ds(h.value,Ee);if(h.value=rt,v[Ee]=(v[Ee]||0)+1,v[Ee]>=Kpe){var Xe=Dl(f.value,Ee);e.loadedKeys===void 0&&(f.value=Xe),Fe()}He(ze)}),h.value=Dl(h.value,Ee)});return xe.catch(function(){}),xe},Se=function(ye,Ee){var xe=e.onMouseenter;xe&&xe({event:ye,node:Ee})},fe=function(ye,Ee){var xe=e.onMouseleave;xe&&xe({event:ye,node:Ee})},de=function(ye,Ee){var xe=e.onRightClick;xe&&(ye.preventDefault(),xe({event:ye,node:Ee}))},le=function(ye){var Ee=e.onFocus;y.value=!0,Ee&&Ee(ye)},ve=function(ye){var Ee=e.onBlur;y.value=!1,ge(null),Ee&&Ee(ye)},Ae=function(ye,Ee){var xe=p.value,Fe=e.onExpand,He=e.loadData,je=Ee.expanded,we=Ee[C.value.key];if(!w.value){xe.indexOf(we);var Te=!je;if(Te?xe=Dl(xe,we):xe=Ds(xe,we),Y(xe),Fe&&Fe(xe,{node:Ee,expanded:Te,nativeEvent:ye}),Te&&He){var ze=pe(Ee);ze&&ze.then(function(){}).catch(function(rt){var Xe=Ds(p.value,we);Y(Xe),Promise.reject(rt)})}}},Ie=function(){w.value=!0},se=function(){setTimeout(function(){w.value=!1})},ge=function(ye){var Ee=e.onActiveChange;b.value!==ye&&(e.activeKey!==void 0&&(b.value=ye),ye!==null&&z({key:ye}),Ee&&Ee(ye))},_e=V(function(){return b.value===null?null:W.value.find(function(De){var ye=De.key;return ye===b.value})||null}),ce=function(ye){var Ee=W.value.findIndex(function(He){var je=He.key;return je===b.value});Ee===-1&&ye<0&&(Ee=W.value.length),Ee=(Ee+ye+W.value.length)%W.value.length;var xe=W.value[Ee];if(xe){var Fe=xe.key;ge(Fe)}else ge(null)},Pe=V(function(){return hE(O(O({},fE(b.value,P.value)),{},{data:_e.value.data,active:!0}))}),qe=function(ye){var Ee=e.onKeydown,xe=e.checkable,Fe=e.selectable;switch(ye.which){case ct.UP:{ce(-1),ye.preventDefault();break}case ct.DOWN:{ce(1),ye.preventDefault();break}}var He=_e.value;if(He&&He.data){var je=He.data.isLeaf===!1||!!(He.data.children||[]).length,we=Pe.value;switch(ye.which){case ct.LEFT:{je&&A.value.has(b.value)?Ae({},we):He.parent&&ge(He.parent.key),ye.preventDefault();break}case ct.RIGHT:{je&&!A.value.has(b.value)?Ae({},we):He.children&&He.children.length&&ge(He.children[0].key),ye.preventDefault();break}case ct.ENTER:case ct.SPACE:{xe&&!we.disabled&&we.checkable!==!1&&!we.disableCheckbox?re({},we,!k.value.has(b.value)):!xe&&Fe&&!we.disabled&&we.selectable!==!1&&te({},we);break}}}Ee&&Ee(ye)};return o({onNodeExpand:Ae,scrollTo:z,onKeydown:qe,selectedKeys:V(function(){return u.value}),checkedKeys:V(function(){return c.value}),halfCheckedKeys:V(function(){return d.value}),loadedKeys:V(function(){return f.value}),loadingKeys:V(function(){return h.value}),expandedKeys:V(function(){return p.value})}),Ia(function(){window.removeEventListener("dragend",oe),a.value=!0}),kse({expandedKeys:p,selectedKeys:u,loadedKeys:f,loadingKeys:h,checkedKeys:c,halfCheckedKeys:d,expandedKeysSet:A,selectedKeysSet:D,loadedKeysSet:M,loadingKeysSet:H,checkedKeysSet:k,halfCheckedKeysSet:B,flattenNodes:W}),function(){var De,ye=m.draggingNodeKey,Ee=m.dropLevelOffset,xe=m.dropContainerKey,Fe=m.dropTargetKey,He=m.dropPosition,je=m.dragOverNodeKey,we=e.prefixCls,Te=e.showLine,ze=e.focusable,rt=e.tabindex,Xe=rt===void 0?0:rt,Qe=e.selectable,it=e.showIcon,pt=e.icon,vt=pt===void 0?i.icon:pt,xt=e.switcherIcon,wt=e.draggable,_n=e.checkable,At=e.checkStrictly,wn=e.disabled,Vn=e.motion,fr=e.loadData,Hn=e.filterTreeNode,Br=e.height,yr=e.itemHeight,Ln=e.virtual,Yn=e.dropIndicatorRender,rr=e.onContextmenu,na=e.onScroll,ir=e.direction,ra=r.class,Aa=r.style,Ad=Iu(O(O({},e),r),{aria:!0,data:!0}),so;return wt&&(at(wt)==="object"?so=wt:typeof wt=="function"?so={nodeDraggable:wt}:so={}),I(Mse,{value:{prefixCls:we,selectable:Qe,showIcon:it,icon:vt,switcherIcon:xt,draggable:so,draggingNodeKey:ye,checkable:_n,customCheckable:i.checkable,checkStrictly:At,disabled:wn,keyEntities:_.value,dropLevelOffset:Ee,dropContainerKey:xe,dropTargetKey:Fe,dropPosition:He,dragOverNodeKey:je,dragging:ye!==null,indent:l.value,direction:ir,dropIndicatorRender:Yn,loadData:fr,filterTreeNode:Hn,onNodeClick:R,onNodeDoubleClick:G,onNodeExpand:Ae,onNodeSelect:te,onNodeCheck:re,onNodeLoad:pe,onNodeMouseEnter:Se,onNodeMouseLeave:fe,onNodeContextMenu:de,onNodeDragStart:ie,onNodeDragEnter:ue,onNodeDragOver:Ce,onNodeDragLeave:me,onNodeDragEnd:K,onNodeDrop:N,slots:i}},{default:function(){return[I("div",{role:"tree",class:Re(we,ra,(De={},U(De,"".concat(we,"-show-line"),Te),U(De,"".concat(we,"-focused"),y.value),U(De,"".concat(we,"-active-focused"),b.value!==null),De))},[I(jpe,O({ref:S,prefixCls:we,style:Aa,disabled:wn,selectable:Qe,checkable:!!_n,motion:Vn,height:Br,itemHeight:yr,virtual:Ln,focusable:ze,focused:y.value,tabindex:Xe,activeItem:_e.value,onFocus:le,onBlur:ve,onKeydown:qe,onActiveChange:ge,onListChangeStart:Ie,onListChangeEnd:se,onContextmenu:rr,onScroll:na},Ad),null)])]}})}}});var qpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Ype=qpe;function O2(n){for(var e=1;e0})}function J8(n,e){return typeof e=="string"||typeof e=="number"?e==null?void 0:e.toString().toLowerCase().includes(n.trim().toLowerCase()):!1}function e7(n){var e=n.filters,t=n.prefixCls,r=n.filteredKeys,i=n.filterMultiple,o=n.searchValue,a=n.filterSearch;return e.map(function(s,l){var u=String(s.value);if(s.children)return I(Eve,{key:u||l,title:s.text,popupClassName:"".concat(t,"-dropdown-submenu")},{default:function(){return[e7({filters:s.children,prefixCls:t,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})]}});var c=i?Za:Ri,d=I(Lve,{key:s.value!==void 0?u:l},{default:function(){return[I(c,{checked:r.includes(u)},null),I("span",null,[s.text])]}});return o.trim()?typeof a=="function"?a(o,s)?d:void 0:J8(o,s.text)?d:void 0:d})}const Tve=be({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup:function(e,t){var r=t.slots,i=M8(),o=V(function(){var j;return(j=e.filterMode)!==null&&j!==void 0?j:"menu"}),a=V(function(){var j;return(j=e.filterSearch)!==null&&j!==void 0?j:!1}),s=V(function(){return e.column.filterDropdownVisible}),l=J(!1),u=V(function(){var j;return!!(e.filterState&&((j=e.filterState.filteredKeys)!==null&&j!==void 0&&j.length||e.filterState.forceFiltered))}),c=V(function(){var j;return _C((j=e.column)===null||j===void 0?void 0:j.filters)}),d=V(function(){var j=e.column,X=j.filterDropdown,Z=j.slots,z=Z===void 0?{}:Z,Y=j.customFilterDropdown;return X||z.filterDropdown&&i.value[z.filterDropdown]||Y&&i.value.customFilterDropdown}),f=V(function(){var j=e.column,X=j.filterIcon,Z=j.slots,z=Z===void 0?{}:Z;return X||z.filterIcon&&i.value[z.filterIcon]||i.value.customFilterIcon}),h=function(X){var Z,z;l.value=X,(Z=(z=e.column).onFilterDropdownVisibleChange)===null||Z===void 0||Z.call(z,X)},p=V(function(){return typeof s.value=="boolean"?s.value:l.value}),v=V(function(){var j;return(j=e.filterState)===null||j===void 0?void 0:j.filteredKeys}),m=Yt([]),g=function(X){var Z=X.selectedKeys;m.value=Z},_=function(X,Z){var z=Z.node,Y=Z.checked;e.filterMultiple?g({selectedKeys:X}):g({selectedKeys:Y&&z.key?[z.key]:[]})};Ve(v,function(){l.value&&g({selectedKeys:v.value||[]})},{immediate:!0});var y=Yt([]),b=J(),w=function(X){b.value=setTimeout(function(){y.value=X})},C=function(){clearTimeout(b.value)};Zt(function(){clearTimeout(b.value)});var S=J(""),L=function(X){var Z=X.target.value;S.value=Z};Ve(l,function(){l.value||(S.value="")});var E=function(X){var Z=e.column,z=e.columnKey,Y=e.filterState,ee=X&&X.length?X:null;if(ee===null&&(!Y||!Y.filteredKeys)||Qb(ee,Y==null?void 0:Y.filteredKeys))return null;e.triggerFilter({column:Z,key:z,filteredKeys:ee})},T=function(){h(!1),E(m.value)},P=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Z=X.confirm,z=X.closeDropdown;Z&&E([]),z&&h(!1),S.value="",m.value=[]},A=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Z=X.closeDropdown;Z&&h(!1),E(m.value)},D=function(X){X&&v.value!==void 0&&(m.value=v.value||[]),h(X),!X&&!d.value&&T()},M=St("",e),H=M.direction,k=function(X){if(X.target.checked){var Z=c.value;m.value=Z}else m.value=[]},B=function j(X){var Z=X.filters;return(Z||[]).map(function(z,Y){var ee=String(z.value),K={title:z.text,key:z.value!==void 0?ee:Y};return z.children&&(K.children=j({filters:z.children})),K})},F=V(function(){return B({filters:e.column.filters})}),W=V(function(){return Re(U({},"".concat(e.dropdownPrefixCls,"-menu-without-submenu"),!Ive(e.column.filters||[])))}),$=function(){var X=m.value,Z=e.column,z=e.locale,Y=e.tablePrefixCls,ee=e.filterMultiple,K=e.dropdownPrefixCls,oe=e.getPopupContainer,ie=e.prefixCls;return(Z.filters||[]).length===0?I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE,description:z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):o.value==="tree"?I(kt,null,[I(S2,{filterSearch:a.value,value:S.value,onChange:L,tablePrefixCls:Y,locale:z},null),I("div",{class:"".concat(Y,"-filter-dropdown-tree")},[ee?I(Za,{class:"".concat(Y,"-filter-dropdown-checkall"),onChange:k,checked:X.length===c.value.length,indeterminate:X.length>0&&X.length1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),Ehe(V(function(){return e.contextSlots})),Lhe({onResizeColumn:function(ye,Ee){a("resizeColumn",ye,Ee)}});var s=tO(),l=V(function(){var De=new Set(Object.keys(s.value).filter(function(ye){return s.value[ye]}));return e.columns.filter(function(ye){return!ye.responsive||ye.responsive.some(function(Ee){return De.has(Ee)})})}),u=St("table",e),c=u.size,d=u.renderEmpty,f=u.direction,h=u.prefixCls,p=u.configProvider,v=V(function(){return e.transformCellText||p.transformCellText}),m=Lh("Table",tl.Table,vn(e,"locale")),g=Ye(m,1),_=g[0],y=V(function(){return e.dataSource||Dve}),b=V(function(){return p.getPrefixCls("dropdown",e.dropdownPrefixCls)}),w=V(function(){return e.childrenColumnName||"children"}),C=V(function(){return y.value.some(function(De){return De==null?void 0:De[w.value]})?"nest":e.expandedRowRender?"row":null}),S=Rn({body:null}),L=function(ye){fn(S,ye)},E=V(function(){return typeof e.rowKey=="function"?e.rowKey:function(De){return De==null?void 0:De[e.rowKey]}}),T=_pe(y,w,E),P=Ye(T,1),A=P[0],D={},M=function(ye,Ee){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fe=e.pagination,He=e.scroll,je=e.onChange,we=O(O({},D),ye);xe&&(D.resetPagination(),we.pagination.current&&(we.pagination.current=1),Fe&&Fe.onChange&&Fe.onChange(1,we.pagination.pageSize)),He&&He.scrollToFirstRowOnChange!==!1&&S.body&&ZJ(0,{getContainer:function(){return S.body}}),je==null||je(we.pagination,we.filters,we.sorter,{currentDataSource:F2(VE(y.value,we.sorterStates,w.value),we.filterStates),action:Ee})},H=function(ye,Ee){M({sorter:ye,sorterStates:Ee},"sort",!1)},k=Ape({prefixCls:h,mergedColumns:l,onSorterChange:H,sortDirections:V(function(){return e.sortDirections||["ascend","descend"]}),tableLocale:_,showSorterTooltip:vn(e,"showSorterTooltip")}),B=Ye(k,4),F=B[0],W=B[1],$=B[2],j=B[3],X=V(function(){return VE(y.value,W.value,w.value)}),Z=function(ye,Ee){M({filters:ye,filterStates:Ee},"filter",!0)},z=xve({prefixCls:h,locale:_,dropdownPrefixCls:b,mergedColumns:l,onFilterChange:Z,getPopupContainer:vn(e,"getPopupContainer")}),Y=Ye(z,3),ee=Y[0],K=Y[1],oe=Y[2],ie=V(function(){return F2(X.value,K.value)}),ue=Ave(vn(e,"contextSlots")),Ce=Ye(ue,1),me=Ce[0],N=V(function(){return O({},$.value)}),R=Ove(N),G=Ye(R,1),te=G[0],re=function(ye,Ee){M({pagination:O(O({},D.pagination),{},{current:ye,pageSize:Ee})},"paginate")},pe=mpe(V(function(){return ie.value.length}),vn(e,"pagination"),re),Se=Ye(pe,2),fe=Se[0],de=Se[1];Ft(function(){D.sorter=j.value,D.sorterStates=W.value,D.filters=oe.value,D.filterStates=K.value,D.pagination=e.pagination===!1?{}:vpe(e.pagination,fe.value),D.resetPagination=de});var le=V(function(){if(e.pagination===!1||!fe.value.pageSize)return ie.value;var De=fe.value,ye=De.current,Ee=ye===void 0?1:ye,xe=De.total,Fe=De.pageSize,He=Fe===void 0?PE:Fe;return Kn(Ee>0,"Table","`current` should be positive number."),ie.value.lengthHe?ie.value.slice((Ee-1)*He,Ee*He):ie.value:ie.value.slice((Ee-1)*He,Ee*He)});Ft(function(){en(function(){var De=fe.value,ye=De.total,Ee=De.pageSize,xe=Ee===void 0?PE:Ee;ie.value.lengthxe&&Kn(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});var ve=V(function(){return e.showExpandColumn===!1?-1:C.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex}),Ae=J();Ve(function(){return e.rowSelection},function(){Ae.value=e.rowSelection?O({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});var Ie=bpe(Ae,{prefixCls:h,data:ie,pageData:le,getRowKey:E,getRecordByKey:A,expandType:C,childrenColumnName:w,locale:_,getPopupContainer:V(function(){return e.getPopupContainer})}),se=Ye(Ie,2),ge=se[0],_e=se[1],ce=function(ye,Ee,xe){var Fe,He=e.rowClassName;return typeof He=="function"?Fe=Re(He(ye,Ee,xe)):Fe=Re(He),Re(U({},"".concat(h.value,"-row-selected"),_e.value.has(E.value(ye,Ee))),Fe)};o({selectedKeySet:_e});var Pe=V(function(){return typeof e.indentSize=="number"?e.indentSize:15}),qe=function(ye){var Ee=te(ge(ee(F(me(ye)))));return Ee};return function(){var De,ye,Ee=e.expandIcon,xe=Ee===void 0?i.expandIcon||Nve(_.value):Ee,Fe=e.pagination,He=e.loading,je=e.bordered,we,Te;if(Fe!==!1&&(De=fe.value)!==null&&De!==void 0&&De.total){var ze;fe.value.size?ze=fe.value.size:ze=c.value==="small"||c.value==="middle"?"small":void 0;var rt=function(wn){return I(PO,O(O({},fe.value),{},{class:["".concat(h.value,"-pagination ").concat(h.value,"-pagination-").concat(wn),fe.value.class],size:ze}),null)},Xe=f.value==="rtl"?"left":"right",Qe=fe.value.position;if(Qe!==null&&Array.isArray(Qe)){var it=Qe.find(function(At){return At.indexOf("top")!==-1}),pt=Qe.find(function(At){return At.indexOf("bottom")!==-1}),vt=Qe.every(function(At){return"".concat(At)==="none"});!it&&!pt&&!vt&&(Te=rt(Xe)),it&&(we=rt(it.toLowerCase().replace("top",""))),pt&&(Te=rt(pt.toLowerCase().replace("bottom","")))}else Te=rt(Xe)}var xt;typeof He=="boolean"?xt={spinning:He}:at(He)==="object"&&(xt=O({spinning:!0},He));var wt=Re("".concat(h.value,"-wrapper"),U({},"".concat(h.value,"-wrapper-rtl"),f.value==="rtl"),r.class),_n=nr(e,["columns"]);return I("div",{class:wt,style:r.style},[I(iu,O({spinning:!1},xt),{default:function(){return[we,I(ppe,O(O(O({},r),_n),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ve.value,indentSize:Pe.value,expandIcon:xe,columns:l.value,direction:f.value,prefixCls:h.value,class:Re((ye={},U(ye,"".concat(h.value,"-middle"),c.value==="middle"),U(ye,"".concat(h.value,"-small"),c.value==="small"),U(ye,"".concat(h.value,"-bordered"),je),U(ye,"".concat(h.value,"-empty"),y.value.length===0),ye)),data:le.value,rowKey:E.value,rowClassName:ce,internalHooks:RE,internalRefs:S,onUpdateInternalRefs:L,transformColumns:qe,transformCellText:v.value}),O(O({},i),{},{emptyText:function(){var Vn,fr;return((Vn=i.emptyText)===null||Vn===void 0?void 0:Vn.call(i))||((fr=e.locale)===null||fr===void 0?void 0:fr.emptyText)||d.value("Table")}})),Te]}})])}}}),Mve=be({name:"ATable",inheritAttrs:!1,setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=J();return o({table:a}),function(){var s,l=r,u=l.columns||q8((s=i.default)===null||s===void 0?void 0:s.call(i));return I(Pve,O(O({ref:a},r),{},{columns:u||[],expandedRowRender:i.expandedRowRender,contextSlots:O({},i)}),i)}}});const Nw=Mve,Aw=be({name:"ATableColumn",slots:["title","filterIcon"],render:function(){return null}}),Dw=be({name:"ATableColumnGroup",slots:["title"],__ANT_TABLE_COLUMN_GROUP:!0,render:function(){return null}});var $E=be(O(O({},tpe),{},{name:"ATableSummaryRow"})),jE=be(O(O({},ipe),{},{name:"ATableSummaryCell"})),Rw=fn(ope,{Cell:jE,Row:$E,name:"ATableSummary"});const kve=fn(Nw,{SELECTION_ALL:ME,SELECTION_INVERT:kE,SELECTION_NONE:FE,SELECTION_COLUMN:Ps,EXPAND_COLUMN:Hl,Column:Aw,ColumnGroup:Dw,Summary:Rw,install:function(e){return e.component(Rw.name,Rw),e.component(jE.name,jE),e.component($E.name,$E),e.component(Nw.name,Nw),e.component(Aw.name,Aw),e.component(Dw.name,Dw),e}});var Fve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Bve=Fve;function B2(n){for(var e=1;e0&&(o.percent=o.loaded/o.total*100),n.onProgress(o)});var t=new FormData;n.data&&Object.keys(n.data).forEach(function(i){var o=n.data[i];if(Array.isArray(o)){o.forEach(function(a){t.append("".concat(i,"[]"),a)});return}t.append(i,o)}),n.file instanceof Blob?t.append(n.filename,n.file,n.file.name):t.append(n.filename,n.file),e.onerror=function(o){n.onError(o)},e.onload=function(){return e.status<200||e.status>=300?n.onError(Hve(n,e),W2(e)):n.onSuccess(W2(e),e)},e.open(n.method,n.action,!0),n.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=n.headers||{};return r["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&e.setRequestHeader(i,r[i])}),e.send(t),{abort:function(){e.abort()}}}var $ve=+new Date,jve=0;function Pw(){return"vc-upload-".concat($ve,"-").concat(++jve)}const Mw=function(n,e){if(n&&e){var t=Array.isArray(e)?e:e.split(","),r=n.name||"",i=n.type||"",o=i.replace(/\/.*$/,"");return t.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),u=s.toLowerCase(),c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):!!(i===s||/^\w+$/.test(s))})}return!0};function zve(n,e){var t=n.createReader(),r=[];function i(){t.readEntries(function(o){var a=Array.prototype.slice.apply(o);r=r.concat(a);var s=!a.length;s?e(r):i()})}i()}var Kve=function(e,t,r){var i=function o(a,s){a.path=s||"",a.isFile?a.file(function(l){r(l)&&(a.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),t([l]))}):a.isDirectory&&zve(a,function(l){l.forEach(function(u){o(u,"".concat(s).concat(a.name,"/"))})})};e.forEach(function(o){i(o.webkitGetAsEntry())})};const Gve=Kve;var i7=function(){return{capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}};function qve(n,e,t,r){for(var i=-1,o=n==null?0:n.length;++i0&&arguments[0]!==void 0?arguments[0]:"",t=e.split("/"),r=t[t.length-1],i=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},a7=function(e){return e.indexOf("image/")===0},wge=function(e){if(e.type&&!e.thumbUrl)return a7(e.type);var t=e.thumbUrl||e.url||"",r=Cge(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)},_l=200;function Sge(n){return new Promise(function(e){if(!n.type||!a7(n.type)){e("");return}var t=document.createElement("canvas");t.width=_l,t.height=_l,t.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(_l,"px; height: ").concat(_l,"px; z-index: 9999; display: none;"),document.body.appendChild(t);var r=t.getContext("2d"),i=new Image;i.onload=function(){var o=i.width,a=i.height,s=_l,l=_l,u=0,c=0;o>a?(l=a*(_l/o),c=-(l-s)/2):(s=o*(_l/a),u=-(s-l)/2),r.drawImage(i,u,c,s,l);var d=t.toDataURL();document.body.removeChild(t),e(d)},i.src=window.URL.createObjectURL(n)})}var Ege={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Lge=Ege;function j2(n){for(var e=1;e"u"||typeof window>"u"||!window.FileReader||!window.File||!(g.originFileObj instanceof File||g.originFileObj instanceof Blob)||g.thumbUrl!==void 0||(g.thumbUrl="",e.previewFile&&e.previewFile(g.originFileObj).then(function(_){g.thumbUrl=_||"",a.update()}))})});var s=function(_,y){if(e.onPreview)return y==null||y.preventDefault(),e.onPreview(_)},l=function(_){typeof e.onDownload=="function"?e.onDownload(_):_.url&&window.open(_.url)},u=function(_){var y;(y=e.onRemove)===null||y===void 0||y.call(e,_)},c=function(_){var y=_.file,b=e.iconRender||r.iconRender;if(b)return b({file:y,listType:e.listType});var w=y.status==="uploading",C=e.isImageUrl&&e.isImageUrl(y)?I(pge,null,null):I(_ge,null,null),S=I(w?_u:cge,null,null);return e.listType==="picture"?S=w?I(_u,null,null):C:e.listType==="picture-card"&&(S=w?e.locale.uploading:C),S},d=function(_){var y=_.customIcon,b=_.callback,w=_.prefixCls,C=_.title,S={type:"text",size:"small",title:C,onClick:function(){b()},class:"".concat(w,"-list-item-card-actions-btn")};return ni(y)?I(bi,S,{icon:function(){return y}}):I(bi,S,{default:function(){return[I("span",null,[y])]}})};i({handlePreview:s,handleDownload:l});var f=St("upload",e),h=f.prefixCls,p=f.direction,v=V(function(){var g;return g={},U(g,"".concat(h.value,"-list"),!0),U(g,"".concat(h.value,"-list-").concat(e.listType),!0),U(g,"".concat(h.value,"-list-rtl"),p.value==="rtl"),g}),m=V(function(){return O(O(O({},Dg("".concat(h.value,"-").concat(e.listType==="picture-card"?"animate-inline":"animate"))),fx("".concat(h.value,"-").concat(e.listType==="picture-card"?"animate-inline":"animate"))),{},{class:v.value,appear:o.value})});return function(){var g=e.listType,_=e.locale,y=e.isImageUrl,b=e.items,w=b===void 0?[]:b,C=e.showPreviewIcon,S=e.showRemoveIcon,L=e.showDownloadIcon,E=e.removeIcon,T=e.previewIcon,P=e.downloadIcon,A=e.progress,D=e.appendAction,M=e.itemRender,H=e.appendActionVisible,k=D==null?void 0:D();return I(ox,O(O({},m.value),{},{tag:"div"}),{default:function(){return[w.map(function(F){var W=F.uid;return I(Oge,{key:W,locale:_,prefixCls:h.value,file:F,items:w,progress:A,listType:g,isImgUrl:y,showPreviewIcon:C,showRemoveIcon:S,showDownloadIcon:L,onPreview:s,onDownload:l,onClose:u,removeIcon:E,previewIcon:T,downloadIcon:P,itemRender:M},O(O({},r),{},{iconRender:c,actionIconRender:d}))}),D?Ki(I(Nge,{key:"__ant_upload_appendAction"},{default:function(){return k}}),[[dl,!!H]]):null]}})}}});var Dge=["class","style"],Bp="__LIST_IGNORE_".concat(Date.now(),"__");const R_=be({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Wn(o7(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=hs(),s=th(e.defaultFileList||[],{value:vn(e,"fileList"),postState:function(D){var M=Date.now();return(D??[]).map(function(H,k){return!H.uid&&!Object.isFrozen(H)&&(H.uid="__AUTO__".concat(M,"_").concat(k,"__")),H})}}),l=Ye(s,2),u=l[0],c=l[1],d=J("drop"),f=J();Wt(function(){Kn(e.fileList!==void 0||i.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Kn(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Kn(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});var h=function(D,M,H){var k,B,F=Ge(M);e.maxCount===1?F=F.slice(-1):e.maxCount&&(F=F.slice(0,e.maxCount)),c(F);var W={file:D,fileList:F};H&&(W.event=H),(k=e["onUpdate:fileList"])===null||k===void 0||k.call(e,W.fileList),(B=e.onChange)===null||B===void 0||B.call(e,W),a.onFieldChange()},p=function(){var A=pd(no.mark(function D(M,H){var k,B,F,W;return no.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(k=e.beforeUpload,B=e.transformFile,F=M,!k){j.next=13;break}return j.next=5,k(M,H);case 5:if(W=j.sent,W!==!1){j.next=8;break}return j.abrupt("return",!1);case 8:if(delete M[Bp],W!==Bp){j.next=12;break}return Object.defineProperty(M,Bp,{value:!0,configurable:!0}),j.abrupt("return",!1);case 12:at(W)==="object"&&W&&(F=W);case 13:if(!B){j.next=17;break}return j.next=16,B(F);case 16:F=j.sent;case 17:return j.abrupt("return",F);case 18:case"end":return j.stop()}},D)}));return function(M,H){return A.apply(this,arguments)}}(),v=function(D){var M=D.filter(function(B){return!B.file[Bp]});if(M.length){var H=M.map(function(B){return Fm(B.file)}),k=Ge(u.value);H.forEach(function(B){k=Bm(B,k)}),H.forEach(function(B,F){var W=B;if(M[F].parsedFile)B.status="uploading";else{var $=B.originFileObj,j;try{j=new File([$],$.name,{type:$.type})}catch{j=new Blob([$],{type:$.type}),j.name=$.name,j.lastModifiedDate=new Date,j.lastModified=new Date().getTime()}j.uid=B.uid,W=j}h(W,k)})}},m=function(D,M,H){try{typeof D=="string"&&(D=JSON.parse(D))}catch{}if(Fw(M,u.value)){var k=Fm(M);k.status="done",k.percent=100,k.response=D,k.xhr=H;var B=Bm(k,u.value);h(k,B)}},g=function(D,M){if(Fw(M,u.value)){var H=Fm(M);H.status="uploading",H.percent=D.percent;var k=Bm(H,u.value);h(H,k,D)}},_=function(D,M,H){if(Fw(H,u.value)){var k=Fm(H);k.error=D,k.response=M,k.status="error";var B=Bm(k,u.value);h(k,B)}},y=function(D){var M,H=e.onRemove||e.remove;Promise.resolve(typeof H=="function"?H(D):H).then(function(k){if(k!==!1){var B=bge(D,u.value);if(B){var F,W;M=O(O({},D),{},{status:"removed"}),(F=u.value)===null||F===void 0||F.forEach(function($){var j=M.uid!==void 0?"uid":"name";$[j]===M[j]&&!Object.isFrozen($)&&($.status="removed")}),(W=f.value)===null||W===void 0||W.abort(M),h(M,B)}}})},b=function(D){if(d.value=D.type,D.type==="drop"){var M;(M=e.onDrop)===null||M===void 0||M.call(e,D)}};o({onBatchStart:v,onSuccess:m,onProgress:g,onError:_,fileList:u,upload:f});var w=St("upload",e),C=w.prefixCls,S=w.direction,L=Lh("Upload",tl.Upload,V(function(){return e.locale})),E=Ye(L,1),T=E[0],P=function(D,M){var H=e.removeIcon,k=e.previewIcon,B=e.downloadIcon,F=e.previewFile,W=e.onPreview,$=e.onDownload,j=e.disabled,X=e.isImageUrl,Z=e.progress,z=e.itemRender,Y=e.iconRender,ee=e.showUploadList,K=typeof ee=="boolean"?{}:ee,oe=K.showDownloadIcon,ie=K.showPreviewIcon,ue=K.showRemoveIcon;return ee?I(Age,{listType:e.listType,items:u.value,previewFile:F,onPreview:W,onDownload:$,onRemove:y,showRemoveIcon:!j&&ue,showPreviewIcon:ie,showDownloadIcon:oe,removeIcon:H,previewIcon:k,downloadIcon:B,iconRender:Y,locale:T.value,isImageUrl:X,progress:Z,itemRender:z,appendActionVisible:M,appendAction:D},O({},r)):D==null?void 0:D()};return function(){var A,D,M,H=e.listType,k=e.disabled,B=e.type;i.class,i.style;var F=Nt(i,Dge),W=O(O(O({onBatchStart:v,onError:_,onProgress:g,onSuccess:m},F),e),{},{id:(A=e.id)!==null&&A!==void 0?A:a.id.value,prefixCls:C.value,beforeUpload:p,onChange:void 0});if(delete W.remove,(!r.default||k)&&delete W.id,B==="drag"){var $,j,X=Re(C.value,($={},U($,"".concat(C.value,"-drag"),!0),U($,"".concat(C.value,"-drag-uploading"),u.value.some(function(ee){return ee.status==="uploading"})),U($,"".concat(C.value,"-drag-hover"),d.value==="dragover"),U($,"".concat(C.value,"-disabled"),k),U($,"".concat(C.value,"-rtl"),S.value==="rtl"),$),i.class);return I("span",null,[I("div",{class:X,onDrop:b,onDragover:b,onDragleave:b,style:i.style},[I(V2,O(O({},W),{},{ref:f,class:"".concat(C.value,"-btn")}),O({default:function(){return[I("div",{class:"".concat(C,"-drag-container")},[(j=r.default)===null||j===void 0?void 0:j.call(r)])]}},r))]),P()])}var Z=Re(C.value,(D={},U(D,"".concat(C.value,"-select"),!0),U(D,"".concat(C.value,"-select-").concat(H),!0),U(D,"".concat(C.value,"-disabled"),k),U(D,"".concat(C.value,"-rtl"),S.value==="rtl"),D)),z=sr((M=r.default)===null||M===void 0?void 0:M.call(r)),Y=function(K){return I("div",{class:Z,style:K},[I(V2,O(O({},W),{},{ref:f}),r)])};return H==="picture-card"?I("span",{class:Re("".concat(C.value,"-picture-card-wrapper"),i.class)},[P(Y,!!(z&&z.length))]):I("span",{class:i.class},[Y(z&&z.length?void 0:{display:"none"}),P()])}}});var Rge=["height"],Pge=["style"];const Bw=be({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:o7(),setup:function(e,t){var r=t.slots,i=t.attrs;return function(){var o=e.height,a=Nt(e,Rge),s=i.style,l=Nt(i,Pge),u=O(O(O({},a),l),{},{type:"drag",style:O(O({},s),{},{height:typeof o=="number"?"".concat(o,"px"):o})});return I(R_,u,r)}}}),Mge=fn(R_,{Dragger:Bw,LIST_IGNORE:Bp,install:function(e){return e.component(R_.name,R_),e.component(Bw.name,Bw),e}});var kge={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const Fge=kge;var Bge={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};const s7=Bge;var l7={lang:O({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Fge),timePickerLocale:O({},s7)};l7.lang.ok="确定";const z2=l7;var co="${label}不是一个有效的${type}",Wge={locale:"zh-cn",Pagination:T8,DatePicker:z2,TimePicker:s7,Calendar:z2,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:co,method:co,array:co,object:co,number:co,date:co,boolean:co,integer:co,float:co,regexp:co,email:co,url:co,hex:co},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};const Vge=Wge,Hge=be({__name:"App",setup(n){const e=J(tl.locale);return(t,r)=>{const i=Hq("router-view"),o=Kb;return Eg(),nx(o,{locale:e.value==="en"?vr(tl):vr(Vge)},{default:zT(()=>[I(i)]),_:1},8,["locale"])}}}),Uge="modulepreload",$ge=function(n,e){return new URL(n,e).href},K2={},nt=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(a=>{if(a=$ge(a,r),a in K2)return;K2[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const f=o[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Uge,s||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),s)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};/*! - * vue-router v4.3.0 - * (c) 2024 Eduardo San Martin Morote + a `).concat(a,",").concat(a," 0 1 1 ").concat(-u,",").concat(c),f=Math.PI*2*a,h={stroke:t,strokeDasharray:"".concat(e/100*(f-i),"px ").concat(f,"px"),strokeDashoffset:"-".concat(i/2+n/100*(f-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:h}}const Ghe=be({compatConfig:{MODE:3},name:"VCCircle",props:Wn(zhe,$he),setup:function(e){s2+=1;var t=ee(s2),r=V(function(){return u2(e.percent)}),i=V(function(){return u2(e.strokeColor)}),o=DH(),a=qe(o,2),s=a[0],l=a[1];jhe(l);var u=function(){var d=e.prefixCls,f=e.strokeWidth,h=e.strokeLinecap,p=e.gapDegree,v=e.gapPosition,m=0;return r.value.map(function(g,_){var y=i.value[_]||i.value[i.value.length-1],C=Object.prototype.toString.call(y)==="[object Object]"?"url(#".concat(d,"-gradient-").concat(t.value,")"):"",w=c2(m,g,y,f,p,v),b=w.pathString,S=w.pathStyle;m+=g;var E={key:_,d:b,stroke:C,"stroke-linecap":h,"stroke-width":f,opacity:g===0?0:1,"fill-opacity":"0",class:"".concat(d,"-circle-path"),style:S};return I("path",O({ref:s(_)},E),null)})};return function(){var c=e.prefixCls,d=e.strokeWidth,f=e.trailWidth,h=e.gapDegree,p=e.gapPosition,v=e.trailColor,m=e.strokeLinecap;e.strokeColor;var g=Nt(e,Khe),_=c2(0,100,v,d,h,p),y=_.pathString,C=_.pathStyle;delete g.percent;var w=i.value.find(function(S){return Object.prototype.toString.call(S)==="[object Object]"}),b={d:y,stroke:v,"stroke-linecap":m,"stroke-width":f||d,"fill-opacity":"0",class:"".concat(c,"-circle-trail"),style:C};return I("svg",O({class:"".concat(c,"-circle"),viewBox:"0 0 100 100"},g),[w&&I("defs",null,[I("linearGradient",{id:"".concat(c,"-gradient-").concat(t.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(w).sort(function(S,E){return l2(S)-l2(E)}).map(function(S,E){return I("stop",{key:E,offset:S,"stop-color":w[S]},null)})])]),I("path",b,null),u().reverse()])}}});function qhe(n){var e=n.percent,t=n.success,r=n.successPercent,i=kc(Ty({success:t,successPercent:r}));return[i,kc(kc(e)-i)]}function Yhe(n){var e=n.success,t=e===void 0?{}:e,r=n.strokeColor,i=t.strokeColor;return[i||Df.green,r||null]}const Xhe=be({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:dC(),setup:function(e,t){var r=t.slots,i=V(function(){if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),o=V(function(){var f=e.width||120;return{width:typeof f=="number"?"".concat(f,"px"):f,height:typeof f=="number"?"".concat(f,"px"):f,fontSize:"".concat(f*.15+6,"px")}}),a=V(function(){return e.strokeWidth||6}),s=V(function(){return e.gapPosition||e.type==="dashboard"&&"bottom"||"top"}),l=V(function(){return qhe(e)}),u=V(function(){return Object.prototype.toString.call(e.strokeColor)==="[object Object]"}),c=V(function(){return Yhe({success:e.success,strokeColor:e.strokeColor})}),d=V(function(){var f;return f={},U(f,"".concat(e.prefixCls,"-inner"),!0),U(f,"".concat(e.prefixCls,"-circle-gradient"),u.value),f});return function(){var f;return I("div",{class:d.value,style:o.value},[I(Ghe,{percent:l.value,strokeWidth:a.value,trailWidth:a.value,strokeColor:c.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:i.value,gapPosition:s.value},null),(f=r.default)===null||f===void 0?void 0:f.call(r)])}}});var Zhe=function(){return O(O({},dC()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const Qhe=be({compatConfig:{MODE:3},name:"Steps",props:Zhe(),setup:function(e,t){var r=t.slots,i=V(function(){return Math.round(e.steps*((e.percent||0)/100))}),o=V(function(){return e.size==="small"?2:14}),a=V(function(){for(var s=e.steps,l=e.strokeWidth,u=l===void 0?8:l,c=e.strokeColor,d=e.trailColor,f=e.prefixCls,h=[],p=0;p=100?"success":d||"normal"}),c=function(){var f=e.showInfo,h=e.format,p=e.type,v=e.percent,m=e.title,g=Ty(e);if(!f)return null;var _,y=h||(r==null?void 0:r.format)||function(w){return"".concat(w,"%")},C=p==="line";return h||r!=null&&r.format||u.value!=="exception"&&u.value!=="success"?_=y(kc(v),kc(g)):u.value==="exception"?_=I(C?Ng:Dg,null,null):u.value==="success"&&(_=I(C?mx:nH,null,null)),I("span",{class:"".concat(o.value,"-text"),title:m===void 0&&typeof _=="string"?_:void 0},[_])};return function(){var d=e.type,f=e.steps,h=e.strokeColor,p=e.title,v=c(),m;d==="line"?m=f?I(Qhe,O(O({},e),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:o.value,steps:f}),{default:function(){return[v]}}):I(Uhe,O(O({},e),{},{prefixCls:o.value}),{default:function(){return[v]}}):(d==="circle"||d==="dashboard")&&(m=I(Xhe,O(O({},e),{},{prefixCls:o.value}),{default:function(){return[v]}}));var g=O(O({},s.value),{},U({},"".concat(o.value,"-status-").concat(u.value),!0));return I("div",{class:g,title:p},[m])}}}),epe=Lu(Jhe);var O8=Symbol("TableContextProps"),tpe=function(e){qt(O8,e)},vs=function(){return yt(O8,{})},npe="RC_TABLE_KEY";function N8(n){return n==null?[]:Array.isArray(n)?n:[n]}function D8(n,e){if(!e&&typeof e!="number")return n;for(var t=N8(e),r=n,i=0;i=t}function hpe(n){return n&&at(n)==="object"&&!Array.isArray(n)&&!Ui(n)}const hC=be({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(e,t){var r=t.slots,i=R8(),o=lpe(),a=o.onHover,s=o.startRow,l=o.endRow,u=V(function(){var m,g,_,y;return(m=(g=e.colSpan)!==null&&g!==void 0?g:(_=e.additionalProps)===null||_===void 0?void 0:_.colSpan)!==null&&m!==void 0?m:(y=e.additionalProps)===null||y===void 0?void 0:y.colspan}),c=V(function(){var m,g,_,y;return(m=(g=e.rowSpan)!==null&&g!==void 0?g:(_=e.additionalProps)===null||_===void 0?void 0:_.rowSpan)!==null&&m!==void 0?m:(y=e.additionalProps)===null||y===void 0?void 0:y.rowspan}),d=Wo(function(){var m=e.index;return fpe(m,c.value||1,s.value,l.value)}),f=cpe(),h=function(g,_){var y,C=e.record,w=e.index,b=e.additionalProps;C&&a(w,w+_-1),b==null||(y=b.onMouseenter)===null||y===void 0||y.call(b,g)},p=function(g){var _,y=e.record,C=e.additionalProps;y&&a(-1,-1),C==null||(_=C.onMouseleave)===null||_===void 0||_.call(C,g)},v=function m(g){var _=To(g)[0];return Ui(_)?_.type===dl?_.children:Array.isArray(_.children)?m(_.children):void 0:_};return function(){var m,g,_,y,C,w,b=e.prefixCls,S=e.record,E=e.index,L=e.renderIndex,T=e.dataIndex,R=e.customRender,N=e.component,D=N===void 0?"td":N,M=e.fixLeft,H=e.fixRight,k=e.firstFixLeft,W=e.lastFixLeft,F=e.firstFixRight,B=e.lastFixRight,j=e.appendNode,K=j===void 0?(m=r.appendNode)===null||m===void 0?void 0:m.call(r):j,X=e.additionalProps,Z=X===void 0?{}:X,z=e.ellipsis,Y=e.align,te=e.rowType,G=e.isSticky,ae=e.column,oe=ae===void 0?{}:ae,de=e.cellType,Ce="".concat(b,"-cell"),$,A,P=(g=r.default)===null||g===void 0?void 0:g.call(r);if(IE(P)||de==="header")A=P;else{var Q,re=D8(S,T);if(A=re,R){var le=R({text:re,value:re,record:S,index:E,renderIndex:L,column:oe.__originColumn__});hpe(le)?(A=le.children,$=le.props):A=le}if(!(Bf in oe)&&de==="body"&&i.value.bodyCell&&!((Q=oe.slots)!==null&&Q!==void 0&&Q.customRender)){var me=E5(i.value,"bodyCell",{text:re,value:re,record:S,index:E,column:oe.__originColumn__},function(){var Ee=A===void 0?re:A;return[at(Ee)==="object"&&ni(Ee)||at(Ee)!=="object"?Ee:null]});A=lr(me)}e.transformCellText&&(A=e.transformCellText({text:A,record:S,index:E,column:oe.__originColumn__}))}at(A)==="object"&&!Array.isArray(A)&&!Ui(A)&&(A=null),z&&(W||F)&&(A=I("span",{class:"".concat(Ce,"-content")},[A])),Array.isArray(A)&&A.length===1&&(A=A[0]);var ge=$||{},he=ge.colSpan,ue=ge.rowSpan,_e=ge.style,fe=ge.class,ne=Nt(ge,dpe),ce=(_=he!==void 0?he:u.value)!==null&&_!==void 0?_:1,Me=(y=ue!==void 0?ue:c.value)!==null&&y!==void 0?y:1;if(ce===0||Me===0)return null;var Ve={},xe=typeof M=="number"&&f.value,ve=typeof H=="number"&&f.value;xe&&(Ve.position="sticky",Ve.left="".concat(M,"px")),ve&&(Ve.position="sticky",Ve.right="".concat(H,"px"));var Pe={};Y&&(Pe.textAlign=Y);var tt,De=z===!0?{showTitle:!0}:z;De&&(De.showTitle||te==="header")&&(typeof A=="string"||typeof A=="number"?tt=A.toString():Ui(A)&&(tt=v([A])));var ye=O(O(O({title:tt},ne),Z),{},{colSpan:ce!==1?ce:null,rowSpan:Me!==1?Me:null,class:Ne(Ce,(C={},U(C,"".concat(Ce,"-fix-left"),xe&&f.value),U(C,"".concat(Ce,"-fix-left-first"),k&&f.value),U(C,"".concat(Ce,"-fix-left-last"),W&&f.value),U(C,"".concat(Ce,"-fix-right"),ve&&f.value),U(C,"".concat(Ce,"-fix-right-first"),F&&f.value),U(C,"".concat(Ce,"-fix-right-last"),B&&f.value),U(C,"".concat(Ce,"-ellipsis"),z),U(C,"".concat(Ce,"-with-append"),K),U(C,"".concat(Ce,"-fix-sticky"),(xe||ve)&&G&&f.value),U(C,"".concat(Ce,"-row-hover"),!$&&d.value),C),Z.class,fe),onMouseenter:function(we){h(we,Me)},onMouseleave:p,style:O(O(O(O({},sx(Z.style)),Pe),Ve),_e)});return I(D,ye,{default:function(){return[K,A,(w=r.dragHandle)===null||w===void 0?void 0:w.call(r)]}})}}});function MO(n,e,t,r,i){var o=t[n]||{},a=t[e]||{},s,l;o.fixed==="left"?s=r.left[n]:a.fixed==="right"&&(l=r.right[e]);var u=!1,c=!1,d=!1,f=!1,h=t[e+1],p=t[n-1];if(i==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";f=!v}else if(l!==void 0){var m=h&&h.fixed==="right";d=!m}}else if(s!==void 0){var g=h&&h.fixed==="left";u=!g}else if(l!==void 0){var _=p&&p.fixed==="right";c=!_}return{fixLeft:s,fixRight:l,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var d2={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},f2=50;const ppe=be({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:f2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(e){var t=0,r={remove:function(){}},i={remove:function(){}},o=function(){r.remove(),i.remove()};Ia(function(){o()}),Ft(function(){Kn(!isNaN(e.width),"Table","width must be a number when use resizable")});var a=ape(),s=a.onResizeColumn,l=V(function(){return typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:f2}),u=V(function(){return typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0}),c=Dr(),d=0,f=ee(!1),h,p=function(b){var S=0;b.touches?b.touches.length?S=b.touches[0].pageX:S=b.changedTouches[0].pageX:S=b.pageX;var E=t-S,L=Math.max(d-E,l.value);L=Math.min(L,u.value),Mt.cancel(h),h=Mt(function(){s(L,e.column.__originColumn__)})},v=function(b){p(b)},m=function(b){f.value=!1,p(b),o()},g=function(b,S){f.value=!0,o(),d=c.vnode.el.parentNode.getBoundingClientRect().width,!(b instanceof MouseEvent&&b.which!==1)&&(b.stopPropagation&&b.stopPropagation(),t=b.touches?b.touches[0].pageX:b.pageX,r=Co(document.documentElement,S.move,v),i=Co(document.documentElement,S.stop,m))},_=function(b){b.stopPropagation(),b.preventDefault(),g(b,d2.mouse)},y=function(b){b.stopPropagation(),b.preventDefault(),g(b,d2.touch)},C=function(b){b.stopPropagation(),b.preventDefault()};return function(){var w=e.prefixCls,b=U({},Pi?"onTouchstartPassive":"onTouchstart",function(S){return y(S)});return I("div",O(O({class:"".concat(w,"-resize-handle ").concat(f.value?"dragging":""),onMousedown:_},b),{},{onClick:C}),[I("div",{class:"".concat(w,"-resize-handle-line")},null)])}}}),vpe=be({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(e){var t=vs();return function(){var r=t.prefixCls,i=t.direction,o=e.cells,a=e.stickyOffsets,s=e.flattenColumns,l=e.rowComponent,u=e.cellComponent,c=e.customHeaderRow,d=e.index,f;c&&(f=c(o.map(function(p){return p.column}),d));var h=fC(o.map(function(p){return p.column}));return I(l,f,{default:function(){return[o.map(function(v,m){var g=v.column,_=MO(v.colStart,v.colEnd,s,a,i),y;g&&g.customHeaderCell&&(y=v.column.customHeaderCell(g));var C=g;return I(hC,O(O(O({},v),{},{cellType:"header",ellipsis:g.ellipsis,align:g.align,component:u,prefixCls:r,key:h[m]},_),{},{additionalProps:y,rowType:"header",column:g}),{default:function(){return g.title},dragHandle:function(){return C.resizable?I(ppe,{prefixCls:r,width:C.width,minWidth:C.minWidth,maxWidth:C.maxWidth,column:C},null):null}})})]}})}}});function gpe(n){var e=[];function t(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;e[l]=e[l]||[];var u=s,c=a.filter(Boolean).map(function(d){var f={key:d.key,class:Ne(d.className,d.class),column:d,colStart:u},h=1,p=d.children;return p&&p.length>0&&(h=t(p,u,l+1).reduce(function(v,m){return v+m},0),f.hasSubColumns=!0),"colSpan"in d&&(h=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=h,f.colEnd=f.colStart+h-1,e[l].push(f),u+=h,h});return c}t(n,0);for(var r=e.length,i=function(s){e[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},o=0;o1?w-1:0),S=1;S0?[].concat(Ge(e),Ge(xE(o).map(function(a){return O({fixed:i},a)}))):[].concat(Ge(e),[O(O({},t),{},{fixed:i})])},[])}function Tpe(n){return n.map(function(e){var t=e.fixed,r=Nt(e,Ipe),i=t;return t==="left"?i="right":t==="right"&&(i="left"),O({fixed:i},r)})}function xpe(n,e){var t=n.prefixCls,r=n.columns,i=n.expandable,o=n.expandedKeys,a=n.getRowKey,s=n.onTriggerExpand,l=n.expandIcon,u=n.rowExpandable,c=n.expandIconColumnIndex,d=n.direction,f=n.expandRowByClick,h=n.expandColumnWidth,p=n.expandFixed,v=V(function(){if(i.value){var _,y=r.value.slice();if(!y.includes(Hl)){var C=c.value||0;C>=0&&y.splice(C,0,Hl)}var w=y.indexOf(Hl);y=y.filter(function(M,H){return M!==Hl||H===w});var b=r.value[w],S;(p.value==="left"||p.value)&&!c.value?S="left":(p.value==="right"||p.value)&&c.value===r.value.length?S="right":S=b?b.fixed:null;var E=o.value,L=u.value,T=l.value,R=t.value,N=f.value,D=(_={},U(_,Bf,{class:"".concat(t.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),U(_,"title",""),U(_,"fixed",S),U(_,"class","".concat(t.value,"-row-expand-icon-cell")),U(_,"width",h.value),U(_,"customRender",function(H){var k=H.record,W=H.index,F=a.value(k,W),B=E.has(F),j=L?L(k):!0,K=T({prefixCls:R,expanded:B,expandable:j,record:k,onExpand:s});return N?I("span",{onClick:function(Z){return Z.stopPropagation()}},[K]):K}),_);return y.map(function(M){return M===Hl?D:M})}return r.value.filter(function(M){return M!==Hl})}),m=V(function(){var _=v.value;return e.value&&(_=e.value(_)),_.length||(_=[{customRender:function(){return null}}]),_}),g=V(function(){return d.value==="rtl"?Tpe(xE(m.value)):xE(m.value)});return[m,g]}function U8(n){var e=Zt(n),t,r=Zt([]);function i(o){r.value.push(o),Mt.cancel(t),t=Mt(function(){var a=r.value;r.value=[],a.forEach(function(s){e.value=s(e.value)})})}return Xt(function(){Mt.cancel(t)}),[e,i]}function Ope(n){var e=ee(n||null),t=ee();function r(){clearTimeout(t.value)}function i(a){e.value=a,r(),t.value=setTimeout(function(){e.value=null,t.value=void 0},100)}function o(){return e.value}return Xt(function(){r()}),[i,o]}function Npe(n,e,t){var r=V(function(){for(var i=[],o=[],a=0,s=0,l=n.value,u=e.value,c=t.value,d=0;d=0;s-=1){var l=e[s],u=t&&t[s],c=u&&u[Bf];if(l||c||a){var d=c||{};d.columnType;var f=Nt(d,Dpe);i.unshift(I("col",O({key:s,style:{width:typeof l=="number"?"".concat(l,"px"):l}},f),null)),a=!0}}return I("colgroup",null,[i])}function OE(n,e){var t,r=e.slots;return I("div",null,[(t=r.default)===null||t===void 0?void 0:t.call(r)])}OE.displayName="Panel";var Ape=0,Rpe=be({name:"Summary",props:["fixed"],setup:function(e,t){var r=t.slots,i=vs(),o="table-summary-uni-key-".concat(++Ape),a=V(function(){return e.fixed===""||e.fixed});return Ft(function(){i.summaryCollect(o,a.value)}),Xt(function(){i.summaryCollect(o,!1)}),function(){var s;return(s=r.default)===null||s===void 0?void 0:s.call(r)}}});const Ppe=Rpe,Mpe=be({compatConfig:{MODE:3},name:"FooterRow",setup:function(e,t){var r=t.slots;return function(){var i;return I("tr",null,[(i=r.default)===null||i===void 0?void 0:i.call(r)])}}});var j8=Symbol("SummaryContextProps"),kpe=function(e){qt(j8,e)},Fpe=function(){return yt(j8,{})};const Bpe=be({name:"SummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(e,t){var r=t.attrs,i=t.slots,o=vs(),a=Fpe();return function(){var s=e.index,l=e.colSpan,u=l===void 0?1:l,c=e.rowSpan,d=e.align,f=o.prefixCls,h=o.direction,p=a.scrollColumnIndex,v=a.stickyOffsets,m=a.flattenColumns,g=s+u-1,_=g+1===p?u+1:u,y=MO(s,s+_-1,m,v,h);return I(hC,O({class:r.class,index:s,component:"td",prefixCls:f,record:null,dataIndex:null,align:d,colSpan:_,rowSpan:c,customRender:function(){var w;return(w=i.default)===null||w===void 0?void 0:w.call(i)}},y),null)}}}),Wm=be({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(e,t){var r=t.slots,i=vs();return kpe(Rn({stickyOffsets:vn(e,"stickyOffsets"),flattenColumns:vn(e,"flattenColumns"),scrollColumnIndex:V(function(){var o=e.flattenColumns.length-1,a=e.flattenColumns[o];return a!=null&&a.scrollbar?o:null})})),function(){var o,a=i.prefixCls;return I("tfoot",{class:"".concat(a,"-summary")},[(o=r.default)===null||o===void 0?void 0:o.call(r)])}}});var Wpe=Ppe;function Vpe(n){var e,t=n.prefixCls,r=n.record,i=n.onExpand,o=n.expanded,a=n.expandable,s="".concat(t,"-row-expand-icon");if(!a)return I("span",{class:[s,"".concat(t,"-row-spaced")]},null);var l=function(c){i(r,c),c.stopPropagation()};return I("span",{class:(e={},U(e,s,!0),U(e,"".concat(t,"-row-expanded"),o),U(e,"".concat(t,"-row-collapsed"),!o),e),onClick:l},null)}function Hpe(n,e,t){var r=[];function i(o){(o||[]).forEach(function(a,s){r.push(e(a,s)),i(a[t])})}return i(n),r}const Upe=be({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(e,t){var r=t.emit,i=t.expose,o=vs(),a=ee(0),s=ee(0),l=ee(0);Ft(function(){a.value=e.scrollBodySizeInfo.scrollWidth||0,s.value=e.scrollBodySizeInfo.clientWidth||0,l.value=a.value&&s.value*(s.value/a.value)},{flush:"post"});var u=ee(),c=U8({scrollLeft:0,isHiddenScrollBar:!0}),d=qe(c,2),f=d[0],h=d[1],p=ee({delta:0,x:0}),v=ee(!1),m=function(){v.value=!1},g=function(R){p.value={delta:R.pageX-f.value.scrollLeft,x:0},v.value=!0,R.preventDefault()},_=function(R){var N,D=R||((N=window)===null||N===void 0?void 0:N.event),M=D.buttons;if(!v.value||M===0){v.value&&(v.value=!1);return}var H=p.value.x+R.pageX-p.value.x-p.value.delta;H<=0&&(H=0),H+l.value>=s.value&&(H=s.value-l.value),r("scroll",{scrollLeft:H/s.value*(a.value+2)}),p.value.x=R.pageX},y=function(){if(e.scrollBodyRef.value){var R=Gk(e.scrollBodyRef.value).top,N=R+e.scrollBodyRef.value.offsetHeight,D=e.container===window?document.documentElement.scrollTop+window.innerHeight:Gk(e.container).top+e.container.clientHeight;N-Kv()<=D||R>=D-e.offsetScroll?h(function(M){return O(O({},M),{},{isHiddenScrollBar:!0})}):h(function(M){return O(O({},M),{},{isHiddenScrollBar:!1})})}},C=function(R){h(function(N){return O(O({},N),{},{scrollLeft:R/a.value*s.value||0})})};i({setScrollLeft:C});var w=null,b=null,S=null,E=null;Wt(function(){w=Co(document.body,"mouseup",m,!1),b=Co(document.body,"mousemove",_,!1),S=Co(window,"resize",y,!1)}),GT(function(){en(function(){y()})}),Wt(function(){setTimeout(function(){We([l,v],function(){y()},{immediate:!0,flush:"post"})})}),We(function(){return e.container},function(){var T;(T=E)===null||T===void 0||T.remove(),E=Co(e.container,"scroll",y,!1)},{immediate:!0,flush:"post"}),Xt(function(){var T,R,N,D;(T=w)===null||T===void 0||T.remove(),(R=b)===null||R===void 0||R.remove(),(N=E)===null||N===void 0||N.remove(),(D=S)===null||D===void 0||D.remove()}),We(function(){return O({},f.value)},function(T,R){T.isHiddenScrollBar!==(R==null?void 0:R.isHiddenScrollBar)&&!T.isHiddenScrollBar&&h(function(N){var D=e.scrollBodyRef.value;return D?O(O({},N),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):N})},{immediate:!0});var L=Kv();return function(){if(a.value<=s.value||!l.value||f.value.isHiddenScrollBar)return null;var T=o.prefixCls;return I("div",{style:{height:"".concat(L,"px"),width:"".concat(s.value,"px"),bottom:"".concat(e.offsetScroll,"px")},class:"".concat(T,"-sticky-scroll")},[I("div",{onMousedown:g,ref:u,class:Ne("".concat(T,"-sticky-scroll-bar"),U({},"".concat(T,"-sticky-scroll-bar-active"),v)),style:{width:"".concat(l.value,"px"),transform:"translate3d(".concat(f.value.scrollLeft,"px, 0, 0)")}},null)])}}});var p2=vd()?window:null;function $pe(n,e){return V(function(){var t=at(n.value)==="object"?n.value:{},r=t.offsetHeader,i=r===void 0?0:r,o=t.offsetSummary,a=o===void 0?0:o,s=t.offsetScroll,l=s===void 0?0:s,u=t.getContainer,c=u===void 0?function(){return p2}:u,d=c()||p2,f=!!n.value;return{isSticky:f,stickyClassName:f?"".concat(e.value,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:d}})}function jpe(n,e){return V(function(){for(var t=[],r=n.value,i=e.value,o=0;o1?e-1:0),r=1;r0)):(k(Ze>0),j(Ze0?i.value:n.value}),h=Math.ceil((i.value||n.value)/f.pageSize);return f.current>h&&(f.current=h||1),f}),c=function(h,p){r.value!==!1&&l({current:h??1,pageSize:p||u.value.pageSize})},d=function(h,p){if(r.value){var v,m;(v=(m=r.value).onChange)===null||v===void 0||v.call(m,h,p)}c(h,p),t(h,p||u.value.pageSize)};return[V(function(){return r.value===!1?{}:O(O({},u.value),{},{onChange:d})}),c]}function Qpe(n,e,t){var r=Zt({});We([n,e,t],function(){var o=new Map,a=t.value,s=e.value;function l(u){u.forEach(function(c,d){var f=a(c,d);o.set(f,c),c&&at(c)==="object"&&s in c&&l(c[s]||[])})}l(n.value),r.value={kvMap:o}},{deep:!0,immediate:!0});function i(o){return r.value.kvMap.get(o)}return[i]}var Ms={},AE="SELECT_ALL",RE="SELECT_INVERT",PE="SELECT_NONE",Jpe=[];function z8(n,e){var t=[];return(n||[]).forEach(function(r){t.push(r),r&&at(r)==="object"&&e in r&&(t=[].concat(Ge(t),Ge(z8(r[e],e))))}),t}function eve(n,e){var t=V(function(){var M=n.value||{},H=M.checkStrictly,k=H===void 0?!0:H;return O(O({},M),{},{checkStrictly:k})}),r=th(t.value.selectedRowKeys||t.value.defaultSelectedRowKeys||Jpe,{value:V(function(){return t.value.selectedRowKeys})}),i=qe(r,2),o=i[0],a=i[1],s=Zt(new Map),l=function(H){if(t.value.preserveSelectedRowKeys){var k=new Map;H.forEach(function(W){var F=e.getRecordByKey(W);!F&&s.value.has(W)&&(F=s.value.get(W)),k.set(W,F)}),s.value=k}};Ft(function(){l(o.value)});var u=V(function(){return t.value.checkStrictly?null:mO(e.data.value,{externalGetKey:e.getRowKey.value,childrenPropName:e.childrenColumnName.value}).keyEntities}),c=V(function(){return z8(e.pageData.value,e.childrenColumnName.value)}),d=V(function(){var M=new Map,H=e.getRowKey.value,k=t.value.getCheckboxProps;return c.value.forEach(function(W,F){var B=H(W,F),j=(k?k(W):null)||{};M.set(B,j)}),M}),f=XH(u),h=f.maxLevel,p=f.levelEntities,v=function(H){var k;return!!((k=d.value.get(e.getRowKey.value(H)))!==null&&k!==void 0&&k.disabled)},m=V(function(){if(t.value.checkStrictly)return[o.value||[],[]];var M=Ff(o.value,!0,u.value,h.value,p.value,v),H=M.checkedKeys,k=M.halfCheckedKeys;return[H||[],k]}),g=V(function(){return m.value[0]}),_=V(function(){return m.value[1]}),y=V(function(){var M=t.value.type==="radio"?g.value.slice(0,1):g.value;return new Set(M)}),C=V(function(){return t.value.type==="radio"?new Set:new Set(_.value)}),w=er(null),b=qe(w,2),S=b[0],E=b[1],L=function(H){var k,W;l(H);var F=t.value,B=F.preserveSelectedRowKeys,j=F.onChange,K=e.getRecordByKey;B?(k=H,W=H.map(function(X){return s.value.get(X)})):(k=[],W=[],H.forEach(function(X){var Z=K(X);Z!==void 0&&(k.push(X),W.push(Z))})),a(k),j==null||j(k,W)},T=function(H,k,W,F){var B=t.value.onSelect,j=e||{},K=j.getRecordByKey;if(B){var X=W.map(function(Z){return K(Z)});B(K(H),k,X,F)}L(W)},R=V(function(){var M=t.value,H=M.onSelectInvert,k=M.onSelectNone,W=M.selections,F=M.hideSelectAll,B=e.data,j=e.pageData,K=e.getRowKey,X=e.locale;if(!W||F)return null;var Z=W===!0?[AE,RE,PE]:W;return Z.map(function(z){return z===AE?{key:"all",text:X.value.selectionAll,onSelect:function(){L(B.value.map(function(te,G){return K.value(te,G)}).filter(function(te){var G=d.value.get(te);return!(G!=null&&G.disabled)||y.value.has(te)}))}}:z===RE?{key:"invert",text:X.value.selectInvert,onSelect:function(){var te=new Set(y.value);j.value.forEach(function(ae,oe){var de=K.value(ae,oe),Ce=d.value.get(de);Ce!=null&&Ce.disabled||(te.has(de)?te.delete(de):te.add(de))});var G=Array.from(te);H&&(Kn(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),H(G)),L(G)}}:z===PE?{key:"none",text:X.value.selectNone,onSelect:function(){k==null||k(),L(Array.from(y.value).filter(function(te){var G=d.value.get(te);return G==null?void 0:G.disabled}))}}:z})}),N=V(function(){return c.value.length}),D=function(H){var k,W=t.value,F=W.onSelectAll,B=W.onSelectMultiple,j=W.columnWidth,K=W.type,X=W.fixed,Z=W.renderCell,z=W.hideSelectAll,Y=W.checkStrictly,te=e.prefixCls,G=e.getRecordByKey,ae=e.getRowKey,oe=e.expandType,de=e.getPopupContainer;if(!n.value)return H.filter(function(we){return we!==Ms});var Ce=H.slice(),$=new Set(y.value),A=c.value.map(ae.value).filter(function(we){return!d.value.get(we).disabled}),P=A.every(function(we){return $.has(we)}),Q=A.some(function(we){return $.has(we)}),re=function(){var Fe=[];P?A.forEach(function(ze){$.delete(ze),Fe.push(ze)}):A.forEach(function(ze){$.has(ze)||($.add(ze),Fe.push(ze))});var $e=Array.from($);F==null||F(!P,$e.map(function(ze){return G(ze)}),Fe.map(function(ze){return G(ze)})),L($e)},le;if(K!=="radio"){var me;if(R.value){var ge=I(Ci,{getPopupContainer:de.value},{default:function(){return[R.value.map(function(Fe,$e){var ze=Fe.key,Se=Fe.text,Ie=Fe.onSelect;return I(Ci.Item,{key:ze||$e,onClick:function(){Ie==null||Ie(A)}},{default:function(){return[Se]}})})]}});me=I("div",{class:"".concat(te.value,"-selection-extra")},[I(Js,{overlay:ge,getPopupContainer:de.value},{default:function(){return[I("span",null,[I(tC,null,null)])]}})])}var he=c.value.map(function(we,Fe){var $e=ae.value(we,Fe),ze=d.value.get($e)||{};return O({checked:$.has($e)},ze)}).filter(function(we){var Fe=we.disabled;return Fe}),ue=!!he.length&&he.length===N.value,_e=ue&&he.every(function(we){var Fe=we.checked;return Fe}),fe=ue&&he.some(function(we){var Fe=we.checked;return Fe});le=!z&&I("div",{class:"".concat(te.value,"-selection")},[I(Qa,{checked:ue?_e:!!N.value&&P,indeterminate:ue?!_e&&fe:!P&&Q,onChange:re,disabled:N.value===0||ue,skipGroup:!0},null),me])}var ne;K==="radio"?ne=function(Fe){var $e=Fe.record,ze=Fe.index,Se=ae.value($e,ze),Ie=$.has(Se);return{node:I(Ri,O(O({},d.value.get(Se)),{},{checked:Ie,onClick:function(rt){return rt.stopPropagation()},onChange:function(rt){$.has(Se)||T(Se,!0,[Se],rt.nativeEvent)}}),null),checked:Ie}}:ne=function(Fe){var $e=Fe.record,ze=Fe.index,Se=ae.value($e,ze),Ie=$.has(Se),je=C.value.has(Se),rt=d.value.get(Se),Ye;if(oe.value==="nest")Ye=je,Kn(typeof(rt==null?void 0:rt.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");else{var Ze;Ye=(Ze=rt==null?void 0:rt.indeterminate)!==null&&Ze!==void 0?Ze:je}return{node:I(Qa,O(O({},rt),{},{indeterminate:Ye,checked:Ie,skipGroup:!0,onClick:function(pt){return pt.stopPropagation()},onChange:function(pt){var vt=pt.nativeEvent,xt=vt.shiftKey,wt=-1,_n=-1;if(xt&&Y){var Dt=new Set([S.value,Se]);A.some(function(ir,na){if(Dt.has(ir))if(wt===-1)wt=na;else return _n=na,!0;return!1})}if(_n!==-1&&wt!==_n&&Y){var wn=A.slice(wt,_n+1),Vn=[];Ie?wn.forEach(function(ir){$.has(ir)&&(Vn.push(ir),$.delete(ir))}):wn.forEach(function(ir){$.has(ir)||(Vn.push(ir),$.add(ir))});var hr=Array.from($);B==null||B(!Ie,hr.map(function(ir){return G(ir)}),Vn.map(function(ir){return G(ir)})),L(hr)}else{var Hn=g.value;if(Y){var Fr=Ie?As(Hn,Se):Pl(Hn,Se);T(Se,!Ie,Fr,vt)}else{var _r=Ff([].concat(Ge(Hn),[Se]),!0,u.value,h.value,p.value,v),Ln=_r.checkedKeys,Yn=_r.halfCheckedKeys,rr=Ln;if(Ie){var ta=new Set(Ln);ta.delete(Se),rr=Ff(Array.from(ta),{checked:!1,halfCheckedKeys:Yn},u.value,h.value,p.value,v).checkedKeys}T(Se,!Ie,rr,vt)}}E(Se)}}),null),checked:Ie}};var ce=function(Fe){var $e=Fe.record,ze=Fe.index,Se=ne({record:$e,index:ze}),Ie=Se.node,je=Se.checked;return Z?Z(je,$e,ze,Ie):Ie};if(!Ce.includes(Ms))if(Ce.findIndex(function(we){var Fe;return((Fe=we[Bf])===null||Fe===void 0?void 0:Fe.columnType)==="EXPAND_COLUMN"})===0){var Me=Ce,Ve=Ix(Me),xe=Ve[0],ve=Ve.slice(1);Ce=[xe,Ms].concat(Ge(ve))}else Ce=[Ms].concat(Ge(Ce));var Pe=Ce.indexOf(Ms);Ce=Ce.filter(function(we,Fe){return we!==Ms||Fe===Pe});var tt=Ce[Pe-1],De=Ce[Pe+1],ye=X;ye===void 0&&((De==null?void 0:De.fixed)!==void 0?ye=De.fixed:(tt==null?void 0:tt.fixed)!==void 0&&(ye=tt.fixed)),ye&&tt&&((k=tt[Bf])===null||k===void 0?void 0:k.columnType)==="EXPAND_COLUMN"&&tt.fixed===void 0&&(tt.fixed=ye);var Ee=U({fixed:ye,width:j,className:"".concat(te.value,"-selection-column"),title:t.value.columnTitle||le,customRender:ce},Bf,{class:"".concat(te.value,"-selection-col")});return Ce.map(function(we){return we===Ms?Ee:we})};return[D,y]}var tve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const nve=tve;function m2(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],e=lr(n),t=[];return e.forEach(function(r){var i,o,a;if(r){for(var s=r.key,l=((i=r.props)===null||i===void 0?void 0:i.style)||{},u=((o=r.props)===null||o===void 0?void 0:o.class)||"",c=r.props||{},d=0,f=Object.entries(c);d0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=n.length,r=e.length;if(Math.abs(t-r)!==1)return{add:!1,key:null};function i(o,a){var s=new Map;o.forEach(function(u){s.set(u,!0)});var l=a.filter(function(u){return!s.has(u)});return l.length===1?l[0]:null}return t ").concat(e);return e}const Eve=be({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:ule,setup:function(e,t){var r=t.expose,i=t.attrs,o=ee(),a=ee(),s=KH(),l=s.expandedKeys,u=s.flattenNodes;r({scrollTo:function(_){o.value.scrollTo(_)},getIndentWidth:function(){return a.value.offsetWidth}});var c=Zt(u.value),d=Zt([]),f=ee(null);function h(){c.value=u.value,d.value=[],f.value=null,e.onListChangeEnd()}var p=pO();We([function(){return l.value.slice()},u],function(g,_){var y=qe(g,2),C=y[0],w=y[1],b=qe(_,2),S=b[0],E=b[1],L=bve(S,C);if(L.key!==null){var T=e.virtual,R=e.height,N=e.itemHeight;if(L.add){var D=E.findIndex(function(B){var j=B.key;return j===L.key}),M=T2(E2(E,w,L.key),T,R,N),H=E.slice();H.splice(D+1,0,I2),c.value=H,d.value=M,f.value="show"}else{var k=w.findIndex(function(B){var j=B.key;return j===L.key}),W=T2(E2(w,E,L.key),T,R,N),F=w.slice();F.splice(k+1,0,I2),c.value=F,d.value=W,f.value="hide"}}else E!==w&&(c.value=w)}),We(function(){return p.value.dragging},function(g){g||h()});var v=V(function(){return e.motion===void 0?c.value:u.value}),m=function(){e.onActiveChange(null)};return function(){var g=O(O({},e),i),_=g.prefixCls;g.selectable,g.checkable;var y=g.disabled,C=g.motion,w=g.height,b=g.itemHeight,S=g.virtual,E=g.focusable,L=g.activeItem,T=g.focused,R=g.tabindex,N=g.onKeydown,D=g.onFocus,M=g.onBlur,H=g.onListChangeStart;g.onListChangeEnd;var k=Nt(g,Cve);return I(kt,null,[T&&L&&I("span",{style:L2,"aria-live":"assertive"},[Sve(L)]),I("div",null,[I("input",{style:L2,disabled:E===!1||y,tabindex:E!==!1?R:null,onKeydown:N,onFocus:D,onBlur:M,value:"",onChange:wve,"aria-label":"for screen reader"},null)]),I("div",{class:"".concat(_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[I("div",{class:"".concat(_,"-indent")},[I("div",{ref:a,class:"".concat(_,"-indent-unit")},null)])]),I(ZV,O(O({},nr(k,["onActiveChange"])),{},{data:v.value,itemKey:x2,height:w,fullHeight:!1,virtual:S,itemHeight:b,prefixCls:"".concat(_,"-list"),ref:o,onVisibleChange:function(F,B){var j=new Set(F),K=B.filter(function(X){return!j.has(X)});K.some(function(X){return x2(X)===td})&&h()}}),{default:function(F){var B=F.pos,j=fn({},F.data),K=F.title,X=F.key,Z=F.isStart,z=F.isEnd,Y=kg(X,B);return delete j.key,delete j.children,I(yve,O(O({},j),{},{eventKey:Y,title:K,active:!!L&&X===L.key,data:F.data,isStart:Z,isEnd:z,motion:C,motionNodes:X===td?d.value:null,motionType:f.value,onMotionStart:H,onMotionEnd:h,onMousemove:m}),null)}})])}}});function Lve(n){var e=n.dropPosition,t=n.dropLevelOffset,r=n.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(e){case-1:i.top=0,i.left="".concat(-t*r,"px");break;case 1:i.bottom=0,i.left="".concat(-t*r,"px");break;case 0:i.bottom=0,i.left="".concat(r);break}return I("div",{style:i},null)}var Ive=10;const Tve=be({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:Wn(GH(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Lve,allowDrop:function(){return!0}}),setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=ee(!1),s={},l=ee(),u=Zt([]),c=Zt([]),d=Zt([]),f=Zt([]),h=Zt([]),p=Zt([]),v={},m=Rn({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),g=Zt([]);We([function(){return e.treeData},function(){return e.children}],function(){g.value=e.treeData!==void 0?Tt(e.treeData).slice():lE(Tt(e.children))},{immediate:!0,deep:!0});var _=Zt({}),y=ee(!1),C=ee(null),w=ee(!1),b=V(function(){return uC(e.fieldNames)}),S=ee(),E=null,L=null,T=null,R=V(function(){return{expandedKeysSet:N.value,selectedKeysSet:D.value,loadedKeysSet:M.value,loadingKeysSet:H.value,checkedKeysSet:k.value,halfCheckedKeysSet:W.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:_.value}}),N=V(function(){return new Set(p.value)}),D=V(function(){return new Set(u.value)}),M=V(function(){return new Set(f.value)}),H=V(function(){return new Set(h.value)}),k=V(function(){return new Set(c.value)}),W=V(function(){return new Set(d.value)});Ft(function(){if(g.value){var De=mO(g.value,{fieldNames:b.value});_.value=O(U({},td,q8),De.keyEntities)}});var F=!1;We([function(){return e.expandedKeys},function(){return e.autoExpandParent},_],function(De,ye){var Ee=qe(De,2);Ee[0];var we=Ee[1],Fe=qe(ye,2);Fe[0];var $e=Fe[1],ze=p.value;if(e.expandedKeys!==void 0||F&&we!==$e)ze=e.autoExpandParent||!F&&e.defaultExpandParent?sE(e.expandedKeys,_.value):e.expandedKeys;else if(!F&&e.defaultExpandAll){var Se=O({},_.value);delete Se[td],ze=Object.keys(Se).map(function(Ie){return Se[Ie].key})}else!F&&e.defaultExpandedKeys&&(ze=e.autoExpandParent||e.defaultExpandParent?sE(e.defaultExpandedKeys,_.value):e.defaultExpandedKeys);ze&&(p.value=ze),F=!0},{immediate:!0});var B=Zt([]);Ft(function(){B.value=mle(g.value,p.value,b.value)}),Ft(function(){e.selectable&&(e.selectedKeys!==void 0?u.value=uk(e.selectedKeys,e):!F&&e.defaultSelectedKeys&&(u.value=uk(e.defaultSelectedKeys,e)))});var j=XH(_),K=j.maxLevel,X=j.levelEntities;Ft(function(){if(e.checkable){var De;if(e.checkedKeys!==void 0?De=ow(e.checkedKeys)||{}:!F&&e.defaultCheckedKeys?De=ow(e.defaultCheckedKeys)||{}:g.value&&(De=ow(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:d.value}),De){var ye=De,Ee=ye.checkedKeys,we=Ee===void 0?[]:Ee,Fe=ye.halfCheckedKeys,$e=Fe===void 0?[]:Fe;if(!e.checkStrictly){var ze=Ff(we,!0,_.value,K.value,X.value);we=ze.checkedKeys,$e=ze.halfCheckedKeys}c.value=we,d.value=$e}}}),Ft(function(){e.loadedKeys&&(f.value=e.loadedKeys)});var Z=function(){fn(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},z=function(ye){S.value.scrollTo(ye)};We(function(){return e.activeKey},function(){e.activeKey!==void 0&&(C.value=e.activeKey)},{immediate:!0}),We(C,function(De){en(function(){De!==null&&z({key:De})})},{immediate:!0,flush:"post"});var Y=function(ye){e.expandedKeys===void 0&&(p.value=ye)},te=function(){m.draggingNodeKey!==null&&fn(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),E=null,T=null},G=function(ye,Ee){var we=e.onDragend;m.dragOverNodeKey=null,te(),we==null||we({event:ye,node:Ee.eventData}),L=null},ae=function De(ye){G(ye,null),window.removeEventListener("dragend",De)},oe=function(ye,Ee){var we=e.onDragstart,Fe=Ee.eventKey,$e=Ee.eventData;L=Ee,E={x:ye.clientX,y:ye.clientY};var ze=As(p.value,Fe);m.draggingNodeKey=Fe,m.dragChildrenKeys=hle(Fe,_.value),l.value=S.value.getIndentWidth(),Y(ze),window.addEventListener("dragend",ae),we&&we({event:ye,node:$e})},de=function(ye,Ee){var we=e.onDragenter,Fe=e.onExpand,$e=e.allowDrop,ze=e.direction,Se=Ee.pos,Ie=Ee.eventKey;if(T!==Ie&&(T=Ie),!L){Z();return}var je=lk(ye,L,Ee,l.value,E,$e,B.value,_.value,N.value,ze),rt=je.dropPosition,Ye=je.dropLevelOffset,Ze=je.dropTargetKey,it=je.dropContainerKey,pt=je.dropTargetPos,vt=je.dropAllowed,xt=je.dragOverNodeKey;if(m.dragChildrenKeys.indexOf(Ze)!==-1||!vt){Z();return}if(s||(s={}),Object.keys(s).forEach(function(wt){clearTimeout(s[wt])}),L.eventKey!==Ee.eventKey&&(s[Se]=window.setTimeout(function(){if(m.draggingNodeKey!==null){var wt=p.value.slice(),_n=_.value[Ee.eventKey];_n&&(_n.children||[]).length&&(wt=Pl(p.value,Ee.eventKey)),Y(wt),Fe&&Fe(wt,{node:Ee.eventData,expanded:!0,nativeEvent:ye})}},800)),L.eventKey===Ze&&Ye===0){Z();return}fn(m,{dragOverNodeKey:xt,dropPosition:rt,dropLevelOffset:Ye,dropTargetKey:Ze,dropContainerKey:it,dropTargetPos:pt,dropAllowed:vt}),we&&we({event:ye,node:Ee.eventData,expandedKeys:p.value})},Ce=function(ye,Ee){var we=e.onDragover,Fe=e.allowDrop,$e=e.direction;if(L){var ze=lk(ye,L,Ee,l.value,E,Fe,B.value,_.value,N.value,$e),Se=ze.dropPosition,Ie=ze.dropLevelOffset,je=ze.dropTargetKey,rt=ze.dropContainerKey,Ye=ze.dropAllowed,Ze=ze.dropTargetPos,it=ze.dragOverNodeKey;m.dragChildrenKeys.indexOf(je)!==-1||!Ye||(L.eventKey===je&&Ie===0?m.dropPosition===null&&m.dropLevelOffset===null&&m.dropTargetKey===null&&m.dropContainerKey===null&&m.dropTargetPos===null&&m.dropAllowed===!1&&m.dragOverNodeKey===null||Z():Se===m.dropPosition&&Ie===m.dropLevelOffset&&je===m.dropTargetKey&&rt===m.dropContainerKey&&Ze===m.dropTargetPos&&Ye===m.dropAllowed&&it===m.dragOverNodeKey||fn(m,{dropPosition:Se,dropLevelOffset:Ie,dropTargetKey:je,dropContainerKey:rt,dropTargetPos:Ze,dropAllowed:Ye,dragOverNodeKey:it}),we&&we({event:ye,node:Ee.eventData}))}},$=function(ye,Ee){T===Ee.eventKey&&!ye.currentTarget.contains(ye.relatedTarget)&&(Z(),T=null);var we=e.onDragleave;we&&we({event:ye,node:Ee.eventData})},A=function(ye,Ee){var we,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$e=m.dragChildrenKeys,ze=m.dropPosition,Se=m.dropTargetKey,Ie=m.dropTargetPos,je=m.dropAllowed;if(je){var rt=e.onDrop;if(m.dragOverNodeKey=null,te(),Se!==null){var Ye=O(O({},uE(Se,Tt(R.value))),{},{active:((we=xe.value)===null||we===void 0?void 0:we.key)===Se,data:_.value[Se].node});$e.indexOf(Se);var Ze=gO(Ie),it={event:ye,node:cE(Ye),dragNode:L?L.eventData:null,dragNodesKeys:[L.eventKey].concat($e),dropToGap:ze!==0,dropPosition:ze+Number(Ze[Ze.length-1])};Fe||rt==null||rt(it),L=null}}},P=function(ye,Ee){var we=e.onClick;we&&we(ye,Ee)},Q=function(ye,Ee){var we=e.onDblclick;we&&we(ye,Ee)},re=function(ye,Ee){var we=u.value,Fe=e.onSelect,$e=e.multiple,ze=Ee.selected,Se=Ee[b.value.key],Ie=!ze;Ie?$e?we=Pl(we,Se):we=[Se]:we=As(we,Se);var je=_.value,rt=we.map(function(Ye){var Ze=je[Ye];return Ze?Ze.node:null}).filter(function(Ye){return Ye});e.selectedKeys===void 0&&(u.value=we),Fe&&Fe(we,{event:"select",selected:Ie,node:Ee,selectedNodes:rt,nativeEvent:ye})},le=function(ye,Ee,we){var Fe=e.checkStrictly,$e=e.onCheck,ze=Ee[b.value.key],Se,Ie={event:"check",node:Ee,checked:we,nativeEvent:ye},je=_.value;if(Fe){var rt=we?Pl(c.value,ze):As(c.value,ze),Ye=As(d.value,ze);Se={checked:rt,halfChecked:Ye},Ie.checkedNodes=rt.map(function(wt){return je[wt]}).filter(function(wt){return wt}).map(function(wt){return wt.node}),e.checkedKeys===void 0&&(c.value=rt)}else{var Ze=Ff([].concat(Ge(c.value),[ze]),!0,je,K.value,X.value),it=Ze.checkedKeys,pt=Ze.halfCheckedKeys;if(!we){var vt=new Set(it);vt.delete(ze);var xt=Ff(Array.from(vt),{checked:!1,halfCheckedKeys:pt},je,K.value,X.value);it=xt.checkedKeys,pt=xt.halfCheckedKeys}Se=it,Ie.checkedNodes=[],Ie.checkedNodesPositions=[],Ie.halfCheckedKeys=pt,it.forEach(function(wt){var _n=je[wt];if(_n){var Dt=_n.node,wn=_n.pos;Ie.checkedNodes.push(Dt),Ie.checkedNodesPositions.push({node:Dt,pos:wn})}}),e.checkedKeys===void 0&&(c.value=it,d.value=pt)}$e&&$e(Se,Ie)},me=function(ye){var Ee=ye[b.value.key],we=new Promise(function(Fe,$e){var ze=e.loadData,Se=e.onLoad;if(!ze||M.value.has(Ee)||H.value.has(Ee))return null;var Ie=ze(ye);Ie.then(function(){var je=Pl(f.value,Ee),rt=As(h.value,Ee);Se&&Se(je,{event:"load",node:ye}),e.loadedKeys===void 0&&(f.value=je),h.value=rt,Fe()}).catch(function(je){var rt=As(h.value,Ee);if(h.value=rt,v[Ee]=(v[Ee]||0)+1,v[Ee]>=Ive){var Ye=Pl(f.value,Ee);e.loadedKeys===void 0&&(f.value=Ye),Fe()}$e(je)}),h.value=Pl(h.value,Ee)});return we.catch(function(){}),we},ge=function(ye,Ee){var we=e.onMouseenter;we&&we({event:ye,node:Ee})},he=function(ye,Ee){var we=e.onMouseleave;we&&we({event:ye,node:Ee})},ue=function(ye,Ee){var we=e.onRightClick;we&&(ye.preventDefault(),we({event:ye,node:Ee}))},_e=function(ye){var Ee=e.onFocus;y.value=!0,Ee&&Ee(ye)},fe=function(ye){var Ee=e.onBlur;y.value=!1,Ve(null),Ee&&Ee(ye)},ne=function(ye,Ee){var we=p.value,Fe=e.onExpand,$e=e.loadData,ze=Ee.expanded,Se=Ee[b.value.key];if(!w.value){we.indexOf(Se);var Ie=!ze;if(Ie?we=Pl(we,Se):we=As(we,Se),Y(we),Fe&&Fe(we,{node:Ee,expanded:Ie,nativeEvent:ye}),Ie&&$e){var je=me(Ee);je&&je.then(function(){}).catch(function(rt){var Ye=As(p.value,Se);Y(Ye),Promise.reject(rt)})}}},ce=function(){w.value=!0},Me=function(){setTimeout(function(){w.value=!1})},Ve=function(ye){var Ee=e.onActiveChange;C.value!==ye&&(e.activeKey!==void 0&&(C.value=ye),ye!==null&&z({key:ye}),Ee&&Ee(ye))},xe=V(function(){return C.value===null?null:B.value.find(function(De){var ye=De.key;return ye===C.value})||null}),ve=function(ye){var Ee=B.value.findIndex(function($e){var ze=$e.key;return ze===C.value});Ee===-1&&ye<0&&(Ee=B.value.length),Ee=(Ee+ye+B.value.length)%B.value.length;var we=B.value[Ee];if(we){var Fe=we.key;Ve(Fe)}else Ve(null)},Pe=V(function(){return cE(O(O({},uE(C.value,R.value)),{},{data:xe.value.data,active:!0}))}),tt=function(ye){var Ee=e.onKeydown,we=e.checkable,Fe=e.selectable;switch(ye.which){case ct.UP:{ve(-1),ye.preventDefault();break}case ct.DOWN:{ve(1),ye.preventDefault();break}}var $e=xe.value;if($e&&$e.data){var ze=$e.data.isLeaf===!1||!!($e.data.children||[]).length,Se=Pe.value;switch(ye.which){case ct.LEFT:{ze&&N.value.has(C.value)?ne({},Se):$e.parent&&Ve($e.parent.key),ye.preventDefault();break}case ct.RIGHT:{ze&&!N.value.has(C.value)?ne({},Se):$e.children&&$e.children.length&&Ve($e.children[0].key),ye.preventDefault();break}case ct.ENTER:case ct.SPACE:{we&&!Se.disabled&&Se.checkable!==!1&&!Se.disableCheckbox?le({},Se,!k.value.has(C.value)):!we&&Fe&&!Se.disabled&&Se.selectable!==!1&&re({},Se);break}}}Ee&&Ee(ye)};return o({onNodeExpand:ne,scrollTo:z,onKeydown:tt,selectedKeys:V(function(){return u.value}),checkedKeys:V(function(){return c.value}),halfCheckedKeys:V(function(){return d.value}),loadedKeys:V(function(){return f.value}),loadingKeys:V(function(){return h.value}),expandedKeys:V(function(){return p.value})}),Ia(function(){window.removeEventListener("dragend",ae),a.value=!0}),ale({expandedKeys:p,selectedKeys:u,loadedKeys:f,loadingKeys:h,checkedKeys:c,halfCheckedKeys:d,expandedKeysSet:N,selectedKeysSet:D,loadedKeysSet:M,loadingKeysSet:H,checkedKeysSet:k,halfCheckedKeysSet:W,flattenNodes:B}),function(){var De,ye=m.draggingNodeKey,Ee=m.dropLevelOffset,we=m.dropContainerKey,Fe=m.dropTargetKey,$e=m.dropPosition,ze=m.dragOverNodeKey,Se=e.prefixCls,Ie=e.showLine,je=e.focusable,rt=e.tabindex,Ye=rt===void 0?0:rt,Ze=e.selectable,it=e.showIcon,pt=e.icon,vt=pt===void 0?i.icon:pt,xt=e.switcherIcon,wt=e.draggable,_n=e.checkable,Dt=e.checkStrictly,wn=e.disabled,Vn=e.motion,hr=e.loadData,Hn=e.filterTreeNode,Fr=e.height,_r=e.itemHeight,Ln=e.virtual,Yn=e.dropIndicatorRender,rr=e.onContextmenu,ta=e.onScroll,ir=e.direction,na=r.class,Da=r.style,Dd=Iu(O(O({},e),r),{aria:!0,data:!0}),so;return wt&&(at(wt)==="object"?so=wt:typeof wt=="function"?so={nodeDraggable:wt}:so={}),I(ole,{value:{prefixCls:Se,selectable:Ze,showIcon:it,icon:vt,switcherIcon:xt,draggable:so,draggingNodeKey:ye,checkable:_n,customCheckable:i.checkable,checkStrictly:Dt,disabled:wn,keyEntities:_.value,dropLevelOffset:Ee,dropContainerKey:we,dropTargetKey:Fe,dropPosition:$e,dragOverNodeKey:ze,dragging:ye!==null,indent:l.value,direction:ir,dropIndicatorRender:Yn,loadData:hr,filterTreeNode:Hn,onNodeClick:P,onNodeDoubleClick:Q,onNodeExpand:ne,onNodeSelect:re,onNodeCheck:le,onNodeLoad:me,onNodeMouseEnter:ge,onNodeMouseLeave:he,onNodeContextMenu:ue,onNodeDragStart:oe,onNodeDragEnter:de,onNodeDragOver:Ce,onNodeDragLeave:$,onNodeDragEnd:G,onNodeDrop:A,slots:i}},{default:function(){return[I("div",{role:"tree",class:Ne(Se,na,(De={},U(De,"".concat(Se,"-show-line"),Ie),U(De,"".concat(Se,"-focused"),y.value),U(De,"".concat(Se,"-active-focused"),C.value!==null),De))},[I(Eve,O({ref:S,prefixCls:Se,style:Da,disabled:wn,selectable:Ze,checkable:!!_n,motion:Vn,height:Fr,itemHeight:_r,virtual:Ln,focusable:je,focused:y.value,tabindex:Ye,activeItem:xe.value,onFocus:_e,onBlur:fe,onKeydown:tt,onActiveChange:Ve,onListChangeStart:ce,onListChangeEnd:Me,onContextmenu:rr,onScroll:ta},Dd),null)])]}})}}});var xve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Ove=xve;function O2(n){for(var e=1;e0})}function Z8(n,e){return typeof e=="string"||typeof e=="number"?e==null?void 0:e.toString().toLowerCase().includes(n.trim().toLowerCase()):!1}function Q8(n){var e=n.filters,t=n.prefixCls,r=n.filteredKeys,i=n.filterMultiple,o=n.searchValue,a=n.filterSearch;return e.map(function(s,l){var u=String(s.value);if(s.children)return I(ige,{key:u||l,title:s.text,popupClassName:"".concat(t,"-dropdown-submenu")},{default:function(){return[Q8({filters:s.children,prefixCls:t,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})]}});var c=i?Qa:Ri,d=I(oge,{key:s.value!==void 0?u:l},{default:function(){return[I(c,{checked:r.includes(u)},null),I("span",null,[s.text])]}});return o.trim()?typeof a=="function"?a(o,s)?d:void 0:Z8(o,s.text)?d:void 0:d})}const sge=be({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup:function(e,t){var r=t.slots,i=R8(),o=V(function(){var K;return(K=e.filterMode)!==null&&K!==void 0?K:"menu"}),a=V(function(){var K;return(K=e.filterSearch)!==null&&K!==void 0?K:!1}),s=V(function(){return e.column.filterDropdownVisible}),l=ee(!1),u=V(function(){var K;return!!(e.filterState&&((K=e.filterState.filteredKeys)!==null&&K!==void 0&&K.length||e.filterState.forceFiltered))}),c=V(function(){var K;return vC((K=e.column)===null||K===void 0?void 0:K.filters)}),d=V(function(){var K=e.column,X=K.filterDropdown,Z=K.slots,z=Z===void 0?{}:Z,Y=K.customFilterDropdown;return X||z.filterDropdown&&i.value[z.filterDropdown]||Y&&i.value.customFilterDropdown}),f=V(function(){var K=e.column,X=K.filterIcon,Z=K.slots,z=Z===void 0?{}:Z;return X||z.filterIcon&&i.value[z.filterIcon]||i.value.customFilterIcon}),h=function(X){var Z,z;l.value=X,(Z=(z=e.column).onFilterDropdownVisibleChange)===null||Z===void 0||Z.call(z,X)},p=V(function(){return typeof s.value=="boolean"?s.value:l.value}),v=V(function(){var K;return(K=e.filterState)===null||K===void 0?void 0:K.filteredKeys}),m=Zt([]),g=function(X){var Z=X.selectedKeys;m.value=Z},_=function(X,Z){var z=Z.node,Y=Z.checked;e.filterMultiple?g({selectedKeys:X}):g({selectedKeys:Y&&z.key?[z.key]:[]})};We(v,function(){l.value&&g({selectedKeys:v.value||[]})},{immediate:!0});var y=Zt([]),C=ee(),w=function(X){C.value=setTimeout(function(){y.value=X})},b=function(){clearTimeout(C.value)};Xt(function(){clearTimeout(C.value)});var S=ee(""),E=function(X){var Z=X.target.value;S.value=Z};We(l,function(){l.value||(S.value="")});var L=function(X){var Z=e.column,z=e.columnKey,Y=e.filterState,te=X&&X.length?X:null;if(te===null&&(!Y||!Y.filteredKeys)||Xb(te,Y==null?void 0:Y.filteredKeys))return null;e.triggerFilter({column:Z,key:z,filteredKeys:te})},T=function(){h(!1),L(m.value)},R=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Z=X.confirm,z=X.closeDropdown;Z&&L([]),z&&h(!1),S.value="",m.value=[]},N=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Z=X.closeDropdown;Z&&h(!1),L(m.value)},D=function(X){X&&v.value!==void 0&&(m.value=v.value||[]),h(X),!X&&!d.value&&T()},M=Et("",e),H=M.direction,k=function(X){if(X.target.checked){var Z=c.value;m.value=Z}else m.value=[]},W=function K(X){var Z=X.filters;return(Z||[]).map(function(z,Y){var te=String(z.value),G={title:z.text,key:z.value!==void 0?te:Y};return z.children&&(G.children=K({filters:z.children})),G})},F=V(function(){return W({filters:e.column.filters})}),B=V(function(){return Ne(U({},"".concat(e.dropdownPrefixCls,"-menu-without-submenu"),!age(e.column.filters||[])))}),j=function(){var X=m.value,Z=e.column,z=e.locale,Y=e.tablePrefixCls,te=e.filterMultiple,G=e.dropdownPrefixCls,ae=e.getPopupContainer,oe=e.prefixCls;return(Z.filters||[]).length===0?I(Kl,{image:Kl.PRESENTED_IMAGE_SIMPLE,description:z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):o.value==="tree"?I(kt,null,[I(S2,{filterSearch:a.value,value:S.value,onChange:E,tablePrefixCls:Y,locale:z},null),I("div",{class:"".concat(Y,"-filter-dropdown-tree")},[te?I(Qa,{class:"".concat(Y,"-filter-dropdown-checkall"),onChange:k,checked:X.length===c.value.length,indeterminate:X.length>0&&X.length1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ipe(V(function(){return e.contextSlots})),ope({onResizeColumn:function(ye,Ee){a("resizeColumn",ye,Ee)}});var s=eO(),l=V(function(){var De=new Set(Object.keys(s.value).filter(function(ye){return s.value[ye]}));return e.columns.filter(function(ye){return!ye.responsive||ye.responsive.some(function(Ee){return De.has(Ee)})})}),u=Et("table",e),c=u.size,d=u.renderEmpty,f=u.direction,h=u.prefixCls,p=u.configProvider,v=V(function(){return e.transformCellText||p.transformCellText}),m=Th("Table",nl.Table,vn(e,"locale")),g=qe(m,1),_=g[0],y=V(function(){return e.dataSource||fge}),C=V(function(){return p.getPrefixCls("dropdown",e.dropdownPrefixCls)}),w=V(function(){return e.childrenColumnName||"children"}),b=V(function(){return y.value.some(function(De){return De==null?void 0:De[w.value]})?"nest":e.expandedRowRender?"row":null}),S=Rn({body:null}),E=function(ye){fn(S,ye)},L=V(function(){return typeof e.rowKey=="function"?e.rowKey:function(De){return De==null?void 0:De[e.rowKey]}}),T=Qpe(y,w,L),R=qe(T,1),N=R[0],D={},M=function(ye,Ee){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fe=e.pagination,$e=e.scroll,ze=e.onChange,Se=O(O({},D),ye);we&&(D.resetPagination(),Se.pagination.current&&(Se.pagination.current=1),Fe&&Fe.onChange&&Fe.onChange(1,Se.pagination.pageSize)),$e&&$e.scrollToFirstRowOnChange!==!1&&S.body&&qJ(0,{getContainer:function(){return S.body}}),ze==null||ze(Se.pagination,Se.filters,Se.sorter,{currentDataSource:F2(FE(y.value,Se.sorterStates,w.value),Se.filterStates),action:Ee})},H=function(ye,Ee){M({sorter:ye,sorterStates:Ee},"sort",!1)},k=dve({prefixCls:h,mergedColumns:l,onSorterChange:H,sortDirections:V(function(){return e.sortDirections||["ascend","descend"]}),tableLocale:_,showSorterTooltip:vn(e,"showSorterTooltip")}),W=qe(k,4),F=W[0],B=W[1],j=W[2],K=W[3],X=V(function(){return FE(y.value,B.value,w.value)}),Z=function(ye,Ee){M({filters:ye,filterStates:Ee},"filter",!0)},z=lge({prefixCls:h,locale:_,dropdownPrefixCls:C,mergedColumns:l,onFilterChange:Z,getPopupContainer:vn(e,"getPopupContainer")}),Y=qe(z,3),te=Y[0],G=Y[1],ae=Y[2],oe=V(function(){return F2(X.value,G.value)}),de=dge(vn(e,"contextSlots")),Ce=qe(de,1),$=Ce[0],A=V(function(){return O({},j.value)}),P=uge(A),Q=qe(P,1),re=Q[0],le=function(ye,Ee){M({pagination:O(O({},D.pagination),{},{current:ye,pageSize:Ee})},"paginate")},me=Zpe(V(function(){return oe.value.length}),vn(e,"pagination"),le),ge=qe(me,2),he=ge[0],ue=ge[1];Ft(function(){D.sorter=K.value,D.sorterStates=B.value,D.filters=ae.value,D.filterStates=G.value,D.pagination=e.pagination===!1?{}:Ype(e.pagination,he.value),D.resetPagination=ue});var _e=V(function(){if(e.pagination===!1||!he.value.pageSize)return oe.value;var De=he.value,ye=De.current,Ee=ye===void 0?1:ye,we=De.total,Fe=De.pageSize,$e=Fe===void 0?DE:Fe;return Kn(Ee>0,"Table","`current` should be positive number."),oe.value.length$e?oe.value.slice((Ee-1)*$e,Ee*$e):oe.value:oe.value.slice((Ee-1)*$e,Ee*$e)});Ft(function(){en(function(){var De=he.value,ye=De.total,Ee=De.pageSize,we=Ee===void 0?DE:Ee;oe.value.lengthwe&&Kn(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});var fe=V(function(){return e.showExpandColumn===!1?-1:b.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex}),ne=ee();We(function(){return e.rowSelection},function(){ne.value=e.rowSelection?O({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});var ce=eve(ne,{prefixCls:h,data:oe,pageData:_e,getRowKey:L,getRecordByKey:N,expandType:b,childrenColumnName:w,locale:_,getPopupContainer:V(function(){return e.getPopupContainer})}),Me=qe(ce,2),Ve=Me[0],xe=Me[1],ve=function(ye,Ee,we){var Fe,$e=e.rowClassName;return typeof $e=="function"?Fe=Ne($e(ye,Ee,we)):Fe=Ne($e),Ne(U({},"".concat(h.value,"-row-selected"),xe.value.has(L.value(ye,Ee))),Fe)};o({selectedKeySet:xe});var Pe=V(function(){return typeof e.indentSize=="number"?e.indentSize:15}),tt=function(ye){var Ee=re(Ve(te(F($(ye)))));return Ee};return function(){var De,ye,Ee=e.expandIcon,we=Ee===void 0?i.expandIcon||cge(_.value):Ee,Fe=e.pagination,$e=e.loading,ze=e.bordered,Se,Ie;if(Fe!==!1&&(De=he.value)!==null&&De!==void 0&&De.total){var je;he.value.size?je=he.value.size:je=c.value==="small"||c.value==="middle"?"small":void 0;var rt=function(wn){return I(PO,O(O({},he.value),{},{class:["".concat(h.value,"-pagination ").concat(h.value,"-pagination-").concat(wn),he.value.class],size:je}),null)},Ye=f.value==="rtl"?"left":"right",Ze=he.value.position;if(Ze!==null&&Array.isArray(Ze)){var it=Ze.find(function(Dt){return Dt.indexOf("top")!==-1}),pt=Ze.find(function(Dt){return Dt.indexOf("bottom")!==-1}),vt=Ze.every(function(Dt){return"".concat(Dt)==="none"});!it&&!pt&&!vt&&(Ie=rt(Ye)),it&&(Se=rt(it.toLowerCase().replace("top",""))),pt&&(Ie=rt(pt.toLowerCase().replace("bottom","")))}else Ie=rt(Ye)}var xt;typeof $e=="boolean"?xt={spinning:$e}:at($e)==="object"&&(xt=O({spinning:!0},$e));var wt=Ne("".concat(h.value,"-wrapper"),U({},"".concat(h.value,"-wrapper-rtl"),f.value==="rtl"),r.class),_n=nr(e,["columns"]);return I("div",{class:wt,style:r.style},[I(iu,O({spinning:!1},xt),{default:function(){return[Se,I(qpe,O(O(O({},r),_n),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:fe.value,indentSize:Pe.value,expandIcon:we,columns:l.value,direction:f.value,prefixCls:h.value,class:Ne((ye={},U(ye,"".concat(h.value,"-middle"),c.value==="middle"),U(ye,"".concat(h.value,"-small"),c.value==="small"),U(ye,"".concat(h.value,"-bordered"),ze),U(ye,"".concat(h.value,"-empty"),y.value.length===0),ye)),data:_e.value,rowKey:L.value,rowClassName:ve,internalHooks:NE,internalRefs:S,onUpdateInternalRefs:E,transformColumns:tt,transformCellText:v.value}),O(O({},i),{},{emptyText:function(){var Vn,hr;return((Vn=i.emptyText)===null||Vn===void 0?void 0:Vn.call(i))||((hr=e.locale)===null||hr===void 0?void 0:hr.emptyText)||d.value("Table")}})),Ie]}})])}}}),vge=be({name:"ATable",inheritAttrs:!1,setup:function(e,t){var r=t.attrs,i=t.slots,o=t.expose,a=ee();return o({table:a}),function(){var s,l=r,u=l.columns||K8((s=i.default)===null||s===void 0?void 0:s.call(i));return I(pge,O(O({ref:a},r),{},{columns:u||[],expandedRowRender:i.expandedRowRender,contextSlots:O({},i)}),i)}}});const Lw=vge,Iw=be({name:"ATableColumn",slots:["title","filterIcon"],render:function(){return null}}),Tw=be({name:"ATableColumnGroup",slots:["title"],__ANT_TABLE_COLUMN_GROUP:!0,render:function(){return null}});var VE=be(O(O({},Mpe),{},{name:"ATableSummaryRow"})),HE=be(O(O({},Bpe),{},{name:"ATableSummaryCell"})),xw=fn(Wpe,{Cell:HE,Row:VE,name:"ATableSummary"});const gge=fn(Lw,{SELECTION_ALL:AE,SELECTION_INVERT:RE,SELECTION_NONE:PE,SELECTION_COLUMN:Ms,EXPAND_COLUMN:Hl,Column:Iw,ColumnGroup:Tw,Summary:xw,install:function(e){return e.component(xw.name,xw),e.component(HE.name,HE),e.component(VE.name,VE),e.component(Lw.name,Lw),e.component(Iw.name,Iw),e.component(Tw.name,Tw),e}});var mge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const _ge=mge;function B2(n){for(var e=1;e0&&(o.percent=o.loaded/o.total*100),n.onProgress(o)});var t=new FormData;n.data&&Object.keys(n.data).forEach(function(i){var o=n.data[i];if(Array.isArray(o)){o.forEach(function(a){t.append("".concat(i,"[]"),a)});return}t.append(i,o)}),n.file instanceof Blob?t.append(n.filename,n.file,n.file.name):t.append(n.filename,n.file),e.onerror=function(o){n.onError(o)},e.onload=function(){return e.status<200||e.status>=300?n.onError(Cge(n,e),W2(e)):n.onSuccess(W2(e),e)},e.open(n.method,n.action,!0),n.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var r=n.headers||{};return r["X-Requested-With"]!==null&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(i){r[i]!==null&&e.setRequestHeader(i,r[i])}),e.send(t),{abort:function(){e.abort()}}}var Sge=+new Date,Ege=0;function Ow(){return"vc-upload-".concat(Sge,"-").concat(++Ege)}const Nw=function(n,e){if(n&&e){var t=Array.isArray(e)?e:e.split(","),r=n.name||"",i=n.type||"",o=i.replace(/\/.*$/,"");return t.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),u=s.toLowerCase(),c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):!!(i===s||/^\w+$/.test(s))})}return!0};function Lge(n,e){var t=n.createReader(),r=[];function i(){t.readEntries(function(o){var a=Array.prototype.slice.apply(o);r=r.concat(a);var s=!a.length;s?e(r):i()})}i()}var Ige=function(e,t,r){var i=function o(a,s){a.path=s||"",a.isFile?a.file(function(l){r(l)&&(a.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),t([l]))}):a.isDirectory&&Lge(a,function(l){l.forEach(function(u){o(u,"".concat(s).concat(a.name,"/"))})})};e.forEach(function(o){i(o.webkitGetAsEntry())})};const Tge=Ige;var n7=function(){return{capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}};function xge(n,e,t,r){for(var i=-1,o=n==null?0:n.length;++i0&&arguments[0]!==void 0?arguments[0]:"",t=e.split("/"),r=t[t.length-1],i=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},i7=function(e){return e.indexOf("image/")===0},rme=function(e){if(e.type&&!e.thumbUrl)return i7(e.type);var t=e.thumbUrl||e.url||"",r=nme(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)},yl=200;function ime(n){return new Promise(function(e){if(!n.type||!i7(n.type)){e("");return}var t=document.createElement("canvas");t.width=yl,t.height=yl,t.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(yl,"px; height: ").concat(yl,"px; z-index: 9999; display: none;"),document.body.appendChild(t);var r=t.getContext("2d"),i=new Image;i.onload=function(){var o=i.width,a=i.height,s=yl,l=yl,u=0,c=0;o>a?(l=a*(yl/o),c=-(l-s)/2):(s=o*(yl/a),u=-(s-l)/2),r.drawImage(i,u,c,s,l);var d=t.toDataURL();document.body.removeChild(t),e(d)},i.src=window.URL.createObjectURL(n)})}var ome={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const ame=ome;function j2(n){for(var e=1;e"u"||typeof window>"u"||!window.FileReader||!window.File||!(g.originFileObj instanceof File||g.originFileObj instanceof Blob)||g.thumbUrl!==void 0||(g.thumbUrl="",e.previewFile&&e.previewFile(g.originFileObj).then(function(_){g.thumbUrl=_||"",a.update()}))})});var s=function(_,y){if(e.onPreview)return y==null||y.preventDefault(),e.onPreview(_)},l=function(_){typeof e.onDownload=="function"?e.onDownload(_):_.url&&window.open(_.url)},u=function(_){var y;(y=e.onRemove)===null||y===void 0||y.call(e,_)},c=function(_){var y=_.file,C=e.iconRender||r.iconRender;if(C)return C({file:y,listType:e.listType});var w=y.status==="uploading",b=e.isImageUrl&&e.isImageUrl(y)?I(Yge,null,null):I(Jge,null,null),S=I(w?_u:zge,null,null);return e.listType==="picture"?S=w?I(_u,null,null):b:e.listType==="picture-card"&&(S=w?e.locale.uploading:b),S},d=function(_){var y=_.customIcon,C=_.callback,w=_.prefixCls,b=_.title,S={type:"text",size:"small",title:b,onClick:function(){C()},class:"".concat(w,"-list-item-card-actions-btn")};return ni(y)?I(bi,S,{icon:function(){return y}}):I(bi,S,{default:function(){return[I("span",null,[y])]}})};i({handlePreview:s,handleDownload:l});var f=Et("upload",e),h=f.prefixCls,p=f.direction,v=V(function(){var g;return g={},U(g,"".concat(h.value,"-list"),!0),U(g,"".concat(h.value,"-list-").concat(e.listType),!0),U(g,"".concat(h.value,"-list-rtl"),p.value==="rtl"),g}),m=V(function(){return O(O(O({},Mg("".concat(h.value,"-").concat(e.listType==="picture-card"?"animate-inline":"animate"))),dx("".concat(h.value,"-").concat(e.listType==="picture-card"?"animate-inline":"animate"))),{},{class:v.value,appear:o.value})});return function(){var g=e.listType,_=e.locale,y=e.isImageUrl,C=e.items,w=C===void 0?[]:C,b=e.showPreviewIcon,S=e.showRemoveIcon,E=e.showDownloadIcon,L=e.removeIcon,T=e.previewIcon,R=e.downloadIcon,N=e.progress,D=e.appendAction,M=e.itemRender,H=e.appendActionVisible,k=D==null?void 0:D();return I(ix,O(O({},m.value),{},{tag:"div"}),{default:function(){return[w.map(function(F){var B=F.uid;return I(cme,{key:B,locale:_,prefixCls:h.value,file:F,items:w,progress:N,listType:g,isImgUrl:y,showPreviewIcon:b,showRemoveIcon:S,showDownloadIcon:E,onPreview:s,onDownload:l,onClose:u,removeIcon:L,previewIcon:T,downloadIcon:R,itemRender:M},O(O({},r),{},{iconRender:c,actionIconRender:d}))}),D?Ki(I(dme,{key:"__ant_upload_appendAction"},{default:function(){return k}}),[[fl,!!H]]):null]}})}}});var hme=["class","style"],Vp="__LIST_IGNORE_".concat(Date.now(),"__");const M_=be({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Wn(r7(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup:function(e,t){var r=t.slots,i=t.attrs,o=t.expose,a=ps(),s=th(e.defaultFileList||[],{value:vn(e,"fileList"),postState:function(D){var M=Date.now();return(D??[]).map(function(H,k){return!H.uid&&!Object.isFrozen(H)&&(H.uid="__AUTO__".concat(M,"_").concat(k,"__")),H})}}),l=qe(s,2),u=l[0],c=l[1],d=ee("drop"),f=ee();Wt(function(){Kn(e.fileList!==void 0||i.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Kn(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Kn(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});var h=function(D,M,H){var k,W,F=Ge(M);e.maxCount===1?F=F.slice(-1):e.maxCount&&(F=F.slice(0,e.maxCount)),c(F);var B={file:D,fileList:F};H&&(B.event=H),(k=e["onUpdate:fileList"])===null||k===void 0||k.call(e,B.fileList),(W=e.onChange)===null||W===void 0||W.call(e,B),a.onFieldChange()},p=function(){var N=pd(no.mark(function D(M,H){var k,W,F,B;return no.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(k=e.beforeUpload,W=e.transformFile,F=M,!k){K.next=13;break}return K.next=5,k(M,H);case 5:if(B=K.sent,B!==!1){K.next=8;break}return K.abrupt("return",!1);case 8:if(delete M[Vp],B!==Vp){K.next=12;break}return Object.defineProperty(M,Vp,{value:!0,configurable:!0}),K.abrupt("return",!1);case 12:at(B)==="object"&&B&&(F=B);case 13:if(!W){K.next=17;break}return K.next=16,W(F);case 16:F=K.sent;case 17:return K.abrupt("return",F);case 18:case"end":return K.stop()}},D)}));return function(M,H){return N.apply(this,arguments)}}(),v=function(D){var M=D.filter(function(W){return!W.file[Vp]});if(M.length){var H=M.map(function(W){return Vm(W.file)}),k=Ge(u.value);H.forEach(function(W){k=Hm(W,k)}),H.forEach(function(W,F){var B=W;if(M[F].parsedFile)W.status="uploading";else{var j=W.originFileObj,K;try{K=new File([j],j.name,{type:j.type})}catch{K=new Blob([j],{type:j.type}),K.name=j.name,K.lastModifiedDate=new Date,K.lastModified=new Date().getTime()}K.uid=W.uid,B=K}h(B,k)})}},m=function(D,M,H){try{typeof D=="string"&&(D=JSON.parse(D))}catch{}if(Aw(M,u.value)){var k=Vm(M);k.status="done",k.percent=100,k.response=D,k.xhr=H;var W=Hm(k,u.value);h(k,W)}},g=function(D,M){if(Aw(M,u.value)){var H=Vm(M);H.status="uploading",H.percent=D.percent;var k=Hm(H,u.value);h(H,k,D)}},_=function(D,M,H){if(Aw(H,u.value)){var k=Vm(H);k.error=D,k.response=M,k.status="error";var W=Hm(k,u.value);h(k,W)}},y=function(D){var M,H=e.onRemove||e.remove;Promise.resolve(typeof H=="function"?H(D):H).then(function(k){if(k!==!1){var W=tme(D,u.value);if(W){var F,B;M=O(O({},D),{},{status:"removed"}),(F=u.value)===null||F===void 0||F.forEach(function(j){var K=M.uid!==void 0?"uid":"name";j[K]===M[K]&&!Object.isFrozen(j)&&(j.status="removed")}),(B=f.value)===null||B===void 0||B.abort(M),h(M,W)}}})},C=function(D){if(d.value=D.type,D.type==="drop"){var M;(M=e.onDrop)===null||M===void 0||M.call(e,D)}};o({onBatchStart:v,onSuccess:m,onProgress:g,onError:_,fileList:u,upload:f});var w=Et("upload",e),b=w.prefixCls,S=w.direction,E=Th("Upload",nl.Upload,V(function(){return e.locale})),L=qe(E,1),T=L[0],R=function(D,M){var H=e.removeIcon,k=e.previewIcon,W=e.downloadIcon,F=e.previewFile,B=e.onPreview,j=e.onDownload,K=e.disabled,X=e.isImageUrl,Z=e.progress,z=e.itemRender,Y=e.iconRender,te=e.showUploadList,G=typeof te=="boolean"?{}:te,ae=G.showDownloadIcon,oe=G.showPreviewIcon,de=G.showRemoveIcon;return te?I(fme,{listType:e.listType,items:u.value,previewFile:F,onPreview:B,onDownload:j,onRemove:y,showRemoveIcon:!K&&de,showPreviewIcon:oe,showDownloadIcon:ae,removeIcon:H,previewIcon:k,downloadIcon:W,iconRender:Y,locale:T.value,isImageUrl:X,progress:Z,itemRender:z,appendActionVisible:M,appendAction:D},O({},r)):D==null?void 0:D()};return function(){var N,D,M,H=e.listType,k=e.disabled,W=e.type;i.class,i.style;var F=Nt(i,hme),B=O(O(O({onBatchStart:v,onError:_,onProgress:g,onSuccess:m},F),e),{},{id:(N=e.id)!==null&&N!==void 0?N:a.id.value,prefixCls:b.value,beforeUpload:p,onChange:void 0});if(delete B.remove,(!r.default||k)&&delete B.id,W==="drag"){var j,K,X=Ne(b.value,(j={},U(j,"".concat(b.value,"-drag"),!0),U(j,"".concat(b.value,"-drag-uploading"),u.value.some(function(te){return te.status==="uploading"})),U(j,"".concat(b.value,"-drag-hover"),d.value==="dragover"),U(j,"".concat(b.value,"-disabled"),k),U(j,"".concat(b.value,"-rtl"),S.value==="rtl"),j),i.class);return I("span",null,[I("div",{class:X,onDrop:C,onDragover:C,onDragleave:C,style:i.style},[I(V2,O(O({},B),{},{ref:f,class:"".concat(b.value,"-btn")}),O({default:function(){return[I("div",{class:"".concat(b,"-drag-container")},[(K=r.default)===null||K===void 0?void 0:K.call(r)])]}},r))]),R()])}var Z=Ne(b.value,(D={},U(D,"".concat(b.value,"-select"),!0),U(D,"".concat(b.value,"-select-").concat(H),!0),U(D,"".concat(b.value,"-disabled"),k),U(D,"".concat(b.value,"-rtl"),S.value==="rtl"),D)),z=lr((M=r.default)===null||M===void 0?void 0:M.call(r)),Y=function(G){return I("div",{class:Z,style:G},[I(V2,O(O({},B),{},{ref:f}),r)])};return H==="picture-card"?I("span",{class:Ne("".concat(b.value,"-picture-card-wrapper"),i.class)},[R(Y,!!(z&&z.length))]):I("span",{class:i.class},[Y(z&&z.length?void 0:{display:"none"}),R()])}}});var pme=["height"],vme=["style"];const Rw=be({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:r7(),setup:function(e,t){var r=t.slots,i=t.attrs;return function(){var o=e.height,a=Nt(e,pme),s=i.style,l=Nt(i,vme),u=O(O(O({},a),l),{},{type:"drag",style:O(O({},s),{},{height:typeof o=="number"?"".concat(o,"px"):o})});return I(M_,u,r)}}}),gme=fn(M_,{Dragger:Rw,LIST_IGNORE:Vp,install:function(e){return e.component(M_.name,M_),e.component(Rw.name,Rw),e}});var mme={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const _me=mme;var yme={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};const o7=yme;var a7={lang:O({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},_me),timePickerLocale:O({},o7)};a7.lang.ok="确定";const z2=a7;var co="${label}不是一个有效的${type}",bme={locale:"zh-cn",Pagination:L8,DatePicker:z2,TimePicker:o7,Calendar:z2,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:co,method:co,array:co,object:co,number:co,date:co,boolean:co,integer:co,float:co,regexp:co,email:co,url:co,hex:co},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};const Cme=bme,wme=be({__name:"App",setup(n){const e=ee(nl.locale);return(t,r)=>{const i=Mq("router-view"),o=jb;return xg(),JT(o,{locale:e.value==="en"?gr(nl):gr(Cme)},{default:UT(()=>[I(i)]),_:1},8,["locale"])}}}),Sme="modulepreload",Eme=function(n,e){return new URL(n,e).href},K2={},nt=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(a=>{if(a=Eme(a,r),a in K2)return;K2[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const f=o[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Sme,s||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),s)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return i.then(()=>e()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote * @license MIT - */const sf=typeof document<"u";function jge(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const In=Object.assign;function Ww(n,e){const t={};for(const r in e){const i=e[r];t[r]=Sa(i)?i.map(n):n(i)}return t}const lv=()=>{},Sa=Array.isArray,u7=/#/g,zge=/&/g,Kge=/\//g,Gge=/=/g,qge=/\?/g,c7=/\+/g,Yge=/%5B/g,Xge=/%5D/g,d7=/%5E/g,Zge=/%60/g,f7=/%7B/g,Qge=/%7C/g,h7=/%7D/g,Jge=/%20/g;function QO(n){return encodeURI(""+n).replace(Qge,"|").replace(Yge,"[").replace(Xge,"]")}function eme(n){return QO(n).replace(f7,"{").replace(h7,"}").replace(d7,"^")}function zE(n){return QO(n).replace(c7,"%2B").replace(Jge,"+").replace(u7,"%23").replace(zge,"%26").replace(Zge,"`").replace(f7,"{").replace(h7,"}").replace(d7,"^")}function tme(n){return zE(n).replace(Gge,"%3D")}function nme(n){return QO(n).replace(u7,"%23").replace(qge,"%3F")}function rme(n){return n==null?"":nme(n).replace(Kge,"%2F")}function jv(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const ime=/\/$/,ome=n=>n.replace(ime,"");function Vw(n,e,t="/"){let r,i={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),i=n(o)),s>-1&&(r=r||e.slice(0,s),a=e.slice(s,e.length)),r=ume(r??e,t),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:jv(a)}}function ame(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function G2(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function sme(n,e,t){const r=e.matched.length-1,i=t.matched.length-1;return r>-1&&r===i&&oh(e.matched[r],t.matched[i])&&p7(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function oh(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function p7(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!lme(n[t],e[t]))return!1;return!0}function lme(n,e){return Sa(n)?q2(n,e):Sa(e)?q2(e,n):n===e}function q2(n,e){return Sa(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function ume(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=t.length-1,a,s;for(a=0;a1&&o--;else break;return t.slice(0,o).join("/")+"/"+r.slice(a).join("/")}var zv;(function(n){n.pop="pop",n.push="push"})(zv||(zv={}));var uv;(function(n){n.back="back",n.forward="forward",n.unknown=""})(uv||(uv={}));function cme(n){if(!n)if(sf){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),ome(n)}const dme=/^[^#]+#/;function fme(n,e){return n.replace(dme,"#")+e}function hme(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const yC=()=>({left:window.scrollX,top:window.scrollY});function pme(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=hme(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Y2(n,e){return(history.state?history.state.position-e:-1)+n}const KE=new Map;function vme(n,e){KE.set(n,e)}function gme(n){const e=KE.get(n);return KE.delete(n),e}let mme=()=>location.protocol+"//"+location.host;function v7(n,e){const{pathname:t,search:r,hash:i}=e,o=n.indexOf("#");if(o>-1){let s=i.includes(n.slice(o))?n.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),G2(l,"")}return G2(t,n)+r+i}function _me(n,e,t,r){let i=[],o=[],a=null;const s=({state:f})=>{const h=v7(n,location),p=t.value,v=e.value;let m=0;if(f){if(t.value=h,e.value=f,a&&a===p){a=null;return}m=v?f.position-v.position:0}else r(h);i.forEach(g=>{g(t.value,p,{delta:m,type:zv.pop,direction:m?m>0?uv.forward:uv.back:uv.unknown})})};function l(){a=t.value}function u(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return o.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(In({},f.state,{scroll:yC()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function X2(n,e,t,r=!1,i=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:i?yC():null}}function yme(n){const{history:e,location:t}=window,r={value:v7(n,t)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=n.indexOf("#"),f=d>-1?(t.host&&document.querySelector("base")?n:n.slice(d))+l:mme()+n+l;try{e[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),t[c?"replace":"assign"](f)}}function a(l,u){const c=In({},e.state,X2(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=In({},i.value,e.state,{forward:l,scroll:yC()});o(c.current,c,!0);const d=In({},X2(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function bme(n){n=cme(n);const e=yme(n),t=_me(n,e.state,e.location,e.replace);function r(o,a=!0){a||t.pauseListeners(),history.go(o)}const i=In({location:"",base:n,go:r,createHref:fme.bind(null,n)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function Cme(n){return typeof n=="string"||n&&typeof n=="object"}function g7(n){return typeof n=="string"||typeof n=="symbol"}const yl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},m7=Symbol("");var Z2;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Z2||(Z2={}));function ah(n,e){return In(new Error,{type:n,[m7]:!0},e)}function Ls(n,e){return n instanceof Error&&m7 in n&&(e==null||!!(n.type&e))}const Q2="[^/]+?",wme={sensitive:!1,strict:!1,start:!0,end:!0},Sme=/[.+*?^${}()[\]/\\]/g;function Eme(n,e){const t=In({},wme,e),r=[];let i=t.start?"^":"";const o=[];for(const u of n){const c=u.length?[]:[90];t.strict&&!u.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function Ime(n,e){let t=0;const r=n.score,i=e.score;for(;t0&&e[e.length-1]<0}const Tme={type:0,value:""},xme=/[a-zA-Z0-9_]/;function Ome(n){if(!n)return[[]];if(n==="/")return[[Tme]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${u}": ${h}`)}let t=0,r=t;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function d(){u&&(t===0?o.push({type:0,value:u}):t===1||t===2||t===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s{a(_)}:lv}function a(c){if(g7(c)){const d=r.get(c);d&&(r.delete(c),t.splice(t.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=t.indexOf(c);d>-1&&(t.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function s(){return t}function l(c){let d=0;for(;d=0&&(c.record.path!==t[d].record.path||!_7(c,t[d]));)d++;t.splice(d,0,c),c.record.name&&!tF(c)&&r.set(c.record.name,c)}function u(c,d){let f,h={},p,v;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw ah(1,{location:c});v=f.record.name,h=In(eF(d.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),c.params&&eF(c.params,f.keys.map(_=>_.name))),p=f.stringify(h)}else if(c.path!=null)p=c.path,f=t.find(_=>_.re.test(p)),f&&(h=f.parse(p),v=f.record.name);else{if(f=d.name?r.get(d.name):t.find(_=>_.re.test(d.path)),!f)throw ah(1,{location:c,currentLocation:d});v=f.record.name,h=In({},d.params,c.params),p=f.stringify(h)}const m=[];let g=f;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:Pme(m)}}return n.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:i}}function eF(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function Dme(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:Rme(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function Rme(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function tF(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function Pme(n){return n.reduce((e,t)=>In(e,t.meta),{})}function nF(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function _7(n,e){return e.children.some(t=>t===n||_7(n,t))}function Mme(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;io&&zE(o)):[r&&zE(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+t,o!=null&&(e+="="+o))})}return e}function kme(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=Sa(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const y7=Symbol(""),iF=Symbol(""),bC=Symbol(""),JO=Symbol(""),GE=Symbol("");function lp(){let n=[];function e(r){return n.push(r),()=>{const i=n.indexOf(r);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function Fme(n,e,t){const r=()=>{n[e].delete(t)};Ia(r),S5(r),XT(()=>{n[e].add(t)}),n[e].add(t)}function I9e(n){const e=yt(y7,{}).value;e&&Fme(e,"leaveGuards",n)}function Ul(n,e,t,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(ah(4,{from:t,to:e})):f instanceof Error?l(f):Cme(f)?l(ah(2,{from:e,to:f})):(a&&r.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),s())},c=o(()=>n.call(r&&r.instances[i],e,t,u));let d=Promise.resolve(c);n.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function Hw(n,e,t,r,i=o=>o()){const o=[];for(const a of n)for(const s in a.components){let l=a.components[s];if(!(e!=="beforeRouteEnter"&&!a.instances[s]))if(Bme(l)){const c=(l.__vccOpts||l)[e];c&&o.push(Ul(c,t,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${a.path}"`));const d=jge(c)?c.default:c;a.components[s]=d;const h=(d.__vccOpts||d)[e];return h&&Ul(h,t,r,a,s,i)()}))}}return o}function Bme(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function oF(n){const e=yt(bC),t=yt(JO),r=V(()=>e.resolve(vr(n.to))),i=V(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=t.matched;if(!c||!d.length)return-1;const f=d.findIndex(oh.bind(null,c));if(f>-1)return f;const h=aF(l[u-2]);return u>1&&aF(c)===h&&d[d.length-1].path!==h?d.findIndex(oh.bind(null,l[u-2])):f}),o=V(()=>i.value>-1&&Ume(t.params,r.value.params)),a=V(()=>i.value>-1&&i.value===t.matched.length-1&&p7(t.params,r.value.params));function s(l={}){return Hme(l)?e[vr(n.replace)?"replace":"push"](vr(n.to)).catch(lv):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}const Wme=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oF,setup(n,{slots:e}){const t=Rn(oF(n)),{options:r}=yt(bC),i=V(()=>({[sF(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[sF(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const o=e.default&&e.default(t);return n.custom?o:Xc("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},o)}}}),Vme=Wme;function Hme(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function Ume(n,e){for(const t in e){const r=e[t],i=n[t];if(typeof r=="string"){if(r!==i)return!1}else if(!Sa(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function aF(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const sF=(n,e,t)=>n??e??t,$me=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=yt(GE),i=V(()=>n.route||r.value),o=yt(iF,0),a=V(()=>{let u=vr(o);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=V(()=>i.value.matched[a.value]);qt(iF,V(()=>a.value+1)),qt(y7,s),qt(GE,i);const l=J();return Ve(()=>[l.value,s.value,n.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!oh(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=n.name,d=s.value,f=d&&d.components[c];if(!f)return lF(t.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Xc(f,In({},p,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return lF(t.default,{Component:m,route:u})||m}}});function lF(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const jme=$me;function zme(n){const e=Ame(n.routes,n),t=n.parseQuery||Mme,r=n.stringifyQuery||rF,i=n.history,o=lp(),a=lp(),s=lp(),l=Yt(yl);let u=yl;sf&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ww.bind(null,K=>""+K),d=Ww.bind(null,rme),f=Ww.bind(null,jv);function h(K,oe){let ie,ue;return g7(K)?(ie=e.getRecordMatcher(K),ue=oe):ue=K,e.addRoute(ue,ie)}function p(K){const oe=e.getRecordMatcher(K);oe&&e.removeRoute(oe)}function v(){return e.getRoutes().map(K=>K.record)}function m(K){return!!e.getRecordMatcher(K)}function g(K,oe){if(oe=In({},oe||l.value),typeof K=="string"){const R=Vw(t,K,oe.path),G=e.resolve({path:R.path},oe),te=i.createHref(R.fullPath);return In(R,G,{params:f(G.params),hash:jv(R.hash),redirectedFrom:void 0,href:te})}let ie;if(K.path!=null)ie=In({},K,{path:Vw(t,K.path,oe.path).path});else{const R=In({},K.params);for(const G in R)R[G]==null&&delete R[G];ie=In({},K,{params:d(R)}),oe.params=d(oe.params)}const ue=e.resolve(ie,oe),Ce=K.hash||"";ue.params=c(f(ue.params));const me=ame(r,In({},K,{hash:eme(Ce),path:ue.path})),N=i.createHref(me);return In({fullPath:me,hash:Ce,query:r===rF?kme(K.query):K.query||{}},ue,{redirectedFrom:void 0,href:N})}function _(K){return typeof K=="string"?Vw(t,K,l.value.path):In({},K)}function y(K,oe){if(u!==K)return ah(8,{from:oe,to:K})}function b(K){return S(K)}function w(K){return b(In(_(K),{replace:!0}))}function C(K){const oe=K.matched[K.matched.length-1];if(oe&&oe.redirect){const{redirect:ie}=oe;let ue=typeof ie=="function"?ie(K):ie;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=_(ue):{path:ue},ue.params={}),In({query:K.query,hash:K.hash,params:ue.path!=null?{}:K.params},ue)}}function S(K,oe){const ie=u=g(K),ue=l.value,Ce=K.state,me=K.force,N=K.replace===!0,R=C(ie);if(R)return S(In(_(R),{state:typeof R=="object"?In({},Ce,R.state):Ce,force:me,replace:N}),oe||ie);const G=ie;G.redirectedFrom=oe;let te;return!me&&sme(r,ue,ie)&&(te=ah(16,{to:G,from:ue}),j(ue,ue,!0,!1)),(te?Promise.resolve(te):T(G,ue)).catch(re=>Ls(re)?Ls(re,2)?re:$(re):F(re,G,ue)).then(re=>{if(re){if(Ls(re,2))return S(In({replace:N},_(re.to),{state:typeof re.to=="object"?In({},Ce,re.to.state):Ce,force:me}),oe||G)}else re=A(G,ue,!0,N,Ce);return P(G,ue,re),re})}function L(K,oe){const ie=y(K,oe);return ie?Promise.reject(ie):Promise.resolve()}function E(K){const oe=z.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(K):K()}function T(K,oe){let ie;const[ue,Ce,me]=Kme(K,oe);ie=Hw(ue.reverse(),"beforeRouteLeave",K,oe);for(const R of ue)R.leaveGuards.forEach(G=>{ie.push(Ul(G,K,oe))});const N=L.bind(null,K,oe);return ie.push(N),ee(ie).then(()=>{ie=[];for(const R of o.list())ie.push(Ul(R,K,oe));return ie.push(N),ee(ie)}).then(()=>{ie=Hw(Ce,"beforeRouteUpdate",K,oe);for(const R of Ce)R.updateGuards.forEach(G=>{ie.push(Ul(G,K,oe))});return ie.push(N),ee(ie)}).then(()=>{ie=[];for(const R of me)if(R.beforeEnter)if(Sa(R.beforeEnter))for(const G of R.beforeEnter)ie.push(Ul(G,K,oe));else ie.push(Ul(R.beforeEnter,K,oe));return ie.push(N),ee(ie)}).then(()=>(K.matched.forEach(R=>R.enterCallbacks={}),ie=Hw(me,"beforeRouteEnter",K,oe,E),ie.push(N),ee(ie))).then(()=>{ie=[];for(const R of a.list())ie.push(Ul(R,K,oe));return ie.push(N),ee(ie)}).catch(R=>Ls(R,8)?R:Promise.reject(R))}function P(K,oe,ie){s.list().forEach(ue=>E(()=>ue(K,oe,ie)))}function A(K,oe,ie,ue,Ce){const me=y(K,oe);if(me)return me;const N=oe===yl,R=sf?history.state:{};ie&&(ue||N?i.replace(K.fullPath,In({scroll:N&&R&&R.scroll},Ce)):i.push(K.fullPath,Ce)),l.value=K,j(K,oe,ie,N),$()}let D;function M(){D||(D=i.listen((K,oe,ie)=>{if(!Y.listening)return;const ue=g(K),Ce=C(ue);if(Ce){S(In(Ce,{replace:!0}),ue).catch(lv);return}u=ue;const me=l.value;sf&&vme(Y2(me.fullPath,ie.delta),yC()),T(ue,me).catch(N=>Ls(N,12)?N:Ls(N,2)?(S(N.to,ue).then(R=>{Ls(R,20)&&!ie.delta&&ie.type===zv.pop&&i.go(-1,!1)}).catch(lv),Promise.reject()):(ie.delta&&i.go(-ie.delta,!1),F(N,ue,me))).then(N=>{N=N||A(ue,me,!1),N&&(ie.delta&&!Ls(N,8)?i.go(-ie.delta,!1):ie.type===zv.pop&&Ls(N,20)&&i.go(-1,!1)),P(ue,me,N)}).catch(lv)}))}let H=lp(),k=lp(),B;function F(K,oe,ie){$(K);const ue=k.list();return ue.length?ue.forEach(Ce=>Ce(K,oe,ie)):console.error(K),Promise.reject(K)}function W(){return B&&l.value!==yl?Promise.resolve():new Promise((K,oe)=>{H.add([K,oe])})}function $(K){return B||(B=!K,M(),H.list().forEach(([oe,ie])=>K?ie(K):oe()),H.reset()),K}function j(K,oe,ie,ue){const{scrollBehavior:Ce}=n;if(!sf||!Ce)return Promise.resolve();const me=!ie&&gme(Y2(K.fullPath,0))||(ue||!ie)&&history.state&&history.state.scroll||null;return en().then(()=>Ce(K,oe,me)).then(N=>N&&pme(N)).catch(N=>F(N,K,oe))}const X=K=>i.go(K);let Z;const z=new Set,Y={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:n,push:b,replace:w,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:k.add,isReady:W,install(K){const oe=this;K.component("RouterLink",Vme),K.component("RouterView",jme),K.config.globalProperties.$router=oe,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>vr(l)}),sf&&!Z&&l.value===yl&&(Z=!0,b(i.location).catch(Ce=>{}));const ie={};for(const Ce in yl)Object.defineProperty(ie,Ce,{get:()=>l.value[Ce],enumerable:!0});K.provide(bC,oe),K.provide(JO,o5(ie)),K.provide(GE,l);const ue=K.unmount;z.add(K),K.unmount=function(){z.delete(K),z.size<1&&(u=yl,D&&D(),D=null,l.value=yl,Z=!1,B=!1),ue()}}};function ee(K){return K.reduce((oe,ie)=>oe.then(()=>E(ie)),Promise.resolve())}return Y}function Kme(n,e){const t=[],r=[],i=[],o=Math.max(e.matched.length,n.matched.length);for(let a=0;aoh(u,s))?r.push(s):t.push(s));const l=n.matched[a];l&&(e.matched.find(u=>oh(u,l))||i.push(l))}return[t,r,i]}function T9e(){return yt(bC)}function x9e(){return yt(JO)}const Gme=()=>nt(()=>import("./Home-C66Dh-wI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),uF=()=>nt(()=>import("./404-Cfg0Wzoe.js"),__vite__mapDeps([13,14,7]),import.meta.url),qme=()=>nt(()=>import("./index-QO7atDR1.js"),__vite__mapDeps([15,5,16,17,4,18,19,7,9,8,10,11,12,20]),import.meta.url),Yme=()=>nt(()=>import("./index-Dt04o-8L.js"),__vite__mapDeps([21,5,1,2,22,3,23,24,19,7,9,8,10,12]),import.meta.url),Xme=()=>nt(()=>import("./index-DL_oEwV3.js"),__vite__mapDeps([25,3,5,26,24,7,19,9,8,10]),import.meta.url),Zme=()=>nt(()=>import("./upgrade-DQoaXczL.js"),__vite__mapDeps([27,5,4,28,7,11,12,8,19,9,10]),import.meta.url),Qme=()=>nt(()=>import("./create-CMcV8tL0.js"),__vite__mapDeps([29,4,30,11,12,8,10,7,9]),import.meta.url),Jme=()=>nt(()=>import("./index-Dq3nmUzZ.js"),__vite__mapDeps([31,16,32,24,19,7,9,8,10]),import.meta.url),e_e=()=>nt(()=>import("./index-Bjo7HzMG.js"),__vite__mapDeps([33,3,5,4,34,7,8,9]),import.meta.url),t_e=()=>nt(()=>import("./index-BjI98gEp.js"),__vite__mapDeps([35,4,36,11,12,8,7,10]),import.meta.url),n_e=()=>nt(()=>import("./index-_IAmf6sY.js"),__vite__mapDeps([37,38]),import.meta.url),r_e=()=>nt(()=>import("./index-CIrzahzi.js"),__vite__mapDeps([39,4,22,17,18,19,7,9,8,10,11,12,40,24]),import.meta.url),i_e=[{path:"/",name:"Home",redirect:"introduce",component:Gme,children:[{path:"catalogs",name:"Catalogs",component:qme},{path:"tables",name:"Tables",component:Yme,children:[{path:"create",name:"Create",component:Qme}]},{path:"hive-tables",name:"HiveTables",component:Xme,children:[{path:"upgrade",name:"Upgrade",component:Zme}]},{path:"optimizing",name:"Optimizing",component:r_e},{path:"settings",name:"Settings",component:Jme},{path:"terminal",name:"Terminal",component:e_e},{path:"introduce",name:"Introduce",component:n_e}]},{path:"/login",name:"Login",component:t_e},{path:"/404",name:"Page404",component:uF},{path:"/:pathMatch(.*)*",name:"Page404",component:uF}],qE=zme({history:bme(),routes:i_e}),o_e=()=>({userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}),a_e={getShowTablesMenu(n){return n.isShowTablesMenu}},YE=EX("datalake",{state:o_e,getters:a_e,actions:{updateTablesMenu(n){this.isShowTablesMenu=n},updateUserInfo(n){this.userInfo=n},setHistoryPath(n){this.historyPathInfo=n}}});/*! - * shared v9.10.1 - * (c) 2024 kazuya kawaguchi + */const lf=typeof window<"u";function Lme(n){return n.__esModule||n[Symbol.toStringTag]==="Module"}const In=Object.assign;function Pw(n,e){const t={};for(const r in e){const i=e[r];t[r]=Sa(i)?i.map(n):n(i)}return t}const uv=()=>{},Sa=Array.isArray,Ime=/\/$/,Tme=n=>n.replace(Ime,"");function Mw(n,e,t="/"){let r,i={},o="",a="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(r=e.slice(0,l),o=e.slice(l+1,s>-1?s:e.length),i=n(o)),s>-1&&(r=r||e.slice(0,s),a=e.slice(s,e.length)),r=Dme(r??e,t),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:a}}function xme(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function G2(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function Ome(n,e,t){const r=e.matched.length-1,i=t.matched.length-1;return r>-1&&r===i&&oh(e.matched[r],t.matched[i])&&s7(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function oh(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function s7(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!Nme(n[t],e[t]))return!1;return!0}function Nme(n,e){return Sa(n)?q2(n,e):Sa(e)?q2(e,n):n===e}function q2(n,e){return Sa(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n.length===1&&n[0]===e}function Dme(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),r=n.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=t.length-1,a,s;for(a=0;a1&&o--;else break;return t.slice(0,o).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var qv;(function(n){n.pop="pop",n.push="push"})(qv||(qv={}));var cv;(function(n){n.back="back",n.forward="forward",n.unknown=""})(cv||(cv={}));function Ame(n){if(!n)if(lf){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),Tme(n)}const Rme=/^[^#]+#/;function Pme(n,e){return n.replace(Rme,"#")+e}function Mme(n,e){const t=document.documentElement.getBoundingClientRect(),r=n.getBoundingClientRect();return{behavior:e.behavior,left:r.left-t.left-(e.left||0),top:r.top-t.top-(e.top||0)}}const gC=()=>({left:window.pageXOffset,top:window.pageYOffset});function kme(n){let e;if("el"in n){const t=n.el,r=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?r?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=Mme(i,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Y2(n,e){return(history.state?history.state.position-e:-1)+n}const UE=new Map;function Fme(n,e){UE.set(n,e)}function Bme(n){const e=UE.get(n);return UE.delete(n),e}let Wme=()=>location.protocol+"//"+location.host;function l7(n,e){const{pathname:t,search:r,hash:i}=e,o=n.indexOf("#");if(o>-1){let s=i.includes(n.slice(o))?n.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),G2(l,"")}return G2(t,n)+r+i}function Vme(n,e,t,r){let i=[],o=[],a=null;const s=({state:f})=>{const h=l7(n,location),p=t.value,v=e.value;let m=0;if(f){if(t.value=h,e.value=f,a&&a===p){a=null;return}m=v?f.position-v.position:0}else r(h);i.forEach(g=>{g(t.value,p,{delta:m,type:qv.pop,direction:m?m>0?cv.forward:cv.back:cv.unknown})})};function l(){a=t.value}function u(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return o.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(In({},f.state,{scroll:gC()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function X2(n,e,t,r=!1,i=!1){return{back:n,current:e,forward:t,replaced:r,position:window.history.length,scroll:i?gC():null}}function Hme(n){const{history:e,location:t}=window,r={value:l7(n,t)},i={value:e.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=n.indexOf("#"),f=d>-1?(t.host&&document.querySelector("base")?n:n.slice(d))+l:Wme()+n+l;try{e[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),t[c?"replace":"assign"](f)}}function a(l,u){const c=In({},e.state,X2(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=In({},i.value,e.state,{forward:l,scroll:gC()});o(c.current,c,!0);const d=In({},X2(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function Ume(n){n=Ame(n);const e=Hme(n),t=Vme(n,e.state,e.location,e.replace);function r(o,a=!0){a||t.pauseListeners(),history.go(o)}const i=In({location:"",base:n,go:r,createHref:Pme.bind(null,n)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function $me(n){return typeof n=="string"||n&&typeof n=="object"}function u7(n){return typeof n=="string"||typeof n=="symbol"}const bl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},c7=Symbol("");var Z2;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Z2||(Z2={}));function ah(n,e){return In(new Error,{type:n,[c7]:!0},e)}function Is(n,e){return n instanceof Error&&c7 in n&&(e==null||!!(n.type&e))}const Q2="[^/]+?",jme={sensitive:!1,strict:!1,start:!0,end:!0},zme=/[.+*?^${}()[\]/\\]/g;function Kme(n,e){const t=In({},jme,e),r=[];let i=t.start?"^":"";const o=[];for(const u of n){const c=u.length?[]:[90];t.strict&&!u.length&&(i+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function qme(n,e){let t=0;const r=n.score,i=e.score;for(;t0&&e[e.length-1]<0}const Yme={type:0,value:""},Xme=/[a-zA-Z0-9_]/;function Zme(n){if(!n)return[[]];if(n==="/")return[[Yme]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${u}": ${h}`)}let t=0,r=t;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function d(){u&&(t===0?o.push({type:0,value:u}):t===1||t===2||t===3?(o.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s{a(_)}:uv}function a(c){if(u7(c)){const d=r.get(c);d&&(r.delete(c),t.splice(t.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=t.indexOf(c);d>-1&&(t.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function s(){return t}function l(c){let d=0;for(;d=0&&(c.record.path!==t[d].record.path||!d7(c,t[d]));)d++;t.splice(d,0,c),c.record.name&&!tF(c)&&r.set(c.record.name,c)}function u(c,d){let f,h={},p,v;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw ah(1,{location:c});v=f.record.name,h=In(eF(d.params,f.keys.filter(_=>!_.optional).map(_=>_.name)),c.params&&eF(c.params,f.keys.map(_=>_.name))),p=f.stringify(h)}else if("path"in c)p=c.path,f=t.find(_=>_.re.test(p)),f&&(h=f.parse(p),v=f.record.name);else{if(f=d.name?r.get(d.name):t.find(_=>_.re.test(d.path)),!f)throw ah(1,{location:c,currentLocation:d});v=f.record.name,h=In({},d.params,c.params),p=f.stringify(h)}const m=[];let g=f;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:n_e(m)}}return n.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:i}}function eF(n,e){const t={};for(const r of e)r in n&&(t[r]=n[r]);return t}function e_e(n){return{path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:void 0,beforeEnter:n.beforeEnter,props:t_e(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}}}function t_e(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const r in n.components)e[r]=typeof t=="object"?t[r]:t;return e}function tF(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function n_e(n){return n.reduce((e,t)=>In(e,t.meta),{})}function nF(n,e){const t={};for(const r in n)t[r]=r in e?e[r]:n[r];return t}function d7(n,e){return e.children.some(t=>t===n||d7(n,t))}const f7=/#/g,r_e=/&/g,i_e=/\//g,o_e=/=/g,a_e=/\?/g,h7=/\+/g,s_e=/%5B/g,l_e=/%5D/g,p7=/%5E/g,u_e=/%60/g,v7=/%7B/g,c_e=/%7C/g,g7=/%7D/g,d_e=/%20/g;function QO(n){return encodeURI(""+n).replace(c_e,"|").replace(s_e,"[").replace(l_e,"]")}function f_e(n){return QO(n).replace(v7,"{").replace(g7,"}").replace(p7,"^")}function $E(n){return QO(n).replace(h7,"%2B").replace(d_e,"+").replace(f7,"%23").replace(r_e,"%26").replace(u_e,"`").replace(v7,"{").replace(g7,"}").replace(p7,"^")}function h_e(n){return $E(n).replace(o_e,"%3D")}function p_e(n){return QO(n).replace(f7,"%23").replace(a_e,"%3F")}function v_e(n){return n==null?"":p_e(n).replace(i_e,"%2F")}function xy(n){try{return decodeURIComponent(""+n)}catch{}return""+n}function g_e(n){const e={};if(n===""||n==="?")return e;const r=(n[0]==="?"?n.slice(1):n).split("&");for(let i=0;io&&$E(o)):[r&&$E(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+t,o!=null&&(e+="="+o))})}return e}function m_e(n){const e={};for(const t in n){const r=n[t];r!==void 0&&(e[t]=Sa(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const m7=Symbol(""),iF=Symbol(""),mC=Symbol(""),JO=Symbol(""),jE=Symbol("");function up(){let n=[];function e(r){return n.push(r),()=>{const i=n.indexOf(r);i>-1&&n.splice(i,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function __e(n,e,t){const r=()=>{n[e].delete(t)};Ia(r),C5(r),GT(()=>{n[e].add(t)}),n[e].add(t)}function A9e(n){const e=yt(m7,{}).value;e&&__e(e,"leaveGuards",n)}function Ul(n,e,t,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,s)=>{const l=d=>{d===!1?s(ah(4,{from:t,to:e})):d instanceof Error?s(d):$me(d)?s(ah(2,{from:e,to:d})):(o&&r.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),a())},u=n.call(r&&r.instances[i],e,t,l);let c=Promise.resolve(u);n.length<3&&(c=c.then(l)),c.catch(d=>s(d))})}function kw(n,e,t,r){const i=[];for(const o of n)for(const a in o.components){let s=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(y_e(s)){const u=(s.__vccOpts||s)[e];u&&i.push(Ul(u,t,r,o,a))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const c=Lme(u)?u.default:u;o.components[a]=c;const f=(c.__vccOpts||c)[e];return f&&Ul(f,t,r,o,a)()}))}}return i}function y_e(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function oF(n){const e=yt(mC),t=yt(JO),r=V(()=>e.resolve(gr(n.to))),i=V(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=t.matched;if(!c||!d.length)return-1;const f=d.findIndex(oh.bind(null,c));if(f>-1)return f;const h=aF(l[u-2]);return u>1&&aF(c)===h&&d[d.length-1].path!==h?d.findIndex(oh.bind(null,l[u-2])):f}),o=V(()=>i.value>-1&&S_e(t.params,r.value.params)),a=V(()=>i.value>-1&&i.value===t.matched.length-1&&s7(t.params,r.value.params));function s(l={}){return w_e(l)?e[gr(n.replace)?"replace":"push"](gr(n.to)).catch(uv):Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}const b_e=be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oF,setup(n,{slots:e}){const t=Rn(oF(n)),{options:r}=yt(mC),i=V(()=>({[sF(n.activeClass,r.linkActiveClass,"router-link-active")]:t.isActive,[sF(n.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const o=e.default&&e.default(t);return n.custom?o:Qc("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},o)}}}),C_e=b_e;function w_e(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function S_e(n,e){for(const t in e){const r=e[t],i=n[t];if(typeof r=="string"){if(r!==i)return!1}else if(!Sa(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function aF(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const sF=(n,e,t)=>n??e??t,E_e=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const r=yt(jE),i=V(()=>n.route||r.value),o=yt(iF,0),a=V(()=>{let u=gr(o);const{matched:c}=i.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),s=V(()=>i.value.matched[a.value]);qt(iF,V(()=>a.value+1)),qt(m7,s),qt(jE,i);const l=ee();return We(()=>[l.value,s.value,n.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!oh(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,c=n.name,d=s.value,f=d&&d.components[c];if(!f)return lF(t.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Qc(f,In({},p,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return lF(t.default,{Component:m,route:u})||m}}});function lF(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const L_e=E_e;function I_e(n){const e=Jme(n.routes,n),t=n.parseQuery||g_e,r=n.stringifyQuery||rF,i=n.history,o=up(),a=up(),s=up(),l=Zt(bl);let u=bl;lf&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Pw.bind(null,G=>""+G),d=Pw.bind(null,v_e),f=Pw.bind(null,xy);function h(G,ae){let oe,de;return u7(G)?(oe=e.getRecordMatcher(G),de=ae):de=G,e.addRoute(de,oe)}function p(G){const ae=e.getRecordMatcher(G);ae&&e.removeRoute(ae)}function v(){return e.getRoutes().map(G=>G.record)}function m(G){return!!e.getRecordMatcher(G)}function g(G,ae){if(ae=In({},ae||l.value),typeof G=="string"){const P=Mw(t,G,ae.path),Q=e.resolve({path:P.path},ae),re=i.createHref(P.fullPath);return In(P,Q,{params:f(Q.params),hash:xy(P.hash),redirectedFrom:void 0,href:re})}let oe;if("path"in G)oe=In({},G,{path:Mw(t,G.path,ae.path).path});else{const P=In({},G.params);for(const Q in P)P[Q]==null&&delete P[Q];oe=In({},G,{params:d(P)}),ae.params=d(ae.params)}const de=e.resolve(oe,ae),Ce=G.hash||"";de.params=c(f(de.params));const $=xme(r,In({},G,{hash:f_e(Ce),path:de.path})),A=i.createHref($);return In({fullPath:$,hash:Ce,query:r===rF?m_e(G.query):G.query||{}},de,{redirectedFrom:void 0,href:A})}function _(G){return typeof G=="string"?Mw(t,G,l.value.path):In({},G)}function y(G,ae){if(u!==G)return ah(8,{from:ae,to:G})}function C(G){return S(G)}function w(G){return C(In(_(G),{replace:!0}))}function b(G){const ae=G.matched[G.matched.length-1];if(ae&&ae.redirect){const{redirect:oe}=ae;let de=typeof oe=="function"?oe(G):oe;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=_(de):{path:de},de.params={}),In({query:G.query,hash:G.hash,params:"path"in de?{}:G.params},de)}}function S(G,ae){const oe=u=g(G),de=l.value,Ce=G.state,$=G.force,A=G.replace===!0,P=b(oe);if(P)return S(In(_(P),{state:typeof P=="object"?In({},Ce,P.state):Ce,force:$,replace:A}),ae||oe);const Q=oe;Q.redirectedFrom=ae;let re;return!$&&Ome(r,de,oe)&&(re=ah(16,{to:Q,from:de}),K(de,de,!0,!1)),(re?Promise.resolve(re):T(Q,de)).catch(le=>Is(le)?Is(le,2)?le:j(le):F(le,Q,de)).then(le=>{if(le){if(Is(le,2))return S(In({replace:A},_(le.to),{state:typeof le.to=="object"?In({},Ce,le.to.state):Ce,force:$}),ae||Q)}else le=N(Q,de,!0,A,Ce);return R(Q,de,le),le})}function E(G,ae){const oe=y(G,ae);return oe?Promise.reject(oe):Promise.resolve()}function L(G){const ae=z.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(G):G()}function T(G,ae){let oe;const[de,Ce,$]=T_e(G,ae);oe=kw(de.reverse(),"beforeRouteLeave",G,ae);for(const P of de)P.leaveGuards.forEach(Q=>{oe.push(Ul(Q,G,ae))});const A=E.bind(null,G,ae);return oe.push(A),te(oe).then(()=>{oe=[];for(const P of o.list())oe.push(Ul(P,G,ae));return oe.push(A),te(oe)}).then(()=>{oe=kw(Ce,"beforeRouteUpdate",G,ae);for(const P of Ce)P.updateGuards.forEach(Q=>{oe.push(Ul(Q,G,ae))});return oe.push(A),te(oe)}).then(()=>{oe=[];for(const P of $)if(P.beforeEnter)if(Sa(P.beforeEnter))for(const Q of P.beforeEnter)oe.push(Ul(Q,G,ae));else oe.push(Ul(P.beforeEnter,G,ae));return oe.push(A),te(oe)}).then(()=>(G.matched.forEach(P=>P.enterCallbacks={}),oe=kw($,"beforeRouteEnter",G,ae),oe.push(A),te(oe))).then(()=>{oe=[];for(const P of a.list())oe.push(Ul(P,G,ae));return oe.push(A),te(oe)}).catch(P=>Is(P,8)?P:Promise.reject(P))}function R(G,ae,oe){s.list().forEach(de=>L(()=>de(G,ae,oe)))}function N(G,ae,oe,de,Ce){const $=y(G,ae);if($)return $;const A=ae===bl,P=lf?history.state:{};oe&&(de||A?i.replace(G.fullPath,In({scroll:A&&P&&P.scroll},Ce)):i.push(G.fullPath,Ce)),l.value=G,K(G,ae,oe,A),j()}let D;function M(){D||(D=i.listen((G,ae,oe)=>{if(!Y.listening)return;const de=g(G),Ce=b(de);if(Ce){S(In(Ce,{replace:!0}),de).catch(uv);return}u=de;const $=l.value;lf&&Fme(Y2($.fullPath,oe.delta),gC()),T(de,$).catch(A=>Is(A,12)?A:Is(A,2)?(S(A.to,de).then(P=>{Is(P,20)&&!oe.delta&&oe.type===qv.pop&&i.go(-1,!1)}).catch(uv),Promise.reject()):(oe.delta&&i.go(-oe.delta,!1),F(A,de,$))).then(A=>{A=A||N(de,$,!1),A&&(oe.delta&&!Is(A,8)?i.go(-oe.delta,!1):oe.type===qv.pop&&Is(A,20)&&i.go(-1,!1)),R(de,$,A)}).catch(uv)}))}let H=up(),k=up(),W;function F(G,ae,oe){j(G);const de=k.list();return de.length?de.forEach(Ce=>Ce(G,ae,oe)):console.error(G),Promise.reject(G)}function B(){return W&&l.value!==bl?Promise.resolve():new Promise((G,ae)=>{H.add([G,ae])})}function j(G){return W||(W=!G,M(),H.list().forEach(([ae,oe])=>G?oe(G):ae()),H.reset()),G}function K(G,ae,oe,de){const{scrollBehavior:Ce}=n;if(!lf||!Ce)return Promise.resolve();const $=!oe&&Bme(Y2(G.fullPath,0))||(de||!oe)&&history.state&&history.state.scroll||null;return en().then(()=>Ce(G,ae,$)).then(A=>A&&kme(A)).catch(A=>F(A,G,ae))}const X=G=>i.go(G);let Z;const z=new Set,Y={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:n,push:C,replace:w,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:k.add,isReady:B,install(G){const ae=this;G.component("RouterLink",C_e),G.component("RouterView",L_e),G.config.globalProperties.$router=ae,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>gr(l)}),lf&&!Z&&l.value===bl&&(Z=!0,C(i.location).catch(Ce=>{}));const oe={};for(const Ce in bl)Object.defineProperty(oe,Ce,{get:()=>l.value[Ce],enumerable:!0});G.provide(mC,ae),G.provide(JO,r5(oe)),G.provide(jE,l);const de=G.unmount;z.add(G),G.unmount=function(){z.delete(G),z.size<1&&(u=bl,D&&D(),D=null,l.value=bl,Z=!1,W=!1),de()}}};function te(G){return G.reduce((ae,oe)=>ae.then(()=>L(oe)),Promise.resolve())}return Y}function T_e(n,e){const t=[],r=[],i=[],o=Math.max(e.matched.length,n.matched.length);for(let a=0;aoh(u,s))?r.push(s):t.push(s));const l=n.matched[a];l&&(e.matched.find(u=>oh(u,l))||i.push(l))}return[t,r,i]}function R9e(){return yt(mC)}function P9e(){return yt(JO)}const x_e=()=>nt(()=>import("./Home-uvv4mfKx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),uF=()=>nt(()=>import("./404-SAO48nPd.js"),__vite__mapDeps([13,14,7]),import.meta.url),O_e=()=>nt(()=>import("./index-CqamgkM0.js"),__vite__mapDeps([15,5,16,17,4,18,19,7,9,8,10,11,12,20]),import.meta.url),N_e=()=>nt(()=>import("./index-NfUB2q2-.js"),__vite__mapDeps([21,5,1,2,22,3,23,24,19,7,9,8,10,12]),import.meta.url),D_e=()=>nt(()=>import("./index-ohR9XSMs.js"),__vite__mapDeps([25,3,5,26,24,7,19,9,8,10]),import.meta.url),A_e=()=>nt(()=>import("./upgrade-wUNIQoum.js"),__vite__mapDeps([27,5,4,28,7,11,12,8,19,9,10]),import.meta.url),R_e=()=>nt(()=>import("./create-xN49Yo86.js"),__vite__mapDeps([29,4,30,11,12,8,10,7,9]),import.meta.url),P_e=()=>nt(()=>import("./index-Yt5cl6Gm.js"),__vite__mapDeps([31,16,32,24,19,7,9,8,10]),import.meta.url),M_e=()=>nt(()=>import("./index-FRoVXioR.js"),__vite__mapDeps([33,3,5,4,34,7,8,9]),import.meta.url),k_e=()=>nt(()=>import("./index-W3OAzaQz.js"),__vite__mapDeps([35,4,36,11,12,8,7,10]),import.meta.url),F_e=()=>nt(()=>import("./index-XBEiiZ9V.js"),__vite__mapDeps([37,38]),import.meta.url),B_e=()=>nt(()=>import("./index-0_NSCMzr.js"),__vite__mapDeps([39,4,22,17,18,19,7,9,8,10,11,12,40,24]),import.meta.url),W_e=[{path:"/",name:"Home",redirect:"introduce",component:x_e,children:[{path:"catalogs",name:"Catalogs",component:O_e},{path:"tables",name:"Tables",component:N_e,children:[{path:"create",name:"Create",component:R_e}]},{path:"hive-tables",name:"HiveTables",component:D_e,children:[{path:"upgrade",name:"Upgrade",component:A_e}]},{path:"optimizing",name:"Optimizing",component:B_e},{path:"settings",name:"Settings",component:P_e},{path:"terminal",name:"Terminal",component:M_e},{path:"introduce",name:"Introduce",component:F_e}]},{path:"/login",name:"Login",component:k_e},{path:"/404",name:"Page404",component:uF},{path:"/:pathMatch(.*)*",name:"Page404",component:uF}],zE=I_e({history:Ume(),routes:W_e}),V_e=()=>({userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}),H_e={getShowTablesMenu(n){return n.isShowTablesMenu}},KE=pX("datalake",{state:V_e,getters:H_e,actions:{updateTablesMenu(n){this.isShowTablesMenu=n},updateUserInfo(n){this.userInfo=n},setHistoryPath(n){this.historyPathInfo=n}}});/*! + * shared v9.8.0 + * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const xy=typeof window<"u",xu=(n,e=!1)=>e?Symbol.for(n):Symbol(n),s_e=(n,e,t)=>l_e({l:n,k:e,s:t}),l_e=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),$r=n=>typeof n=="number"&&isFinite(n),u_e=n=>C7(n)==="[object Date]",yu=n=>C7(n)==="[object RegExp]",CC=n=>Ot(n)&&Object.keys(n).length===0,ui=Object.assign;let cF;const $s=()=>cF||(cF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function dF(n){return n.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const c_e=Object.prototype.hasOwnProperty;function Oy(n,e){return c_e.call(n,e)}const tr=Array.isArray,jn=n=>typeof n=="function",tt=n=>typeof n=="string",Jt=n=>typeof n=="boolean",En=n=>n!==null&&typeof n=="object",d_e=n=>En(n)&&jn(n.then)&&jn(n.catch),b7=Object.prototype.toString,C7=n=>b7.call(n),Ot=n=>{if(!En(n))return!1;const e=Object.getPrototypeOf(n);return e===null||e.constructor===Object},f_e=n=>n==null?"":tr(n)||Ot(n)&&n.toString===b7?JSON.stringify(n,null,2):String(n);function h_e(n,e=""){return n.reduce((t,r,i)=>i===0?t+r:t+e+r,"")}function eN(n){let e=n;return()=>++e}function p_e(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const Wm=n=>!En(n)||tr(n);function P_(n,e){if(Wm(n)||Wm(e))throw new Error("Invalid value");const t=[{src:n,des:e}];for(;t.length;){const{src:r,des:i}=t.pop();Object.keys(r).forEach(o=>{Wm(r[o])||Wm(i[o])?i[o]=r[o]:t.push({src:r[o],des:i[o]})})}}/*! - * message-compiler v9.10.1 - * (c) 2024 kazuya kawaguchi + */const GE=typeof window<"u",xu=(n,e=!1)=>e?Symbol.for(n):Symbol(n),U_e=(n,e,t)=>$_e({l:n,k:e,s:t}),$_e=n=>JSON.stringify(n).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),$r=n=>typeof n=="number"&&isFinite(n),j_e=n=>y7(n)==="[object Date]",yu=n=>y7(n)==="[object RegExp]",_C=n=>Ot(n)&&Object.keys(n).length===0,ui=Object.assign;let cF;const js=()=>cF||(cF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function dF(n){return n.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const z_e=Object.prototype.hasOwnProperty;function Yv(n,e){return z_e.call(n,e)}const tr=Array.isArray,jn=n=>typeof n=="function",et=n=>typeof n=="string",Jt=n=>typeof n=="boolean",En=n=>n!==null&&typeof n=="object",K_e=n=>En(n)&&jn(n.then)&&jn(n.catch),_7=Object.prototype.toString,y7=n=>_7.call(n),Ot=n=>{if(!En(n))return!1;const e=Object.getPrototypeOf(n);return e===null||e.constructor===Object},G_e=n=>n==null?"":tr(n)||Ot(n)&&n.toString===_7?JSON.stringify(n,null,2):String(n);function q_e(n,e=""){return n.reduce((t,r,i)=>i===0?t+r:t+e+r,"")}function eN(n){let e=n;return()=>++e}function Y_e(n,e){typeof console<"u"&&(console.warn("[intlify] "+n),e&&console.warn(e.stack))}const Um=n=>!En(n)||tr(n);function dv(n,e){if(Um(n)||Um(e))throw new Error("Invalid value");for(const t in n)Yv(n,t)&&(Um(n[t])||Um(e[t])?e[t]=n[t]:dv(n[t],e[t]))}/*! + * message-compiler v9.8.0 + * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function v_e(n,e,t){return{line:n,column:e,offset:t}}function XE(n,e,t){const r={start:n,end:e};return t!=null&&(r.source=t),r}const g_e=/\{([0-9a-zA-Z]+)\}/g;function m_e(n,...e){return e.length===1&&__e(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(g_e,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const w7=Object.assign,fF=n=>typeof n=="string",__e=n=>n!==null&&typeof n=="object";function S7(n,e=""){return n.reduce((t,r,i)=>i===0?t+r:t+e+r,"")}const Lt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},y_e={[Lt.EXPECTED_TOKEN]:"Expected token: '{0}'",[Lt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Lt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Lt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Lt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Lt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Lt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Lt.EMPTY_PLACEHOLDER]:"Empty placeholder",[Lt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Lt.INVALID_LINKED_FORMAT]:"Invalid linked format",[Lt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Lt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Lt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Lt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Lt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Lt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Dh(n,e,t={}){const{domain:r,messages:i,args:o}=t,a=m_e((i||y_e)[n]||"",...o||[]),s=new SyntaxError(String(a));return s.code=n,e&&(s.location=e),s.domain=r,s}function b_e(n){throw n}const Is=" ",C_e="\r",Ai=` -`,w_e="\u2028",S_e="\u2029";function E_e(n){const e=n;let t=0,r=1,i=1,o=0;const a=S=>e[S]===C_e&&e[S+1]===Ai,s=S=>e[S]===Ai,l=S=>e[S]===S_e,u=S=>e[S]===w_e,c=S=>a(S)||s(S)||l(S)||u(S),d=()=>t,f=()=>r,h=()=>i,p=()=>o,v=S=>a(S)||l(S)||u(S)?Ai:e[S],m=()=>v(t),g=()=>v(t+o);function _(){return o=0,c(t)&&(r++,i=0),a(t)&&t++,t++,i++,e[t]}function y(){return a(t+o)&&o++,o++,e[t+o]}function b(){t=0,r=1,i=1,o=0}function w(S=0){o=S}function C(){const S=t+o;for(;S!==t;)_();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:v,currentChar:m,currentPeek:g,next:_,peek:y,reset:b,resetPeek:w,skipToPeek:C}}const bl=void 0,L_e=".",hF="'",I_e="tokenizer";function T_e(n,e={}){const t=e.location!==!1,r=E_e(n),i=()=>r.index(),o=()=>v_e(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=e;function d(N,R,G,...te){const re=u();if(R.column+=G,R.offset+=G,c){const pe=t?XE(re.startLoc,R):null,Se=Dh(N,pe,{domain:I_e,args:te});c(Se)}}function f(N,R,G){N.endLoc=o(),N.currentType=R;const te={type:R};return t&&(te.loc=XE(N.startLoc,N.endLoc)),G!=null&&(te.value=G),te}const h=N=>f(N,14);function p(N,R){return N.currentChar()===R?(N.next(),R):(d(Lt.EXPECTED_TOKEN,o(),0,R),"")}function v(N){let R="";for(;N.currentPeek()===Is||N.currentPeek()===Ai;)R+=N.currentPeek(),N.peek();return R}function m(N){const R=v(N);return N.skipToPeek(),R}function g(N){if(N===bl)return!1;const R=N.charCodeAt(0);return R>=97&&R<=122||R>=65&&R<=90||R===95}function _(N){if(N===bl)return!1;const R=N.charCodeAt(0);return R>=48&&R<=57}function y(N,R){const{currentType:G}=R;if(G!==2)return!1;v(N);const te=g(N.currentPeek());return N.resetPeek(),te}function b(N,R){const{currentType:G}=R;if(G!==2)return!1;v(N);const te=N.currentPeek()==="-"?N.peek():N.currentPeek(),re=_(te);return N.resetPeek(),re}function w(N,R){const{currentType:G}=R;if(G!==2)return!1;v(N);const te=N.currentPeek()===hF;return N.resetPeek(),te}function C(N,R){const{currentType:G}=R;if(G!==8)return!1;v(N);const te=N.currentPeek()===".";return N.resetPeek(),te}function S(N,R){const{currentType:G}=R;if(G!==9)return!1;v(N);const te=g(N.currentPeek());return N.resetPeek(),te}function L(N,R){const{currentType:G}=R;if(!(G===8||G===12))return!1;v(N);const te=N.currentPeek()===":";return N.resetPeek(),te}function E(N,R){const{currentType:G}=R;if(G!==10)return!1;const te=()=>{const pe=N.currentPeek();return pe==="{"?g(N.peek()):pe==="@"||pe==="%"||pe==="|"||pe===":"||pe==="."||pe===Is||!pe?!1:pe===Ai?(N.peek(),te()):g(pe)},re=te();return N.resetPeek(),re}function T(N){v(N);const R=N.currentPeek()==="|";return N.resetPeek(),R}function P(N){const R=v(N),G=N.currentPeek()==="%"&&N.peek()==="{";return N.resetPeek(),{isModulo:G,hasSpace:R.length>0}}function A(N,R=!0){const G=(re=!1,pe="",Se=!1)=>{const fe=N.currentPeek();return fe==="{"?pe==="%"?!1:re:fe==="@"||!fe?pe==="%"?!0:re:fe==="%"?(N.peek(),G(re,"%",!0)):fe==="|"?pe==="%"||Se?!0:!(pe===Is||pe===Ai):fe===Is?(N.peek(),G(!0,Is,Se)):fe===Ai?(N.peek(),G(!0,Ai,Se)):!0},te=G();return R&&N.resetPeek(),te}function D(N,R){const G=N.currentChar();return G===bl?bl:R(G)?(N.next(),G):null}function M(N){return D(N,G=>{const te=G.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function H(N){return D(N,G=>{const te=G.charCodeAt(0);return te>=48&&te<=57})}function k(N){return D(N,G=>{const te=G.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function B(N){let R="",G="";for(;R=H(N);)G+=R;return G}function F(N){m(N);const R=N.currentChar();return R!=="%"&&d(Lt.EXPECTED_TOKEN,o(),0,R),N.next(),"%"}function W(N){let R="";for(;;){const G=N.currentChar();if(G==="{"||G==="}"||G==="@"||G==="|"||!G)break;if(G==="%")if(A(N))R+=G,N.next();else break;else if(G===Is||G===Ai)if(A(N))R+=G,N.next();else{if(T(N))break;R+=G,N.next()}else R+=G,N.next()}return R}function $(N){m(N);let R="",G="";for(;R=M(N);)G+=R;return N.currentChar()===bl&&d(Lt.UNTERMINATED_CLOSING_BRACE,o(),0),G}function j(N){m(N);let R="";return N.currentChar()==="-"?(N.next(),R+=`-${B(N)}`):R+=B(N),N.currentChar()===bl&&d(Lt.UNTERMINATED_CLOSING_BRACE,o(),0),R}function X(N){m(N),p(N,"'");let R="",G="";const te=pe=>pe!==hF&&pe!==Ai;for(;R=D(N,te);)R==="\\"?G+=Z(N):G+=R;const re=N.currentChar();return re===Ai||re===bl?(d(Lt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),re===Ai&&(N.next(),p(N,"'")),G):(p(N,"'"),G)}function Z(N){const R=N.currentChar();switch(R){case"\\":case"'":return N.next(),`\\${R}`;case"u":return z(N,R,4);case"U":return z(N,R,6);default:return d(Lt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,R),""}}function z(N,R,G){p(N,R);let te="";for(let re=0;rere!=="{"&&re!=="}"&&re!==Is&&re!==Ai;for(;R=D(N,te);)G+=R;return G}function ee(N){let R="",G="";for(;R=M(N);)G+=R;return G}function K(N){const R=(G=!1,te)=>{const re=N.currentChar();return re==="{"||re==="%"||re==="@"||re==="|"||re==="("||re===")"||!re||re===Is?te:re===Ai||re===L_e?(te+=re,N.next(),R(G,te)):(te+=re,N.next(),R(!0,te))};return R(!1,"")}function oe(N){m(N);const R=p(N,"|");return m(N),R}function ie(N,R){let G=null;switch(N.currentChar()){case"{":return R.braceNest>=1&&d(Lt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),N.next(),G=f(R,2,"{"),m(N),R.braceNest++,G;case"}":return R.braceNest>0&&R.currentType===2&&d(Lt.EMPTY_PLACEHOLDER,o(),0),N.next(),G=f(R,3,"}"),R.braceNest--,R.braceNest>0&&m(N),R.inLinked&&R.braceNest===0&&(R.inLinked=!1),G;case"@":return R.braceNest>0&&d(Lt.UNTERMINATED_CLOSING_BRACE,o(),0),G=ue(N,R)||h(R),R.braceNest=0,G;default:let re=!0,pe=!0,Se=!0;if(T(N))return R.braceNest>0&&d(Lt.UNTERMINATED_CLOSING_BRACE,o(),0),G=f(R,1,oe(N)),R.braceNest=0,R.inLinked=!1,G;if(R.braceNest>0&&(R.currentType===5||R.currentType===6||R.currentType===7))return d(Lt.UNTERMINATED_CLOSING_BRACE,o(),0),R.braceNest=0,Ce(N,R);if(re=y(N,R))return G=f(R,5,$(N)),m(N),G;if(pe=b(N,R))return G=f(R,6,j(N)),m(N),G;if(Se=w(N,R))return G=f(R,7,X(N)),m(N),G;if(!re&&!pe&&!Se)return G=f(R,13,Y(N)),d(Lt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,G.value),m(N),G;break}return G}function ue(N,R){const{currentType:G}=R;let te=null;const re=N.currentChar();switch((G===8||G===9||G===12||G===10)&&(re===Ai||re===Is)&&d(Lt.INVALID_LINKED_FORMAT,o(),0),re){case"@":return N.next(),te=f(R,8,"@"),R.inLinked=!0,te;case".":return m(N),N.next(),f(R,9,".");case":":return m(N),N.next(),f(R,10,":");default:return T(N)?(te=f(R,1,oe(N)),R.braceNest=0,R.inLinked=!1,te):C(N,R)||L(N,R)?(m(N),ue(N,R)):S(N,R)?(m(N),f(R,12,ee(N))):E(N,R)?(m(N),re==="{"?ie(N,R)||te:f(R,11,K(N))):(G===8&&d(Lt.INVALID_LINKED_FORMAT,o(),0),R.braceNest=0,R.inLinked=!1,Ce(N,R))}}function Ce(N,R){let G={type:14};if(R.braceNest>0)return ie(N,R)||h(R);if(R.inLinked)return ue(N,R)||h(R);switch(N.currentChar()){case"{":return ie(N,R)||h(R);case"}":return d(Lt.UNBALANCED_CLOSING_BRACE,o(),0),N.next(),f(R,3,"}");case"@":return ue(N,R)||h(R);default:if(T(N))return G=f(R,1,oe(N)),R.braceNest=0,R.inLinked=!1,G;const{isModulo:re,hasSpace:pe}=P(N);if(re)return pe?f(R,0,W(N)):f(R,4,F(N));if(A(N))return f(R,0,W(N));break}return G}function me(){const{currentType:N,offset:R,startLoc:G,endLoc:te}=l;return l.lastType=N,l.lastOffset=R,l.lastStartLoc=G,l.lastEndLoc=te,l.offset=i(),l.startLoc=o(),r.currentChar()===bl?f(l,14):Ce(r,l)}return{nextToken:me,currentOffset:i,currentPosition:o,context:u}}const x_e="parser",O_e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function N_e(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function A_e(n={}){const e=n.location!==!1,{onError:t}=n;function r(g,_,y,b,...w){const C=g.currentPosition();if(C.offset+=b,C.column+=b,t){const S=e?XE(y,C):null,L=Dh(_,S,{domain:x_e,args:w});t(L)}}function i(g,_,y){const b={type:g};return e&&(b.start=_,b.end=_,b.loc={start:y,end:y}),b}function o(g,_,y,b){b&&(g.type=b),e&&(g.end=_,g.loc&&(g.loc.end=y))}function a(g,_){const y=g.context(),b=i(3,y.offset,y.startLoc);return b.value=_,o(b,g.currentOffset(),g.currentPosition()),b}function s(g,_){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,C=i(5,b,w);return C.index=parseInt(_,10),g.nextToken(),o(C,g.currentOffset(),g.currentPosition()),C}function l(g,_){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,C=i(4,b,w);return C.key=_,g.nextToken(),o(C,g.currentOffset(),g.currentPosition()),C}function u(g,_){const y=g.context(),{lastOffset:b,lastStartLoc:w}=y,C=i(9,b,w);return C.value=_.replace(O_e,N_e),g.nextToken(),o(C,g.currentOffset(),g.currentPosition()),C}function c(g){const _=g.nextToken(),y=g.context(),{lastOffset:b,lastStartLoc:w}=y,C=i(8,b,w);return _.type!==12?(r(g,Lt.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),C.value="",o(C,b,w),{nextConsumeToken:_,node:C}):(_.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ra(_)),C.value=_.value||"",o(C,g.currentOffset(),g.currentPosition()),{node:C})}function d(g,_){const y=g.context(),b=i(7,y.offset,y.startLoc);return b.value=_,o(b,g.currentOffset(),g.currentPosition()),b}function f(g){const _=g.context(),y=i(6,_.offset,_.startLoc);let b=g.nextToken();if(b.type===9){const w=c(g);y.modifier=w.node,b=w.nextConsumeToken||g.nextToken()}switch(b.type!==10&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(b)),b=g.nextToken(),b.type===2&&(b=g.nextToken()),b.type){case 11:b.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(b)),y.key=d(g,b.value||"");break;case 5:b.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(b)),y.key=l(g,b.value||"");break;case 6:b.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(b)),y.key=s(g,b.value||"");break;case 7:b.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(b)),y.key=u(g,b.value||"");break;default:r(g,Lt.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const w=g.context(),C=i(7,w.offset,w.startLoc);return C.value="",o(C,w.offset,w.startLoc),y.key=C,o(y,w.offset,w.startLoc),{nextConsumeToken:b,node:y}}return o(y,g.currentOffset(),g.currentPosition()),{node:y}}function h(g){const _=g.context(),y=_.currentType===1?g.currentOffset():_.offset,b=_.currentType===1?_.endLoc:_.startLoc,w=i(2,y,b);w.items=[];let C=null;do{const E=C||g.nextToken();switch(C=null,E.type){case 0:E.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(E)),w.items.push(a(g,E.value||""));break;case 6:E.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(E)),w.items.push(s(g,E.value||""));break;case 5:E.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(E)),w.items.push(l(g,E.value||""));break;case 7:E.value==null&&r(g,Lt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(E)),w.items.push(u(g,E.value||""));break;case 8:const T=f(g);w.items.push(T.node),C=T.nextConsumeToken||null;break}}while(_.currentType!==14&&_.currentType!==1);const S=_.currentType===1?_.lastOffset:g.currentOffset(),L=_.currentType===1?_.lastEndLoc:g.currentPosition();return o(w,S,L),w}function p(g,_,y,b){const w=g.context();let C=b.items.length===0;const S=i(1,_,y);S.cases=[],S.cases.push(b);do{const L=h(g);C||(C=L.items.length===0),S.cases.push(L)}while(w.currentType!==14);return C&&r(g,Lt.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),o(S,g.currentOffset(),g.currentPosition()),S}function v(g){const _=g.context(),{offset:y,startLoc:b}=_,w=h(g);return _.currentType===14?w:p(g,y,b,w)}function m(g){const _=T_e(g,w7({},n)),y=_.context(),b=i(0,y.offset,y.startLoc);return e&&b.loc&&(b.loc.source=g),b.body=v(_),n.onCacheKey&&(b.cacheKey=n.onCacheKey(g)),y.currentType!==14&&r(_,Lt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,g[y.offset]||""),o(b,_.currentOffset(),_.currentPosition()),b}return{parse:m}}function Ra(n){if(n.type===14)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function D_e(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:o=>(t.helpers.add(o),o)}}function pF(n,e){for(let t=0;tvF(t)),n}function vF(n){if(n.items.length===1){const e=n.items[0];(e.type===3||e.type===9)&&(n.static=e.value,delete e.value)}else{const e=[];for(let t=0;ts;function u(m,g){s.code+=m}function c(m,g=!0){const _=g?i:"";u(o?_+" ".repeat(m):_)}function d(m=!0){const g=++s.indentLevel;m&&c(g)}function f(m=!0){const g=--s.indentLevel;m&&c(g)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function B_e(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),sh(n,e.key),e.modifier?(n.push(", "),sh(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function W_e(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const i=e.items.length;for(let o=0;o1){n.push(`${t("plural")}([`),n.indent(r());const i=e.cases.length;for(let o=0;o{const t=fF(e.mode)?e.mode:"normal",r=fF(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":` -`,a=e.needIndent?e.needIndent:t!=="arrow",s=n.helpers||[],l=F_e(n,{mode:t,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${S7(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),sh(l,n),l.deindent(a),l.push("}"),delete n.helpers;const{code:u,map:c}=l.context();return{ast:n,code:u,map:c?c.toJSON():void 0}};function $_e(n,e={}){const t=w7({},e),r=!!t.jit,i=!!t.minify,o=t.optimize==null?!0:t.optimize,s=A_e(t).parse(n);return r?(o&&P_e(s),i&&lf(s),{ast:s,code:""}):(R_e(s,t),U_e(s,t))}/*! - * core-base v9.10.1 - * (c) 2024 kazuya kawaguchi + */function X_e(n,e,t){return{line:n,column:e,offset:t}}function qE(n,e,t){const r={start:n,end:e};return t!=null&&(r.source=t),r}const Z_e=/\{([0-9a-zA-Z]+)\}/g;function Q_e(n,...e){return e.length===1&&J_e(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),n.replace(Z_e,(t,r)=>e.hasOwnProperty(r)?e[r]:"")}const b7=Object.assign,fF=n=>typeof n=="string",J_e=n=>n!==null&&typeof n=="object";function C7(n,e=""){return n.reduce((t,r,i)=>i===0?t+r:t+e+r,"")}const It={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},eye={[It.EXPECTED_TOKEN]:"Expected token: '{0}'",[It.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[It.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[It.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[It.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[It.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[It.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[It.EMPTY_PLACEHOLDER]:"Empty placeholder",[It.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[It.INVALID_LINKED_FORMAT]:"Invalid linked format",[It.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[It.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[It.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[It.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[It.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[It.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ph(n,e,t={}){const{domain:r,messages:i,args:o}=t,a=Q_e((i||eye)[n]||"",...o||[]),s=new SyntaxError(String(a));return s.code=n,e&&(s.location=e),s.domain=r,s}function tye(n){throw n}const Ts=" ",nye="\r",Di=` +`,rye="\u2028",iye="\u2029";function oye(n){const e=n;let t=0,r=1,i=1,o=0;const a=S=>e[S]===nye&&e[S+1]===Di,s=S=>e[S]===Di,l=S=>e[S]===iye,u=S=>e[S]===rye,c=S=>a(S)||s(S)||l(S)||u(S),d=()=>t,f=()=>r,h=()=>i,p=()=>o,v=S=>a(S)||l(S)||u(S)?Di:e[S],m=()=>v(t),g=()=>v(t+o);function _(){return o=0,c(t)&&(r++,i=0),a(t)&&t++,t++,i++,e[t]}function y(){return a(t+o)&&o++,o++,e[t+o]}function C(){t=0,r=1,i=1,o=0}function w(S=0){o=S}function b(){const S=t+o;for(;S!==t;)_();o=0}return{index:d,line:f,column:h,peekOffset:p,charAt:v,currentChar:m,currentPeek:g,next:_,peek:y,reset:C,resetPeek:w,skipToPeek:b}}const Cl=void 0,aye=".",hF="'",sye="tokenizer";function lye(n,e={}){const t=e.location!==!1,r=oye(n),i=()=>r.index(),o=()=>X_e(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=e;function d(A,P,Q,...re){const le=u();if(P.column+=Q,P.offset+=Q,c){const me=t?qE(le.startLoc,P):null,ge=Ph(A,me,{domain:sye,args:re});c(ge)}}function f(A,P,Q){A.endLoc=o(),A.currentType=P;const re={type:P};return t&&(re.loc=qE(A.startLoc,A.endLoc)),Q!=null&&(re.value=Q),re}const h=A=>f(A,14);function p(A,P){return A.currentChar()===P?(A.next(),P):(d(It.EXPECTED_TOKEN,o(),0,P),"")}function v(A){let P="";for(;A.currentPeek()===Ts||A.currentPeek()===Di;)P+=A.currentPeek(),A.peek();return P}function m(A){const P=v(A);return A.skipToPeek(),P}function g(A){if(A===Cl)return!1;const P=A.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P===95}function _(A){if(A===Cl)return!1;const P=A.charCodeAt(0);return P>=48&&P<=57}function y(A,P){const{currentType:Q}=P;if(Q!==2)return!1;v(A);const re=g(A.currentPeek());return A.resetPeek(),re}function C(A,P){const{currentType:Q}=P;if(Q!==2)return!1;v(A);const re=A.currentPeek()==="-"?A.peek():A.currentPeek(),le=_(re);return A.resetPeek(),le}function w(A,P){const{currentType:Q}=P;if(Q!==2)return!1;v(A);const re=A.currentPeek()===hF;return A.resetPeek(),re}function b(A,P){const{currentType:Q}=P;if(Q!==8)return!1;v(A);const re=A.currentPeek()===".";return A.resetPeek(),re}function S(A,P){const{currentType:Q}=P;if(Q!==9)return!1;v(A);const re=g(A.currentPeek());return A.resetPeek(),re}function E(A,P){const{currentType:Q}=P;if(!(Q===8||Q===12))return!1;v(A);const re=A.currentPeek()===":";return A.resetPeek(),re}function L(A,P){const{currentType:Q}=P;if(Q!==10)return!1;const re=()=>{const me=A.currentPeek();return me==="{"?g(A.peek()):me==="@"||me==="%"||me==="|"||me===":"||me==="."||me===Ts||!me?!1:me===Di?(A.peek(),re()):g(me)},le=re();return A.resetPeek(),le}function T(A){v(A);const P=A.currentPeek()==="|";return A.resetPeek(),P}function R(A){const P=v(A),Q=A.currentPeek()==="%"&&A.peek()==="{";return A.resetPeek(),{isModulo:Q,hasSpace:P.length>0}}function N(A,P=!0){const Q=(le=!1,me="",ge=!1)=>{const he=A.currentPeek();return he==="{"?me==="%"?!1:le:he==="@"||!he?me==="%"?!0:le:he==="%"?(A.peek(),Q(le,"%",!0)):he==="|"?me==="%"||ge?!0:!(me===Ts||me===Di):he===Ts?(A.peek(),Q(!0,Ts,ge)):he===Di?(A.peek(),Q(!0,Di,ge)):!0},re=Q();return P&&A.resetPeek(),re}function D(A,P){const Q=A.currentChar();return Q===Cl?Cl:P(Q)?(A.next(),Q):null}function M(A){return D(A,Q=>{const re=Q.charCodeAt(0);return re>=97&&re<=122||re>=65&&re<=90||re>=48&&re<=57||re===95||re===36})}function H(A){return D(A,Q=>{const re=Q.charCodeAt(0);return re>=48&&re<=57})}function k(A){return D(A,Q=>{const re=Q.charCodeAt(0);return re>=48&&re<=57||re>=65&&re<=70||re>=97&&re<=102})}function W(A){let P="",Q="";for(;P=H(A);)Q+=P;return Q}function F(A){m(A);const P=A.currentChar();return P!=="%"&&d(It.EXPECTED_TOKEN,o(),0,P),A.next(),"%"}function B(A){let P="";for(;;){const Q=A.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q==="%")if(N(A))P+=Q,A.next();else break;else if(Q===Ts||Q===Di)if(N(A))P+=Q,A.next();else{if(T(A))break;P+=Q,A.next()}else P+=Q,A.next()}return P}function j(A){m(A);let P="",Q="";for(;P=M(A);)Q+=P;return A.currentChar()===Cl&&d(It.UNTERMINATED_CLOSING_BRACE,o(),0),Q}function K(A){m(A);let P="";return A.currentChar()==="-"?(A.next(),P+=`-${W(A)}`):P+=W(A),A.currentChar()===Cl&&d(It.UNTERMINATED_CLOSING_BRACE,o(),0),P}function X(A){m(A),p(A,"'");let P="",Q="";const re=me=>me!==hF&&me!==Di;for(;P=D(A,re);)P==="\\"?Q+=Z(A):Q+=P;const le=A.currentChar();return le===Di||le===Cl?(d(It.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),le===Di&&(A.next(),p(A,"'")),Q):(p(A,"'"),Q)}function Z(A){const P=A.currentChar();switch(P){case"\\":case"'":return A.next(),`\\${P}`;case"u":return z(A,P,4);case"U":return z(A,P,6);default:return d(It.UNKNOWN_ESCAPE_SEQUENCE,o(),0,P),""}}function z(A,P,Q){p(A,P);let re="";for(let le=0;lele!=="{"&&le!=="}"&&le!==Ts&&le!==Di;for(;P=D(A,re);)Q+=P;return Q}function te(A){let P="",Q="";for(;P=M(A);)Q+=P;return Q}function G(A){const P=(Q=!1,re)=>{const le=A.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||le==="("||le===")"||!le||le===Ts?re:le===Di||le===aye?(re+=le,A.next(),P(Q,re)):(re+=le,A.next(),P(!0,re))};return P(!1,"")}function ae(A){m(A);const P=p(A,"|");return m(A),P}function oe(A,P){let Q=null;switch(A.currentChar()){case"{":return P.braceNest>=1&&d(It.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),A.next(),Q=f(P,2,"{"),m(A),P.braceNest++,Q;case"}":return P.braceNest>0&&P.currentType===2&&d(It.EMPTY_PLACEHOLDER,o(),0),A.next(),Q=f(P,3,"}"),P.braceNest--,P.braceNest>0&&m(A),P.inLinked&&P.braceNest===0&&(P.inLinked=!1),Q;case"@":return P.braceNest>0&&d(It.UNTERMINATED_CLOSING_BRACE,o(),0),Q=de(A,P)||h(P),P.braceNest=0,Q;default:let le=!0,me=!0,ge=!0;if(T(A))return P.braceNest>0&&d(It.UNTERMINATED_CLOSING_BRACE,o(),0),Q=f(P,1,ae(A)),P.braceNest=0,P.inLinked=!1,Q;if(P.braceNest>0&&(P.currentType===5||P.currentType===6||P.currentType===7))return d(It.UNTERMINATED_CLOSING_BRACE,o(),0),P.braceNest=0,Ce(A,P);if(le=y(A,P))return Q=f(P,5,j(A)),m(A),Q;if(me=C(A,P))return Q=f(P,6,K(A)),m(A),Q;if(ge=w(A,P))return Q=f(P,7,X(A)),m(A),Q;if(!le&&!me&&!ge)return Q=f(P,13,Y(A)),d(It.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Q.value),m(A),Q;break}return Q}function de(A,P){const{currentType:Q}=P;let re=null;const le=A.currentChar();switch((Q===8||Q===9||Q===12||Q===10)&&(le===Di||le===Ts)&&d(It.INVALID_LINKED_FORMAT,o(),0),le){case"@":return A.next(),re=f(P,8,"@"),P.inLinked=!0,re;case".":return m(A),A.next(),f(P,9,".");case":":return m(A),A.next(),f(P,10,":");default:return T(A)?(re=f(P,1,ae(A)),P.braceNest=0,P.inLinked=!1,re):b(A,P)||E(A,P)?(m(A),de(A,P)):S(A,P)?(m(A),f(P,12,te(A))):L(A,P)?(m(A),le==="{"?oe(A,P)||re:f(P,11,G(A))):(Q===8&&d(It.INVALID_LINKED_FORMAT,o(),0),P.braceNest=0,P.inLinked=!1,Ce(A,P))}}function Ce(A,P){let Q={type:14};if(P.braceNest>0)return oe(A,P)||h(P);if(P.inLinked)return de(A,P)||h(P);switch(A.currentChar()){case"{":return oe(A,P)||h(P);case"}":return d(It.UNBALANCED_CLOSING_BRACE,o(),0),A.next(),f(P,3,"}");case"@":return de(A,P)||h(P);default:if(T(A))return Q=f(P,1,ae(A)),P.braceNest=0,P.inLinked=!1,Q;const{isModulo:le,hasSpace:me}=R(A);if(le)return me?f(P,0,B(A)):f(P,4,F(A));if(N(A))return f(P,0,B(A));break}return Q}function $(){const{currentType:A,offset:P,startLoc:Q,endLoc:re}=l;return l.lastType=A,l.lastOffset=P,l.lastStartLoc=Q,l.lastEndLoc=re,l.offset=i(),l.startLoc=o(),r.currentChar()===Cl?f(l,14):Ce(r,l)}return{nextToken:$,currentOffset:i,currentPosition:o,context:u}}const uye="parser",cye=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function dye(n,e,t){switch(n){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||t,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function fye(n={}){const e=n.location!==!1,{onError:t}=n;function r(g,_,y,C,...w){const b=g.currentPosition();if(b.offset+=C,b.column+=C,t){const S=e?qE(y,b):null,E=Ph(_,S,{domain:uye,args:w});t(E)}}function i(g,_,y){const C={type:g};return e&&(C.start=_,C.end=_,C.loc={start:y,end:y}),C}function o(g,_,y,C){C&&(g.type=C),e&&(g.end=_,g.loc&&(g.loc.end=y))}function a(g,_){const y=g.context(),C=i(3,y.offset,y.startLoc);return C.value=_,o(C,g.currentOffset(),g.currentPosition()),C}function s(g,_){const y=g.context(),{lastOffset:C,lastStartLoc:w}=y,b=i(5,C,w);return b.index=parseInt(_,10),g.nextToken(),o(b,g.currentOffset(),g.currentPosition()),b}function l(g,_){const y=g.context(),{lastOffset:C,lastStartLoc:w}=y,b=i(4,C,w);return b.key=_,g.nextToken(),o(b,g.currentOffset(),g.currentPosition()),b}function u(g,_){const y=g.context(),{lastOffset:C,lastStartLoc:w}=y,b=i(9,C,w);return b.value=_.replace(cye,dye),g.nextToken(),o(b,g.currentOffset(),g.currentPosition()),b}function c(g){const _=g.nextToken(),y=g.context(),{lastOffset:C,lastStartLoc:w}=y,b=i(8,C,w);return _.type!==12?(r(g,It.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),b.value="",o(b,C,w),{nextConsumeToken:_,node:b}):(_.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Ra(_)),b.value=_.value||"",o(b,g.currentOffset(),g.currentPosition()),{node:b})}function d(g,_){const y=g.context(),C=i(7,y.offset,y.startLoc);return C.value=_,o(C,g.currentOffset(),g.currentPosition()),C}function f(g){const _=g.context(),y=i(6,_.offset,_.startLoc);let C=g.nextToken();if(C.type===9){const w=c(g);y.modifier=w.node,C=w.nextConsumeToken||g.nextToken()}switch(C.type!==10&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(C)),C=g.nextToken(),C.type===2&&(C=g.nextToken()),C.type){case 11:C.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(C)),y.key=d(g,C.value||"");break;case 5:C.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(C)),y.key=l(g,C.value||"");break;case 6:C.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(C)),y.key=s(g,C.value||"");break;case 7:C.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(C)),y.key=u(g,C.value||"");break;default:r(g,It.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const w=g.context(),b=i(7,w.offset,w.startLoc);return b.value="",o(b,w.offset,w.startLoc),y.key=b,o(y,w.offset,w.startLoc),{nextConsumeToken:C,node:y}}return o(y,g.currentOffset(),g.currentPosition()),{node:y}}function h(g){const _=g.context(),y=_.currentType===1?g.currentOffset():_.offset,C=_.currentType===1?_.endLoc:_.startLoc,w=i(2,y,C);w.items=[];let b=null;do{const L=b||g.nextToken();switch(b=null,L.type){case 0:L.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(L)),w.items.push(a(g,L.value||""));break;case 6:L.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(L)),w.items.push(s(g,L.value||""));break;case 5:L.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(L)),w.items.push(l(g,L.value||""));break;case 7:L.value==null&&r(g,It.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ra(L)),w.items.push(u(g,L.value||""));break;case 8:const T=f(g);w.items.push(T.node),b=T.nextConsumeToken||null;break}}while(_.currentType!==14&&_.currentType!==1);const S=_.currentType===1?_.lastOffset:g.currentOffset(),E=_.currentType===1?_.lastEndLoc:g.currentPosition();return o(w,S,E),w}function p(g,_,y,C){const w=g.context();let b=C.items.length===0;const S=i(1,_,y);S.cases=[],S.cases.push(C);do{const E=h(g);b||(b=E.items.length===0),S.cases.push(E)}while(w.currentType!==14);return b&&r(g,It.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),o(S,g.currentOffset(),g.currentPosition()),S}function v(g){const _=g.context(),{offset:y,startLoc:C}=_,w=h(g);return _.currentType===14?w:p(g,y,C,w)}function m(g){const _=lye(g,b7({},n)),y=_.context(),C=i(0,y.offset,y.startLoc);return e&&C.loc&&(C.loc.source=g),C.body=v(_),n.onCacheKey&&(C.cacheKey=n.onCacheKey(g)),y.currentType!==14&&r(_,It.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,g[y.offset]||""),o(C,_.currentOffset(),_.currentPosition()),C}return{parse:m}}function Ra(n){if(n.type===14)return"EOF";const e=(n.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function hye(n,e={}){const t={ast:n,helpers:new Set};return{context:()=>t,helper:o=>(t.helpers.add(o),o)}}function pF(n,e){for(let t=0;tvF(t)),n}function vF(n){if(n.items.length===1){const e=n.items[0];(e.type===3||e.type===9)&&(n.static=e.value,delete e.value)}else{const e=[];for(let t=0;ts;function u(m,g){s.code+=m}function c(m,g=!0){const _=g?i:"";u(o?_+" ".repeat(m):_)}function d(m=!0){const g=++s.indentLevel;m&&c(g)}function f(m=!0){const g=--s.indentLevel;m&&c(g)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:d,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function yye(n,e){const{helper:t}=n;n.push(`${t("linked")}(`),sh(n,e.key),e.modifier?(n.push(", "),sh(n,e.modifier),n.push(", _type")):n.push(", undefined, _type"),n.push(")")}function bye(n,e){const{helper:t,needIndent:r}=n;n.push(`${t("normalize")}([`),n.indent(r());const i=e.items.length;for(let o=0;o1){n.push(`${t("plural")}([`),n.indent(r());const i=e.cases.length;for(let o=0;o{const t=fF(e.mode)?e.mode:"normal",r=fF(e.filename)?e.filename:"message.intl",i=!!e.sourceMap,o=e.breakLineCode!=null?e.breakLineCode:t==="arrow"?";":` +`,a=e.needIndent?e.needIndent:t!=="arrow",s=n.helpers||[],l=_ye(n,{mode:t,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(t==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${C7(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),sh(l,n),l.deindent(a),l.push("}"),delete n.helpers;const{code:u,map:c}=l.context();return{ast:n,code:u,map:c?c.toJSON():void 0}};function Eye(n,e={}){const t=b7({},e),r=!!t.jit,i=!!t.minify,o=t.optimize==null?!0:t.optimize,s=fye(t).parse(n);return r?(o&&vye(s),i&&uf(s),{ast:s,code:""}):(pye(s,t),Sye(s,t))}/*! + * core-base v9.8.0 + * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */function j_e(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($s().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&($s().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($s().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ou=[];Ou[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ou[1]={w:[1],".":[2],"[":[4],o:[7]};Ou[2]={w:[2],i:[3,0],0:[3,0]};Ou[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ou[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ou[5]={"'":[4,0],o:8,l:[5,0]};Ou[6]={'"':[4,0],o:8,l:[6,0]};const z_e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function K_e(n){return z_e.test(n)}function G_e(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function q_e(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Y_e(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:K_e(e)?G_e(e):"*"+e}function X_e(n){const e=[];let t=-1,r=0,i=0,o,a,s,l,u,c,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,a===void 0||(a=Y_e(a),a===!1))return!1;f[1]()}};function h(){const p=n[t+1];if(r===5&&p==="'"||r===6&&p==='"')return t++,s="\\"+p,f[0](),!0}for(;r!==null;)if(t++,o=n[t],!(o==="\\"&&h())){if(l=q_e(o),d=Ou[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return e}}const gF=new Map;function Z_e(n,e){return En(n)?n[e]:null}function Q_e(n,e){if(!En(n))return null;let t=gF.get(e);if(t||(t=X_e(e),t&&gF.set(e,t)),!t)return null;const r=t.length;let i=n,o=0;for(;on,eye=n=>"",tye="text",nye=n=>n.length===0?"":h_e(n),rye=f_e;function mF(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function iye(n){const e=$r(n.pluralIndex)?n.pluralIndex:-1;return n.named&&($r(n.named.count)||$r(n.named.n))?$r(n.named.count)?n.named.count:$r(n.named.n)?n.named.n:e:e}function oye(n,e){e.count||(e.count=n),e.n||(e.n=n)}function aye(n={}){const e=n.locale,t=iye(n),r=En(n.pluralRules)&&tt(e)&&jn(n.pluralRules[e])?n.pluralRules[e]:mF,i=En(n.pluralRules)&&tt(e)&&jn(n.pluralRules[e])?mF:void 0,o=g=>g[r(t,g.length,i)],a=n.list||[],s=g=>a[g],l=n.named||{};$r(n.pluralIndex)&&oye(t,l);const u=g=>l[g];function c(g){const _=jn(n.messages)?n.messages(g):En(n.messages)?n.messages[g]:!1;return _||(n.parent?n.parent.message(g):eye)}const d=g=>n.modifiers?n.modifiers[g]:J_e,f=Ot(n.processor)&&jn(n.processor.normalize)?n.processor.normalize:nye,h=Ot(n.processor)&&jn(n.processor.interpolate)?n.processor.interpolate:rye,p=Ot(n.processor)&&tt(n.processor.type)?n.processor.type:tye,m={list:s,named:u,plural:o,linked:(g,..._)=>{const[y,b]=_;let w="text",C="";_.length===1?En(y)?(C=y.modifier||C,w=y.type||w):tt(y)&&(C=y||C):_.length===2&&(tt(y)&&(C=y||C),tt(b)&&(w=b||w));const S=c(g)(m),L=w==="vnode"&&tr(S)&&C?S[0]:S;return C?d(C)(L,w):L},message:c,type:p,interpolate:h,normalize:f,values:ui({},a,l)};return m}let Kv=null;function sye(n){Kv=n}function lye(n,e,t){Kv&&Kv.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const uye=cye("function:translate");function cye(n){return e=>Kv&&Kv.emit(n,e)}const dye={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},E7=Lt.__EXTEND_POINT__,Ku=eN(E7),ga={INVALID_ARGUMENT:E7,INVALID_DATE_ARGUMENT:Ku(),INVALID_ISO_DATE_ARGUMENT:Ku(),NOT_SUPPORT_NON_STRING_MESSAGE:Ku(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ku(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ku(),NOT_SUPPORT_LOCALE_TYPE:Ku(),__EXTEND_POINT__:Ku()};function $a(n){return Dh(n,null,void 0)}function nN(n,e){return e.locale!=null?_F(e.locale):_F(n.locale)}let Uw;function _F(n){if(tt(n))return n;if(jn(n)){if(n.resolvedOnce&&Uw!=null)return Uw;if(n.constructor.name==="Function"){const e=n();if(d_e(e))throw $a(ga.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Uw=e}else throw $a(ga.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $a(ga.NOT_SUPPORT_LOCALE_TYPE)}function fye(n,e,t){return[...new Set([t,...tr(e)?e:En(e)?Object.keys(e):tt(e)?[e]:[t]])]}function L7(n,e,t){const r=tt(t)?t:lh,i=n;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[t];for(;tr(a);)a=yF(o,a,e);const s=tr(e)||!Ot(e)?e:e.default?e.default:null;a=tt(s)?[s]:s,tr(a)&&yF(o,a,!1),i.__localeChainCache.set(r,o)}return o}function yF(n,e,t){let r=!0;for(let i=0;i`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function gye(){return{upper:(n,e)=>e==="text"&&tt(n)?n.toUpperCase():e==="vnode"&&En(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&tt(n)?n.toLowerCase():e==="vnode"&&En(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&tt(n)?CF(n):e==="vnode"&&En(n)&&"__v_isVNode"in n?CF(n.children):n}}let I7;function wF(n){I7=n}let T7;function mye(n){T7=n}let x7;function _ye(n){x7=n}let O7=null;const yye=n=>{O7=n},bye=()=>O7;let N7=null;const SF=n=>{N7=n},Cye=()=>N7;let EF=0;function wye(n={}){const e=jn(n.onWarn)?n.onWarn:p_e,t=tt(n.version)?n.version:vye,r=tt(n.locale)||jn(n.locale)?n.locale:lh,i=jn(r)?lh:r,o=tr(n.fallbackLocale)||Ot(n.fallbackLocale)||tt(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:i,a=Ot(n.messages)?n.messages:{[i]:{}},s=Ot(n.datetimeFormats)?n.datetimeFormats:{[i]:{}},l=Ot(n.numberFormats)?n.numberFormats:{[i]:{}},u=ui({},n.modifiers||{},gye()),c=n.pluralRules||{},d=jn(n.missing)?n.missing:null,f=Jt(n.missingWarn)||yu(n.missingWarn)?n.missingWarn:!0,h=Jt(n.fallbackWarn)||yu(n.fallbackWarn)?n.fallbackWarn:!0,p=!!n.fallbackFormat,v=!!n.unresolving,m=jn(n.postTranslation)?n.postTranslation:null,g=Ot(n.processor)?n.processor:null,_=Jt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,y=!!n.escapeParameter,b=jn(n.messageCompiler)?n.messageCompiler:I7,w=jn(n.messageResolver)?n.messageResolver:T7||Z_e,C=jn(n.localeFallbacker)?n.localeFallbacker:x7||fye,S=En(n.fallbackContext)?n.fallbackContext:void 0,L=n,E=En(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,T=En(L.__numberFormatters)?L.__numberFormatters:new Map,P=En(L.__meta)?L.__meta:{};EF++;const A={version:t,cid:EF,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:v,postTranslation:m,processor:g,warnHtmlMessage:_,escapeParameter:y,messageCompiler:b,messageResolver:w,localeFallbacker:C,fallbackContext:S,onWarn:e,__meta:P};return A.datetimeFormats=s,A.numberFormats=l,A.__datetimeFormatters=E,A.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&lye(A,t,P),A}function rN(n,e,t,r,i){const{missing:o,onWarn:a}=n;if(o!==null){const s=o(n,t,e,i);return tt(s)?s:e}else return e}function up(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function $w(n){return t=>Sye(t,n)}function Sye(n,e){const t=e.b||e.body;if((t.t||t.type)===1){const r=t,i=r.c||r.cases;return n.plural(i.reduce((o,a)=>[...o,LF(n,a)],[]))}else return LF(n,t)}function LF(n,e){const t=e.s||e.static;if(t)return n.type==="text"?t:n.normalize([t]);{const r=(e.i||e.items).reduce((i,o)=>[...i,ZE(n,o)],[]);return n.normalize(r)}}function ZE(n,e){const t=e.t||e.type;switch(t){case 3:const r=e;return r.v||r.value;case 9:const i=e;return i.v||i.value;case 4:const o=e;return n.interpolate(n.named(o.k||o.key));case 5:const a=e;return n.interpolate(n.list(a.i!=null?a.i:a.index));case 6:const s=e,l=s.m||s.modifier;return n.linked(ZE(n,s.k||s.key),l?ZE(n,l):void 0,n.type);case 7:const u=e;return u.v||u.value;case 8:const c=e;return c.v||c.value;default:throw new Error(`unhandled node type on format message part: ${t}`)}}const A7=n=>n;let mf=Object.create(null);const uh=n=>En(n)&&(n.t===0||n.type===0)&&("b"in n||"body"in n);function D7(n,e={}){let t=!1;const r=e.onError||b_e;return e.onError=i=>{t=!0,r(i)},{...$_e(n,e),detectError:t}}const Eye=(n,e)=>{if(!tt(n))throw $a(ga.NOT_SUPPORT_NON_STRING_MESSAGE);{Jt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||A7)(n),i=mf[r];if(i)return i;const{code:o,detectError:a}=D7(n,e),s=new Function(`return ${o}`)();return a?s:mf[r]=s}};function Lye(n,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&tt(n)){Jt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||A7)(n),i=mf[r];if(i)return i;const{ast:o,detectError:a}=D7(n,{...e,location:!1,jit:!0}),s=$w(o);return a?s:mf[r]=s}else{const t=n.cacheKey;if(t){const r=mf[t];return r||(mf[t]=$w(n))}else return $w(n)}}const IF=()=>"",Ho=n=>jn(n);function TF(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=n,[l,u]=QE(...e),c=Jt(u.missingWarn)?u.missingWarn:n.missingWarn,d=Jt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn,f=Jt(u.escapeParameter)?u.escapeParameter:n.escapeParameter,h=!!u.resolvedMessage,p=tt(u.default)||Jt(u.default)?Jt(u.default)?o?l:()=>l:u.default:t?o?l:()=>l:"",v=t||p!=="",m=nN(n,u);f&&Iye(u);let[g,_,y]=h?[l,m,s[m]||{}]:R7(n,l,m,a,d,c),b=g,w=l;if(!h&&!(tt(b)||uh(b)||Ho(b))&&v&&(b=p,w=b),!h&&(!(tt(b)||uh(b)||Ho(b))||!tt(_)))return i?wC:l;let C=!1;const S=()=>{C=!0},L=Ho(b)?b:P7(n,l,_,b,w,S);if(C)return b;const E=Oye(n,_,y,u),T=aye(E),P=Tye(n,L,T),A=r?r(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:tt(l)?l:Ho(b)?b.key:"",locale:_||(Ho(b)?b.locale:""),format:tt(b)?b:Ho(b)?b.source:"",message:A};D.meta=ui({},n.__meta,bye()||{}),uye(D)}return A}function Iye(n){tr(n.list)?n.list=n.list.map(e=>tt(e)?dF(e):e):En(n.named)&&Object.keys(n.named).forEach(e=>{tt(n.named[e])&&(n.named[e]=dF(n.named[e]))})}function R7(n,e,t,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=n,c=u(n,r,t);let d={},f,h=null;const p="translate";for(let v=0;vr;return u.locale=t,u.key=e,u}const l=a(r,xye(n,t,i,r,s,o));return l.locale=t,l.key=e,l.source=r,l}function Tye(n,e,t){return e(t)}function QE(...n){const[e,t,r]=n,i={};if(!tt(e)&&!$r(e)&&!Ho(e)&&!uh(e))throw $a(ga.INVALID_ARGUMENT);const o=$r(e)?String(e):(Ho(e),e);return $r(t)?i.plural=t:tt(t)?i.default=t:Ot(t)&&!CC(t)?i.named=t:tr(t)&&(i.list=t),$r(r)?i.plural=r:tt(r)?i.default=r:Ot(r)&&ui(i,r),[o,i]}function xye(n,e,t,r,i,o){return{locale:e,key:t,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>s_e(e,t,a)}}function Oye(n,e,t,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=n,f={locale:e,modifiers:i,pluralRules:o,messages:h=>{let p=a(t,h);if(p==null&&c){const[,,v]=R7(c,h,e,s,l,u);p=a(v,h)}if(tt(p)||uh(p)){let v=!1;const g=P7(n,h,e,p,h,()=>{v=!0});return v?IF:g}else return Ho(p)?p:IF}};return n.processor&&(f.processor=n.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),$r(r.plural)&&(f.pluralIndex=r.plural),f}function xF(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=n,{__datetimeFormatters:s}=n,[l,u,c,d]=JE(...e),f=Jt(c.missingWarn)?c.missingWarn:n.missingWarn;Jt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn;const h=!!c.part,p=nN(n,c),v=a(n,i,p);if(!tt(l)||l==="")return new Intl.DateTimeFormat(p,d).format(u);let m={},g,_=null;const y="datetime format";for(let C=0;C{M7.includes(l)?a[l]=t[l]:o[l]=t[l]}),tt(r)?o.locale=r:Ot(r)&&(a=r),Ot(i)&&(a=i),[o.key||"",s,o,a]}function OF(n,e,t){const r=n;for(const i in t){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function NF(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=n,{__numberFormatters:s}=n,[l,u,c,d]=eL(...e),f=Jt(c.missingWarn)?c.missingWarn:n.missingWarn;Jt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn;const h=!!c.part,p=nN(n,c),v=a(n,i,p);if(!tt(l)||l==="")return new Intl.NumberFormat(p,d).format(u);let m={},g,_=null;const y="number format";for(let C=0;C{k7.includes(l)?a[l]=t[l]:o[l]=t[l]}),tt(r)?o.locale=r:Ot(r)&&(a=r),Ot(i)&&(a=i),[o.key||"",s,o,a]}function AF(n,e,t){const r=n;for(const i in t){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}j_e();/*! - * vue-i18n v9.10.1 - * (c) 2024 kazuya kawaguchi + */function Lye(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(js().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(js().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(js().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Ou=[];Ou[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ou[1]={w:[1],".":[2],"[":[4],o:[7]};Ou[2]={w:[2],i:[3,0],0:[3,0]};Ou[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ou[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ou[5]={"'":[4,0],o:8,l:[5,0]};Ou[6]={'"':[4,0],o:8,l:[6,0]};const Iye=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Tye(n){return Iye.test(n)}function xye(n){const e=n.charCodeAt(0),t=n.charCodeAt(n.length-1);return e===t&&(e===34||e===39)?n.slice(1,-1):n}function Oye(n){if(n==null)return"o";switch(n.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Nye(n){const e=n.trim();return n.charAt(0)==="0"&&isNaN(parseInt(n))?!1:Tye(e)?xye(e):"*"+e}function Dye(n){const e=[];let t=-1,r=0,i=0,o,a,s,l,u,c,d;const f=[];f[0]=()=>{a===void 0?a=s:a+=s},f[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,a===void 0||(a=Nye(a),a===!1))return!1;f[1]()}};function h(){const p=n[t+1];if(r===5&&p==="'"||r===6&&p==='"')return t++,s="\\"+p,f[0](),!0}for(;r!==null;)if(t++,o=n[t],!(o==="\\"&&h())){if(l=Oye(o),d=Ou[r],u=d[l]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=f[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return e}}const gF=new Map;function Aye(n,e){return En(n)?n[e]:null}function Rye(n,e){if(!En(n))return null;let t=gF.get(e);if(t||(t=Dye(e),t&&gF.set(e,t)),!t)return null;const r=t.length;let i=n,o=0;for(;on,Mye=n=>"",kye="text",Fye=n=>n.length===0?"":q_e(n),Bye=G_e;function mF(n,e){return n=Math.abs(n),e===2?n?n>1?1:0:1:n?Math.min(n,2):0}function Wye(n){const e=$r(n.pluralIndex)?n.pluralIndex:-1;return n.named&&($r(n.named.count)||$r(n.named.n))?$r(n.named.count)?n.named.count:$r(n.named.n)?n.named.n:e:e}function Vye(n,e){e.count||(e.count=n),e.n||(e.n=n)}function Hye(n={}){const e=n.locale,t=Wye(n),r=En(n.pluralRules)&&et(e)&&jn(n.pluralRules[e])?n.pluralRules[e]:mF,i=En(n.pluralRules)&&et(e)&&jn(n.pluralRules[e])?mF:void 0,o=g=>g[r(t,g.length,i)],a=n.list||[],s=g=>a[g],l=n.named||{};$r(n.pluralIndex)&&Vye(t,l);const u=g=>l[g];function c(g){const _=jn(n.messages)?n.messages(g):En(n.messages)?n.messages[g]:!1;return _||(n.parent?n.parent.message(g):Mye)}const d=g=>n.modifiers?n.modifiers[g]:Pye,f=Ot(n.processor)&&jn(n.processor.normalize)?n.processor.normalize:Fye,h=Ot(n.processor)&&jn(n.processor.interpolate)?n.processor.interpolate:Bye,p=Ot(n.processor)&&et(n.processor.type)?n.processor.type:kye,m={list:s,named:u,plural:o,linked:(g,..._)=>{const[y,C]=_;let w="text",b="";_.length===1?En(y)?(b=y.modifier||b,w=y.type||w):et(y)&&(b=y||b):_.length===2&&(et(y)&&(b=y||b),et(C)&&(w=C||w));const S=c(g)(m),E=w==="vnode"&&tr(S)&&b?S[0]:S;return b?d(b)(E,w):E},message:c,type:p,interpolate:h,normalize:f,values:ui({},a,l)};return m}let Xv=null;function Uye(n){Xv=n}function $ye(n,e,t){Xv&&Xv.emit("i18n:init",{timestamp:Date.now(),i18n:n,version:e,meta:t})}const jye=zye("function:translate");function zye(n){return e=>Xv&&Xv.emit(n,e)}const Kye={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},w7=It.__EXTEND_POINT__,Ku=eN(w7),ga={INVALID_ARGUMENT:w7,INVALID_DATE_ARGUMENT:Ku(),INVALID_ISO_DATE_ARGUMENT:Ku(),NOT_SUPPORT_NON_STRING_MESSAGE:Ku(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ku(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ku(),NOT_SUPPORT_LOCALE_TYPE:Ku(),__EXTEND_POINT__:Ku()};function $a(n){return Ph(n,null,void 0)}function nN(n,e){return e.locale!=null?_F(e.locale):_F(n.locale)}let Fw;function _F(n){if(et(n))return n;if(jn(n)){if(n.resolvedOnce&&Fw!=null)return Fw;if(n.constructor.name==="Function"){const e=n();if(K_e(e))throw $a(ga.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Fw=e}else throw $a(ga.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $a(ga.NOT_SUPPORT_LOCALE_TYPE)}function Gye(n,e,t){return[...new Set([t,...tr(e)?e:En(e)?Object.keys(e):et(e)?[e]:[t]])]}function S7(n,e,t){const r=et(t)?t:lh,i=n;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[t];for(;tr(a);)a=yF(o,a,e);const s=tr(e)||!Ot(e)?e:e.default?e.default:null;a=et(s)?[s]:s,tr(a)&&yF(o,a,!1),i.__localeChainCache.set(r,o)}return o}function yF(n,e,t){let r=!0;for(let i=0;i`${n.charAt(0).toLocaleUpperCase()}${n.substr(1)}`;function Zye(){return{upper:(n,e)=>e==="text"&&et(n)?n.toUpperCase():e==="vnode"&&En(n)&&"__v_isVNode"in n?n.children.toUpperCase():n,lower:(n,e)=>e==="text"&&et(n)?n.toLowerCase():e==="vnode"&&En(n)&&"__v_isVNode"in n?n.children.toLowerCase():n,capitalize:(n,e)=>e==="text"&&et(n)?CF(n):e==="vnode"&&En(n)&&"__v_isVNode"in n?CF(n.children):n}}let E7;function wF(n){E7=n}let L7;function Qye(n){L7=n}let I7;function Jye(n){I7=n}let T7=null;const ebe=n=>{T7=n},tbe=()=>T7;let x7=null;const SF=n=>{x7=n},nbe=()=>x7;let EF=0;function rbe(n={}){const e=jn(n.onWarn)?n.onWarn:Y_e,t=et(n.version)?n.version:Xye,r=et(n.locale)||jn(n.locale)?n.locale:lh,i=jn(r)?lh:r,o=tr(n.fallbackLocale)||Ot(n.fallbackLocale)||et(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:i,a=Ot(n.messages)?n.messages:{[i]:{}},s=Ot(n.datetimeFormats)?n.datetimeFormats:{[i]:{}},l=Ot(n.numberFormats)?n.numberFormats:{[i]:{}},u=ui({},n.modifiers||{},Zye()),c=n.pluralRules||{},d=jn(n.missing)?n.missing:null,f=Jt(n.missingWarn)||yu(n.missingWarn)?n.missingWarn:!0,h=Jt(n.fallbackWarn)||yu(n.fallbackWarn)?n.fallbackWarn:!0,p=!!n.fallbackFormat,v=!!n.unresolving,m=jn(n.postTranslation)?n.postTranslation:null,g=Ot(n.processor)?n.processor:null,_=Jt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,y=!!n.escapeParameter,C=jn(n.messageCompiler)?n.messageCompiler:E7,w=jn(n.messageResolver)?n.messageResolver:L7||Aye,b=jn(n.localeFallbacker)?n.localeFallbacker:I7||Gye,S=En(n.fallbackContext)?n.fallbackContext:void 0,E=n,L=En(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,T=En(E.__numberFormatters)?E.__numberFormatters:new Map,R=En(E.__meta)?E.__meta:{};EF++;const N={version:t,cid:EF,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:p,unresolving:v,postTranslation:m,processor:g,warnHtmlMessage:_,escapeParameter:y,messageCompiler:C,messageResolver:w,localeFallbacker:b,fallbackContext:S,onWarn:e,__meta:R};return N.datetimeFormats=s,N.numberFormats=l,N.__datetimeFormatters=L,N.__numberFormatters=T,__INTLIFY_PROD_DEVTOOLS__&&$ye(N,t,R),N}function rN(n,e,t,r,i){const{missing:o,onWarn:a}=n;if(o!==null){const s=o(n,t,e,i);return et(s)?s:e}else return e}function cp(n,e,t){const r=n;r.__localeChainCache=new Map,n.localeFallbacker(n,t,e)}function Bw(n){return t=>ibe(t,n)}function ibe(n,e){const t=e.b||e.body;if((t.t||t.type)===1){const r=t,i=r.c||r.cases;return n.plural(i.reduce((o,a)=>[...o,LF(n,a)],[]))}else return LF(n,t)}function LF(n,e){const t=e.s||e.static;if(t)return n.type==="text"?t:n.normalize([t]);{const r=(e.i||e.items).reduce((i,o)=>[...i,YE(n,o)],[]);return n.normalize(r)}}function YE(n,e){const t=e.t||e.type;switch(t){case 3:const r=e;return r.v||r.value;case 9:const i=e;return i.v||i.value;case 4:const o=e;return n.interpolate(n.named(o.k||o.key));case 5:const a=e;return n.interpolate(n.list(a.i!=null?a.i:a.index));case 6:const s=e,l=s.m||s.modifier;return n.linked(YE(n,s.k||s.key),l?YE(n,l):void 0,n.type);case 7:const u=e;return u.v||u.value;case 8:const c=e;return c.v||c.value;default:throw new Error(`unhandled node type on format message part: ${t}`)}}const O7=n=>n;let _f=Object.create(null);const uh=n=>En(n)&&(n.t===0||n.type===0)&&("b"in n||"body"in n);function N7(n,e={}){let t=!1;const r=e.onError||tye;return e.onError=i=>{t=!0,r(i)},{...Eye(n,e),detectError:t}}const obe=(n,e)=>{if(!et(n))throw $a(ga.NOT_SUPPORT_NON_STRING_MESSAGE);{Jt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||O7)(n),i=_f[r];if(i)return i;const{code:o,detectError:a}=N7(n,e),s=new Function(`return ${o}`)();return a?s:_f[r]=s}};function abe(n,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&et(n)){Jt(e.warnHtmlMessage)&&e.warnHtmlMessage;const r=(e.onCacheKey||O7)(n),i=_f[r];if(i)return i;const{ast:o,detectError:a}=N7(n,{...e,location:!1,jit:!0}),s=Bw(o);return a?s:_f[r]=s}else{const t=n.cacheKey;if(t){const r=_f[t];return r||(_f[t]=Bw(n))}else return Bw(n)}}const IF=()=>"",Ho=n=>jn(n);function TF(n,...e){const{fallbackFormat:t,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=n,[l,u]=XE(...e),c=Jt(u.missingWarn)?u.missingWarn:n.missingWarn,d=Jt(u.fallbackWarn)?u.fallbackWarn:n.fallbackWarn,f=Jt(u.escapeParameter)?u.escapeParameter:n.escapeParameter,h=!!u.resolvedMessage,p=et(u.default)||Jt(u.default)?Jt(u.default)?o?l:()=>l:u.default:t?o?l:()=>l:"",v=t||p!=="",m=nN(n,u);f&&sbe(u);let[g,_,y]=h?[l,m,s[m]||{}]:D7(n,l,m,a,d,c),C=g,w=l;if(!h&&!(et(C)||uh(C)||Ho(C))&&v&&(C=p,w=C),!h&&(!(et(C)||uh(C)||Ho(C))||!et(_)))return i?yC:l;let b=!1;const S=()=>{b=!0},E=Ho(C)?C:A7(n,l,_,C,w,S);if(b)return C;const L=cbe(n,_,y,u),T=Hye(L),R=lbe(n,E,T),N=r?r(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:et(l)?l:Ho(C)?C.key:"",locale:_||(Ho(C)?C.locale:""),format:et(C)?C:Ho(C)?C.source:"",message:N};D.meta=ui({},n.__meta,tbe()||{}),jye(D)}return N}function sbe(n){tr(n.list)?n.list=n.list.map(e=>et(e)?dF(e):e):En(n.named)&&Object.keys(n.named).forEach(e=>{et(n.named[e])&&(n.named[e]=dF(n.named[e]))})}function D7(n,e,t,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=n,c=u(n,r,t);let d={},f,h=null;const p="translate";for(let v=0;vr;return u.locale=t,u.key=e,u}const l=a(r,ube(n,t,i,r,s,o));return l.locale=t,l.key=e,l.source=r,l}function lbe(n,e,t){return e(t)}function XE(...n){const[e,t,r]=n,i={};if(!et(e)&&!$r(e)&&!Ho(e)&&!uh(e))throw $a(ga.INVALID_ARGUMENT);const o=$r(e)?String(e):(Ho(e),e);return $r(t)?i.plural=t:et(t)?i.default=t:Ot(t)&&!_C(t)?i.named=t:tr(t)&&(i.list=t),$r(r)?i.plural=r:et(r)?i.default=r:Ot(r)&&ui(i,r),[o,i]}function ube(n,e,t,r,i,o){return{locale:e,key:t,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>U_e(e,t,a)}}function cbe(n,e,t,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=n,f={locale:e,modifiers:i,pluralRules:o,messages:h=>{let p=a(t,h);if(p==null&&c){const[,,v]=D7(c,h,e,s,l,u);p=a(v,h)}if(et(p)||uh(p)){let v=!1;const g=A7(n,h,e,p,h,()=>{v=!0});return v?IF:g}else return Ho(p)?p:IF}};return n.processor&&(f.processor=n.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),$r(r.plural)&&(f.pluralIndex=r.plural),f}function xF(n,...e){const{datetimeFormats:t,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=n,{__datetimeFormatters:s}=n,[l,u,c,d]=ZE(...e),f=Jt(c.missingWarn)?c.missingWarn:n.missingWarn;Jt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn;const h=!!c.part,p=nN(n,c),v=a(n,i,p);if(!et(l)||l==="")return new Intl.DateTimeFormat(p,d).format(u);let m={},g,_=null;const y="datetime format";for(let b=0;b{R7.includes(l)?a[l]=t[l]:o[l]=t[l]}),et(r)?o.locale=r:Ot(r)&&(a=r),Ot(i)&&(a=i),[o.key||"",s,o,a]}function OF(n,e,t){const r=n;for(const i in t){const o=`${e}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function NF(n,...e){const{numberFormats:t,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=n,{__numberFormatters:s}=n,[l,u,c,d]=QE(...e),f=Jt(c.missingWarn)?c.missingWarn:n.missingWarn;Jt(c.fallbackWarn)?c.fallbackWarn:n.fallbackWarn;const h=!!c.part,p=nN(n,c),v=a(n,i,p);if(!et(l)||l==="")return new Intl.NumberFormat(p,d).format(u);let m={},g,_=null;const y="number format";for(let b=0;b{P7.includes(l)?a[l]=t[l]:o[l]=t[l]}),et(r)?o.locale=r:Ot(r)&&(a=r),Ot(i)&&(a=i),[o.key||"",s,o,a]}function DF(n,e,t){const r=n;for(const i in t){const o=`${e}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}Lye();/*! + * vue-i18n v9.8.0 + * (c) 2023 kazuya kawaguchi * Released under the MIT License. - */const Nye="9.10.1";function Aye(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&($s().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&($s().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&($s().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($s().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($s().__INTLIFY_PROD_DEVTOOLS__=!1)}const F7=dye.__EXTEND_POINT__,Ts=eN(F7);Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ts(),Ts();const B7=ga.__EXTEND_POINT__,qi=eN(B7),zr={UNEXPECTED_RETURN_TYPE:B7,INVALID_ARGUMENT:qi(),MUST_BE_CALL_SETUP_TOP:qi(),NOT_INSTALLED:qi(),NOT_AVAILABLE_IN_LEGACY_MODE:qi(),REQUIRED_VALUE:qi(),INVALID_VALUE:qi(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qi(),NOT_INSTALLED_WITH_PROVIDE:qi(),UNEXPECTED_ERROR:qi(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qi(),BRIDGE_SUPPORT_VUE_2_ONLY:qi(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qi(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qi(),__EXTEND_POINT__:qi()};function ti(n,...e){return Dh(n,null,void 0)}const tL=xu("__translateVNode"),nL=xu("__datetimeParts"),rL=xu("__numberParts"),W7=xu("__setPluralRules"),V7=xu("__injectWithOption"),iL=xu("__dispose");function Gv(n){if(!En(n))return n;for(const e in n)if(Oy(n,e))if(!e.includes("."))En(n[e])&&Gv(n[e]);else{const t=e.split("."),r=t.length-1;let i=n,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||{},P_(u,a[l])):P_(u,a)}else tt(s)&&P_(JSON.parse(s),a)}),i==null&&o)for(const s in a)Oy(a,s)&&Gv(a[s]);return a}function H7(n){return n.type}function U7(n,e,t){let r=En(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=SC(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{n.mergeLocaleMessage(o,r[o])});{if(En(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{n.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(En(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{n.mergeNumberFormat(a,e.numberFormats[a])})}}}function DF(n){return I(cl,null,n,0)}const RF="__INTLIFY_META__",PF=()=>[],Dye=()=>!1;let MF=0;function kF(n){return(e,t,r,i)=>n(t,r,Rr()||void 0,i)}const Rye=()=>{const n=Rr();let e=null;return n&&(e=H7(n)[RF])?{[RF]:e}:null};function iN(n={},e){const{__root:t,__injectWithOption:r}=n,i=t===void 0,o=n.flatJson,a=xy?J:Yt,s=!!n.translateExistCompatible;let l=Jt(n.inheritLocale)?n.inheritLocale:!0;const u=a(t&&l?t.locale.value:tt(n.locale)?n.locale:lh),c=a(t&&l?t.fallbackLocale.value:tt(n.fallbackLocale)||tr(n.fallbackLocale)||Ot(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:u.value),d=a(SC(u.value,n)),f=a(Ot(n.datetimeFormats)?n.datetimeFormats:{[u.value]:{}}),h=a(Ot(n.numberFormats)?n.numberFormats:{[u.value]:{}});let p=t?t.missingWarn:Jt(n.missingWarn)||yu(n.missingWarn)?n.missingWarn:!0,v=t?t.fallbackWarn:Jt(n.fallbackWarn)||yu(n.fallbackWarn)?n.fallbackWarn:!0,m=t?t.fallbackRoot:Jt(n.fallbackRoot)?n.fallbackRoot:!0,g=!!n.fallbackFormat,_=jn(n.missing)?n.missing:null,y=jn(n.missing)?kF(n.missing):null,b=jn(n.postTranslation)?n.postTranslation:null,w=t?t.warnHtmlMessage:Jt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,C=!!n.escapeParameter;const S=t?t.modifiers:Ot(n.modifiers)?n.modifiers:{};let L=n.pluralRules||t&&t.pluralRules,E;E=(()=>{i&&SF(null);const se={version:Nye,locale:u.value,fallbackLocale:c.value,messages:d.value,modifiers:S,pluralRules:L,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:v,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:w,escapeParameter:C,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=f.value,se.numberFormats=h.value,se.__datetimeFormatters=Ot(E)?E.__datetimeFormatters:void 0,se.__numberFormatters=Ot(E)?E.__numberFormatters:void 0;const ge=wye(se);return i&&SF(ge),ge})(),up(E,u.value,c.value);function P(){return[u.value,c.value,d.value,f.value,h.value]}const A=V({get:()=>u.value,set:se=>{u.value=se,E.locale=u.value}}),D=V({get:()=>c.value,set:se=>{c.value=se,E.fallbackLocale=c.value,up(E,u.value,se)}}),M=V(()=>d.value),H=V(()=>f.value),k=V(()=>h.value);function B(){return jn(b)?b:null}function F(se){b=se,E.postTranslation=se}function W(){return _}function $(se){se!==null&&(y=kF(se)),_=se,E.missing=y}const j=(se,ge,_e,ce,Pe,qe)=>{P();let De;try{__INTLIFY_PROD_DEVTOOLS__,i||(E.fallbackContext=t?Cye():void 0),De=se(E)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(E.fallbackContext=void 0)}if(_e!=="translate exists"&&$r(De)&&De===wC||_e==="translate exists"&&!De){const[ye,Ee]=ge();return t&&m?ce(t):Pe(ye)}else{if(qe(De))return De;throw ti(zr.UNEXPECTED_RETURN_TYPE)}};function X(...se){return j(ge=>Reflect.apply(TF,null,[ge,...se]),()=>QE(...se),"translate",ge=>Reflect.apply(ge.t,ge,[...se]),ge=>ge,ge=>tt(ge))}function Z(...se){const[ge,_e,ce]=se;if(ce&&!En(ce))throw ti(zr.INVALID_ARGUMENT);return X(ge,_e,ui({resolvedMessage:!0},ce||{}))}function z(...se){return j(ge=>Reflect.apply(xF,null,[ge,...se]),()=>JE(...se),"datetime format",ge=>Reflect.apply(ge.d,ge,[...se]),()=>bF,ge=>tt(ge))}function Y(...se){return j(ge=>Reflect.apply(NF,null,[ge,...se]),()=>eL(...se),"number format",ge=>Reflect.apply(ge.n,ge,[...se]),()=>bF,ge=>tt(ge))}function ee(se){return se.map(ge=>tt(ge)||$r(ge)||Jt(ge)?DF(String(ge)):ge)}const oe={normalize:ee,interpolate:se=>se,type:"vnode"};function ie(...se){return j(ge=>{let _e;const ce=ge;try{ce.processor=oe,_e=Reflect.apply(TF,null,[ce,...se])}finally{ce.processor=null}return _e},()=>QE(...se),"translate",ge=>ge[tL](...se),ge=>[DF(ge)],ge=>tr(ge))}function ue(...se){return j(ge=>Reflect.apply(NF,null,[ge,...se]),()=>eL(...se),"number format",ge=>ge[rL](...se),PF,ge=>tt(ge)||tr(ge))}function Ce(...se){return j(ge=>Reflect.apply(xF,null,[ge,...se]),()=>JE(...se),"datetime format",ge=>ge[nL](...se),PF,ge=>tt(ge)||tr(ge))}function me(se){L=se,E.pluralRules=L}function N(se,ge){return j(()=>{if(!se)return!1;const _e=tt(ge)?ge:u.value,ce=te(_e),Pe=E.messageResolver(ce,se);return s?Pe!=null:uh(Pe)||Ho(Pe)||tt(Pe)},()=>[se],"translate exists",_e=>Reflect.apply(_e.te,_e,[se,ge]),Dye,_e=>Jt(_e))}function R(se){let ge=null;const _e=L7(E,c.value,u.value);for(let ce=0;ce<_e.length;ce++){const Pe=d.value[_e[ce]]||{},qe=E.messageResolver(Pe,se);if(qe!=null){ge=qe;break}}return ge}function G(se){const ge=R(se);return ge??(t?t.tm(se)||{}:{})}function te(se){return d.value[se]||{}}function re(se,ge){if(o){const _e={[se]:ge};for(const ce in _e)Oy(_e,ce)&&Gv(_e[ce]);ge=_e[se]}d.value[se]=ge,E.messages=d.value}function pe(se,ge){d.value[se]=d.value[se]||{};const _e={[se]:ge};if(o)for(const ce in _e)Oy(_e,ce)&&Gv(_e[ce]);ge=_e[se],P_(ge,d.value[se]),E.messages=d.value}function Se(se){return f.value[se]||{}}function fe(se,ge){f.value[se]=ge,E.datetimeFormats=f.value,OF(E,se,ge)}function de(se,ge){f.value[se]=ui(f.value[se]||{},ge),E.datetimeFormats=f.value,OF(E,se,ge)}function le(se){return h.value[se]||{}}function ve(se,ge){h.value[se]=ge,E.numberFormats=h.value,AF(E,se,ge)}function Ae(se,ge){h.value[se]=ui(h.value[se]||{},ge),E.numberFormats=h.value,AF(E,se,ge)}MF++,t&&xy&&(Ve(t.locale,se=>{l&&(u.value=se,E.locale=se,up(E,u.value,c.value))}),Ve(t.fallbackLocale,se=>{l&&(c.value=se,E.fallbackLocale=se,up(E,u.value,c.value))}));const Ie={id:MF,locale:A,fallbackLocale:D,get inheritLocale(){return l},set inheritLocale(se){l=se,se&&t&&(u.value=t.locale.value,c.value=t.fallbackLocale.value,up(E,u.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:M,get modifiers(){return S},get pluralRules(){return L||{}},get isGlobal(){return i},get missingWarn(){return p},set missingWarn(se){p=se,E.missingWarn=p},get fallbackWarn(){return v},set fallbackWarn(se){v=se,E.fallbackWarn=v},get fallbackRoot(){return m},set fallbackRoot(se){m=se},get fallbackFormat(){return g},set fallbackFormat(se){g=se,E.fallbackFormat=g},get warnHtmlMessage(){return w},set warnHtmlMessage(se){w=se,E.warnHtmlMessage=se},get escapeParameter(){return C},set escapeParameter(se){C=se,E.escapeParameter=se},t:X,getLocaleMessage:te,setLocaleMessage:re,mergeLocaleMessage:pe,getPostTranslationHandler:B,setPostTranslationHandler:F,getMissingHandler:W,setMissingHandler:$,[W7]:me};return Ie.datetimeFormats=H,Ie.numberFormats=k,Ie.rt=Z,Ie.te=N,Ie.tm=G,Ie.d=z,Ie.n=Y,Ie.getDateTimeFormat=Se,Ie.setDateTimeFormat=fe,Ie.mergeDateTimeFormat=de,Ie.getNumberFormat=le,Ie.setNumberFormat=ve,Ie.mergeNumberFormat=Ae,Ie[V7]=r,Ie[tL]=ie,Ie[nL]=Ce,Ie[rL]=ue,Ie}function Pye(n){const e=tt(n.locale)?n.locale:lh,t=tt(n.fallbackLocale)||tr(n.fallbackLocale)||Ot(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=jn(n.missing)?n.missing:void 0,i=Jt(n.silentTranslationWarn)||yu(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,o=Jt(n.silentFallbackWarn)||yu(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,a=Jt(n.fallbackRoot)?n.fallbackRoot:!0,s=!!n.formatFallbackMessages,l=Ot(n.modifiers)?n.modifiers:{},u=n.pluralizationRules,c=jn(n.postTranslation)?n.postTranslation:void 0,d=tt(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,f=!!n.escapeParameterHtml,h=Jt(n.sync)?n.sync:!0;let p=n.messages;if(Ot(n.sharedMessages)){const C=n.sharedMessages;p=Object.keys(C).reduce((L,E)=>{const T=L[E]||(L[E]={});return ui(T,C[E]),L},p||{})}const{__i18n:v,__root:m,__injectWithOption:g}=n,_=n.datetimeFormats,y=n.numberFormats,b=n.flatJson,w=n.translateExistCompatible;return{locale:e,fallbackLocale:t,messages:p,flatJson:b,datetimeFormats:_,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:n.messageResolver,inheritLocale:h,translateExistCompatible:w,__i18n:v,__root:m,__injectWithOption:g}}function oL(n={},e){{const t=iN(Pye(n)),{__extender:r}=n,i={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Jt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Jt(o)?!o:o},get silentFallbackWarn(){return Jt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Jt(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){const[a,s,l]=o,u={};let c=null,d=null;if(!tt(a))throw ti(zr.INVALID_ARGUMENT);const f=a;return tt(s)?u.locale=s:tr(s)?c=s:Ot(s)&&(d=s),tr(l)?c=l:Ot(l)&&(d=l),Reflect.apply(t.t,t,[f,c||d||{},u])},rt(...o){return Reflect.apply(t.rt,t,[...o])},tc(...o){const[a,s,l]=o,u={plural:1};let c=null,d=null;if(!tt(a))throw ti(zr.INVALID_ARGUMENT);const f=a;return tt(s)?u.locale=s:$r(s)?u.plural=s:tr(s)?c=s:Ot(s)&&(d=s),tt(l)?u.locale=l:tr(l)?c=l:Ot(l)&&(d=l),Reflect.apply(t.t,t,[f,c||d||{},u])},te(o,a){return t.te(o,a)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,a){t.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){t.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,a){t.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){t.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,a){t.setNumberFormat(o,a)},mergeNumberFormat(o,a){t.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return-1}};return i.__extender=r,i}}const oN={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function Mye({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,i)=>[...r,...i.type===kt?i.children:[i]],[]):e.reduce((t,r)=>{const i=n[r];return i&&(t[r]=i()),t},{})}function $7(n){return kt}const kye=be({name:"i18n-t",props:ui({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>$r(n)||!isNaN(n)}},oN),setup(n,e){const{slots:t,attrs:r}=e,i=n.i18n||aN({useScope:n.scope,__useComponent:!0});return()=>{const o=Object.keys(t).filter(d=>d!=="_"),a={};n.locale&&(a.locale=n.locale),n.plural!==void 0&&(a.plural=tt(n.plural)?+n.plural:n.plural);const s=Mye(e,o),l=i[tL](n.keypath,s,a),u=ui({},r),c=tt(n.tag)||En(n.tag)?n.tag:$7();return Xc(c,u,l)}}}),FF=kye;function Fye(n){return tr(n)&&!tt(n[0])}function j7(n,e,t,r){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let s={};n.locale&&(a.locale=n.locale),tt(n.format)?a.key=n.format:En(n.format)&&(tt(n.format.key)&&(a.key=n.format.key),s=Object.keys(n.format).reduce((f,h)=>t.includes(h)?ui({},f,{[h]:n.format[h]}):f,{}));const l=r(n.value,a,s);let u=[a.key];tr(l)?u=l.map((f,h)=>{const p=i[f.type],v=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return Fye(v)&&(v[0].key=`${f.type}-${h}`),v}):tt(l)&&(u=[l]);const c=ui({},o),d=tt(n.tag)||En(n.tag)?n.tag:$7();return Xc(d,c,u)}}const Bye=be({name:"i18n-n",props:ui({value:{type:Number,required:!0},format:{type:[String,Object]}},oN),setup(n,e){const t=n.i18n||aN({useScope:"parent",__useComponent:!0});return j7(n,e,k7,(...r)=>t[rL](...r))}}),BF=Bye,Wye=be({name:"i18n-d",props:ui({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},oN),setup(n,e){const t=n.i18n||aN({useScope:"parent",__useComponent:!0});return j7(n,e,M7,(...r)=>t[nL](...r))}}),WF=Wye;function Vye(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function Hye(n){const e=a=>{const{instance:s,modifiers:l,value:u}=a;if(!s||!s.$)throw ti(zr.UNEXPECTED_ERROR);const c=Vye(n,s.$),d=VF(u);return[Reflect.apply(c.t,c,[...HF(d)]),c]};return{created:(a,s)=>{const[l,u]=e(s);xy&&n.global===u&&(a.__i18nWatcher=Ve(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{xy&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=VF(s);a.textContent=Reflect.apply(l.t,l,[...HF(u)])}},getSSRProps:a=>{const[s]=e(a);return{textContent:s}}}}function VF(n){if(tt(n))return{path:n};if(Ot(n)){if(!("path"in n))throw ti(zr.REQUIRED_VALUE,"path");return n}else throw ti(zr.INVALID_VALUE)}function HF(n){const{path:e,locale:t,args:r,choice:i,plural:o}=n,a={},s=r||{};return tt(t)&&(a.locale=t),$r(i)&&(a.plural=i),$r(o)&&(a.plural=o),[e,s,a]}function Uye(n,e,...t){const r=Ot(t[0])?t[0]:{},i=!!r.useI18nComponentName;(Jt(r.globalInstall)?r.globalInstall:!0)&&([i?"i18n":FF.name,"I18nT"].forEach(a=>n.component(a,FF)),[BF.name,"I18nN"].forEach(a=>n.component(a,BF)),[WF.name,"I18nD"].forEach(a=>n.component(a,WF))),n.directive("t",Hye(e))}function $ye(n,e,t){return{beforeCreate(){const r=Rr();if(!r)throw ti(zr.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=e,this===this.$root)this.$i18n=UF(n,o);else{o.__injectWithOption=!0,o.__extender=t.__vueI18nExtend,this.$i18n=oL(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=UF(n,i);else{this.$i18n=oL({__i18n:i.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:e});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=n;i.__i18nGlobal&&U7(e,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),t.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Rr();if(!r)throw ti(zr.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),t.__deleteInstance(r),delete this.$i18n}}}function UF(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[W7](e.pluralizationRules||n.pluralizationRules);const t=SC(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const jye=xu("global-vue-i18n");function zye(n={},e){const t=__VUE_I18N_LEGACY_API__&&Jt(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Jt(n.globalInjection)?n.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,o=new Map,[a,s]=Kye(n,t),l=xu("");function u(f){return o.get(f)||null}function c(f,h){o.set(f,h)}function d(f){o.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return i},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),Ot(p[0])){const g=p[0];f.__composerExtend=g.__composerExtend,f.__vueI18nExtend=g.__vueI18nExtend}let v=null;!t&&r&&(v=tbe(h,f.global)),__VUE_I18N_FULL_INSTALL__&&Uye(h,f,...p),__VUE_I18N_LEGACY_API__&&t&&h.mixin($ye(s,s.__composer,f));const m=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),m()}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function aN(n={}){const e=Rr();if(e==null)throw ti(zr.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ti(zr.NOT_INSTALLED);const t=Gye(e),r=Yye(t),i=H7(e),o=qye(n,i);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw ti(zr.NOT_AVAILABLE_IN_LEGACY_MODE);return Jye(e,o,r,n)}if(o==="global")return U7(r,n,i),r;if(o==="parent"){let l=Xye(t,e,n.__useComponent);return l==null&&(l=r),l}const a=t;let s=a.__getInstance(e);if(s==null){const l=ui({},n);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=iN(l),a.__composerExtend&&(s[iL]=a.__composerExtend(s)),Qye(a,e,s),a.__setInstance(e,s)}return s}function Kye(n,e,t){const r=MT();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>oL(n)):r.run(()=>iN(n));if(i==null)throw ti(zr.UNEXPECTED_ERROR);return[r,i]}}function Gye(n){{const e=yt(n.isCE?jye:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ti(n.isCE?zr.NOT_INSTALLED_WITH_PROVIDE:zr.UNEXPECTED_ERROR);return e}}function qye(n,e){return CC(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Yye(n){return n.mode==="composition"?n.global:n.global.__composer}function Xye(n,e,t=!1){let r=null;const i=e.root;let o=Zye(e,t);for(;o!=null;){const a=n;if(n.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,t&&r&&!r[V7]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Zye(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Qye(n,e,t){Wt(()=>{},e),Ia(()=>{const r=t;n.__deleteInstance(e);const i=r[iL];i&&(i(),delete r[iL])},e)}function Jye(n,e,t,r={}){const i=e==="local",o=Yt(null);if(i&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw ti(zr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=Jt(r.inheritLocale)?r.inheritLocale:!tt(r.locale),s=J(!i||a?t.locale.value:tt(r.locale)?r.locale:lh),l=J(!i||a?t.fallbackLocale.value:tt(r.fallbackLocale)||tr(r.fallbackLocale)||Ot(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=J(SC(s.value,r)),c=J(Ot(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=J(Ot(r.numberFormats)?r.numberFormats:{[s.value]:{}}),f=i?t.missingWarn:Jt(r.missingWarn)||yu(r.missingWarn)?r.missingWarn:!0,h=i?t.fallbackWarn:Jt(r.fallbackWarn)||yu(r.fallbackWarn)?r.fallbackWarn:!0,p=i?t.fallbackRoot:Jt(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,m=jn(r.missing)?r.missing:null,g=jn(r.postTranslation)?r.postTranslation:null,_=i?t.warnHtmlMessage:Jt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,b=i?t.modifiers:Ot(r.modifiers)?r.modifiers:{},w=r.pluralRules||i&&t.pluralRules;function C(){return[s.value,l.value,u.value,c.value,d.value]}const S=V({get:()=>o.value?o.value.locale.value:s.value,set:R=>{o.value&&(o.value.locale.value=R),s.value=R}}),L=V({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:R=>{o.value&&(o.value.fallbackLocale.value=R),l.value=R}}),E=V(()=>o.value?o.value.messages.value:u.value),T=V(()=>c.value),P=V(()=>d.value);function A(){return o.value?o.value.getPostTranslationHandler():g}function D(R){o.value&&o.value.setPostTranslationHandler(R)}function M(){return o.value?o.value.getMissingHandler():m}function H(R){o.value&&o.value.setMissingHandler(R)}function k(R){return C(),R()}function B(...R){return o.value?k(()=>Reflect.apply(o.value.t,null,[...R])):k(()=>"")}function F(...R){return o.value?Reflect.apply(o.value.rt,null,[...R]):""}function W(...R){return o.value?k(()=>Reflect.apply(o.value.d,null,[...R])):k(()=>"")}function $(...R){return o.value?k(()=>Reflect.apply(o.value.n,null,[...R])):k(()=>"")}function j(R){return o.value?o.value.tm(R):{}}function X(R,G){return o.value?o.value.te(R,G):!1}function Z(R){return o.value?o.value.getLocaleMessage(R):{}}function z(R,G){o.value&&(o.value.setLocaleMessage(R,G),u.value[R]=G)}function Y(R,G){o.value&&o.value.mergeLocaleMessage(R,G)}function ee(R){return o.value?o.value.getDateTimeFormat(R):{}}function K(R,G){o.value&&(o.value.setDateTimeFormat(R,G),c.value[R]=G)}function oe(R,G){o.value&&o.value.mergeDateTimeFormat(R,G)}function ie(R){return o.value?o.value.getNumberFormat(R):{}}function ue(R,G){o.value&&(o.value.setNumberFormat(R,G),d.value[R]=G)}function Ce(R,G){o.value&&o.value.mergeNumberFormat(R,G)}const me={get id(){return o.value?o.value.id:-1},locale:S,fallbackLocale:L,messages:E,datetimeFormats:T,numberFormats:P,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(R){o.value&&(o.value.inheritLocale=R)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:b},get pluralRules(){return o.value?o.value.pluralRules:w},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(R){o.value&&(o.value.missingWarn=R)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(R){o.value&&(o.value.missingWarn=R)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(R){o.value&&(o.value.fallbackRoot=R)},get fallbackFormat(){return o.value?o.value.fallbackFormat:v},set fallbackFormat(R){o.value&&(o.value.fallbackFormat=R)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:_},set warnHtmlMessage(R){o.value&&(o.value.warnHtmlMessage=R)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(R){o.value&&(o.value.escapeParameter=R)},t:B,getPostTranslationHandler:A,setPostTranslationHandler:D,getMissingHandler:M,setMissingHandler:H,rt:F,d:W,n:$,tm:j,te:X,getLocaleMessage:Z,setLocaleMessage:z,mergeLocaleMessage:Y,getDateTimeFormat:ee,setDateTimeFormat:K,mergeDateTimeFormat:oe,getNumberFormat:ie,setNumberFormat:ue,mergeNumberFormat:Ce};function N(R){R.locale.value=s.value,R.fallbackLocale.value=l.value,Object.keys(u.value).forEach(G=>{R.mergeLocaleMessage(G,u.value[G])}),Object.keys(c.value).forEach(G=>{R.mergeDateTimeFormat(G,c.value[G])}),Object.keys(d.value).forEach(G=>{R.mergeNumberFormat(G,d.value[G])}),R.escapeParameter=y,R.fallbackFormat=v,R.fallbackRoot=p,R.fallbackWarn=h,R.missingWarn=f,R.warnHtmlMessage=_}return ZT(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw ti(zr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const R=o.value=n.proxy.$i18n.__composer;e==="global"?(s.value=R.locale.value,l.value=R.fallbackLocale.value,u.value=R.messages.value,c.value=R.datetimeFormats.value,d.value=R.numberFormats.value):i&&N(R)}),me}const ebe=["locale","fallbackLocale","availableLocales"],$F=["t","rt","d","n","tm","te"];function tbe(n,e){const t=Object.create(null);return ebe.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw ti(zr.UNEXPECTED_ERROR);const a=mr(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(t,i,a)}),n.config.globalProperties.$i18n=t,$F.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw ti(zr.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${i}`,o)}),()=>{delete n.config.globalProperties.$i18n,$F.forEach(i=>{delete n.config.globalProperties[`$${i}`]})}}Aye();__INTLIFY_JIT_COMPILATION__?wF(Lye):wF(Eye);mye(Q_e);_ye(L7);if(__INTLIFY_PROD_DEVTOOLS__){const n=$s();n.__INTLIFY__=!0,sye(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const nbe={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",taskId:"Task ID",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",retry:"Retry",costTime:"Cost Time",thread:"Thread",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",cancelProcess:"Cancel Process",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process ID",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag",fileSearchPlaceholder:"Filter partitions"},rbe={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},ibe={en:nbe,zh:rbe},obe={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},abe=zye({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:ibe,datetimeFormats:obe}),sbe=[Kb,iu,gde,tv,gfe,nh,Ci,bi,iC,kve,Vr,jo,Gl,PO,jfe,kf,Za,Xie,Kl,Mge,Ri,nv,xse,Ose,Qs];function lbe(n){sbe.forEach(n.use)}const ube=be({__name:"loading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup(n){const e=n,t=J(!0);return Zt(()=>{t.value=!1}),(r,i)=>{const o=iu;return t.value?Ki((Eg(),B5("div",{key:0,ref:"loadingRef",class:Sg(["u-loading",{fullscreen:e.fullscreen}])},[I(o,{tip:e.loadingText},null,8,["tip"])],2)),[[dl,t.value]]):LY("",!0)}}}),z7=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},cbe=z7(ube,[["__scopeId","data-v-8d92c4da"]]),dbe={install(n){n.component("ULoading",cbe)}};function fbe(n){n.use(lbe),n.use(dbe)}function hbe(n,e){var t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(r,i){var o=i[0];return typeof e[o]<"u"?e[o]:r}),t}function x(n,e){for(var t=[],r=2;r0)i=o-1;else return o}return-(r+1)}function vbe(n,e){var t=0,r=n.length;if(r===0)return 0;for(;tr?n[l]=o[s++]:s>i?n[l]=o[a++]:e(o[s],o[a])<0?n[l]=o[s++]:n[l]=o[a++]}function aL(n,e,t,r,i){if(!(r<=t)){var o=t+(r-t)/2|0;aL(n,e,t,o,i),aL(n,e,o+1,r,i),!(e(n[o],n[o+1])<=0)&&gbe(n,e,t,o,r,i)}}function jF(n,e){for(var t=[],r=void 0,i=0,o=LC(n.slice(0),e);i0}function K7(n,e){if(!e)return n.filter(function(r,i){return n.indexOf(r)===i});var t=Object.create(null);return n.filter(function(r){var i=e(r);return t[i]?!1:(t[i]=!0,!0)})}function zF(n){var e=new Set;return n.filter(function(t){return e.has(t)?!1:(e.add(t),!0)})}function ou(n,e){for(var t=0;te;i--)r.push(i);return r}function mbe(n,e,t){var r=n.slice(0,e),i=n.slice(e);return r.concat(t,i)}function KF(n,e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function GF(n,e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function lN(n){return Array.isArray(n)?n:[n]}var Rh={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function q7(n){return Array.isArray?Array.isArray(n):!!(n&&typeof n.length===Rh.number&&n.constructor===Array)}function as(n){return typeof n===Rh.string||n instanceof String}function si(n){return typeof n===Rh.object&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function nl(n){return(typeof n===Rh.number||n instanceof Number)&&!isNaN(n)}function Y7(n){return n===!0||n===!1}function Vi(n){return typeof n===Rh.undefined}function au(n){return Vi(n)||n===null}var _be=Object.prototype.hasOwnProperty;function X7(n){if(!si(n))return!1;for(var e in n)if(_be.call(n,e))return!1;return!0}function cv(n){return typeof n===Rh.function}function ybe(n,e){for(var t=Math.min(n.length,e.length),r=0;r"u"?null:n}function js(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;var e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(function(t){n[t]&&typeof n[t]=="object"?e[t]=js(n[t]):e[t]=n[t]}),e}function wbe(n){if(!n||typeof n!="object")return n;for(var e=[n];e.length>0;){var t=e.shift();Object.freeze(t);for(var r in t)if(Z7.call(t,r)){var i=t[r];typeof i=="object"&&!Object.isFrozen(i)&&e.push(i)}}return n}var Z7=Object.prototype.hasOwnProperty;function Sbe(n,e){return lL(n,e,new Set)}function lL(n,e,t){if(au(n))return n;var r=e(n);if(typeof r<"u")return r;if(q7(n)){for(var i=[],o=0,a=n;o"u"?t:r}var Lbe={},M_="en",Ny=!1,Ay=!1,uL=!1,Q7=!1,J7=!1,Vm=void 0,jw=M_,Ibe=void 0,Tbe=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer";if(typeof navigator=="object"&&!Tbe){var zw=navigator.userAgent;Ny=zw.indexOf("Windows")>=0,Ay=zw.indexOf("Macintosh")>=0,uL=zw.indexOf("Linux")>=0,J7=!0,Vm=navigator.language,jw=Vm}else if(typeof process=="object"){Ny=process.platform==="win32",Ay=process.platform==="darwin",uL=process.platform==="linux",Vm=M_,jw=M_;var qF=Lbe.VSCODE_NLS_CONFIG;if(qF)try{var Kw=JSON.parse(qF),YF=Kw.availableLanguages["*"];Vm=Kw.locale,jw=YF||M_,Ibe=Kw._translationsConfigFile}catch{}Q7=!0}var zi=Ny,Vt=Ay,vs=uL,ss=Q7,eU=J7,xbe=typeof self=="object"?self:typeof global=="object"?global:{},Zi=xbe,cp=null;function tU(n){return cp===null&&(Zi.setImmediate?cp=Zi.setImmediate.bind(Zi):typeof process<"u"&&typeof process.nextTick=="function"?cp=process.nextTick.bind(process):cp=Zi.setTimeout.bind(Zi)),cp(n)}var Ha=Ay?2:Ny?1:3,nU="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Obe(n){n===void 0&&(n="");for(var e="(-?\\d*\\.\\d\\w*)|([^",t=0,r=nU;t=0||(e+="\\"+i)}return e+="\\s]+)",new RegExp(e,"g")}var rU=Obe();function cL(n){var e=rU;if(n&&n instanceof RegExp)if(n.global)e=n;else{var t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function Nbe(n,e,t,r){var i=n-1-r,o=t.lastIndexOf(" ",i-1)+1;e.lastIndex=o;for(var a;a=e.exec(t);){var s=a.index||0;if(s<=i&&e.lastIndex>=i)return{word:a[0],startColumn:r+1+s,endColumn:r+1+e.lastIndex}}return null}function Abe(n,e,t,r){var i=n-1-r;e.lastIndex=0;for(var o;o=e.exec(t);){var a=o.index||0;if(a>i)return null;if(e.lastIndex>=i)return{word:o[0],startColumn:r+1+a,endColumn:r+1+e.lastIndex}}return null}function dL(n,e,t,r){e.lastIndex=0;var i=e.exec(t);if(!i)return null;var o=i[0].indexOf(" ")>=0?Abe(n,e,t,r):Nbe(n,e,t,r);return e.lastIndex=0,o}var fL=function(){return fL=Object.assign||function(n){for(var e,t=1,r=arguments.length;t"u"?e:n==="false"?!1:!!n}function Mbe(n,e){if(!n)return e;for(var t=Object.create(null),r=0,i=Object.keys(n);r"u"?i=e:(i=parseInt(n,10),isNaN(i)&&(i=e)),i=Math.max(t,i),i=Math.min(r,i),i|0}function XF(n,e){var t=parseFloat(n);return isNaN(t)&&(t=e),t}function kbe(n,e){return typeof n!="string"?e:n==="same"?1:n==="indent"?2:n==="deepIndent"?3:0}function Fbe(n,e){if(typeof n!="string")return e;switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5}return 1}function ZF(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}var QF=function(){function n(){}return n.validate=function(e,t){var r=e.wordWrap;r===!0?r="on":r===!1&&(r="off"),r=Zr(r,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i=this._sanitizeViewInfo(e,t.viewInfo),o=this._sanitizeContribInfo(e,t.contribInfo),a=void 0;typeof e.multiCursorModifier=="string"&&(e.multiCursorModifier==="ctrlCmd"?a=Vt?"metaKey":"ctrlKey":a="altKey");var s=Zr(a,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]),l,u,c;return typeof e.autoClosingBrackets=="boolean"&&e.autoClosingBrackets===!1?(l="never",u="never",c="never"):(l=Zr(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),u=Zr(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),c=Zr(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:lt(e.inDiffEditor,t.inDiffEditor),wordSeparators:Vd(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:Cr(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:typeof e.lineDecorationsWidth>"u"?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:lt(e.readOnly,t.readOnly),mouseStyle:Zr(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:lt(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:lt(e.automaticLayout,t.automaticLayout),wordWrap:r,wordWrapColumn:Cr(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:lt(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:kbe(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:Vd(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:Vd(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:Vd(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:l,autoClosingQuotes:u,autoSurround:c,autoIndent:lt(e.autoIndent,t.autoIndent),dragAndDrop:lt(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:lt(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:lt(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:lt(e.useTabStops,t.useTabStops),multiCursorModifier:s,multiCursorMergeOverlapping:lt(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:Zr(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:lt(e.showUnused,t.showUnused),viewInfo:i,contribInfo:o}},n._sanitizeScrollbarOpts=function(e,t,r,i){if(typeof e!="object")return t;var o=Cr(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),a=Cr(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:ZF(e.vertical,t.vertical),horizontal:ZF(e.horizontal,t.horizontal),arrowSize:Cr(e.arrowSize,t.arrowSize,0,1e3),useShadows:lt(e.useShadows,t.useShadows),verticalHasArrows:lt(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:lt(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:o,horizontalSliderSize:Cr(e.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:a,verticalSliderSize:Cr(e.verticalSliderSize,a,0,1e3),handleMouseWheel:lt(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:r,fastScrollSensitivity:i}},n._sanitizeMinimapOpts=function(e,t){return typeof e!="object"?t:{enabled:lt(e.enabled,t.enabled),side:Zr(e.side,t.side,["right","left"]),showSlider:Zr(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:lt(e.renderCharacters,t.renderCharacters),maxColumn:Cr(e.maxColumn,t.maxColumn,1,1e4)}},n._sanitizeFindOpts=function(e,t){return typeof e!="object"?t:{seedSearchStringFromSelection:lt(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:lt(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:lt(e.globalFindClipboard,t.globalFindClipboard),addExtraSpaceOnTop:lt(e.addExtraSpaceOnTop,t.addExtraSpaceOnTop)}},n._sanitizeParameterHintOpts=function(e,t){return typeof e!="object"?t:{enabled:lt(e.enabled,t.enabled),cycle:lt(e.cycle,t.cycle)}},n._sanitizeHoverOpts=function(e,t){var r;if(typeof e=="boolean")r={enabled:e};else if(typeof e=="object")r=e;else return t;return{enabled:lt(r.enabled,t.enabled),delay:Cr(r.delay,t.delay,0,1e4),sticky:lt(r.sticky,t.sticky)}},n._sanitizeSuggestOpts=function(e,t){var r=e.suggest||{};return{filterGraceful:lt(r.filterGraceful,t.filterGraceful),snippets:Zr(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:lt(r.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:lt(r.localityBonus,t.localityBonus),shareSuggestSelections:lt(r.shareSuggestSelections,t.shareSuggestSelections),showIcons:lt(r.showIcons,t.showIcons),maxVisibleSuggestions:Cr(r.maxVisibleSuggestions,t.maxVisibleSuggestions,1,15),filteredTypes:si(r.filteredTypes)?r.filteredTypes:Object.create(null)}},n._sanitizeGotoLocationOpts=function(e,t){var r=e.gotoLocation||{};return{multiple:Zr(r.multiple,t.multiple,["peek","gotoAndPeek","goto"])}},n._sanitizeTabCompletionOpts=function(e,t){return e===!1?"off":e===!0?"onlySnippets":Zr(e,t,["on","off","onlySnippets"])},n._sanitizeViewInfo=function(e,t){var r=[];if(Array.isArray(e.rulers)){for(var i=0,o=e.rulers.length;i=2?(D=_?2:4,B=2/b):(D=_?1:3,B=1/b),H=Math.max(0,Math.floor((A-f-2)*B/(c+B)));var F=H/B;F>y&&(H=Math.floor(y*B)),k=A-H,g==="left"?(M=0,L+=H,E+=H,T+=H,P+=H):M=t-H-f}var W=Math.max(1,Math.floor((k-f-2)/c)),$=h?p:0;return{width:t,height:r,glyphMarginLeft:L,glyphMarginWidth:S,glyphMarginHeight:r,lineNumbersLeft:E,lineNumbersWidth:w,lineNumbersHeight:r,decorationsLeft:T,decorationsWidth:u,decorationsHeight:r,contentLeft:P,contentWidth:k,contentHeight:r,renderMinimap:D,minimapLeft:M,minimapWidth:H,viewportColumn:W,verticalScrollbarWidth:f,horizontalScrollbarHeight:v,overviewRuler:{top:$,width:f,height:r-2*$,right:0}}},n}(),Vbe="Consolas, 'Courier New', monospace",Hbe="Menlo, Monaco, 'Courier New', monospace",Ube="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Wp={fontFamily:Vt?Hbe:vs?Ube:Vbe,fontWeight:"normal",fontSize:Vt?12:14,lineHeight:0,letterSpacing:0},da={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},Ph={inDiffEditor:!1,wordSeparators:nU,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" })]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:x("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:Nn.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}};/*! + */const dbe="9.8.0";function fbe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(js().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(js().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(js().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(js().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(js().__INTLIFY_PROD_DEVTOOLS__=!1)}const M7=Kye.__EXTEND_POINT__,wl=eN(M7);wl(),wl(),wl(),wl(),wl(),wl(),wl(),wl();const k7=ga.__EXTEND_POINT__,qi=eN(k7),zr={UNEXPECTED_RETURN_TYPE:k7,INVALID_ARGUMENT:qi(),MUST_BE_CALL_SETUP_TOP:qi(),NOT_INSTALLED:qi(),NOT_AVAILABLE_IN_LEGACY_MODE:qi(),REQUIRED_VALUE:qi(),INVALID_VALUE:qi(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qi(),NOT_INSTALLED_WITH_PROVIDE:qi(),UNEXPECTED_ERROR:qi(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qi(),BRIDGE_SUPPORT_VUE_2_ONLY:qi(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qi(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qi(),__EXTEND_POINT__:qi()};function ti(n,...e){return Ph(n,null,void 0)}const JE=xu("__translateVNode"),eL=xu("__datetimeParts"),tL=xu("__numberParts"),F7=xu("__setPluralRules"),B7=xu("__injectWithOption"),nL=xu("__dispose");function Zv(n){if(!En(n))return n;for(const e in n)if(Yv(n,e))if(!e.includes("."))En(n[e])&&Zv(n[e]);else{const t=e.split("."),r=t.length-1;let i=n,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||{},dv(u,a[l])):dv(u,a)}else et(s)&&dv(JSON.parse(s),a)}),i==null&&o)for(const s in a)Yv(a,s)&&Zv(a[s]);return a}function W7(n){return n.type}function V7(n,e,t){let r=En(e.messages)?e.messages:{};"__i18nGlobal"in t&&(r=bC(n.locale.value,{messages:r,__i18n:t.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{n.mergeLocaleMessage(o,r[o])});{if(En(e.datetimeFormats)){const o=Object.keys(e.datetimeFormats);o.length&&o.forEach(a=>{n.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(En(e.numberFormats)){const o=Object.keys(e.numberFormats);o.length&&o.forEach(a=>{n.mergeNumberFormat(a,e.numberFormats[a])})}}}function AF(n){return I(dl,null,n,0)}const RF="__INTLIFY_META__",PF=()=>[],hbe=()=>!1;let MF=0;function kF(n){return(e,t,r,i)=>n(t,r,Dr()||void 0,i)}const pbe=()=>{const n=Dr();let e=null;return n&&(e=W7(n)[RF])?{[RF]:e}:null};function iN(n={},e){const{__root:t,__injectWithOption:r}=n,i=t===void 0,o=n.flatJson;let a=Jt(n.inheritLocale)?n.inheritLocale:!0;const s=ee(t&&a?t.locale.value:et(n.locale)?n.locale:lh),l=ee(t&&a?t.fallbackLocale.value:et(n.fallbackLocale)||tr(n.fallbackLocale)||Ot(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),u=ee(bC(s.value,n)),c=ee(Ot(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),d=ee(Ot(n.numberFormats)?n.numberFormats:{[s.value]:{}});let f=t?t.missingWarn:Jt(n.missingWarn)||yu(n.missingWarn)?n.missingWarn:!0,h=t?t.fallbackWarn:Jt(n.fallbackWarn)||yu(n.fallbackWarn)?n.fallbackWarn:!0,p=t?t.fallbackRoot:Jt(n.fallbackRoot)?n.fallbackRoot:!0,v=!!n.fallbackFormat,m=jn(n.missing)?n.missing:null,g=jn(n.missing)?kF(n.missing):null,_=jn(n.postTranslation)?n.postTranslation:null,y=t?t.warnHtmlMessage:Jt(n.warnHtmlMessage)?n.warnHtmlMessage:!0,C=!!n.escapeParameter;const w=t?t.modifiers:Ot(n.modifiers)?n.modifiers:{};let b=n.pluralRules||t&&t.pluralRules,S;S=(()=>{i&&SF(null);const ne={version:dbe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:w,pluralRules:b,missing:g===null?void 0:g,missingWarn:f,fallbackWarn:h,fallbackFormat:v,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:y,escapeParameter:C,messageResolver:n.messageResolver,messageCompiler:n.messageCompiler,__meta:{framework:"vue"}};ne.datetimeFormats=c.value,ne.numberFormats=d.value,ne.__datetimeFormatters=Ot(S)?S.__datetimeFormatters:void 0,ne.__numberFormatters=Ot(S)?S.__numberFormatters:void 0;const ce=rbe(ne);return i&&SF(ce),ce})(),cp(S,s.value,l.value);function L(){return[s.value,l.value,u.value,c.value,d.value]}const T=V({get:()=>s.value,set:ne=>{s.value=ne,S.locale=s.value}}),R=V({get:()=>l.value,set:ne=>{l.value=ne,S.fallbackLocale=l.value,cp(S,s.value,ne)}}),N=V(()=>u.value),D=V(()=>c.value),M=V(()=>d.value);function H(){return jn(_)?_:null}function k(ne){_=ne,S.postTranslation=ne}function W(){return m}function F(ne){ne!==null&&(g=kF(ne)),m=ne,S.missing=g}const B=(ne,ce,Me,Ve,xe,ve)=>{L();let Pe;try{__INTLIFY_PROD_DEVTOOLS__,i||(S.fallbackContext=t?nbe():void 0),Pe=ne(S)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(S.fallbackContext=void 0)}if(Me!=="translate exists"&&$r(Pe)&&Pe===yC||Me==="translate exists"&&!Pe){const[tt,De]=ce();return t&&p?Ve(t):xe(tt)}else{if(ve(Pe))return Pe;throw ti(zr.UNEXPECTED_RETURN_TYPE)}};function j(...ne){return B(ce=>Reflect.apply(TF,null,[ce,...ne]),()=>XE(...ne),"translate",ce=>Reflect.apply(ce.t,ce,[...ne]),ce=>ce,ce=>et(ce))}function K(...ne){const[ce,Me,Ve]=ne;if(Ve&&!En(Ve))throw ti(zr.INVALID_ARGUMENT);return j(ce,Me,ui({resolvedMessage:!0},Ve||{}))}function X(...ne){return B(ce=>Reflect.apply(xF,null,[ce,...ne]),()=>ZE(...ne),"datetime format",ce=>Reflect.apply(ce.d,ce,[...ne]),()=>bF,ce=>et(ce))}function Z(...ne){return B(ce=>Reflect.apply(NF,null,[ce,...ne]),()=>QE(...ne),"number format",ce=>Reflect.apply(ce.n,ce,[...ne]),()=>bF,ce=>et(ce))}function z(ne){return ne.map(ce=>et(ce)||$r(ce)||Jt(ce)?AF(String(ce)):ce)}const te={normalize:z,interpolate:ne=>ne,type:"vnode"};function G(...ne){return B(ce=>{let Me;const Ve=ce;try{Ve.processor=te,Me=Reflect.apply(TF,null,[Ve,...ne])}finally{Ve.processor=null}return Me},()=>XE(...ne),"translate",ce=>ce[JE](...ne),ce=>[AF(ce)],ce=>tr(ce))}function ae(...ne){return B(ce=>Reflect.apply(NF,null,[ce,...ne]),()=>QE(...ne),"number format",ce=>ce[tL](...ne),PF,ce=>et(ce)||tr(ce))}function oe(...ne){return B(ce=>Reflect.apply(xF,null,[ce,...ne]),()=>ZE(...ne),"datetime format",ce=>ce[eL](...ne),PF,ce=>et(ce)||tr(ce))}function de(ne){b=ne,S.pluralRules=b}function Ce(ne,ce){return B(()=>{if(!ne)return!1;const Me=et(ce)?ce:s.value,Ve=P(Me),xe=S.messageResolver(Ve,ne);return uh(xe)||Ho(xe)||et(xe)},()=>[ne],"translate exists",Me=>Reflect.apply(Me.te,Me,[ne,ce]),hbe,Me=>Jt(Me))}function $(ne){let ce=null;const Me=S7(S,l.value,s.value);for(let Ve=0;Ve{a&&(s.value=ne,S.locale=ne,cp(S,s.value,l.value))}),We(t.fallbackLocale,ne=>{a&&(l.value=ne,S.fallbackLocale=ne,cp(S,s.value,l.value))}));const fe={id:MF,locale:T,fallbackLocale:R,get inheritLocale(){return a},set inheritLocale(ne){a=ne,ne&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,cp(S,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:N,get modifiers(){return w},get pluralRules(){return b||{}},get isGlobal(){return i},get missingWarn(){return f},set missingWarn(ne){f=ne,S.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(ne){h=ne,S.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(ne){p=ne},get fallbackFormat(){return v},set fallbackFormat(ne){v=ne,S.fallbackFormat=v},get warnHtmlMessage(){return y},set warnHtmlMessage(ne){y=ne,S.warnHtmlMessage=ne},get escapeParameter(){return C},set escapeParameter(ne){C=ne,S.escapeParameter=ne},t:j,getLocaleMessage:P,setLocaleMessage:Q,mergeLocaleMessage:re,getPostTranslationHandler:H,setPostTranslationHandler:k,getMissingHandler:W,setMissingHandler:F,[F7]:de};return fe.datetimeFormats=D,fe.numberFormats=M,fe.rt=K,fe.te=Ce,fe.tm=A,fe.d=X,fe.n=Z,fe.getDateTimeFormat=le,fe.setDateTimeFormat=me,fe.mergeDateTimeFormat=ge,fe.getNumberFormat=he,fe.setNumberFormat=ue,fe.mergeNumberFormat=_e,fe[B7]=r,fe[JE]=G,fe[eL]=oe,fe[tL]=ae,fe}function vbe(n){const e=et(n.locale)?n.locale:lh,t=et(n.fallbackLocale)||tr(n.fallbackLocale)||Ot(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:e,r=jn(n.missing)?n.missing:void 0,i=Jt(n.silentTranslationWarn)||yu(n.silentTranslationWarn)?!n.silentTranslationWarn:!0,o=Jt(n.silentFallbackWarn)||yu(n.silentFallbackWarn)?!n.silentFallbackWarn:!0,a=Jt(n.fallbackRoot)?n.fallbackRoot:!0,s=!!n.formatFallbackMessages,l=Ot(n.modifiers)?n.modifiers:{},u=n.pluralizationRules,c=jn(n.postTranslation)?n.postTranslation:void 0,d=et(n.warnHtmlInMessage)?n.warnHtmlInMessage!=="off":!0,f=!!n.escapeParameterHtml,h=Jt(n.sync)?n.sync:!0;let p=n.messages;if(Ot(n.sharedMessages)){const w=n.sharedMessages;p=Object.keys(w).reduce((S,E)=>{const L=S[E]||(S[E]={});return ui(L,w[E]),S},p||{})}const{__i18n:v,__root:m,__injectWithOption:g}=n,_=n.datetimeFormats,y=n.numberFormats,C=n.flatJson;return{locale:e,fallbackLocale:t,messages:p,flatJson:C,datetimeFormats:_,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:f,messageResolver:n.messageResolver,inheritLocale:h,__i18n:v,__root:m,__injectWithOption:g}}function rL(n={},e){{const t=iN(vbe(n)),{__extender:r}=n,i={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return Jt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=Jt(o)?!o:o},get silentFallbackWarn(){return Jt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=Jt(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){const[a,s,l]=o,u={};let c=null,d=null;if(!et(a))throw ti(zr.INVALID_ARGUMENT);const f=a;return et(s)?u.locale=s:tr(s)?c=s:Ot(s)&&(d=s),tr(l)?c=l:Ot(l)&&(d=l),Reflect.apply(t.t,t,[f,c||d||{},u])},rt(...o){return Reflect.apply(t.rt,t,[...o])},tc(...o){const[a,s,l]=o,u={plural:1};let c=null,d=null;if(!et(a))throw ti(zr.INVALID_ARGUMENT);const f=a;return et(s)?u.locale=s:$r(s)?u.plural=s:tr(s)?c=s:Ot(s)&&(d=s),et(l)?u.locale=l:tr(l)?c=l:Ot(l)&&(d=l),Reflect.apply(t.t,t,[f,c||d||{},u])},te(o,a){return t.te(o,a)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,a){t.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){t.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,a){t.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){t.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,a){t.setNumberFormat(o,a)},mergeNumberFormat(o,a){t.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return-1}};return i.__extender=r,i}}const oN={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:n=>n==="parent"||n==="global",default:"parent"},i18n:{type:Object}};function gbe({slots:n},e){return e.length===1&&e[0]==="default"?(n.default?n.default():[]).reduce((r,i)=>[...r,...i.type===kt?i.children:[i]],[]):e.reduce((t,r)=>{const i=n[r];return i&&(t[r]=i()),t},{})}function H7(n){return kt}const mbe=be({name:"i18n-t",props:ui({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:n=>$r(n)||!isNaN(n)}},oN),setup(n,e){const{slots:t,attrs:r}=e,i=n.i18n||aN({useScope:n.scope,__useComponent:!0});return()=>{const o=Object.keys(t).filter(d=>d!=="_"),a={};n.locale&&(a.locale=n.locale),n.plural!==void 0&&(a.plural=et(n.plural)?+n.plural:n.plural);const s=gbe(e,o),l=i[JE](n.keypath,s,a),u=ui({},r),c=et(n.tag)||En(n.tag)?n.tag:H7();return Qc(c,u,l)}}}),FF=mbe;function _be(n){return tr(n)&&!et(n[0])}function U7(n,e,t,r){const{slots:i,attrs:o}=e;return()=>{const a={part:!0};let s={};n.locale&&(a.locale=n.locale),et(n.format)?a.key=n.format:En(n.format)&&(et(n.format.key)&&(a.key=n.format.key),s=Object.keys(n.format).reduce((f,h)=>t.includes(h)?ui({},f,{[h]:n.format[h]}):f,{}));const l=r(n.value,a,s);let u=[a.key];tr(l)?u=l.map((f,h)=>{const p=i[f.type],v=p?p({[f.type]:f.value,index:h,parts:l}):[f.value];return _be(v)&&(v[0].key=`${f.type}-${h}`),v}):et(l)&&(u=[l]);const c=ui({},o),d=et(n.tag)||En(n.tag)?n.tag:H7();return Qc(d,c,u)}}const ybe=be({name:"i18n-n",props:ui({value:{type:Number,required:!0},format:{type:[String,Object]}},oN),setup(n,e){const t=n.i18n||aN({useScope:"parent",__useComponent:!0});return U7(n,e,P7,(...r)=>t[tL](...r))}}),BF=ybe,bbe=be({name:"i18n-d",props:ui({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},oN),setup(n,e){const t=n.i18n||aN({useScope:"parent",__useComponent:!0});return U7(n,e,R7,(...r)=>t[eL](...r))}}),WF=bbe;function Cbe(n,e){const t=n;if(n.mode==="composition")return t.__getInstance(e)||n.global;{const r=t.__getInstance(e);return r!=null?r.__composer:n.global.__composer}}function wbe(n){const e=a=>{const{instance:s,modifiers:l,value:u}=a;if(!s||!s.$)throw ti(zr.UNEXPECTED_ERROR);const c=Cbe(n,s.$),d=VF(u);return[Reflect.apply(c.t,c,[...HF(d)]),c]};return{created:(a,s)=>{const[l,u]=e(s);GE&&n.global===u&&(a.__i18nWatcher=We(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{GE&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=VF(s);a.textContent=Reflect.apply(l.t,l,[...HF(u)])}},getSSRProps:a=>{const[s]=e(a);return{textContent:s}}}}function VF(n){if(et(n))return{path:n};if(Ot(n)){if(!("path"in n))throw ti(zr.REQUIRED_VALUE,"path");return n}else throw ti(zr.INVALID_VALUE)}function HF(n){const{path:e,locale:t,args:r,choice:i,plural:o}=n,a={},s=r||{};return et(t)&&(a.locale=t),$r(i)&&(a.plural=i),$r(o)&&(a.plural=o),[e,s,a]}function Sbe(n,e,...t){const r=Ot(t[0])?t[0]:{},i=!!r.useI18nComponentName;(Jt(r.globalInstall)?r.globalInstall:!0)&&([i?"i18n":FF.name,"I18nT"].forEach(a=>n.component(a,FF)),[BF.name,"I18nN"].forEach(a=>n.component(a,BF)),[WF.name,"I18nD"].forEach(a=>n.component(a,WF))),n.directive("t",wbe(e))}function Ebe(n,e,t){return{beforeCreate(){const r=Dr();if(!r)throw ti(zr.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=e,this===this.$root)this.$i18n=UF(n,o);else{o.__injectWithOption=!0,o.__extender=t.__vueI18nExtend,this.$i18n=rL(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=UF(n,i);else{this.$i18n=rL({__i18n:i.__i18n,__injectWithOption:!0,__extender:t.__vueI18nExtend,__root:e});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=n;i.__i18nGlobal&&V7(e,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),t.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Dr();if(!r)throw ti(zr.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),t.__deleteInstance(r),delete this.$i18n}}}function UF(n,e){n.locale=e.locale||n.locale,n.fallbackLocale=e.fallbackLocale||n.fallbackLocale,n.missing=e.missing||n.missing,n.silentTranslationWarn=e.silentTranslationWarn||n.silentFallbackWarn,n.silentFallbackWarn=e.silentFallbackWarn||n.silentFallbackWarn,n.formatFallbackMessages=e.formatFallbackMessages||n.formatFallbackMessages,n.postTranslation=e.postTranslation||n.postTranslation,n.warnHtmlInMessage=e.warnHtmlInMessage||n.warnHtmlInMessage,n.escapeParameterHtml=e.escapeParameterHtml||n.escapeParameterHtml,n.sync=e.sync||n.sync,n.__composer[F7](e.pluralizationRules||n.pluralizationRules);const t=bC(n.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(t).forEach(r=>n.mergeLocaleMessage(r,t[r])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(r=>n.mergeDateTimeFormat(r,e.datetimeFormats[r])),e.numberFormats&&Object.keys(e.numberFormats).forEach(r=>n.mergeNumberFormat(r,e.numberFormats[r])),n}const Lbe=xu("global-vue-i18n");function Ibe(n={},e){const t=__VUE_I18N_LEGACY_API__&&Jt(n.legacy)?n.legacy:__VUE_I18N_LEGACY_API__,r=Jt(n.globalInjection)?n.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&t?!!n.allowComposition:!0,o=new Map,[a,s]=Tbe(n,t),l=xu("");function u(f){return o.get(f)||null}function c(f,h){o.set(f,h)}function d(f){o.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},get allowComposition(){return i},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=l,h.provide(h.__VUE_I18N_SYMBOL__,f),Ot(p[0])){const g=p[0];f.__composerExtend=g.__composerExtend,f.__vueI18nExtend=g.__vueI18nExtend}let v=null;!t&&r&&(v=kbe(h,f.global)),__VUE_I18N_FULL_INSTALL__&&Sbe(h,f,...p),__VUE_I18N_LEGACY_API__&&t&&h.mixin(Ebe(s,s.__composer,f));const m=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),m()}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return f}}function aN(n={}){const e=Dr();if(e==null)throw ti(zr.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ti(zr.NOT_INSTALLED);const t=xbe(e),r=Nbe(t),i=W7(e),o=Obe(n,i);if(__VUE_I18N_LEGACY_API__&&t.mode==="legacy"&&!n.__useComponent){if(!t.allowComposition)throw ti(zr.NOT_AVAILABLE_IN_LEGACY_MODE);return Pbe(e,o,r,n)}if(o==="global")return V7(r,n,i),r;if(o==="parent"){let l=Dbe(t,e,n.__useComponent);return l==null&&(l=r),l}const a=t;let s=a.__getInstance(e);if(s==null){const l=ui({},n);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=iN(l),a.__composerExtend&&(s[nL]=a.__composerExtend(s)),Rbe(a,e,s),a.__setInstance(e,s)}return s}function Tbe(n,e,t){const r=RT();{const i=__VUE_I18N_LEGACY_API__&&e?r.run(()=>rL(n)):r.run(()=>iN(n));if(i==null)throw ti(zr.UNEXPECTED_ERROR);return[r,i]}}function xbe(n){{const e=yt(n.isCE?Lbe:n.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ti(n.isCE?zr.NOT_INSTALLED_WITH_PROVIDE:zr.UNEXPECTED_ERROR);return e}}function Obe(n,e){return _C(n)?"__i18n"in e?"local":"global":n.useScope?n.useScope:"local"}function Nbe(n){return n.mode==="composition"?n.global:n.global.__composer}function Dbe(n,e,t=!1){let r=null;const i=e.root;let o=Abe(e,t);for(;o!=null;){const a=n;if(n.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,t&&r&&!r[B7]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Abe(n,e=!1){return n==null?null:e&&n.vnode.ctx||n.parent}function Rbe(n,e,t){Wt(()=>{},e),Ia(()=>{const r=t;n.__deleteInstance(e);const i=r[nL];i&&(i(),delete r[nL])},e)}function Pbe(n,e,t,r={}){const i=e==="local",o=Zt(null);if(i&&n.proxy&&!(n.proxy.$options.i18n||n.proxy.$options.__i18n))throw ti(zr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=Jt(r.inheritLocale)?r.inheritLocale:!et(r.locale),s=ee(!i||a?t.locale.value:et(r.locale)?r.locale:lh),l=ee(!i||a?t.fallbackLocale.value:et(r.fallbackLocale)||tr(r.fallbackLocale)||Ot(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:s.value),u=ee(bC(s.value,r)),c=ee(Ot(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=ee(Ot(r.numberFormats)?r.numberFormats:{[s.value]:{}}),f=i?t.missingWarn:Jt(r.missingWarn)||yu(r.missingWarn)?r.missingWarn:!0,h=i?t.fallbackWarn:Jt(r.fallbackWarn)||yu(r.fallbackWarn)?r.fallbackWarn:!0,p=i?t.fallbackRoot:Jt(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,m=jn(r.missing)?r.missing:null,g=jn(r.postTranslation)?r.postTranslation:null,_=i?t.warnHtmlMessage:Jt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,y=!!r.escapeParameter,C=i?t.modifiers:Ot(r.modifiers)?r.modifiers:{},w=r.pluralRules||i&&t.pluralRules;function b(){return[s.value,l.value,u.value,c.value,d.value]}const S=V({get:()=>o.value?o.value.locale.value:s.value,set:P=>{o.value&&(o.value.locale.value=P),s.value=P}}),E=V({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:P=>{o.value&&(o.value.fallbackLocale.value=P),l.value=P}}),L=V(()=>o.value?o.value.messages.value:u.value),T=V(()=>c.value),R=V(()=>d.value);function N(){return o.value?o.value.getPostTranslationHandler():g}function D(P){o.value&&o.value.setPostTranslationHandler(P)}function M(){return o.value?o.value.getMissingHandler():m}function H(P){o.value&&o.value.setMissingHandler(P)}function k(P){return b(),P()}function W(...P){return o.value?k(()=>Reflect.apply(o.value.t,null,[...P])):k(()=>"")}function F(...P){return o.value?Reflect.apply(o.value.rt,null,[...P]):""}function B(...P){return o.value?k(()=>Reflect.apply(o.value.d,null,[...P])):k(()=>"")}function j(...P){return o.value?k(()=>Reflect.apply(o.value.n,null,[...P])):k(()=>"")}function K(P){return o.value?o.value.tm(P):{}}function X(P,Q){return o.value?o.value.te(P,Q):!1}function Z(P){return o.value?o.value.getLocaleMessage(P):{}}function z(P,Q){o.value&&(o.value.setLocaleMessage(P,Q),u.value[P]=Q)}function Y(P,Q){o.value&&o.value.mergeLocaleMessage(P,Q)}function te(P){return o.value?o.value.getDateTimeFormat(P):{}}function G(P,Q){o.value&&(o.value.setDateTimeFormat(P,Q),c.value[P]=Q)}function ae(P,Q){o.value&&o.value.mergeDateTimeFormat(P,Q)}function oe(P){return o.value?o.value.getNumberFormat(P):{}}function de(P,Q){o.value&&(o.value.setNumberFormat(P,Q),d.value[P]=Q)}function Ce(P,Q){o.value&&o.value.mergeNumberFormat(P,Q)}const $={get id(){return o.value?o.value.id:-1},locale:S,fallbackLocale:E,messages:L,datetimeFormats:T,numberFormats:R,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(P){o.value&&(o.value.inheritLocale=P)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:C},get pluralRules(){return o.value?o.value.pluralRules:w},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:f},set missingWarn(P){o.value&&(o.value.missingWarn=P)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(P){o.value&&(o.value.missingWarn=P)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(P){o.value&&(o.value.fallbackRoot=P)},get fallbackFormat(){return o.value?o.value.fallbackFormat:v},set fallbackFormat(P){o.value&&(o.value.fallbackFormat=P)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:_},set warnHtmlMessage(P){o.value&&(o.value.warnHtmlMessage=P)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(P){o.value&&(o.value.escapeParameter=P)},t:W,getPostTranslationHandler:N,setPostTranslationHandler:D,getMissingHandler:M,setMissingHandler:H,rt:F,d:B,n:j,tm:K,te:X,getLocaleMessage:Z,setLocaleMessage:z,mergeLocaleMessage:Y,getDateTimeFormat:te,setDateTimeFormat:G,mergeDateTimeFormat:ae,getNumberFormat:oe,setNumberFormat:de,mergeNumberFormat:Ce};function A(P){P.locale.value=s.value,P.fallbackLocale.value=l.value,Object.keys(u.value).forEach(Q=>{P.mergeLocaleMessage(Q,u.value[Q])}),Object.keys(c.value).forEach(Q=>{P.mergeDateTimeFormat(Q,c.value[Q])}),Object.keys(d.value).forEach(Q=>{P.mergeNumberFormat(Q,d.value[Q])}),P.escapeParameter=y,P.fallbackFormat=v,P.fallbackRoot=p,P.fallbackWarn=h,P.missingWarn=f,P.warnHtmlMessage=_}return qT(()=>{if(n.proxy==null||n.proxy.$i18n==null)throw ti(zr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const P=o.value=n.proxy.$i18n.__composer;e==="global"?(s.value=P.locale.value,l.value=P.fallbackLocale.value,u.value=P.messages.value,c.value=P.datetimeFormats.value,d.value=P.numberFormats.value):i&&A(P)}),$}const Mbe=["locale","fallbackLocale","availableLocales"],$F=["t","rt","d","n","tm","te"];function kbe(n,e){const t=Object.create(null);return Mbe.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o)throw ti(zr.UNEXPECTED_ERROR);const a=ar(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(t,i,a)}),n.config.globalProperties.$i18n=t,$F.forEach(i=>{const o=Object.getOwnPropertyDescriptor(e,i);if(!o||!o.value)throw ti(zr.UNEXPECTED_ERROR);Object.defineProperty(n.config.globalProperties,`$${i}`,o)}),()=>{delete n.config.globalProperties.$i18n,$F.forEach(i=>{delete n.config.globalProperties[`$${i}`]})}}fbe();__INTLIFY_JIT_COMPILATION__?wF(abe):wF(obe);Qye(Rye);Jye(S7);if(__INTLIFY_PROD_DEVTOOLS__){const n=js();n.__INTLIFY__=!0,Uye(n.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Fbe={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",taskId:"Task ID",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",retry:"Retry",costTime:"Cost Time",thread:"Thread",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",cancelProcess:"Cancel Process",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process ID",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag",fileSearchPlaceholder:"Filter partitions"},Bbe={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},Wbe={en:Fbe,zh:Bbe},Vbe={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},Hbe=Ibe({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:Wbe,datetimeFormats:Vbe}),Ube=[jb,iu,Gde,nv,qfe,nh,Ci,bi,nC,gge,Wr,$o,Gl,PO,whe,kf,Qa,uoe,Kl,gme,Ri,rv,Zse,Qse,Js];function $be(n){Ube.forEach(n.use)}const jbe=be({__name:"loading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup(n){const e=n,t=ee(!0);return Xt(()=>{t.value=!1}),(r,i)=>{const o=iu;return t.value?Ki((xg(),M5("div",{key:0,ref:"loadingRef",class:Tg(["u-loading",{fullscreen:e.fullscreen}])},[I(o,{tip:e.loadingText},null,8,["tip"])],2)),[[fl,t.value]]):mY("",!0)}}}),$7=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},zbe=$7(jbe,[["__scopeId","data-v-2d09cd59"]]),Kbe={install(n){n.component("ULoading",zbe)}};function Gbe(n){n.use($be),n.use(Kbe)}function qbe(n,e){var t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(r,i){var o=i[0];return typeof e[o]<"u"?e[o]:r}),t}function x(n,e){for(var t=[],r=2;r0)i=o-1;else return o}return-(r+1)}function Xbe(n,e){var t=0,r=n.length;if(r===0)return 0;for(;tr?n[l]=o[s++]:s>i?n[l]=o[a++]:e(o[s],o[a])<0?n[l]=o[s++]:n[l]=o[a++]}function iL(n,e,t,r,i){if(!(r<=t)){var o=t+(r-t)/2|0;iL(n,e,t,o,i),iL(n,e,o+1,r,i),!(e(n[o],n[o+1])<=0)&&Zbe(n,e,t,o,r,i)}}function jF(n,e){for(var t=[],r=void 0,i=0,o=wC(n.slice(0),e);i0}function j7(n,e){if(!e)return n.filter(function(r,i){return n.indexOf(r)===i});var t=Object.create(null);return n.filter(function(r){var i=e(r);return t[i]?!1:(t[i]=!0,!0)})}function zF(n){var e=new Set;return n.filter(function(t){return e.has(t)?!1:(e.add(t),!0)})}function ou(n,e){for(var t=0;te;i--)r.push(i);return r}function Qbe(n,e,t){var r=n.slice(0,e),i=n.slice(e);return r.concat(t,i)}function KF(n,e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function GF(n,e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function lN(n){return Array.isArray(n)?n:[n]}var Mh={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function K7(n){return Array.isArray?Array.isArray(n):!!(n&&typeof n.length===Mh.number&&n.constructor===Array)}function ss(n){return typeof n===Mh.string||n instanceof String}function si(n){return typeof n===Mh.object&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function rl(n){return(typeof n===Mh.number||n instanceof Number)&&!isNaN(n)}function G7(n){return n===!0||n===!1}function Vi(n){return typeof n===Mh.undefined}function au(n){return Vi(n)||n===null}var Jbe=Object.prototype.hasOwnProperty;function q7(n){if(!si(n))return!1;for(var e in n)if(Jbe.call(n,e))return!1;return!0}function fv(n){return typeof n===Mh.function}function eCe(n,e){for(var t=Math.min(n.length,e.length),r=0;r"u"?null:n}function zs(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;var e=Array.isArray(n)?[]:{};return Object.keys(n).forEach(function(t){n[t]&&typeof n[t]=="object"?e[t]=zs(n[t]):e[t]=n[t]}),e}function rCe(n){if(!n||typeof n!="object")return n;for(var e=[n];e.length>0;){var t=e.shift();Object.freeze(t);for(var r in t)if(Y7.call(t,r)){var i=t[r];typeof i=="object"&&!Object.isFrozen(i)&&e.push(i)}}return n}var Y7=Object.prototype.hasOwnProperty;function iCe(n,e){return aL(n,e,new Set)}function aL(n,e,t){if(au(n))return n;var r=e(n);if(typeof r<"u")return r;if(K7(n)){for(var i=[],o=0,a=n;o"u"?t:r}var aCe={},k_="en",Oy=!1,Ny=!1,sL=!1,X7=!1,Z7=!1,$m=void 0,Ww=k_,sCe=void 0,lCe=typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.electron<"u"&&process.type==="renderer";if(typeof navigator=="object"&&!lCe){var Vw=navigator.userAgent;Oy=Vw.indexOf("Windows")>=0,Ny=Vw.indexOf("Macintosh")>=0,sL=Vw.indexOf("Linux")>=0,Z7=!0,$m=navigator.language,Ww=$m}else if(typeof process=="object"){Oy=process.platform==="win32",Ny=process.platform==="darwin",sL=process.platform==="linux",$m=k_,Ww=k_;var qF=aCe.VSCODE_NLS_CONFIG;if(qF)try{var Hw=JSON.parse(qF),YF=Hw.availableLanguages["*"];$m=Hw.locale,Ww=YF||k_,sCe=Hw._translationsConfigFile}catch{}X7=!0}var zi=Oy,Vt=Ny,gs=sL,ls=X7,Q7=Z7,uCe=typeof self=="object"?self:typeof global=="object"?global:{},Zi=uCe,dp=null;function J7(n){return dp===null&&(Zi.setImmediate?dp=Zi.setImmediate.bind(Zi):typeof process<"u"&&typeof process.nextTick=="function"?dp=process.nextTick.bind(process):dp=Zi.setTimeout.bind(Zi)),dp(n)}var Ha=Ny?2:Oy?1:3,eU="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function cCe(n){n===void 0&&(n="");for(var e="(-?\\d*\\.\\d\\w*)|([^",t=0,r=eU;t=0||(e+="\\"+i)}return e+="\\s]+)",new RegExp(e,"g")}var tU=cCe();function lL(n){var e=tU;if(n&&n instanceof RegExp)if(n.global)e=n;else{var t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function dCe(n,e,t,r){var i=n-1-r,o=t.lastIndexOf(" ",i-1)+1;e.lastIndex=o;for(var a;a=e.exec(t);){var s=a.index||0;if(s<=i&&e.lastIndex>=i)return{word:a[0],startColumn:r+1+s,endColumn:r+1+e.lastIndex}}return null}function fCe(n,e,t,r){var i=n-1-r;e.lastIndex=0;for(var o;o=e.exec(t);){var a=o.index||0;if(a>i)return null;if(e.lastIndex>=i)return{word:o[0],startColumn:r+1+a,endColumn:r+1+e.lastIndex}}return null}function uL(n,e,t,r){e.lastIndex=0;var i=e.exec(t);if(!i)return null;var o=i[0].indexOf(" ")>=0?fCe(n,e,t,r):dCe(n,e,t,r);return e.lastIndex=0,o}var cL=function(){return cL=Object.assign||function(n){for(var e,t=1,r=arguments.length;t"u"?e:n==="false"?!1:!!n}function gCe(n,e){if(!n)return e;for(var t=Object.create(null),r=0,i=Object.keys(n);r"u"?i=e:(i=parseInt(n,10),isNaN(i)&&(i=e)),i=Math.max(t,i),i=Math.min(r,i),i|0}function XF(n,e){var t=parseFloat(n);return isNaN(t)&&(t=e),t}function mCe(n,e){return typeof n!="string"?e:n==="same"?1:n==="indent"?2:n==="deepIndent"?3:0}function _Ce(n,e){if(typeof n!="string")return e;switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5}return 1}function ZF(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}var QF=function(){function n(){}return n.validate=function(e,t){var r=e.wordWrap;r===!0?r="on":r===!1&&(r="off"),r=Zr(r,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i=this._sanitizeViewInfo(e,t.viewInfo),o=this._sanitizeContribInfo(e,t.contribInfo),a=void 0;typeof e.multiCursorModifier=="string"&&(e.multiCursorModifier==="ctrlCmd"?a=Vt?"metaKey":"ctrlKey":a="altKey");var s=Zr(a,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]),l,u,c;return typeof e.autoClosingBrackets=="boolean"&&e.autoClosingBrackets===!1?(l="never",u="never",c="never"):(l=Zr(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),u=Zr(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),c=Zr(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:lt(e.inDiffEditor,t.inDiffEditor),wordSeparators:Hd(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:br(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:typeof e.lineDecorationsWidth>"u"?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:lt(e.readOnly,t.readOnly),mouseStyle:Zr(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:lt(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:lt(e.automaticLayout,t.automaticLayout),wordWrap:r,wordWrapColumn:br(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:lt(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:mCe(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:Hd(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:Hd(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:Hd(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:l,autoClosingQuotes:u,autoSurround:c,autoIndent:lt(e.autoIndent,t.autoIndent),dragAndDrop:lt(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:lt(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:lt(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:lt(e.useTabStops,t.useTabStops),multiCursorModifier:s,multiCursorMergeOverlapping:lt(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:Zr(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:lt(e.showUnused,t.showUnused),viewInfo:i,contribInfo:o}},n._sanitizeScrollbarOpts=function(e,t,r,i){if(typeof e!="object")return t;var o=br(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),a=br(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:ZF(e.vertical,t.vertical),horizontal:ZF(e.horizontal,t.horizontal),arrowSize:br(e.arrowSize,t.arrowSize,0,1e3),useShadows:lt(e.useShadows,t.useShadows),verticalHasArrows:lt(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:lt(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:o,horizontalSliderSize:br(e.horizontalSliderSize,o,0,1e3),verticalScrollbarSize:a,verticalSliderSize:br(e.verticalSliderSize,a,0,1e3),handleMouseWheel:lt(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:r,fastScrollSensitivity:i}},n._sanitizeMinimapOpts=function(e,t){return typeof e!="object"?t:{enabled:lt(e.enabled,t.enabled),side:Zr(e.side,t.side,["right","left"]),showSlider:Zr(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:lt(e.renderCharacters,t.renderCharacters),maxColumn:br(e.maxColumn,t.maxColumn,1,1e4)}},n._sanitizeFindOpts=function(e,t){return typeof e!="object"?t:{seedSearchStringFromSelection:lt(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:lt(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:lt(e.globalFindClipboard,t.globalFindClipboard),addExtraSpaceOnTop:lt(e.addExtraSpaceOnTop,t.addExtraSpaceOnTop)}},n._sanitizeParameterHintOpts=function(e,t){return typeof e!="object"?t:{enabled:lt(e.enabled,t.enabled),cycle:lt(e.cycle,t.cycle)}},n._sanitizeHoverOpts=function(e,t){var r;if(typeof e=="boolean")r={enabled:e};else if(typeof e=="object")r=e;else return t;return{enabled:lt(r.enabled,t.enabled),delay:br(r.delay,t.delay,0,1e4),sticky:lt(r.sticky,t.sticky)}},n._sanitizeSuggestOpts=function(e,t){var r=e.suggest||{};return{filterGraceful:lt(r.filterGraceful,t.filterGraceful),snippets:Zr(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:lt(r.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:lt(r.localityBonus,t.localityBonus),shareSuggestSelections:lt(r.shareSuggestSelections,t.shareSuggestSelections),showIcons:lt(r.showIcons,t.showIcons),maxVisibleSuggestions:br(r.maxVisibleSuggestions,t.maxVisibleSuggestions,1,15),filteredTypes:si(r.filteredTypes)?r.filteredTypes:Object.create(null)}},n._sanitizeGotoLocationOpts=function(e,t){var r=e.gotoLocation||{};return{multiple:Zr(r.multiple,t.multiple,["peek","gotoAndPeek","goto"])}},n._sanitizeTabCompletionOpts=function(e,t){return e===!1?"off":e===!0?"onlySnippets":Zr(e,t,["on","off","onlySnippets"])},n._sanitizeViewInfo=function(e,t){var r=[];if(Array.isArray(e.rulers)){for(var i=0,o=e.rulers.length;i=2?(D=_?2:4,W=2/C):(D=_?1:3,W=1/C),H=Math.max(0,Math.floor((N-f-2)*W/(c+W)));var F=H/W;F>y&&(H=Math.floor(y*W)),k=N-H,g==="left"?(M=0,E+=H,L+=H,T+=H,R+=H):M=t-H-f}var B=Math.max(1,Math.floor((k-f-2)/c)),j=h?p:0;return{width:t,height:r,glyphMarginLeft:E,glyphMarginWidth:S,glyphMarginHeight:r,lineNumbersLeft:L,lineNumbersWidth:w,lineNumbersHeight:r,decorationsLeft:T,decorationsWidth:u,decorationsHeight:r,contentLeft:R,contentWidth:k,contentHeight:r,renderMinimap:D,minimapLeft:M,minimapWidth:H,viewportColumn:B,verticalScrollbarWidth:f,horizontalScrollbarHeight:v,overviewRuler:{top:j,width:f,height:r-2*j,right:0}}},n}(),CCe="Consolas, 'Courier New', monospace",wCe="Menlo, Monaco, 'Courier New', monospace",SCe="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",Hp={fontFamily:Vt?wCe:gs?SCe:CCe,fontWeight:"normal",fontSize:Vt?12:14,lineHeight:0,letterSpacing:0},da={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},kh={inDiffEditor:!1,wordSeparators:eU,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" })]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:x("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:Nn.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}};/*! Copyright (c) 2014 Taylor Hakes Copyright (c) 2014 Forbes Lindesay - */(function(n,e){(function(t,r){r()})(Tc,function(){function t(p){var v=this.constructor;return this.then(function(m){return v.resolve(p()).then(function(){return m})},function(m){return v.resolve(p()).then(function(){return v.reject(m)})})}var r=setTimeout;function i(){}function o(p,v){return function(){p.apply(v,arguments)}}function a(p){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if(typeof p!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(p,this)}function s(p,v){for(;p._state===3;)p=p._value;if(p._state===0){p._deferreds.push(v);return}p._handled=!0,a._immediateFn(function(){var m=p._state===1?v.onFulfilled:v.onRejected;if(m===null){(p._state===1?l:u)(v.promise,p._value);return}var g;try{g=m(p._value)}catch(_){u(v.promise,_);return}l(v.promise,g)})}function l(p,v){try{if(v===p)throw new TypeError("A promise cannot be resolved with itself.");if(v&&(typeof v=="object"||typeof v=="function")){var m=v.then;if(v instanceof a){p._state=3,p._value=v,c(p);return}else if(typeof m=="function"){f(o(m,v),p);return}}p._state=1,p._value=v,c(p)}catch(g){u(p,g)}}function u(p,v){p._state=2,p._value=v,c(p)}function c(p){p._state===2&&p._deferreds.length===0&&a._immediateFn(function(){p._handled||a._unhandledRejectionFn(p._value)});for(var v=0,m=p._deferreds.length;v"u")throw new TypeError("Promise.all accepts an array");var g=Array.prototype.slice.call(p);if(g.length===0)return v([]);var _=g.length;function y(w,C){try{if(C&&(typeof C=="object"||typeof C=="function")){var S=C.then;if(typeof S=="function"){S.call(C,function(L){y(w,L)},m);return}}g[w]=C,--_===0&&v(g)}catch(L){m(L)}}for(var b=0;b"u")throw new TypeError("Promise.all accepts an array");var g=Array.prototype.slice.call(p);if(g.length===0)return v([]);var _=g.length;function y(w,b){try{if(b&&(typeof b=="object"||typeof b=="function")){var S=b.then;if(typeof S=="function"){S.call(b,function(E){y(w,E)},m);return}}g[w]=b,--_===0&&v(g)}catch(E){m(E)}}for(var C=0;C=d?_f:{done:!1,value:u[c++]}}}}n.fromArray=r;function i(u){return u?Array.isArray(u)?n.fromArray(u):u:n.empty()}n.from=i;function o(u,c){return{next:function(){var d=u.next();return d.done?_f:{done:!1,value:c(d.value)}}}}n.map=o;function a(u,c){return{next:function(){for(;;){var d=u.next();if(d.done)return _f;if(c(d.value))return{done:!1,value:d.value}}}}}n.filter=a;function s(u,c){for(var d=u.next();!d.done;d=u.next())c(d.value)}n.forEach=s;function l(u){var c=[];return s(u,function(d){return c.push(d)}),c}n.collect=l})(Hr||(Hr={}));function qbe(n){return Array.isArray(n)?Hr.fromArray(n):n}var yf=function(){function n(e,t,r,i){t===void 0&&(t=0),r===void 0&&(r=e.length),i===void 0&&(i=t-1),this.items=e,this.start=t,this.end=r,this.index=i}return n.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},n.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},n}(),Ybe=function(n){Gbe(e,n);function e(t,r,i,o){return r===void 0&&(r=0),i===void 0&&(i=t.length),o===void 0&&(o=r-1),n.call(this,t,r,i,o)||this}return e.prototype.current=function(){return n.prototype.current.call(this)},e.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.last=function(){return this.index=this.end-1,this.current()},e.prototype.parent=function(){return null},e}(yf),e3=function(){function n(e,t){this.iterator=e,this.fn=t}return n.prototype.next=function(){return this.fn(this.iterator.next())},n}(),Lr=function(){function n(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}return n.Undefined=new n(void 0),n}(),ed=function(){function n(){this._first=Lr.Undefined,this._last=Lr.Undefined,this._size=0}return Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.isEmpty=function(){return this._first===Lr.Undefined},n.prototype.clear=function(){this._first=Lr.Undefined,this._last=Lr.Undefined,this._size=0},n.prototype.unshift=function(e){return this._insert(e,!1)},n.prototype.push=function(e){return this._insert(e,!0)},n.prototype._insert=function(e,t){var r=this,i=new Lr(e);if(this._first===Lr.Undefined)this._first=i,this._last=i;else if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;var s=!1;return function(){s||(s=!0,r._remove(i))}},n.prototype.shift=function(){if(this._first!==Lr.Undefined){var e=this._first.element;return this._remove(this._first),e}},n.prototype._remove=function(e){if(e.prev!==Lr.Undefined&&e.next!==Lr.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Lr.Undefined&&e.next===Lr.Undefined?(this._first=Lr.Undefined,this._last=Lr.Undefined):e.next===Lr.Undefined?(this._last=this._last.prev,this._last.next=Lr.Undefined):e.prev===Lr.Undefined&&(this._first=this._first.next,this._first.prev=Lr.Undefined);this._size-=1},n.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===Lr.Undefined?_f:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},n.prototype.toArray=function(){for(var e=[],t=this._first;t!==Lr.Undefined;t=t.next)e.push(t.element);return e},n}(),Xbe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ht;(function(n){var e={dispose:function(){}};n.None=function(){return e};function t(y){return function(b,w,C){w===void 0&&(w=null);var S=!1,L;return L=y(function(E){if(!S)return L?L.dispose():S=!0,b.call(w,E)},null,C),S&&L.dispose(),L}}n.once=t;function r(y,b){return u(function(w,C,S){return C===void 0&&(C=null),y(function(L){return w.call(C,b(L))},null,S)})}n.map=r;function i(y,b){return u(function(w,C,S){return C===void 0&&(C=null),y(function(L){b(L),w.call(C,L)},null,S)})}n.forEach=i;function o(y,b){return u(function(w,C,S){return C===void 0&&(C=null),y(function(L){return b(L)&&w.call(C,L)},null,S)})}n.filter=o;function a(y){return y}n.signal=a;function s(){for(var y=[],b=0;b1)&&A.fire(M),P=0},w)})},onLastListenerRemove:function(){L.dispose()}});return A.event}n.debounce=c;function d(y){var b=new Date().getTime();return r(t(y),function(w){return new Date().getTime()-b})}n.stopwatch=d;function f(y){var b=!0,w;return o(y,function(C){var S=b||C!==w;return b=!1,w=C,S})}n.latch=f;function h(y,b,w){b===void 0&&(b=!1),w===void 0&&(w=[]);var C=w.slice(),S=y(function(T){C?C.push(T):E.fire(T)}),L=function(){C&&C.forEach(function(T){return E.fire(T)}),C=null},E=new ae({onFirstListenerAdd:function(){S||(S=y(function(T){return E.fire(T)}))},onFirstListenerDidAdd:function(){C&&(b?setTimeout(L):L())},onLastListenerRemove:function(){S&&S.dispose(),S=null}});return E.event}n.buffer=h;var p=function(){function y(b){this.event=b}return y.prototype.map=function(b){return new y(r(this.event,b))},y.prototype.forEach=function(b){return new y(i(this.event,b))},y.prototype.filter=function(b){return new y(o(this.event,b))},y.prototype.reduce=function(b,w){return new y(l(this.event,b,w))},y.prototype.latch=function(){return new y(f(this.event))},y.prototype.on=function(b,w,C){return this.event(b,w,C)},y.prototype.once=function(b,w,C){return t(this.event)(b,w,C)},y}();function v(y){return new p(y)}n.chain=v;function m(y,b,w){w===void 0&&(w=function(T){return T});var C=function(){for(var T=[],P=0;P0;){var i=this._deliveryQueue.shift(),o=i[0],a=i[1];try{typeof o=="function"?o.call(void 0,a):o[0].call(o[1],a)}catch(s){et(s)}}}},n.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},n._noop=function(){},n}(),Zbe=function(n){Xbe(e,n);function e(t){var r=n.call(this,t)||this;return r._isPaused=0,r._eventQueue=new ed,r._mergeFn=t&&t.merge,r}return e.prototype.pause=function(){this._isPaused++},e.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),n.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&this._eventQueue.size!==0;)n.prototype.fire.call(this,this._eventQueue.shift())},e.prototype.fire=function(t){this._listeners&&(this._isPaused!==0?this._eventQueue.push(t):n.prototype.fire.call(this,t))},e}(ae),aa=function(){function n(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new ae({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(n.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),n.prototype.add=function(e){var t=this,r={event:e,listener:null};this.events.push(r),this.hasListeners&&this.hook(r);var i=function(){t.hasListeners&&t.unhook(r);var o=t.events.indexOf(r);t.events.splice(o,1)};return Bn(zbe(i))},n.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},n.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},n.prototype.hook=function(e){var t=this;e.listener=e.event(function(r){return t.emitter.fire(r)})},n.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},n.prototype.dispose=function(){this.emitter.dispose()},n}(),uN=function(){function n(){this.buffers=[]}return n.prototype.wrapEvent=function(e){var t=this;return function(r,i,o){return e(function(a){var s=t.buffers[t.buffers.length-1];s?s.push(function(){return r.call(i,a)}):r.call(i,a)},void 0,o)}},n.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var r=e();return this.buffers.pop(),t.forEach(function(i){return i()}),r},n}(),ai=function(){function n(){var e=this;this.listening=!1,this.inputEvent=ht.None,this.inputEventListener=$e.None,this.emitter=new ae({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(n.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},n}(),sU=Object.freeze(function(n,e){var t=setTimeout(n.bind(e),0);return{dispose:function(){clearTimeout(t)}}}),an;(function(n){function e(t){return t===n.None||t===n.Cancelled||t instanceof k_?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}n.isCancellationToken=e,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ht.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:sU})})(an||(an={}));var k_=function(){function n(){this._isCancelled=!1,this._emitter=null}return n.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(n.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?sU:(this._emitter||(this._emitter=new ae),this._emitter.event)},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},n}(),td=function(){function n(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(n.prototype,"token",{get:function(){return this._token||(this._token=new k_),this._token},enumerable:!0,configurable:!0}),n.prototype.cancel=function(){this._token?this._token instanceof k_&&this._token.cancel():this._token=an.Cancelled},n.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof k_&&this._token.dispose():this._token=an.None},n}(),cN=function(){function n(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return n.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},n.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},n.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},n}(),pL=new cN,vL=new cN,gL=new cN;(function(){function n(e,t,r,i){r===void 0&&(r=t),i===void 0&&(i=r),pL.define(e,t),vL.define(e,r),gL.define(e,i)}n(0,"unknown"),n(1,"Backspace"),n(2,"Tab"),n(3,"Enter"),n(4,"Shift"),n(5,"Ctrl"),n(6,"Alt"),n(7,"PauseBreak"),n(8,"CapsLock"),n(9,"Escape"),n(10,"Space"),n(11,"PageUp"),n(12,"PageDown"),n(13,"End"),n(14,"Home"),n(15,"LeftArrow","Left"),n(16,"UpArrow","Up"),n(17,"RightArrow","Right"),n(18,"DownArrow","Down"),n(19,"Insert"),n(20,"Delete"),n(21,"0"),n(22,"1"),n(23,"2"),n(24,"3"),n(25,"4"),n(26,"5"),n(27,"6"),n(28,"7"),n(29,"8"),n(30,"9"),n(31,"A"),n(32,"B"),n(33,"C"),n(34,"D"),n(35,"E"),n(36,"F"),n(37,"G"),n(38,"H"),n(39,"I"),n(40,"J"),n(41,"K"),n(42,"L"),n(43,"M"),n(44,"N"),n(45,"O"),n(46,"P"),n(47,"Q"),n(48,"R"),n(49,"S"),n(50,"T"),n(51,"U"),n(52,"V"),n(53,"W"),n(54,"X"),n(55,"Y"),n(56,"Z"),n(57,"Meta"),n(58,"ContextMenu"),n(59,"F1"),n(60,"F2"),n(61,"F3"),n(62,"F4"),n(63,"F5"),n(64,"F6"),n(65,"F7"),n(66,"F8"),n(67,"F9"),n(68,"F10"),n(69,"F11"),n(70,"F12"),n(71,"F13"),n(72,"F14"),n(73,"F15"),n(74,"F16"),n(75,"F17"),n(76,"F18"),n(77,"F19"),n(78,"NumLock"),n(79,"ScrollLock"),n(80,";",";","OEM_1"),n(81,"=","=","OEM_PLUS"),n(82,",",",","OEM_COMMA"),n(83,"-","-","OEM_MINUS"),n(84,".",".","OEM_PERIOD"),n(85,"/","/","OEM_2"),n(86,"`","`","OEM_3"),n(110,"ABNT_C1"),n(111,"ABNT_C2"),n(87,"[","[","OEM_4"),n(88,"\\","\\","OEM_5"),n(89,"]","]","OEM_6"),n(90,"'","'","OEM_7"),n(91,"OEM_8"),n(92,"OEM_102"),n(93,"NumPad0"),n(94,"NumPad1"),n(95,"NumPad2"),n(96,"NumPad3"),n(97,"NumPad4"),n(98,"NumPad5"),n(99,"NumPad6"),n(100,"NumPad7"),n(101,"NumPad8"),n(102,"NumPad9"),n(103,"NumPad_Multiply"),n(104,"NumPad_Add"),n(105,"NumPad_Separator"),n(106,"NumPad_Subtract"),n(107,"NumPad_Decimal"),n(108,"NumPad_Divide")})();var Wf;(function(n){function e(a){return pL.keyCodeToStr(a)}n.toString=e;function t(a){return pL.strToKeyCode(a)}n.fromString=t;function r(a){return vL.keyCodeToStr(a)}n.toUserSettingsUS=r;function i(a){return gL.keyCodeToStr(a)}n.toUserSettingsGeneral=i;function o(a){return vL.strToKeyCode(a)||gL.strToKeyCode(a)}n.fromUserSettings=o})(Wf||(Wf={}));function Ii(n,e){var t=(e&65535)<<16>>>0;return(n|t)>>>0}function Dy(n,e){if(n===0)return null;var t=(n&65535)>>>0,r=(n&4294901760)>>>16;return r!==0?new mL([Gw(t,e),Gw(r,e)]):new mL([Gw(t,e)])}function Gw(n,e){var t=!!(n&2048),r=!!(n&256),i=e===2?r:t,o=!!(n&1024),a=!!(n&512),s=e===2?t:r,l=n&255;return new dN(i,o,a,s,l)}var dN=function(){function n(e,t,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=r,this.metaKey=i,this.keyCode=o}return n.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},n.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},n.prototype.toChord=function(){return new mL([this])},n.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},n}(),mL=function(){function n(e){if(e.length===0)throw Pr("parts");this.parts=e}return n.prototype.equals=function(e){if(e===null||this.parts.length!==e.parts.length)return!1;for(var t=0;t=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)r!==-1&&(t+=encodeURIComponent(n.substring(r,i)),r=-1),t!==void 0&&(t+=n.charAt(i));else{t===void 0&&(t=n.substr(0,i));var a=uU[o];a!==void 0?(r!==-1&&(t+=encodeURIComponent(n.substring(r,i)),r=-1),t+=a):r===-1&&(r=i)}}return r!==-1&&(t+=encodeURIComponent(n.substring(r))),t!==void 0?t:n}function lCe(n){for(var e=void 0,t=0;t1&&n.scheme==="file"?e="//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e=n.path[1].toLowerCase()+n.path.substr(2):e=n.path,zi&&(e=e.replace(/\//g,"\\")),e}function _L(n,e){var t=e?lCe:t3,r="",i=n.scheme,o=n.authority,a=n.path,s=n.query,l=n.fragment;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=ca,r+=ca),o){var u=o.indexOf("@");if(u!==-1){var c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?r+=t(c,!1):(r+=t(c.substr(0,u),!1),r+=":",r+=t(c.substr(u+1),!1)),r+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?r+=t(o,!1):(r+=t(o.substr(0,u),!1),r+=o.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){var d=a.charCodeAt(1);d>=65&&d<=90&&(a="/"+String.fromCharCode(d+32)+":"+a.substr(3))}else if(a.length>=2&&a.charCodeAt(1)===58){var d=a.charCodeAt(0);d>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}r+=t(a,!0)}return s&&(r+="?",r+=t(s,!1)),l&&(r+="#",r+=e?l:t3(l,!1)),r}var he=function(){function n(e,t){this.lineNumber=e,this.column=t}return n.prototype.with=function(e,t){return e===void 0&&(e=this.lineNumber),t===void 0&&(t=this.column),e===this.lineNumber&&t===this.column?this:new n(e,t)},n.prototype.delta=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),this.with(this.lineNumber+e,this.column+t)},n.prototype.equals=function(e){return n.equals(this,e)},n.equals=function(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},n.prototype.isBefore=function(e){return n.isBefore(this,e)},n.isBefore=function(e,t){return e.lineNumberr||e===r&&t>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=i)}return n.prototype.isEmpty=function(){return n.isEmpty(this)},n.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},n.prototype.containsPosition=function(e){return n.containsPosition(this,e)},n.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)},n.prototype.containsRange=function(e){return n.containsRange(this,e)},n.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)},n.prototype.plusRange=function(e){return n.plusRange(this,e)},n.plusRange=function(e,t){var r,i,o,a;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,a=e.endColumn),new n(r,i,o,a)},n.prototype.intersectRanges=function(e){return n.intersectRanges(this,e)},n.intersectRanges=function(e,t){var r=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,a=e.endColumn,s=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return ru?(o=u,a=c):o===u&&(a=Math.min(a,c)),r>o||r===o&&i>a?null:new n(r,i,o,a)},n.prototype.equalsRange=function(e){return n.equalsRange(this,e)},n.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},n.prototype.getEndPosition=function(){return new he(this.endLineNumber,this.endColumn)},n.prototype.getStartPosition=function(){return new he(this.startLineNumber,this.startColumn)},n.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},n.prototype.setEndPosition=function(e,t){return new n(this.startLineNumber,this.startColumn,e,t)},n.prototype.setStartPosition=function(e,t){return new n(e,t,this.endLineNumber,this.endColumn)},n.prototype.collapseToStart=function(){return n.collapseToStart(this)},n.collapseToStart=function(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},n.fromPositions=function(e,t){return t===void 0&&(t=e),new n(e.lineNumber,e.column,t.lineNumber,t.column)},n.lift=function(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},n.isIRange=function(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"},n.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},n}(),uCe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ze=function(n){uCe(e,n);function e(t,r,i,o){var a=n.call(this,t,r,i,o)||this;return a.selectionStartLineNumber=t,a.selectionStartColumn=r,a.positionLineNumber=i,a.positionColumn=o,a}return e.prototype.clone=function(){return new e(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},e.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},e.prototype.equalsSelection=function(t){return e.selectionsEqual(this,t)},e.selectionsEqual=function(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn},e.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},e.prototype.setEndPosition=function(t,r){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,r):new e(t,r,this.startLineNumber,this.startColumn)},e.prototype.getPosition=function(){return new he(this.positionLineNumber,this.positionColumn)},e.prototype.setStartPosition=function(t,r){return this.getDirection()===0?new e(t,r,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,r)},e.fromPositions=function(t,r){return r===void 0&&(r=t),new e(t.lineNumber,t.column,r.lineNumber,r.column)},e.liftSelection=function(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)},e.selectionsArrEqual=function(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(var i=0,o=t.length;i=0,Wg=ya.indexOf("Edge/")>=0,uu=Ji||Wg,rl=ya.indexOf("Firefox")>=0,kc=ya.indexOf("AppleWebKit")>=0,Yv=ya.indexOf("Chrome")>=0,OC=!Yv&&ya.indexOf("Safari")>=0,hCe=!Yv&&!OC&&kc,Py=ya.indexOf("iPad")>=0,pCe=Wg&&ya.indexOf("WebView/")>=0;function vCe(){if(Ji)return!1;if(Wg){var n=ya.indexOf("Edge/"),e=parseInt(ya.substring(n+5,ya.indexOf(".",n)),10);if(!e||e>=12&&e<=16)return!1}return!0}var Gt=function(n,e,t){var r=function(o){return i.fire(o)},i=new ae({onFirstListenerAdd:function(){n.addEventListener(e,r,t)},onLastListenerRemove:function(){n.removeEventListener(e,r,t)}});return i.event};function n3(n){return ht.map(n,function(e){return e.preventDefault(),e.stopPropagation(),e})}var pU=new Array(230),qw=new Array(112);(function(){for(var n=0;n=i)return Promise.resolve(t);var a=n[r++],s=Promise.resolve(a());return s.then(function(l){return e(l)?Promise.resolve(l):o()})};return o()}var Ei=function(n){vU(e,n);function e(t,r){var i=n.call(this)||this;return i._token=-1,typeof t=="function"&&typeof r=="number"&&i.setIfNotSet(t,r),i}return e.prototype.dispose=function(){this.cancel(),n.prototype.dispose.call(this)},e.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,r){var i=this;this.cancel(),this._token=setTimeout(function(){i._token=-1,t()},r)},e.prototype.setIfNotSet=function(t,r){var i=this;this._token===-1&&(this._token=setTimeout(function(){i._token=-1,t()},r))},e}($e),Hg=function(n){vU(e,n);function e(){var t=n.call(this)||this;return t._token=-1,t}return e.prototype.dispose=function(){this.cancel(),n.prototype.dispose.call(this)},e.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,r){this.cancel(),this._token=setInterval(function(){t()},r)},e}($e),Nr=function(){function n(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return n.prototype.dispose=function(){this.cancel(),this.runner=null},n.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},n.prototype.schedule=function(e){e===void 0&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},n.prototype.isScheduled=function(){return this.timeoutToken!==-1},n.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},n.prototype.doRun=function(){this.runner&&this.runner()},n}(),qL;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var n=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});qL=function(e){var t=setTimeout(function(){return e(n)}),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(t))}}}}else qL=function(e,t){var r=requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(r))}}}})();var YL=function(){function n(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(r){t._error=r}finally{t._didRun=!0}},this._handle=qL(function(){return t._executor()})}return n.prototype.dispose=function(){this._handle.dispose()},n.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},n}(),LCe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function qo(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function pN(n){n.parentNode&&n.parentNode.removeChild(n)}function ICe(n){for(;n;){if(n===document.body)return!0;n=n.parentNode}return!1}var TCe=new(function(){function n(){}return n.prototype._findClassName=function(e,t){var r=e.className;if(!r){this._lastStart=-1;return}t=t.trim();var i=r.length,o=t.length;if(o===0){this._lastStart=-1;return}if(i=0;){if(s=a+o,(a===0||r.charCodeAt(a-1)===32)&&r.charCodeAt(s)===32){this._lastStart=a,this._lastEnd=s+1;return}if(a>0&&r.charCodeAt(a-1)===32&&s===i){this._lastStart=a-1,this._lastEnd=s;return}if(a===0&&s===i){this._lastStart=0,this._lastEnd=s;return}}this._lastStart=-1},n.prototype.hasClass=function(e,t){return this._findClassName(e,t),this._lastStart!==-1},n.prototype.addClasses=function(e){for(var t=this,r=[],i=1;i0;){e.sort(Zw.sort);var o=e.shift();o.execute()}r=!1};bu=function(o,a){a===void 0&&(a=0);var s=new Zw(o,a);return n.push(s),t||(t=!0,DCe(i)),s},gU=function(o,a){if(r){var s=new Zw(o,a);return e.push(s),s}else return bu(o,a)}})();var RCe=16,PCe=function(n,e){return e},MCe=function(n){LCe(e,n);function e(t,r,i,o,a){o===void 0&&(o=PCe),a===void 0&&(a=RCe);var s=n.call(this)||this,l=null,u=0,c=s._register(new Ei),d=function(){u=new Date().getTime(),i(l),l=null};return s._register(We(t,r,function(f){l=o(l,f);var h=new Date().getTime()-u;h>=a?(c.cancel(),d()):c.setIfNotSet(d,a-h)})),s}return e}($e);function Ug(n,e,t,r,i){return new MCe(n,e,t,r,i)}function mN(n){return document.defaultView.getComputedStyle(n,null)}var Qi=function(){function n(){}return n.convertToPixels=function(e,t){return parseFloat(t)||0},n.getDimension=function(e,t,r){var i=mN(e),o="0";return i&&(i.getPropertyValue?o=i.getPropertyValue(t):o=i.getAttribute(r)),n.convertToPixels(e,o)},n.getBorderLeftWidth=function(e){return n.getDimension(e,"border-left-width","borderLeftWidth")},n.getBorderRightWidth=function(e){return n.getDimension(e,"border-right-width","borderRightWidth")},n.getBorderTopWidth=function(e){return n.getDimension(e,"border-top-width","borderTopWidth")},n.getBorderBottomWidth=function(e){return n.getDimension(e,"border-bottom-width","borderBottomWidth")},n.getPaddingLeft=function(e){return n.getDimension(e,"padding-left","paddingLeft")},n.getPaddingRight=function(e){return n.getDimension(e,"padding-right","paddingRight")},n.getPaddingTop=function(e){return n.getDimension(e,"padding-top","paddingTop")},n.getPaddingBottom=function(e){return n.getDimension(e,"padding-bottom","paddingBottom")},n.getMarginLeft=function(e){return n.getDimension(e,"margin-left","marginLeft")},n.getMarginTop=function(e){return n.getDimension(e,"margin-top","marginTop")},n.getMarginRight=function(e){return n.getDimension(e,"margin-right","marginRight")},n.getMarginBottom=function(e){return n.getDimension(e,"margin-bottom","marginBottom")},n}(),kCe=function(){function n(e,t){this.width=e,this.height=t}return n}();function _N(n){for(var e=n.offsetParent,t=n.offsetTop,r=n.offsetLeft;(n=n.parentNode)!==null&&n!==document.body&&n!==document.documentElement;){t-=n.scrollTop;var i=mN(n);i&&(r-=i.direction!=="rtl"?n.scrollLeft:-n.scrollLeft),n===e&&(r+=Qi.getBorderLeftWidth(n),t+=Qi.getBorderTopWidth(n),t+=n.offsetTop,r+=n.offsetLeft,e=n.offsetParent)}return{left:r,top:t}}function ci(n){var e=n.getBoundingClientRect();return{left:e.left+ja.scrollX,top:e.top+ja.scrollY,width:e.width,height:e.height}}var ja=new(function(){function n(){}return Object.defineProperty(n.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),n}());function Oc(n){var e=Qi.getMarginLeft(n)+Qi.getMarginRight(n);return n.offsetWidth+e}function ky(n){var e=Qi.getBorderLeftWidth(n)+Qi.getBorderRightWidth(n),t=Qi.getPaddingLeft(n)+Qi.getPaddingRight(n);return n.offsetWidth-e-t}function mU(n){var e=Qi.getBorderTopWidth(n)+Qi.getBorderBottomWidth(n),t=Qi.getPaddingTop(n)+Qi.getPaddingBottom(n);return n.offsetHeight-e-t}function _U(n){var e=Qi.getMarginTop(n)+Qi.getMarginBottom(n);return n.offsetHeight+e}function ls(n,e){for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function XL(n,e,t){for(;n;){if(il(n,e))return n;if(t){if(typeof t=="string"){if(il(n,t))return null}else if(n===t)return null}n=n.parentNode}return null}function yd(n){n===void 0&&(n=document.getElementsByTagName("head")[0]);var e=document.createElement("style");return e.type="text/css",e.media="screen",n.appendChild(e),e}var Qw=null;function yU(){return Qw||(Qw=yd()),Qw}function FCe(n){return n&&n.sheet&&n.sheet.rules?n.sheet.rules:n&&n.sheet&&n.sheet.cssRules?n.sheet.cssRules:[]}function BCe(n,e,t){t===void 0&&(t=yU()),!(!t||!e)&&t.sheet.insertRule(n+"{"+e+"}",0)}function ZL(n,e){if(e===void 0&&(e=yU()),!!e){for(var t=FCe(e),r=[],i=0;i=0;i--)e.sheet.deleteRule(r[i])}}function WCe(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"}var mt={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:kc?"webkitAnimationStart":"animationstart",ANIMATION_END:kc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:kc?"webkitAnimationIteration":"animationiteration"},xn={stop:function(n,e){n.preventDefault?n.preventDefault():n.returnValue=!1,e&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)}};function VCe(n){for(var e=[],t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)e[t]=n.scrollTop,n=n.parentNode;return e}function HCe(n,e){for(var t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)n.scrollTop!==e[t]&&(n.scrollTop=e[t]),n=n.parentNode}var UCe=function(){function n(e){var t=this;this._onDidFocus=new ae,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new ae,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var r=ls(document.activeElement,e),i=!1,o=function(){i=!1,r||(r=!0,t._onDidFocus.fire())},a=function(){r&&(i=!0,window.setTimeout(function(){i&&(i=!1,r=!1,t._onDidBlur.fire())},0))};Gt(e,mt.FOCUS,!0)(o,null,this.disposables),Gt(e,mt.BLUR,!0)(a,null,this.disposables)}return n.prototype.dispose=function(){this.disposables=Ne(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},n}();function Xv(n){return new UCe(n)}function Ue(n){for(var e=[],t=1;t200)return n;if(typeof n=="object"){switch(n.$mid){case 1:return Xt.revive(n);case 2:return new RegExp(n.source,n.flags)}for(var t in n)Object.hasOwnProperty.call(n,t)&&(n[t]=wU(n[t],e+1))}return n}var An;(function(n){n.inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote"})(An||(An={}));var dv="";function SU(n){return!n||typeof n!="string"?!0:n.trim().length===0}function dp(n,e,t){t===void 0&&(t="0");for(var r=""+n,i=[r],o=r.length;o=e.length?r:e[o]})}function wi(n){return n.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function us(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function GCe(n,e){e===void 0&&(e=" ");var t=QL(n,e);return EU(t,e)}function QL(n,e){if(!n||!e)return n;var t=e.length;if(t===0||n.length===0)return n;for(var r=0;n.indexOf(e,r)===r;)r=r+t;return n.substring(r)}function EU(n,e){if(!n||!e)return n;var t=e.length,r=n.length;if(t===0||r===0)return n;for(var i=r,o=-1;o=n.lastIndexOf(e,i-1),!(o===-1||o+t!==i);){if(o===0)return"";i=o}return n.substring(0,i)}function qCe(n){return n.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Zv(n,e){if(n.length0?n.indexOf(e,t)===t:t===0?n===e:!1}function bN(n,e,t){if(t===void 0&&(t={}),!n)throw new Error("Cannot create regex from empty string");e||(n=us(n)),t.wholeWord&&(/\B/.test(n.charAt(0))||(n="\\b"+n),/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"));var r="";return t.global&&(r+="g"),t.matchCase||(r+="i"),t.multiline&&(r+="m"),t.unicode&&(r+="u"),new RegExp(n,r)}function YCe(n){if(n.source==="^"||n.source==="^$"||n.source==="$"||n.source==="^\\s*$")return!1;var e=n.exec("");return!!(e&&n.lastIndex===0)}function Jw(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")}function eo(n){for(var e=0,t=n.length;e=0;t--){var r=n.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function XCe(n,e){return ne?1:0}function Nc(n){return n>=97&&n<=122}function Vs(n){return n>=65&&n<=90}function o3(n){return Nc(n)||Vs(n)}function za(n,e){var t=n?n.length:0,r=e?e.length:0;return t!==r?!1:LU(n,e)}function LU(n,e,t){if(t===void 0&&(t=n.length),typeof n!="string"||typeof e!="string")return!1;for(var r=0;rn.length?!1:LU(n,e,t)}function wN(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t=11904&&n<=55215||n>=63744&&n<=64255||n>=65281&&n<=65374}var r0e="\uFEFF";function EN(n){return!!(n&&n.length>0&&n.charCodeAt(0)===65279)}function xU(n){return btoa(encodeURIComponent(n))}function i0e(n,e){for(var t="",r=0;r"u"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return zi?"win32":Vt?"darwin":"linux"},nextTick:function(n){return tU(n)}}:process,JL=LN.cwd,o0e=LN.env,bd=LN.platform,a0e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),s0e=65,l0e=97,u0e=90,c0e=122,cu=46,wr=47,vo=92,Cl=58,d0e=63,IN=function(n){a0e(e,n);function e(t,r,i){var o=this,a;typeof r=="string"&&r.indexOf("not ")===0?(a="must not be",r=r.replace(/^not /,"")):a="must be";var s=t.indexOf(".")!==-1?"property":"argument",l='The "'+t+'" '+s+" "+a+" of type "+r;return l+=". Received type "+typeof i,o=n.call(this,l)||this,o}return e}(Error);function pr(n,e){if(typeof n!="string")throw new IN(e,"string",n)}function zt(n){return n===wr||n===vo}function a3(n){return n===wr}function wl(n){return n>=s0e&&n<=u0e||n>=l0e&&n<=c0e}function Fy(n,e,t,r){for(var i="",o=0,a=-1,s=0,l,u=0;u<=n.length;++u){if(u2){var c=i.lastIndexOf(t);c===-1?(i="",o=0):(i=i.slice(0,c),o=i.length-1-i.lastIndexOf(t)),a=u,s=0;continue}else if(i.length===2||i.length===1){i="",o=0,a=u,s=0;continue}}e&&(i.length>0?i+=t+"..":i="..",o=2)}else i.length>0?i+=t+n.slice(a+1,u):i=n.slice(a+1,u),o=u-a-1;a=u,s=0}else l===cu&&s!==-1?++s:s=-1}return i}function OU(n,e){var t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+r:t+n+r:r}var Hi={resolve:function(){for(var n=[],e=0;e=-1;o--){var a=void 0;if(o>=0?a=n[o]:t?(a=o0e["="+t]||JL(),(a===void 0||a.slice(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(a=t+"\\")):a=JL(),pr(a,"path"),a.length!==0){var s=a.length,l=0,u="",c=!1,d=a.charCodeAt(0);if(s>1)if(zt(d))if(c=!0,zt(a.charCodeAt(1))){for(var f=2,h=f;f2&&zt(a.charCodeAt(2))&&(c=!0,l=3));else zt(d)&&(l=1,c=!0);if(!(u.length>0&&t.length>0&&u.toLowerCase()!==t.toLowerCase())&&(t.length===0&&u.length>0&&(t=u),i||(r=a.slice(l)+"\\"+r,i=c),t.length>0&&i))break}}return r=Fy(r,!i,"\\",zt),t+(i?"\\":"")+r||"."},normalize:function(n){pr(n,"path");var e=n.length;if(e===0)return".";var t=0,r,i=!1,o=n.charCodeAt(0);if(e>1)if(zt(o))if(i=!0,zt(n.charCodeAt(1))){for(var a=2,s=a;a2&&zt(n.charCodeAt(2))&&(i=!0,t=3));else if(zt(o))return"\\";var u;return t0&&zt(n.charCodeAt(e-1))&&(u+="\\"),r===void 0?i?u.length>0?"\\"+u:"\\":u.length>0?u:"":i?u.length>0?r+"\\"+u:r+"\\":u.length>0?r+u:r},isAbsolute:function(n){pr(n,"path");var e=n.length;if(e===0)return!1;var t=n.charCodeAt(0);return zt(t)?!0:!!(wl(t)&&e>2&&n.charCodeAt(1)===Cl&&zt(n.charCodeAt(2)))},join:function(){for(var n=[],e=0;e0&&(t===void 0?t=r=o:t+="\\"+o)}if(t===void 0)return".";var a=!0,s=0;if(typeof r=="string"&&zt(r.charCodeAt(0))){++s;var l=r.length;l>1&&zt(r.charCodeAt(1))&&(++s,l>2&&(zt(r.charCodeAt(2))?++s:a=!1))}if(a){for(;s=2&&(t="\\"+t.slice(s))}return Hi.normalize(t)},relative:function(n,e){if(pr(n,"from"),pr(e,"to"),n===e)return"";var t=Hi.resolve(n),r=Hi.resolve(e);if(t===r||(n=t.toLowerCase(),e=r.toLowerCase(),n===e))return"";for(var i=0;ii&&n.charCodeAt(o-1)===vo;--o);for(var a=o-i,s=0;ss&&e.charCodeAt(l-1)===vo;--l);for(var u=l-s,c=ac){if(e.charCodeAt(s+f)===vo)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}a>c&&(n.charCodeAt(i+f)===vo?d=f:f===2&&(d=3));break}var h=n.charCodeAt(i+f),p=e.charCodeAt(s+f);if(h!==p)break;h===vo&&(d=f)}if(f!==c&&d===-1)return r;var v="";for(d===-1&&(d=0),f=i+d+1;f<=o;++f)(f===o||n.charCodeAt(f)===vo)&&(v.length===0?v+="..":v+="\\..");return v.length>0?v+r.slice(s+d,l):(s+=d,r.charCodeAt(s)===vo&&++s,r.slice(s,l))},toNamespacedPath:function(n){if(typeof n!="string")return n;if(n.length===0)return"";var e=Hi.resolve(n);if(e.length>=3){if(e.charCodeAt(0)===vo){if(e.charCodeAt(1)===vo){var t=e.charCodeAt(2);if(t!==d0e&&t!==cu)return"\\\\?\\UNC\\"+e.slice(2)}}else if(wl(e.charCodeAt(0))&&e.charCodeAt(1)===Cl&&e.charCodeAt(2)===vo)return"\\\\?\\"+e}return n},dirname:function(n){pr(n,"path");var e=n.length;if(e===0)return".";var t=-1,r=-1,i=!0,o=0,a=n.charCodeAt(0);if(e>1)if(zt(a)){if(t=o=1,zt(n.charCodeAt(1))){for(var s=2,l=s;s2&&zt(n.charCodeAt(2))&&(t=o=3));else if(zt(a))return n;for(var u=e-1;u>=o;--u)if(zt(n.charCodeAt(u))){if(!i){r=u;break}}else i=!1;if(r===-1){if(t===-1)return".";r=t}return n.slice(0,r)},basename:function(n,e){e!==void 0&&pr(e,"ext"),pr(n,"path");var t=0,r=-1,i=!0,o;if(n.length>=2){var a=n.charCodeAt(0);wl(a)&&n.charCodeAt(1)===Cl&&(t=2)}if(e!==void 0&&e.length>0&&e.length<=n.length){if(e.length===n.length&&e===n)return"";var s=e.length-1,l=-1;for(o=n.length-1;o>=t;--o){var u=n.charCodeAt(o);if(zt(u)){if(!i){t=o+1;break}}else l===-1&&(i=!1,l=o+1),s>=0&&(u===e.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=l))}return t===r?r=l:r===-1&&(r=n.length),n.slice(t,r)}else{for(o=n.length-1;o>=t;--o)if(zt(n.charCodeAt(o))){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)}},extname:function(n){pr(n,"path");var e=0,t=-1,r=0,i=-1,o=!0,a=0;n.length>=2&&n.charCodeAt(1)===Cl&&wl(n.charCodeAt(0))&&(e=r=2);for(var s=n.length-1;s>=e;--s){var l=n.charCodeAt(s);if(zt(l)){if(!o){r=s+1;break}continue}i===-1&&(o=!1,i=s+1),l===cu?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===r+1?"":n.slice(t,i)},format:function(n){if(n===null||typeof n!="object")throw new IN("pathObject","Object",n);return OU("\\",n)},parse:function(n){pr(n,"path");var e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;var t=n.length,r=0,i=n.charCodeAt(0);if(t>1){if(zt(i)){if(r=1,zt(n.charCodeAt(1))){for(var o=2,a=o;o2){if(zt(n.charCodeAt(2))){if(t===3)return e.root=e.dir=n,e;r=3}}else return e.root=e.dir=n,e}else if(zt(i))return e.root=e.dir=n,e;r>0&&(e.root=n.slice(0,r));for(var s=-1,l=r,u=-1,c=!0,d=n.length-1,f=0;d>=r;--d){if(i=n.charCodeAt(d),zt(i)){if(!c){l=d+1;break}continue}u===-1&&(c=!1,u=d+1),i===cu?s===-1?s=d:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||u===-1||f===0||f===1&&s===u-1&&s===l+1?u!==-1&&(e.base=e.name=n.slice(l,u)):(e.name=n.slice(l,s),e.base=n.slice(l,u),e.ext=n.slice(s,u)),l>0&&l!==r?e.dir=n.slice(0,l-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},lr={resolve:function(){for(var n=[],e=0;e=-1&&!r;i--){var o=void 0;i>=0?o=n[i]:o=JL(),pr(o,"path"),o.length!==0&&(t=o+"/"+t,r=o.charCodeAt(0)===wr)}return t=Fy(t,!r,"/",a3),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(n){if(pr(n,"path"),n.length===0)return".";var e=n.charCodeAt(0)===wr,t=n.charCodeAt(n.length-1)===wr;return n=Fy(n,!e,"/",a3),n.length===0&&!e&&(n="."),n.length>0&&t&&(n+="/"),e?"/"+n:n},isAbsolute:function(n){return pr(n,"path"),n.length>0&&n.charCodeAt(0)===wr},join:function(){for(var n=[],e=0;e0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":lr.normalize(t)},relative:function(n,e){if(pr(n,"from"),pr(e,"to"),n===e||(n=lr.resolve(n),e=lr.resolve(e),n===e))return"";for(var t=1;tl){if(e.charCodeAt(o+c)===wr)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else i>l&&(n.charCodeAt(t+c)===wr?u=c:c===0&&(u=0));break}var d=n.charCodeAt(t+c),f=e.charCodeAt(o+c);if(d!==f)break;d===wr&&(u=c)}var h="";for(c=t+u+1;c<=r;++c)(c===r||n.charCodeAt(c)===wr)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+e.slice(o+u):(o+=u,e.charCodeAt(o)===wr&&++o,e.slice(o))},toNamespacedPath:function(n){return n},dirname:function(n){if(pr(n,"path"),n.length===0)return".";for(var e=n.charCodeAt(0)===wr,t=-1,r=!0,i=n.length-1;i>=1;--i)if(n.charCodeAt(i)===wr){if(!r){t=i;break}}else r=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename:function(n,e){e!==void 0&&pr(e,"ext"),pr(n,"path");var t=0,r=-1,i=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e.length===n.length&&e===n)return"";var a=e.length-1,s=-1;for(o=n.length-1;o>=0;--o){var l=n.charCodeAt(o);if(l===wr){if(!i){t=o+1;break}}else s===-1&&(i=!1,s=o+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=o):(a=-1,r=s))}return t===r?r=s:r===-1&&(r=n.length),n.slice(t,r)}else{for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===wr){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)}},extname:function(n){pr(n,"path");for(var e=-1,t=0,r=-1,i=!0,o=0,a=n.length-1;a>=0;--a){var s=n.charCodeAt(a);if(s===wr){if(!i){t=a+1;break}continue}r===-1&&(i=!1,r=a+1),s===cu?e===-1?e=a:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||r===-1||o===0||o===1&&e===r-1&&e===t+1?"":n.slice(e,r)},format:function(n){if(n===null||typeof n!="object")throw new IN("pathObject","Object",n);return OU("/",n)},parse:function(n){pr(n,"path");var e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;var t=n.charCodeAt(0)===wr,r;t?(e.root="/",r=1):r=0;for(var i=-1,o=0,a=-1,s=!0,l=n.length-1,u=0;l>=r;--l){var c=n.charCodeAt(l);if(c===wr){if(!s){o=l+1;break}continue}a===-1&&(s=!1,a=l+1),c===cu?i===-1?i=l:u!==1&&(u=1):i!==-1&&(u=-1)}return i===-1||a===-1||u===0||u===1&&i===a-1&&i===o+1?a!==-1&&(o===0&&t?e.base=e.name=n.slice(1,a):e.base=e.name=n.slice(o,a)):(o===0&&t?(e.name=n.slice(1,i),e.base=n.slice(1,a)):(e.name=n.slice(o,i),e.base=n.slice(o,a)),e.ext=n.slice(i,a)),o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};lr.win32=Hi.win32=Hi;lr.posix=Hi.posix=lr;var By=bd==="win32"?Hi.normalize:lr.normalize,NU=bd==="win32"?Hi.join:lr.join,TN=bd==="win32"?Hi.relative:lr.relative,xN=bd==="win32"?Hi.dirname:lr.dirname,nd=bd==="win32"?Hi.basename:lr.basename,AU=bd==="win32"?Hi.extname:lr.extname,fv=bd==="win32"?Hi.sep:lr.sep;const f0e=Object.freeze(Object.defineProperty({__proto__:null,basename:nd,dirname:xN,extname:AU,join:NU,normalize:By,posix:lr,relative:TN,sep:fv,win32:Hi},Symbol.toStringTag,{value:"Module"}));function h0e(n){return n.replace(/[\\/]/g,lr.sep)}function p0e(n,e,t,r){if(r===void 0&&(r=fv),n===e)return!0;if(!n||!e||e.length>n.length)return!1;if(t){var i=CN(n,e);if(!i)return!1;if(e.length===n.length)return!0;var o=e.length;return e.charAt(e.length-1)===r&&o--,n.charAt(o)===r}return e.charAt(e.length-1)!==r&&(e+=r),n.indexOf(e)===0}function v0e(n){return n>=65&&n<=90||n>=97&&n<=122}function g0e(n){return n&&n.scheme===An.file?!vs:!0}function DU(n){return al(n)||n.authority}function RU(n,e){return n===e||za(n,e)}function m0e(n,e,t){if(t===void 0&&(t=g0e(n)),n===e)return!0;if(!n||!e||n.scheme!==e.scheme||!RU(n.authority,e.authority))return!1;var r=n.path||"/",i=e.path||"/";return r===i||t&&za(r||"/",i||"/")}function al(n){return lr.basename(n.path)}function PU(n){if(n.path.length===0)return n;if(n.scheme===An.file)return Xt.file(xN(ON(n)));var e=lr.dirname(n.path);return n.authority&&e.length&&e.charCodeAt(0)!==47&&(console.error('dirname("'+n.toString+")) resulted in a relative path"),e="/"),n.with({path:e})}function _0e(n){for(var e,t=[],r=1;r1&&n.scheme===An.file?e="//"+n.authority+t:zi&&t.charCodeAt(0)===47&&v0e(t.charCodeAt(1))&&t.charCodeAt(2)===58?e=t.substr(1):e=t,zi&&(e=e.replace(/\//g,"\\")),e}function b0e(n,e){if(!(n.scheme!==e.scheme||!RU(n.authority,e.authority))){if(n.scheme===An.file){var t=TN(n.path,e.path);return zi?h0e(t):t}return lr.relative(n.path||"/",e.path||"/")}}var dh;(function(n){n.META_DATA_LABEL="label",n.META_DATA_DESCRIPTION="description",n.META_DATA_SIZE="size",n.META_DATA_MIME="mime";function e(t){var r=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach(function(a){var s=a.split(":"),l=s[0],u=s[1];l&&u&&r.set(l,u)});var o=t.path.substring(0,t.path.indexOf(";"));return o&&r.set(n.META_DATA_MIME,o),r}n.parseMetaData=e})(dh||(dh={}));var ri=nn("commandService"),ii=new(function(){function n(){this._commands=new Map,this._onDidRegisterCommand=new ae,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return n.prototype.registerCommand=function(e,t){var r=this;if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var i=[],o=0,a=e.description.args;o=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},s3=function(n,e){return function(t,r){e(t,r,n)}},w0e=function(n,e,t,r){return new(t||(t=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){u.done?i(u.value):new t(function(c){c(u.value)}).then(a,s)}l((r=r.apply(n,e||[])).next())})},S0e=function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var r=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=r.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},n.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},n.prototype.next=function(e){e===void 0&&(e=0),this._move(!0,e)},n.prototype.previous=function(e){e===void 0&&(e=0),this._move(!1,e)},n.prototype.dispose=function(){Ne(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},n}(),sl=new(function(){function n(){this._zoomLevel=0,this._onDidChangeZoomLevel=new ae,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return n.prototype.getZoomLevel=function(){return this._zoomLevel},n.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},n}()),T0e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),x0e=Vt?1.5:1.35,l3=8,O0e=100,u3=8,N0e=150,A0e=-5,D0e=20;function c3(n,e){if(typeof n=="number")return n;if(typeof n>"u")return e;var t=parseFloat(n);return isNaN(t)?e:t}function R0e(n,e){if(typeof n=="number")return Math.round(n);if(typeof n>"u")return e;var t=parseInt(n);return isNaN(t)?e:t}function eS(n,e,t){return nt?t:n}function d3(n,e){return typeof n!="string"?e:n}var NN=function(){function n(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=e.lineHeight|0,this.letterSpacing=e.letterSpacing}return n.createFromRawSettings=function(e,t,r){r===void 0&&(r=!1);var i=d3(e.fontFamily,Wp.fontFamily),o=d3(e.fontWeight,Wp.fontWeight),a=c3(e.fontSize,Wp.fontSize);a=eS(a,0,O0e),a===0?a=Wp.fontSize:a0)i.left||(i.left=new Hm,i.left.segment=r.value()),i=i.left;else if(o<0)i.right||(i.right=new Hm,i.right.segment=r.value()),i=i.right;else if(r.hasNext())r.next(),i.mid||(i.mid=new Hm,i.mid.segment=r.value()),i=i.mid;else break}var a=i.value;return i.value=t,i.key=e,a},n.prototype.get=function(e){for(var t=this._iter.reset(e),r=this._root;r;){var i=t.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else if(t.hasNext())t.next(),r=r.mid;else break}return r?r.value:void 0},n.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),r=this._root,i=void 0;r;){var o=t.cmp(r.segment);if(o>0)r=r.left;else if(o<0)r=r.right;else if(t.hasNext())t.next(),i=r.value||i,r=r.mid;else break}return r&&r.value||i},n.prototype.forEach=function(e){this._forEach(this._root,e)},n.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},n}(),tS=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},n.prototype.get=function(e){return this.map.get(this.toKey(e))},n.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},n}(),W0e=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(e,t){t===void 0&&(t=0);var r=this._map.get(e);if(r)return t!==0&&this.touch(r,t),r.value},n.prototype.set=function(e,t,r){r===void 0&&(r=0);var i=this._map.get(e);if(i)i.value=t,r!==0&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}},n.prototype.delete=function(e){return!!this.remove(e)},n.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},n.prototype.forEach=function(e,t){for(var r=this._head;r;)t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),r=r.next},n.prototype.trimOld=function(e){if(!(e>=this.size)){if(e===0){this.clear();return}for(var t=this._head,r=this.size;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0)}},n.prototype.addItemFirst=function(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},n.prototype.addItemLast=function(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},n.prototype.removeItem=function(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{var t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0},n.prototype.touch=function(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;var r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===2){if(e===this._tail)return;var r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}},n.prototype.toJSON=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),e},n}(),DC=function(n){k0e(e,n);function e(t,r){r===void 0&&(r=1);var i=n.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,r),1),i}return e.prototype.get=function(t){return n.prototype.get.call(this,t,2)},e.prototype.set=function(t,r){n.prototype.set.call(this,t,r,2),this.checkTrim()},e.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},e}(W0e),nS="**",f3="/",B_="[/\\\\]",W_="[^/\\\\]",V0e=/\//g;function h3(n){switch(n){case 0:return"";case 1:return W_+"*?";default:return"(?:"+B_+"|"+W_+"+"+B_+"|"+B_+W_+"+)*?"}}function p3(n,e){if(!n)return[];for(var t=[],r=!1,i=!1,o="",a=0,s=n;a0;d--){var f=u.charCodeAt(d-1);if(f===47||f===92)break}c=u.substr(d)}var h=r.indexOf(c);return h!==-1?i[h]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;var l=n.filter(function(u){return!u.basenames});return l.push(s),l}function BU(n,e,t,r){if(Array.isArray(n)){for(var i=0,o=0,a=n;oi&&(i=l)}return i}else{if(typeof n=="string")return r?n==="*"?5:n===t?10:0:0;if(n){var u=n.language,c=n.pattern,d=n.scheme,f=n.hasAccessToAllModels;if(!r&&!f)return 0;var i=0;if(d)if(d===e.scheme)i=10;else if(d==="*")i=5;else return 0;if(u)if(u===t)i=10;else if(u==="*")i=Math.max(i,5);else return 0;if(c)if(c===e.fsPath||kU(c,e.fsPath))i=10;else return 0;return i}else return 0}}var Gi=nn("modelService");function ewe(n){return!n.isTooLargeForSyncing()&&!n.isForSimpleWidget}function WU(n){return typeof n=="string"?!1:Array.isArray(n)?n.every(WU):!!n.exclusive}var kr=function(){function n(){this._clock=0,this._entries=[],this._onDidChange=new ae}return Object.defineProperty(n.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),n.prototype.register=function(e,t){var r=this,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),Bn(function(){if(i){var o=r._entries.indexOf(i);o>=0&&(r._entries.splice(o,1),r._lastCandidate=void 0,r._onDidChange.fire(r._entries.length),i=void 0)}})},n.prototype.has=function(e){return this.all(e).length>0},n.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],r=0,i=this._entries;r0&&t.push(o.provider)}return t},n.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(r){return t.push(r.provider)}),t},n.prototype.orderedGroups=function(e){var t=[],r,i;return this._orderedForEach(e,function(o){r&&i===o._score?r.push(o.provider):(i=o._score,r=[o.provider],t.push(r))}),t},n.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var r=0,i=this._entries;r0&&t(o)}}},n.prototype._updateScores=function(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!(this._lastCandidate&&this._lastCandidate.language===t.language&&this._lastCandidate.uri===t.uri)){this._lastCandidate=t;for(var r=0,i=this._entries;r0){for(var a=0,s=this._entries;at._score?-1:e._timet._time?-1:0},n}(),twe=function(){function n(){this._map=new Map,this._promises=new Map,this._onDidChange=new ae,this.onDidChange=this._onDidChange.event,this._colorMap=null}return n.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},n.prototype.register=function(e,t){var r=this;return this._map.set(e,t),this.fire([e]),Bn(function(){r._map.get(e)===t&&(r._map.delete(e),r.fire([e]))})},n.prototype.registerPromise=function(e,t){var r=this,i=null,o=!1;return this._promises.set(e,t.then(function(a){r._promises.delete(e),!(o||!a)&&(i=r.register(e,a))})),Bn(function(){o=!0,i&&i.dispose()})},n.prototype.getPromise=function(e){var t=this,r=this.get(e);if(r)return Promise.resolve(r);var i=this._promises.get(e);return i?i.then(function(o){return t.get(e)}):null},n.prototype.get=function(e){return su(this._map.get(e))},n.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Wy(this._map),changedColorMap:!0})},n.prototype.getColorMap=function(){return this._colorMap},n.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},n}(),RN=function(){function n(e,t){this.language=e,this.id=t}return n}(),fa=function(){function n(){}return n.getLanguageId=function(e){return(e&255)>>>0},n.getTokenType=function(e){return(e&1792)>>>8},n.getFontStyle=function(e){return(e&14336)>>>11},n.getForeground=function(e){return(e&8372224)>>>14},n.getBackground=function(e){return(e&4286578688)>>>23},n.getClassNameFromMetadata=function(e){var t=this.getForeground(e),r="mtk"+t,i=this.getFontStyle(e);return i&1&&(r+=" mtki"),i&2&&(r+=" mtkb"),i&4&&(r+=" mtku"),r},n.getInlineStyleFromMetadata=function(e,t){var r=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[r]+";";return i&1&&(o+="font-style: italic;"),i&2&&(o+="font-weight: bold;"),i&4&&(o+="text-decoration: underline;"),o},n}(),y3=function(){var n=Object.create(null);return n[0]="method",n[1]="function",n[2]="constructor",n[3]="field",n[4]="variable",n[5]="class",n[6]="struct",n[7]="interface",n[8]="module",n[9]="property",n[10]="event",n[11]="operator",n[12]="unit",n[13]="value",n[14]="constant",n[15]="enum",n[16]="enum-member",n[17]="keyword",n[25]="snippet",n[18]="text",n[19]="color",n[20]="file",n[21]="reference",n[22]="customcolor",n[23]="folder",n[24]="type-parameter",function(e){return n[e]||"property"}}(),PN=function(){var n=Object.create(null);return n.method=0,n.function=1,n.constructor=2,n.field=3,n.variable=4,n.class=5,n.struct=6,n.interface=7,n.module=8,n.property=9,n.event=10,n.operator=11,n.unit=12,n.value=13,n.constant=14,n.enum=15,n["enum-member"]=16,n.enumMember=16,n.keyword=17,n.snippet=25,n.text=18,n.color=19,n.file=20,n.reference=21,n.customcolor=22,n.folder=23,n["type-parameter"]=24,n.typeParameter=24,function(e,t){var r=n[e];return typeof r>"u"&&!t&&(r=9),r}}(),Fc;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(Fc||(Fc={}));var Jv;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(Jv||(Jv={}));function nwe(n){return n&&Xt.isUri(n.uri)&&q.isIRange(n.range)&&(q.isIRange(n.originSelectionRange)||q.isIRange(n.targetSelectionRange))}var rwe=function(){var n=Object.create(null);return n[0]="file",n[1]="module",n[2]="namespace",n[3]="package",n[4]="class",n[5]="method",n[6]="property",n[7]="field",n[8]="constructor",n[9]="enum",n[10]="interface",n[11]="function",n[12]="variable",n[13]="constant",n[14]="string",n[15]="number",n[16]="boolean",n[17]="array",n[18]="object",n[19]="key",n[20]="null",n[21]="enum-member",n[22]="struct",n[23]="event",n[24]="operator",n[25]="type-parameter",function(t,r){return"symbol-icon "+(r?"inline":"block")+" "+(n[t]||"property")}}(),RC=function(){function n(e){this.value=e}return n.Comment=new n("comment"),n.Imports=new n("imports"),n.Region=new n("region"),n}();function iwe(n){return si(n)&&n.resource&&Array.isArray(n.edits)}var Vy=new kr,Hy=new kr,Ka=new kr,Bc=new kr,eg=new kr,tg=new kr,fh=new kr,ng=new kr,nI=new kr,Uy=new kr,$y=new kr,Wc=new kr,Js=new kr,hv=new kr,ha=new kr,jy=new kr,rg=new kr,hh=new kr,MN=new kr,rI=new kr,Dn=new twe,owe=function(){function n(){}return n.prototype.clone=function(){return this},n.prototype.equals=function(e){return this===e},n}(),$g=new owe,kN="vs.editor.nullMode",zy=new RN(kN,0);function VU(n,e,t,r){return new fN([new IC(r,"",n)],t)}function Ky(n,e,t,r){var i=new Uint32Array(2);return i[0]=r,i[1]=(n<<0|0|0|16384|2<<23)>>>0,new TC(i,t===null?$g:t)}var awe="editorWorkerService",Jo=nn(awe),rd=nn("textModelService"),swe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),lwe="$initialize",b3=!1;function iI(n){eU&&(b3||(b3=!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(n.message))}var uwe=function(){function n(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return n.prototype.setWorkerId=function(e){this._workerId=e},n.prototype.sendMessage=function(e,t){var r=this,i=String(++this._lastSentReq);return new Promise(function(o,a){r._pendingReplies[i]={resolve:o,reject:a},r._send({vsWorker:r._workerId,req:i,method:e,args:t})})},n.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch{return}!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)},n.prototype._handleMessage=function(e){var t=this;if(e.seq){var r=e;if(!this._pendingReplies[r.seq]){console.warn("Got reply to unknown seq");return}var i=this._pendingReplies[r.seq];if(delete this._pendingReplies[r.seq],r.err){var o=r.err;r.err.$isError&&(o=new Error,o.name=r.err.name,o.message=r.err.message,o.stack=r.err.stack),i.reject(o);return}i.resolve(r.res);return}var a=e,s=a.req,l=this._handler.handleMessage(a.method,a.args);l.then(function(u){t._send({vsWorker:t._workerId,seq:s,res:u,err:void 0})},function(u){u.detail instanceof Error&&(u.detail=JF(u.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:JF(u)})})},n.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},n}(),cwe=function(n){swe(e,n);function e(t,r){var i=n.call(this)||this,o=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",function(u){i._protocol.handleMessage(u)},function(u){o&&o(u)})),i._protocol=new uwe({sendMessage:function(u){i._worker.postMessage(u)},handleMessage:function(u,c){return Promise.resolve(null)}}),i._protocol.setWorkerId(i._worker.getId());var a=null;typeof self.require<"u"&&typeof self.require.getConfig=="function"?a=self.require.getConfig():typeof self.requirejs<"u"&&(a=self.requirejs.s.contexts._.config),i._onModuleLoaded=i._protocol.sendMessage(lwe,[i._worker.getId(),r,a]),i._lazyProxy=new Promise(function(u,c){o=c,i._onModuleLoaded.then(function(d){for(var f={},h=0,p=d;h0&&n.getLanguageId(a-1)===i;)a--;return new vwe(n,i,a,o+1,n.getStartOffset(a),n.getEndOffset(o))}var vwe=function(){function n(e,t,r,i,o,a){this._actual=e,this.languageId=t,this._firstTokenIndex=r,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=a}return n.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},n.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},n.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},n.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},n}();function ac(n){return(n&7)!==0}var HU=function(){function n(e){e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(function(t){return new Gy(t)}):e.brackets?this._autoClosingPairs=e.brackets.map(function(t){return new Gy({open:t[0],close:t[1]})}):this._autoClosingPairs=[],this._autoCloseBefore=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:n.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}return n.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},n.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},n.prototype.shouldAutoClosePair=function(e,t,r){if(t.getTokenCount()===0)return!0;for(var i=t.findTokenIndexAtOffset(r-2),o=t.getStandardTokenType(i),a=0,s=this._autoClosingPairs;a - `,n}(),gwe=function(){function n(e,t,r,i,o){this.languageIdentifier=e,this.open=t,this.close=r,this.forwardRegex=i,this.reversedRegex=o}return n}(),mwe=function(){function n(e,t){var r=this;this.brackets=t.map(function(o){return new gwe(e,o[0],o[1],_we({open:o[0],close:o[1]}),ywe({open:o[0],close:o[1]}))}),this.forwardRegex=bwe(this.brackets),this.reversedRegex=Cwe(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var i=0;this.brackets.forEach(function(o){r.textIsBracket[o.open.toLowerCase()]=o,r.textIsBracket[o.close.toLowerCase()]=o,r.textIsOpenBracket[o.open.toLowerCase()]=!0,r.textIsOpenBracket[o.close.toLowerCase()]=!1,i=Math.max(i,o.open.length),i=Math.max(i,o.close.length)}),this.maxBracketLength=i}return n}();function PC(n,e){var t={};return function(r){var i=n(r);return t.hasOwnProperty(i)||(t[i]=e(r)),t[i]}}var _we=PC(function(n){return n.open+";"+n.close},function(n){return MC([n.open,n.close])}),ywe=PC(function(n){return n.open+";"+n.close},function(n){return MC([ig(n.open),ig(n.close)])}),bwe=PC(function(n){return n.map(function(e){return e.open+";"+e.close}).join(";")},function(n){var e=[];return n.forEach(function(t){e.push(t.open),e.push(t.close)}),MC(e)}),Cwe=PC(function(n){return n.map(function(e){return e.open+";"+e.close}).join(";")},function(n){var e=[];return n.forEach(function(t){e.push(ig(t.open)),e.push(ig(t.close))}),MC(e)});function wwe(n){var e=/^[\w]+$/.test(n);return n=us(n),e?"\\b"+n+"\\b":n}function MC(n){var e="("+n.map(wwe).join(")|(")+")";return bN(e,!0)}var ig=function(){function n(r){for(var i="",o=r.length-1;o>=0;o--)i+=r.charAt(o);return i}var e=null,t=null;return function(i){return e!==i&&(e=i,t=n(e)),t}}(),sc=function(){function n(){}return n._findPrevBracketInText=function(e,t,r,i){var o=r.match(e);if(!o)return null;var a=r.length-(o.index||0),s=o[0].length,l=i+a;return new q(t,l-s+1,t,l+1)},n.findPrevBracketInToken=function(e,t,r,i,o){var a=ig(r),s=a.substring(r.length-o,r.length-i);return this._findPrevBracketInText(e,t,s,i)},n.findNextBracketInText=function(e,t,r,i){var o=r.match(e);if(!o)return null;var a=o.index||0,s=o[0].length;if(s===0)return null;var l=i+a;return new q(t,l+1,t,l+1+s)},n.findNextBracketInToken=function(e,t,r,i,o){var a=r.substring(i,o);return this.findNextBracketInText(e,t,a,i)},n}(),Swe=function(){function n(e,t,r){r=r||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(i){return i.open.length>1&&!!i.close}).map(function(i){return new Gy(i)}),r.docComment&&this._complexAutoClosePairs.push(new Gy({open:r.docComment.open,close:r.docComment.close||""}))}return n.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,r=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},n}(),Ewe=function(){function n(e){this._indentationRules=e}return n.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},n.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},n.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},n.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},n.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},n}(),Lwe=function(){function n(e){var t=this;e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(function(r){var i=n._createOpenBracketRegExp(r[0]),o=n._createCloseBracketRegExp(r[1]);i&&o&&t._brackets.push({open:r[0],openRegExp:i,close:r[1],closeRegExp:o})}),this._regExpRules=e.regExpRules||[]}return n.prototype.onEnter=function(e,t,r){for(var i=0,o=this._regExpRules.length;i0&&r.length>0)for(var i=0,o=this._brackets.length;i0)for(var i=0,o=this._brackets.length;i1){var o=void 0,a=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return a;var s=e.getLineContent(o);if(r.shouldIgnore(s)||/^\s+$/.test(s)||s===""){a=o;continue}return o}}return-1},n.prototype.getInheritIndentForLine=function(e,t,r){r===void 0&&(r=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var a=e.getLineContent(o);if(i.shouldIncrease(a)||i.shouldIndentNextLine(a))return{indentation:Tn(a),action:$n.Indent,line:o};if(i.shouldDecrease(a))return{indentation:Tn(a),action:null,line:o};if(o===1)return{indentation:Tn(e.getLineContent(o)),action:null,line:o};var s=o-1,l=i.getIndentMetadata(e.getLineContent(s));if(!(l&3)&&l&4){for(var u=0,c=s-1;c>0;c--)if(!i.shouldIndentNextLine(e.getLineContent(c))){u=c;break}return{indentation:Tn(e.getLineContent(u+1)),action:null,line:u+1}}if(r)return{indentation:Tn(e.getLineContent(o)),action:null,line:o};for(var c=o;c>0;c--){var d=e.getLineContent(c);if(i.shouldIncrease(d))return{indentation:Tn(d),action:$n.Indent,line:c};if(i.shouldIndentNextLine(d)){for(var u=0,f=c-1;f>0;f--)if(!i.shouldIndentNextLine(e.getLineContent(c))){u=f;break}return{indentation:Tn(e.getLineContent(u+1)),action:null,line:u+1}}else if(i.shouldDecrease(d))return{indentation:Tn(d),action:null,line:c}}return{indentation:Tn(e.getLineContent(1)),action:null,line:1}},n.prototype.getGoodIndentForLine=function(e,t,r,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var a=this.getInheritIndentForLine(e,r),s=e.getLineContent(r);if(a){var l=a.line;if(l!==void 0){var u=this._getOnEnterSupport(t),c=null;try{u&&(c=u.onEnter("",e.getLineContent(l),""))}catch(f){et(f)}if(c){var d=Tn(e.getLineContent(l));return c.removeText&&(d=d.substring(0,d.length-c.removeText)),c.indentAction===$n.Indent||c.indentAction===$n.IndentOutdent?d=i.shiftIndent(d):c.indentAction===$n.Outdent&&(d=i.unshiftIndent(d)),o.shouldDecrease(s)&&(d=i.unshiftIndent(d)),c.appendText&&(d+=c.appendText),Tn(d)}}return o.shouldDecrease(s)?a.action===$n.Indent?a.indentation:i.unshiftIndent(a.indentation):a.action===$n.Indent?i.shiftIndent(a.indentation):a.indentation}return null},n.prototype.getIndentForEnter=function(e,t,r,i){e.forceTokenization(t.startLineNumber);var o=e.getLineTokens(t.startLineNumber),a,s,l=Um(o,t.startColumn-1),u=l.getLineContent(),c=!1;if(l.firstCharOffset>0&&o.getLanguageId(0)!==l.languageId?(c=!0,a=u.substr(0,t.startColumn-1-l.firstCharOffset)):a=o.getLineContent().substring(0,t.startColumn-1),t.isEmpty())s=u.substr(t.startColumn-1-l.firstCharOffset);else{var d=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);s=d.getLineContent().substr(t.endColumn-1-l.firstCharOffset)}var f=this.getIndentRulesSupport(l.languageId);if(!f)return null;var h=a,p=Tn(a);if(!i&&!c){var v=this.getInheritIndentForLine(e,t.startLineNumber);f.shouldDecrease(a)&&v&&(p=v.indentation,v.action!==$n.Indent&&(p=r.unshiftIndent(p))),h=p+QL(QL(a," ")," ")}var m={getLineTokens:function(w){return e.getLineTokens(w)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(w,C){return e.getLanguageIdAtPosition(w,C)},getLineContent:function(w){return w===t.startLineNumber?h:e.getLineContent(w)}},g=Tn(o.getLineContent()),_=this.getInheritIndentForLine(m,t.startLineNumber+1);if(!_){var y=c?g:p;return{beforeEnter:y,afterEnter:y}}var b=c?g:_.indentation;return _.action===$n.Indent&&(b=r.shiftIndent(b)),f.shouldDecrease(s)&&(b=r.unshiftIndent(b)),{beforeEnter:c?g:p,afterEnter:b}},n.prototype.getIndentActionForType=function(e,t,r,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),a=this.getIndentRulesSupport(o.languageId);if(!a)return null;var s=o.getLineContent(),l=s.substr(0,t.startColumn-1-o.firstCharOffset),u;if(t.isEmpty())u=s.substr(t.startColumn-1-o.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);u=c.getLineContent().substr(t.endColumn-1-o.firstCharOffset)}if(!a.shouldDecrease(l+u)&&a.shouldDecrease(l+r+u)){var d=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!d)return null;var f=d.indentation;return d.action!==$n.Indent&&(f=i.unshiftIndent(f)),f}return null},n.prototype.getIndentMetadata=function(e,t){var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return!r||t<1||t>e.getLineCount()?null:r.getIndentMetadata(e.getLineContent(t))},n.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},n.prototype.getRawEnterActionAtPosition=function(e,t,r){var i=this.getEnterAction(e,new q(t,r,t,r));return i?i.enterAction:null},n.prototype.getEnterAction=function(e,t){var r=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var a=i.getLineContent(),s=a.substr(0,t.startColumn-1-i.firstCharOffset),l;if(t.isEmpty())l=a.substr(t.startColumn-1-i.firstCharOffset);else{var u=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);l=u.getLineContent().substr(t.endColumn-1-i.firstCharOffset)}var c=t.startLineNumber,d="";if(c>1&&i.firstCharOffset===0){var f=this.getScopedLineTokens(e,c-1);f.languageId===i.languageId&&(d=f.getLineContent())}var h=null;try{h=o.onEnter(d,s,l)}catch(p){et(p)}if(h)h.appendText||(h.indentAction===$n.Indent||h.indentAction===$n.IndentOutdent?h.appendText=" ":h.appendText="");else return null;return h.removeText&&(r=r.substring(0,r.length-h.removeText)),{enterAction:h,indentation:r}},n.prototype.getIndentationAtPosition=function(e,t,r){var i=e.getLineContent(t),o=Tn(i);return o.length>r-1&&(o=o.substring(0,r-1)),o},n.prototype.getScopedLineTokens=function(e,t,r){e.forceTokenization(t);var i=e.getLineTokens(t),o=typeof r>"u"?e.getLineMaxColumn(t)-1:r-1,a=Um(i,o);return a},n.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},n}(),Ut=new Twe,Pl=function(){function n(e,t,r,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=r,this.modifiedLength=i}return n.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},n.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},n}();function C3(n){return{getLength:function(){return n.length},getElementAtIndex:function(e){return n.charCodeAt(e)}}}function xwe(n,e,t){return new FN(C3(n),C3(e)).ComputeDiff(t)}var $d=function(){function n(){}return n.Assert=function(e,t){if(!e)throw new Error(t)},n}(),jd=function(){function n(){}return n.Copy=function(e,t,r,i,o){for(var a=0;a0||this.m_modifiedCount>0)&&this.m_changes.push(new Pl(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},n.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},n.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},n.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},n.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},n}(),FN=function(){function n(e,t,r){r===void 0&&(r=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=r,this.m_forwardHistory=[],this.m_reverseHistory=[]}return n.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},n.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},n.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},n.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},n.prototype._ComputeDiff=function(e,t,r,i,o){var a=[!1],s=this.ComputeDiffRecursive(e,t,r,i,a);return o?this.PrettifyChanges(s):s},n.prototype.ComputeDiffRecursive=function(e,t,r,i,o){for(o[0]=!1;e<=t&&r<=i&&this.ElementsAreEqual(e,r);)e++,r++;for(;t>=e&&i>=r&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||r>i){var a=void 0;return r<=i?($d.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new Pl(e,0,r,i-r+1)]):e<=t?($d.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[new Pl(e,t-e+1,r,0)]):($d.Assert(e===t+1,"originalStart should only be one more than originalEnd"),$d.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var s=[0],l=[0],u=this.ComputeRecursionPoint(e,t,r,i,s,l,o),c=s[0],d=l[0];if(u!==null)return u;if(!o[0]){var f=this.ComputeDiffRecursive(e,c,r,d,o),h=[];return o[0]?h=[new Pl(c+1,t-(c+1)+1,d+1,i-(d+1)+1)]:h=this.ComputeDiffRecursive(c+1,t,d+1,i,o),this.ConcatenateChanges(f,h)}return[new Pl(e,t-e+1,r,i-r+1)]},n.prototype.WALKTRACE=function(e,t,r,i,o,a,s,l,u,c,d,f,h,p,v,m,g,_){var y=null,b=null,w=new w3,C=t,S=r,L=h[0]-m[0]-i,E=Number.MIN_VALUE,T=this.m_forwardHistory.length-1,P;do P=L+e,P===C||P=0&&(u=this.m_forwardHistory[T],e=u[0],C=1,S=u.length-1);while(--T>=-1);if(y=w.getReverseChanges(),_[0]){var A=h[0]+1,D=m[0]+1;if(y!==null&&y.length>0){var M=y[y.length-1];A=Math.max(A,M.getOriginalEnd()),D=Math.max(D,M.getModifiedEnd())}b=[new Pl(A,f-A+1,D,v-D+1)]}else{w=new w3,C=a,S=s,L=h[0]-m[0]-l,E=Number.MAX_VALUE,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do P=L+o,P===C||P=c[P+1]?(d=c[P+1]-1,p=d-L-l,d>E&&w.MarkNextChange(),E=d+1,w.AddOriginalElement(d+1,p+1),L=P+1-o):(d=c[P-1],p=d-L-l,d>E&&w.MarkNextChange(),E=d,w.AddModifiedElement(d+1,p+1),L=P-1-o),T>=0&&(c=this.m_reverseHistory[T],o=c[0],C=1,S=c.length-1);while(--T>=-1);b=w.getChanges()}return this.ConcatenateChanges(y,b)},n.prototype.ComputeRecursionPoint=function(e,t,r,i,o,a,s){var l=0,u=0,c=0,d=0,f=0,h=0,p;e--,r--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v=t-e+(i-r),m=v+1,g=new Array(m),_=new Array(m),y=i-r,b=t-e,w=e-r,C=t-i,S=b-y,L=S%2===0;g[y]=e,_[b]=t,s[0]=!1;var E,T;for(p=1;p<=v/2+1;p++){var P=0,A=0;for(c=this.ClipDiagonalBound(y-p,p,y,m),d=this.ClipDiagonalBound(y+p,p,y,m),E=c;E<=d;E+=2){for(E===c||EP+A&&(P=l,A=u),!L&&Math.abs(E-b)<=p-1&&l>=_[E])return o[0]=l,a[0]=u,T<=_[E]&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,b,f,h,C,g,_,l,t,o,u,i,a,L,s):null}var D=(P-e+(A-r)-p)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(P,this.OriginalSequence,D))return s[0]=!0,o[0]=P,a[0]=A,D>0&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,b,f,h,C,g,_,l,t,o,u,i,a,L,s):(e++,r++,[new Pl(e,t-e+1,r,i-r+1)]);for(f=this.ClipDiagonalBound(b-p,p,b,m),h=this.ClipDiagonalBound(b+p,p,b,m),E=f;E<=h;E+=2){for(E===f||E=_[E+1]?l=_[E+1]-1:l=_[E-1],u=l-(E-b)-C,T=l;l>e&&u>r&&this.ElementsAreEqual(l,u);)l--,u--;if(_[E]=l,L&&Math.abs(E-y)<=p&&l<=g[E])return o[0]=l,a[0]=u,T>=g[E]&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,b,f,h,C,g,_,l,t,o,u,i,a,L,s):null}if(p<=Gu){var M=new Array(d-c+2);M[0]=y-c+1,jd.Copy(g,c,M,1,d-c+1),this.m_forwardHistory.push(M),M=new Array(h-f+2),M[0]=b-f+1,jd.Copy(_,f,M,1,h-f+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(y,c,d,w,b,f,h,C,g,_,l,t,o,u,i,a,L,s)},n.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=r.modifiedLength>0;r.originalStart+r.originalLength=0;t--){var r=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength)}for(var a=r.originalLength>0,s=r.modifiedLength>0,c=0,d=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength),f=1;;f++){var h=r.originalStart-f,p=r.modifiedStart-f;if(hd&&(d=v,c=f)}r.originalStart-=c,r.modifiedStart-=c}return e},n.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return typeof t=="string"&&/^\s*$/.test(t)},n.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1},n.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return typeof t=="string"&&/^\s*$/.test(t)},n.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1},n.prototype._boundaryScore=function(e,t,r,i){var o=this._OriginalRegionIsBoundary(e,t)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return o+a},n.prototype.ConcatenateChanges=function(e,t){var r=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],r)){var i=new Array(e.length+t.length-1);return jd.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],jd.Copy(t,1,i,e.length,t.length-1),i}else{var i=new Array(e.length+t.length);return jd.Copy(e,0,i,0,e.length),jd.Copy(t,0,i,e.length,t.length),i}},n.prototype.ChangesOverlap=function(e,t,r){if($d.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),$d.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){var i=e.originalStart,o=e.originalLength,a=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),r[0]=new Pl(i,o,a,s),!0}else return r[0]=null,!1},n.prototype.ClipDiagonalBound=function(e,t,r,i){if(e>=0&&e1&&v>1;){var m=f.charCodeAt(p-2),g=h.charCodeAt(v-2);if(m!==g)break;p--,v--}(p>1||v>1)&&this._pushTrimWhitespaceCharChange(o,a+1,1,p,s+1,1,v)}{for(var _=zd._getLastNonBlankColumn(f,1),y=zd._getLastNonBlankColumn(h,1),b=f.length+1,w=h.length+1;_255?255:n|0}function lc(n){return n<0?0:n>4294967295?4294967295:n|0}function Mwe(n){for(var e=n.length,t=new Uint32Array(e),r=0;r=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},n.prototype.changeValue=function(e,t){return e=lc(e),t=lc(t),this.values[e]===t?!1:(this.values[e]=t,e-1=r.length)return!1;var o=r.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},n.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},n.prototype.getAccumulatedValue=function(e){return e<0?0:(e=lc(e),this._getAccumulatedValue(e))},n.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var r=t;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},n.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,r=this.values.length-1,i=0,o=0,a=0;t<=r;)if(i=t+(r-t)/2|0,o=this.prefixSum[i],a=o-this.values[i],e=o)t=i+1;else break;return new kwe(i,e-a)},n}(),Fwe=function(){function n(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new BN(e),this._bustCache()}return n.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},n.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},n.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},n.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},n.prototype.getTotalValue=function(){return this._actual.getTotalValue()},n.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},n.prototype.getIndexOf=function(e){if(e=Math.floor(e),this._cache!==null){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)},n.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},n}(),bf=function(){function n(){this._actual=new kC(0)}return n.prototype.add=function(e){this._actual.set(e,1)},n.prototype.has=function(e){return this._actual.get(e)===1},n}(),Wwe=function(){function n(e){for(var t=0,r=0,i=0,o=e.length;it&&(t=l),s>r&&(r=s),u>r&&(r=u)}t++,r++;for(var c=new Pwe(r,t,0),i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)},n}(),oS=null;function Vwe(){return oS===null&&(oS=new Wwe([[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]])),oS}var fp=null;function Hwe(){if(fp===null){fp=new kC(0);for(var n=` <>'"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…`,e=0;ei);if(i>0){var u=t.charCodeAt(i-1),c=t.charCodeAt(a);(u===40&&c===41||u===91&&c===93||u===123&&c===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:t.substring(i,a+1)}},n.computeLinks=function(e,t){t===void 0&&(t=Vwe());for(var r=Hwe(),i=[],o=1,a=e.getLineCount();o<=a;o++){for(var s=e.getLineContent(o),l=s.length,u=0,c=0,d=0,f=1,h=!1,p=!1,v=!1;u=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},n.INSTANCE=new n,n}(),$U=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),zwe=function(n){$U(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),e.prototype.getValue=function(){return this.getText()},e.prototype.getLinesContent=function(){return this._lines.slice(0)},e.prototype.getLineCount=function(){return this._lines.length},e.prototype.getLineContent=function(t){return this._lines[t-1]},e.prototype.getWordAtPosition=function(t,r){var i=dL(t.column,cL(r),this._lines[t.lineNumber-1],0);return i?new q(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):null},e.prototype.getWordUntilPosition=function(t,r){var i=this.getWordAtPosition(t,r);return i?{word:this._lines[t.lineNumber-1].substring(i.startColumn-1,t.column-1),startColumn:i.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}},e.prototype.createWordIterator=function(t){var r=this,i,o=0,a,s=0,l=[],u=function(){if(s=r._lines.length?_f:(a=r._lines[o],l=r._wordenize(a,t),s=0,o+=1,u())};return{next:u}},e.prototype.getLineWords=function(t,r){for(var i=this._lines[t-1],o=this._wordenize(i,r),a=[],s=0,l=o;sthis._lines.length)r=this._lines.length,i=this._lines[r-1].length+1,o=!0;else{var a=this._lines[r-1].length+1;i<1?(i=1,o=!0):i>a&&(i=a,o=!0)}return o?{lineNumber:r,column:i}:t},e}(Bwe),Kwe=function(){function n(e){this._foreignModuleFactory=e,this._foreignModule=null}return n.prototype.computeDiff=function(e,t,r){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return Promise.resolve(null);var a=i.getLinesContent(),s=o.getLinesContent(),l=new Rwe(a,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0}),u=l.computeDiff(),c=u.length>0?!1:this._modelsAreIdentical(i,o);return Promise.resolve({identical:c,changes:u})},n.prototype._modelsAreIdentical=function(e,t){var r=e.getLineCount(),i=t.getLineCount();if(r!==i)return!1;for(var o=1;o<=r;o++){var a=e.getLineContent(o),s=t.getLineContent(o);if(a!==s)return!1}return!0},n.prototype.computeMoreMinimalEdits=function(e,t){var r=this._getModel(e);if(!r)return Promise.resolve(t);var i=[],o=void 0;t=LC(t,function(w,C){if(w.range&&C.range)return q.compareRangesUsingStarts(w.range,C.range);var S=w.range?0:1,L=C.range?0:1;return S-L});for(var a=0,s=t;an._diffLimit){i.push({range:u,text:c});continue}for(var h=xwe(f,c,!1),p=r.offsetAt(q.lift(u).getStartPosition()),v=0,m=h;v=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},aS=function(n,e){return function(t,r){e(t,r,n)}},L3=60*1e3,I3=5*60*1e3;function uc(n,e){var t=n.getModel(e);return!(!t||t.isTooLargeForSyncing())}var Xwe=function(n){FC(e,n);function e(t,r,i){var o=n.call(this)||this;return o._modelService=t,o._workerManager=o._register(new Qwe(o._modelService)),o._logService=i,o._register(rg.register("*",{provideLinks:function(a,s){return uc(o._modelService,a.uri)?o._workerManager.withWorker().then(function(l){return l.computeLinks(a.uri)}).then(function(l){return l&&{links:l}}):Promise.resolve({links:[]})}})),o._register(Ka.register("*",new Zwe(o._workerManager,r,o._modelService))),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.canComputeDiff=function(t,r){return uc(this._modelService,t)&&uc(this._modelService,r)},e.prototype.computeDiff=function(t,r,i){return this._workerManager.withWorker().then(function(o){return o.computeDiff(t,r,i)})},e.prototype.computeMoreMinimalEdits=function(t,r){var i=this;if($i(r)){if(!uc(this._modelService,t))return Promise.resolve(r);var o=VN.create(!0),a=this._workerManager.withWorker().then(function(s){return s.computeMoreMinimalEdits(t,r)});return a.finally(function(){return i._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),o.elapsed())}),a}else return Promise.resolve(void 0)},e.prototype.canNavigateValueSet=function(t){return uc(this._modelService,t)},e.prototype.navigateValueSet=function(t,r,i){return this._workerManager.withWorker().then(function(o){return o.navigateValueSet(t,r,i)})},e.prototype.canComputeWordRanges=function(t){return uc(this._modelService,t)},e.prototype.computeWordRanges=function(t,r){return this._workerManager.withWorker().then(function(i){return i.computeWordRanges(t,r)})},e=Ywe([aS(0,Gi),aS(1,jU),aS(2,WN)],e),e}($e),Zwe=function(){function n(e,t,r){this._workerManager=e,this._configurationService=t,this._modelService=r}return n.prototype.provideCompletionItems=function(e,t){var r=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions;if(r&&uc(this._modelService,e.uri))return this._workerManager.withWorker().then(function(i){return i.textualSuggest(e.uri,t)})},n}(),Qwe=function(n){FC(e,n);function e(t){var r=n.call(this)||this;r._modelService=t,r._editorWorkerClient=null;var i=r._register(new Hg);return i.cancelAndSet(function(){return r._checkStopIdleWorker()},Math.round(I3/2)),r._register(r._modelService.onModelRemoved(function(o){return r._checkStopEmptyWorker()})),r}return e.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),n.prototype.dispose.call(this)},e.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var t=this._modelService.getModels();t.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},e.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var t=new Date().getTime()-this._lastWorkerUsedTime;t>I3&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},e.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new KU(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},e}($e),Jwe=function(n){FC(e,n);function e(t,r,i){var o=n.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=r,!i){var a=new Hg;a.cancelAndSet(function(){return o._checkStopModelSync()},Math.round(L3/2)),o._register(a)}return o}return e.prototype.dispose=function(){for(var t in this._syncedModels)Ne(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),n.prototype.dispose.call(this)},e.prototype.esureSyncedResources=function(t){for(var r=0,i=t;rL3&&r.push(i)}for(var a=0,s=r;a>>1,this._text=t}return n.prototype.equals=function(e){return e instanceof n?this.slicedEquals(e,0,this._tokensCount):!1},n.prototype.slicedEquals=function(e,t,r){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(r<<1),a=i;a0?this._tokens[e-1<<1]:0},n.prototype.getLanguageId=function(e){var t=this._tokens[(e<<1)+1];return fa.getLanguageId(t)},n.prototype.getStandardTokenType=function(e){var t=this._tokens[(e<<1)+1];return fa.getTokenType(t)},n.prototype.getForeground=function(e){var t=this._tokens[(e<<1)+1];return fa.getForeground(t)},n.prototype.getClassName=function(e){var t=this._tokens[(e<<1)+1];return fa.getClassNameFromMetadata(t)},n.prototype.getInlineStyle=function(e,t){var r=this._tokens[(e<<1)+1];return fa.getInlineStyleFromMetadata(r,t)},n.prototype.getEndOffset=function(e){return this._tokens[e<<1]},n.prototype.findTokenIndexAtOffset=function(e){return n.findIndexInTokensArray(this._tokens,e)},n.prototype.inflate=function(){return this},n.prototype.sliceAndInflate=function(e,t,r){return new rSe(this,e,t,r)},n.convertToEndOffset=function(e,t){for(var r=e.length>>>1,i=r-1,o=0;o>>1)-1;rt&&(i=o)}return r},n}(),rSe=function(){function n(e,t,r,i){this._source=e,this._startOffset=t,this._endOffset=r,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,a=e.getCount();o=r)break;this._tokensCount++}}return n.prototype.equals=function(e){return e instanceof n?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1},n.prototype.getCount=function(){return this._tokensCount},n.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},n.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},n.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},n.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},n.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},n}(),og;typeof TextDecoder<"u"?og=function(n){return new iSe(n)}:og=function(n){return new oSe};var iSe=function(){function n(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return n.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},n.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},n.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},n.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},n.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(t===0||Mi(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},n.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},n.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(var r=0;rt)&&!(c.isEmpty()&&(u.type===0||u.type===3))){var d=c.startLineNumber===t?c.startColumn:r,f=c.endLineNumber===t?c.endColumn:i;o[a++]=new n(d,f,u.inlineClassName,u.type)}}return o},n.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},n}(),x3=function(){function n(e,t,r){this.startOffset=e,this.endOffset=t,this.className=r}return n}(),aSe=function(){function n(){this.stopOffsets=[],this.classNames=[],this.count=0}return n.prototype.consumeLowerThan=function(e,t,r){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(r,0,e),this.classNames.splice(r,0,t);break}this.count++},n}(),sSe=function(){function n(){}return n.normalize=function(e,t){if(t.length===0)return[];for(var r=[],i=new aSe,o=0,a=0,s=t.length;a1){var f=e.charCodeAt(u-2);Mi(f)&&u--}if(c>1){var f=e.charCodeAt(c-2);Mi(f)&&c--}var h=u-1,p=c-2;o=i.consumeLowerThan(h,o,r),i.count===0&&(o=h),i.insert(p,d)}return i.consumeLowerThan(1073741824,o,r),r},n}(),Wi=function(){function n(e,t){this.endIndex=e,this.type=t}return n}(),kh=function(){function n(e,t,r,i,o,a,s,l,u,c,d,f,h,p,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=r,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=a,this.fauxIndentLength=s,this.lineTokens=l,this.lineDecorations=u,this.tabSize=c,this.spaceWidth=d,this.stopRenderingLineAfter=f,this.renderWhitespace=h==="all"?2:h==="boundary"?1:0,this.renderControlCharacters=p,this.fontLigatures=v}return n.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&ag.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},n}(),$l=function(){function n(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return n.getPartIndex=function(e){return(e&4294901760)>>>16},n.getCharIndex=function(e){return(e&65535)>>>0},n.prototype.setPartData=function(e,t,r,i){var o=(t<<16|r<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+r},n.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},n.prototype.charOffsetToPartData=function(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},n.prototype.partDataToCharOffset=function(e,t,r){if(this.length===0)return 0;for(var i=(e<<16|r<<0)>>>0,o=0,a=this.length-1;o+1>>1,l=this._data[s];if(l===i)return s;l>i?a=s:o=s}if(o===a)return o;var u=this._data[o],c=this._data[a];if(u===i)return o;if(c===i)return a;var d=n.getPartIndex(u),f=n.getCharIndex(u),h=n.getPartIndex(c),p;d!==h?p=t:p=n.getCharIndex(c);var v=r-f,m=p-r;return v<=m?o:a},n}(),GU=function(){function n(e,t,r){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=r}return n}();function HN(n,e){if(n.lineContent.length===0){var t=0,r=" ";if(n.lineDecorations.length>0){for(var i=[],o=0,a=n.lineDecorations.length;o')}return e.appendASCIIString(r),new GU(new $l(0,0),!1,t)}return vSe(cSe(n),e)}var lSe=function(){function n(e,t,r,i){this.characterMapping=e,this.html=t,this.containsRTL=r,this.containsForeignElements=i}return n}();function BC(n){var e=og(1e4),t=HN(n,e);return new lSe(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}var uSe=function(){function n(e,t,r,i,o,a,s,l,u,c,d,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=r,this.len=i,this.isOverflowing=o,this.parts=a,this.containsForeignElements=s,this.tabSize=l,this.containsRTL=u,this.spaceWidth=c,this.renderWhitespace=d,this.renderControlCharacters=f}return n}();function cSe(n){var e=n.useMonospaceOptimizations,t=n.lineContent,r,i;n.stopRenderingLineAfter!==-1&&n.stopRenderingLineAfter0){for(var s=0,l=n.lineDecorations.length;s0&&(r[i++]=new Wi(e,""));for(var o=0,a=n.getCount();o=t){r[i++]=new Wi(t,l);break}r[i++]=new Wi(s,l)}}return r}function fSe(n,e,t){var r=0,i=[],o=0;if(t)for(var a=0,s=e.length;a=50&&(i[o++]=new Wi(d+1,c),f=d+1,d=-1);f!==u&&(i[o++]=new Wi(u,c))}else i[o++]=l;r=u}else for(var a=0,s=e.length;a50){for(var c=l.type,v=Math.ceil(p/50),h=1;hv)b=!0;else if(_===9)b=!0;else if(_===32)if(s)if(y)b=!0;else{var w=g+1=o)&&(l[u++]=new Wi(g,"vs-whitespace"),m=m%o):(g===f||b&&g>i)&&(l[u++]=new Wi(g,d),m=m%o),_===9?m=o:Cu(_)?m+=2:m++,y=b,g===f&&(c++,c0?n.charCodeAt(e-1):0,L=e>1?n.charCodeAt(e-2):0,E=S===32&&L!==32&&L!==9;E||(C=!0)}else C=!0;return l[u++]=new Wi(e,C?"vs-whitespace":d),l}function pSe(n,e,t,r){r.sort(ag.compare);for(var i=sSe.normalize(n,r),o=i.length,a=0,s=[],l=0,u=0,c=0,d=t.length;cu&&(u=v.startOffset,s[l++]=new Wi(u,p)),v.endOffset+1<=h)u=v.endOffset+1,s[l++]=new Wi(u,p+" "+v.className),a++;else{u=h,s[l++]=new Wi(u,p+" "+v.className);break}}h>u&&(u=h,s[l++]=new Wi(u,p))}var m=t[t.length-1].endIndex;if(a");for(var b=0,w=l.length;b=0;if(g=0,e.appendASCIIString('0&&(!r||M>1?e.write1(8594):e.write1(65515),M--);M>0;)e.write1(160),M--}else e.write1(183);g++}_=T}else{var T=0;for(c&&e.appendASCIIString(' dir="ltr"'),e.appendASCII(62);v0;)e.write1(160),T++,M--;break;case 32:e.write1(160),T++;break;case 60:e.appendASCIIString("<"),T++;break;case 62:e.appendASCIIString(">"),T++;break;case 38:e.appendASCIIString("&"),T++;break;case 0:e.appendASCIIString("�"),T++;break;case 65279:case 8232:e.write1(65533),T++;break;default:Cu(D)&&m++,h&&D<32?(e.write1(9216+D),T++):(e.write1(D),T++)}g++}_=T}e.appendASCIIString("")}return p.setPartData(a,l.length-1,g,y),s&&e.appendASCIIString(""),e.appendASCIIString(""),new GU(p,c,i)}var O3=function(){function n(e,t,r,i){this.top=e|0,this.left=t|0,this.width=r|0,this.height=i|0}return n}(),gSe=function(){function n(e,t){this.tabSize=e,this.data=t}return n}(),UN=function(){function n(e,t,r,i,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=r,this.maxColumn=i,this.tokens=o}return n}(),Ea=function(){function n(e,t,r,i,o,a,s,l,u){this.minColumn=e,this.maxColumn=t,this.content=r,this.continuesWithWrappedLine=i,this.isBasicASCII=n.isBasicASCII(r,a),this.containsRTL=n.containsRTL(r,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=l,this.tabSize=u}return n.isBasicASCII=function(e,t){return t?TU(e):!0},n.containsRTL=function(e,t,r){return!t&&r?SN(e):!1},n}(),V_=function(){function n(e,t,r){this.range=e,this.inlineClassName=t,this.type=r}return n}(),mSe=function(){function n(e,t){this.range=e,this.options=t}return n}();function _Se(n){return Array.isArray(n)}function ySe(n){return!_Se(n)}function qU(n){return typeof n=="string"}function N3(n){return!qU(n)}function uf(n){return!n}function du(n,e){return n.ignoreCase&&e?e.toLowerCase():e}function A3(n){return n.replace(/[&<>'"_]/g,"-")}function bSe(n,e){console.log(n.languageId+": "+e)}function cn(n,e){return new Error(n.languageId+": "+e)}function Yl(n,e,t,r,i){var o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,a=null;return e.replace(o,function(s,l,u,c,d,f,h,p,v){return uf(u)?uf(c)?!uf(d)&&d0;){var r=n.tokenizer[t];if(r)return r;var i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return null}function CSe(n,e){for(var t=e;t&&t.length>0;){var r=n.stateNames[t];if(r)return!0;var i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return!1}var YU=5,aI=function(){function n(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return n.create=function(e,t){return this._INSTANCE.create(e,t)},n.prototype.create=function(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new H_(e,t);var r=H_.getStackElementId(e);r.length>0&&(r+="|"),r+=t;var i=this._entries[r];return i||(i=new H_(e,t),this._entries[r]=i,i)},n._INSTANCE=new n(YU),n}(),H_=function(){function n(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return n.getStackElementId=function(e){for(var t="";e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},n._equals=function(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},n.prototype.equals=function(e){return n._equals(this,e)},n.prototype.push=function(e){return aI.create(this,e)},n.prototype.pop=function(){return this.parent},n.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},n.prototype.switchTo=function(e){return aI.create(this.parent,e)},n}(),sS=function(){function n(e,t){this.modeId=e,this.state=t}return n.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},n.prototype.clone=function(){var e=this.state.clone();return e===this.state?this:new n(this.modeId,this.state)},n}(),cf=function(){function n(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return n.create=function(e,t){return this._INSTANCE.create(e,t)},n.prototype.create=function(e,t){if(t!==null)return new lS(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new lS(e,t);var r=H_.getStackElementId(e),i=this._entries[r];return i||(i=new lS(e,null),this._entries[r]=i,i)},n._INSTANCE=new n(YU),n}(),lS=function(){function n(e,t){this.stack=e,this.embeddedModeData=t}return n.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:cf.create(this.stack,this.embeddedModeData)},n.prototype.equals=function(e){return!(e instanceof n)||!this.stack.equals(e.stack)?!1:this.embeddedModeData===null&&e.embeddedModeData===null?!0:this.embeddedModeData===null||e.embeddedModeData===null?!1:this.embeddedModeData.equals(e.embeddedModeData)},n}(),D3=Object.hasOwnProperty,wSe=function(){function n(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return n.prototype.enterMode=function(e,t){this._language=t},n.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new IC(e,t,this._language)))},n.prototype.nestedModeTokenize=function(e,t,r){var i=t.modeId,o=t.state,a=Dn.get(i);if(!a)return this.enterMode(r,i),this.emit(r,""),o;var s=a.tokenize(e,o,r);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},n.prototype.finalize=function(e){return new fN(this._tokens,e)},n}(),SSe=function(){function n(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return n.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},n.prototype.emit=function(e,t){var r=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==r&&(this._lastTokenMetadata=r,this._tokens.push(e),this._tokens.push(r))},n._merge=function(e,t,r){var i=e!==null?e.length:0,o=t.length,a=r!==null?r.length:0;if(i===0&&o===0&&a===0)return new Uint32Array(0);if(i===0&&o===0)return r;if(o===0&&a===0)return e;var s=new Uint32Array(i+o+a);e!==null&&s.set(e);for(var l=0;l0&&i.nestedModeTokenize(s,t.embeddedModeData,r);var l=e.substring(o);return this._myTokenize(l,t,r+o,i)},n.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},n.prototype._myTokenize=function(e,t,r,i){i.enterMode(r,this._modeId);for(var o=e.length,a=t.embeddedModeData,s=t.stack,l=0,u=null,c=!0;c||l=o)break;c=!1;var w=this._lexer.tokenizer[p];if(!w&&(w=$m(this._lexer,p),!w))throw cn(this._lexer,"tokenizer state is not defined: "+p);var C=e.substr(l);for(var S in w)if(D3.call(w,S)){var L=w[S];if((l===0||!L.matchOnlyAtLineStart)&&(v=C.match(L.regex),v)){m=v[0],g=L.action;break}}}if(v||(v=[""],m=""),g||(l=this._lexer.maxStack)throw cn(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(p)}else if(g.next==="@pop"){if(s.depth<=1)throw cn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(_));s=s.pop()}else if(g.next==="@popall")s=s.popall();else{var T=Yl(this._lexer,g.next,m,v,p);if(T[0]==="@"&&(T=T.substr(1)),$m(this._lexer,T))s=s.push(T);else throw cn(this._lexer,"trying to set a next state '"+T+"' that is undefined in rule: "+this._safeRuleName(_))}}g.log&&typeof g.log=="string"&&bSe(this._lexer,this._lexer.languageId+": "+Yl(this._lexer,g.log,m,v,p))}if(E===null)throw cn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(_));if(Array.isArray(E)){if(u&&u.groups.length>0)throw cn(this._lexer,"groups cannot be nested: "+this._safeRuleName(_));if(v.length!==E.length+1)throw cn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(_));for(var P=0,A=1;A=0&&p()})})},n.colorizeLine=function(e,t,r,i,o){o===void 0&&(o=4);var a=Ea.isBasicASCII(e,t),s=Ea.containsRTL(e,a,r),l=BC(new kh(!1,!0,e,!1,a,s,0,i,[],o,0,-1,"none",!1,!1));return l.html},n.colorizeModelLine=function(e,t,r){r===void 0&&(r=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t),a=o.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),a,r)},n}();function uS(n,e,t){return new Promise(function(r,i){var o=function(){var a=ISe(n,e,t);if(t instanceof XU){var s=t.getLoadStatus();if(s.loaded===!1){s.promise.then(o,i);return}}r(a)};o()})}function R3(n,e){var t=[],r=16793600,i=new Uint32Array(2);i[0]=0,i[1]=r;for(var o=0,a=n.length;o")}return t.join("")}function ISe(n,e,t){for(var r=[],i=t.getInitialState(),o=0,a=n.length;o"),i=l.endState}return r.join("")}var sg;(function(n){n[n.Ignore=0]="Ignore",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error"})(sg||(sg={}));(function(n){var e="error",t="warning",r="warn",i="info",o=Object.create(null);o[n.Error]=x("sev.error","Error"),o[n.Warning]=x("sev.warning","Warning"),o[n.Info]=x("sev.info","Info");function a(s){return s?za(e,s)?n.Error:za(t,s)||za(r,s)?n.Warning:za(i,s)?n.Info:n.Ignore:n.Ignore}n.fromValue=a})(sg||(sg={}));const zs=sg;function cs(n){return n&&typeof n.getEditorType=="function"?n.getEditorType()===AC.ICodeEditor:!1}var TSe=function(){function n(){this.data={}}return n.prototype.add=function(e,t){Vf(as(e)),Vf(si(t)),Vf(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},n.prototype.as=function(e){return this.data[e]||null},n}(),Ti=new TSe,jN={JSONContribution:"base.contributions.json"};function xSe(n){return n.length>0&&n.charAt(n.length-1)==="#"?n.substring(0,n.length-1):n}var OSe=function(){function n(){this._onDidChangeSchema=new ae,this.schemasById={}}return n.prototype.registerSchema=function(e,t){this.schemasById[xSe(e)]=t,this._onDidChangeSchema.fire(e)},n.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},n}(),NSe=new OSe;Ti.add(jN.JSONContribution,NSe);var Fh={Configuration:"base.contributions.configuration"},jm={properties:{},patternProperties:{}},cS={properties:{},patternProperties:{}},dS={properties:{},patternProperties:{}},fS={properties:{},patternProperties:{}},hS={properties:{},patternProperties:{}},pS="vscode://schemas/settings/editor",P3=Ti.as(jN.JSONContribution),ASe=function(){function n(){this.overrideIdentifiers=[],this._onDidSchemaChange=new ae,this._onDidUpdateConfiguration=new ae,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:x("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),P3.registerSchema(pS,this.editorConfigurationSchema)}return n.prototype.registerConfiguration=function(e,t){t===void 0&&(t=!0),this.registerConfigurations([e],t)},n.prototype.registerConfigurations=function(e,t){var r=this;t===void 0&&(t=!0);var i=[];e.forEach(function(o){i.push.apply(i,r.validateAndRegisterProperties(o,t)),r.configurationContributors.push(o),r.registerJSONConfiguration(o),r.updateSchemaForOverrideSettingsConfiguration(o)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},n.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},n.prototype.validateAndRegisterProperties=function(e,t,r,i){t===void 0&&(t=!0),r===void 0&&(r=3),i===void 0&&(i=!1),r=au(e.scope)?r:e.scope,i=e.overridable||i;var o=[],a=e.properties;if(a)for(var s in a){var l=void 0;if(t&&(l=MSe(s))){console.warn(l),delete a[s];continue}var u=a[s],c=u.default;if(Vi(c)&&(u.default=PSe(u.type)),i&&(u.overridable=!0),zN.test(s)?u.scope=void 0:u.scope=au(u.scope)?r:u.scope,a[s].hasOwnProperty("included")&&!a[s].included){this.excludedConfigurationProperties[s]=a[s],delete a[s];continue}else this.configurationProperties[s]=a[s];o.push(s)}var d=e.allOf;if(d)for(var f=0,h=d;f"u"||e._subsetEquals(this._rawOptions,t)||(this._rawOptions=Tr(this._rawOptions,t||{}),this._validatedOptions=QF.validate(this._rawOptions,Je),this._recomputeOptions())},e.prototype.setIsDominatedByLongLines=function(t){this._isDominatedByLongLines=t,this._recomputeOptions()},e.prototype.setMaxLineNumber=function(t){var r=e._digitCount(t);this._lineNumbersDigitCount!==r&&(this._lineNumbersDigitCount=r,this._recomputeOptions())},e._digitCount=function(t){for(var r=0;t;)t=Math.floor(t/10),r++;return r||1},e}($e),WSe=Ti.as(Fh.Configuration),JU={id:"editor",order:5,type:"object",title:x("editorConfigurationTitle","Editor"),overridable:!0,scope:4,properties:{"editor.fontFamily":{type:"string",default:hp.fontFamily,description:x("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:hp.fontWeight,description:x("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:hp.fontSize,description:x("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:hp.lineHeight,description:x("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:hp.letterSpacing,description:x("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[x("lineNumbers.off","Line numbers are not rendered."),x("lineNumbers.on","Line numbers are rendered as absolute number."),x("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),x("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:x("lineNumbers","Controls the display of line numbers.")},"editor.renderFinalNewline":{type:"boolean",default:Je.viewInfo.renderFinalNewline,description:x("renderFinalNewline","Render last line number when the file ends with a newline.")},"editor.rulers":{type:"array",items:{type:"number"},default:Je.viewInfo.rulers,description:x("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.")},"editor.wordSeparators":{type:"string",default:Je.wordSeparators,description:x("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:pp.tabSize,minimum:1,markdownDescription:x("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:pp.insertSpaces,markdownDescription:x("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:pp.detectIndentation,markdownDescription:x("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:Je.viewInfo.roundedSelection,description:x("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:Je.viewInfo.scrollBeyondLastLine,description:x("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:Je.viewInfo.scrollBeyondLastColumn,description:x("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:Je.viewInfo.smoothScrolling,description:x("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:Je.viewInfo.minimap.enabled,description:x("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Je.viewInfo.minimap.side,description:x("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Je.viewInfo.minimap.showSlider,description:x("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:Je.viewInfo.minimap.renderCharacters,description:x("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Je.viewInfo.minimap.maxColumn,description:x("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:Je.contribInfo.hover.enabled,description:x("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Je.contribInfo.hover.delay,description:x("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Je.contribInfo.hover.sticky,description:x("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Je.contribInfo.find.seedSearchStringFromSelection,description:x("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:Je.contribInfo.find.autoFindInSelection,description:x("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:Je.contribInfo.find.globalFindClipboard,description:x("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Vt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:x("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.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[x("wordWrap.off","Lines will never wrap."),x("wordWrap.on","Lines will wrap at the viewport width."),x({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),x({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#`.")],default:Je.wordWrap,description:x({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.")},"editor.wordWrapColumn":{type:"integer",default:Je.wordWrapColumn,minimum:1,markdownDescription:x({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`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[x("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),x("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),x("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),x("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:x("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:Je.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:x("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.fastScrollSensitivity":{type:"number",default:Je.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:x("fastScrollSensitivity","Scrolling speed mulitiplier when pressing `Alt`.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[x("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),x("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:x({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).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:Je.multiCursorMergeOverlapping,description:x("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:x("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:x("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:x("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Je.contribInfo.quickSuggestions,description:x("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:Je.contribInfo.quickSuggestionsDelay,minimum:0,description:x("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:Je.contribInfo.parameterHints.enabled,description:x("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Je.contribInfo.parameterHints.cycle,description:x("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",x("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),x("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:Je.autoClosingBrackets,description:x("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",x("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),x("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:Je.autoClosingQuotes,description:x("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[x("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),x("editor.autoSurround.brackets","Surround with brackets but not quotes."),x("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:Je.autoSurround,description:x("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:Je.contribInfo.formatOnType,description:x("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:Je.contribInfo.formatOnPaste,description:x("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.")},"editor.autoIndent":{type:"boolean",default:Je.autoIndent,description:x("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:Je.contribInfo.suggestOnTriggerCharacters,description:x("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:Je.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",x("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:x("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:Je.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:x("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.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[x("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),x("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),x("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),x("snippetSuggestions.none","Do not show snippet suggestions.")],default:Je.contribInfo.suggest.snippets,description:x("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:Je.emptySelectionClipboard,description:x("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:Je.copyWithSyntaxHighlighting,description:x("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:Je.contribInfo.wordBasedSuggestions,description:x("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[x("suggestSelection.first","Always select the first suggestion."),x("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),x("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:x("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:x("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:x("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[x("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),x("tabCompletion.off","Disable tab completions."),x("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:x("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:x("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:x("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:x("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:x("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Je.contribInfo.suggest.showIcons,description:x("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Je.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:x("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0},markdownDescription:x("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:x("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:Je.contribInfo.gotoLocation.multiple,enumDescriptions:[x("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),x("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),x("editor.gotoLocation.multiple.goto","Go to the primary result and ignore others")]},"editor.selectionHighlight":{type:"boolean",default:Je.contribInfo.selectionHighlight,description:x("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:Je.contribInfo.occurrencesHighlight,description:x("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:x("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:Je.viewInfo.overviewRulerBorder,description:x("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:Dbe(Je.viewInfo.cursorBlinking),description:x("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:Je.viewInfo.mouseWheelZoom,markdownDescription:x("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:Je.viewInfo.cursorSmoothCaretAnimation,description:x("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:Rbe(Je.viewInfo.cursorStyle),description:x("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:Je.viewInfo.cursorWidth,markdownDescription:x("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:Je.viewInfo.fontLigatures,description:x("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:Je.viewInfo.hideCursorInOverviewRuler,description:x("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",x("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:Je.viewInfo.renderWhitespace,description:x("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:Je.viewInfo.renderControlCharacters,description:x("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:Je.viewInfo.renderIndentGuides,description:x("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:Je.viewInfo.highlightActiveIndentGuide,description:x("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",x("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:Je.viewInfo.renderLineHighlight,description:x("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:Je.contribInfo.codeLens,description:x("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:Je.contribInfo.folding,description:x("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:Je.contribInfo.foldingStrategy,markdownDescription:x("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:Je.contribInfo.showFoldingControls,description:x("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:Je.contribInfo.matchBrackets,description:x("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:Je.viewInfo.glyphMargin,description:x("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:Je.useTabStops,description:x("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:pp.trimAutoWhitespace,description:x("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:x("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:Je.dragAndDrop,description:x("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[x("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),x("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),x("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:Je.accessibilitySupport,description:x("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:Je.showUnused,description:x("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:Je.contribInfo.links,description:x("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:Je.contribInfo.colorDecorators,description:x("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:Je.contribInfo.lightbulbEnabled,description:x("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:x("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:x("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:x("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:Je.contribInfo.codeActionsOnSave,description:x("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:Je.contribInfo.codeActionsOnSaveTimeout,description:x("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:Je.contribInfo.selectionClipboard,description:x("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:vs},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:x("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:x("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:pp.largeFileOptimizations,description:x("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:x("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},zm=null;function e9(){return zm===null&&(zm=Object.create(null),Object.keys(JU.properties).forEach(function(n){zm[n]=!0})),zm}function VSe(n){var e=e9();return e["editor."+n]||!1}function HSe(n){var e=e9();return e["diffEditor."+n]||!1}WSe.registerConfiguration(JU);var Sr=function(){function n(){}return n.insert=function(e,t){return{range:new q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},n.delete=function(e){return{range:e,text:null}},n.replace=function(e,t){return{range:e,text:t}},n.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},n}(),di=nn("configurationService");function USe(n,e){var t=Object.create(null);for(var r in n)KN(t,r,n[r],e);return t}function KN(n,e,t,r){for(var i=e.split("."),o=i.pop(),a=n,s=0;s"u"?t:o}function zSe(){var n=Ti.as(Fh.Configuration).getConfigurationProperties();return Object.keys(n)}function KSe(){var n=Object.create(null),e=Ti.as(Fh.Configuration).getConfigurationProperties();for(var t in e){var r=e[t].default;KN(n,t,r,function(i){return console.error("Conflict in default settings: "+i)})}return n}function GSe(n){return n.substring(1,n.length-1)}function qSe(n,e,t){var r=n.inspect(e),i=n.inspect(t);return typeof r.user<"u"||typeof r.workspace<"u"||typeof r.workspaceFolder<"u"?r.value:typeof i.user<"u"||typeof i.workspace<"u"||typeof i.workspaceFolder<"u"?i.value:r.default}var YSe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Cf=function(){function n(e,t,r){e===void 0&&(e={}),t===void 0&&(t=[]),r===void 0&&(r=[]),this._contents=e,this._keys=t,this._overrides=r,this.isFrozen=!1}return Object.defineProperty(n.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),n.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},n.prototype.getValue=function(e){return e?jSe(this.contents,e):this.contents},n.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;for(var r={},i=0,o=K7(Object.keys(this.contents).concat(Object.keys(t)));i5e3&&i._leaveChordMode()},500)},e.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},e.prototype._dispatch=function(t,r){return this._doDispatch(this.resolveKeyboardEvent(t),r)},e.prototype._doDispatch=function(t,r){var i=this,o=!1;if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var a=t.getDispatchParts()[0];if(a===null)return o;var s=this._contextKeyService.getContext(r),l=this._currentChord?this._currentChord.keypress:null,u=t.getLabel(),c=this._getResolver().resolve(s,l,a);return c&&c.enterChord?(o=!0,this._enterChordMode(a,u),o):(this._statusService&&this._currentChord&&(!c||!c.commandId)&&(this._statusService.setStatusMessage(x("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,u),10*1e3),o=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(o=!0),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,function(d){return i._notificationService.warn(d)}):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,function(d){return i._notificationService.warn(d)}),this._telemetryService.publicLog("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),o)},e.prototype.mightProducePrintableCharacter=function(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30},e}($e),e1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),dt=function(){function n(){}return n.has=function(e){return new id(e)},n.equals=function(e,t){return new Yy(e,t)},n.regex=function(e,t){return new M3(e,t)},n.not=function(e){return new Xy(e)},n.and=function(){for(var e=[],t=0;t=0){var r=e.split("!=");return new n1e(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("==")>=0){var r=e.split("==");return new Yy(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("=~")>=0){var r=e.split("=~");return new M3(r[0].trim(),this._deserializeRegexValue(r[1],t))}return/^\!\s*/.test(e)?new Xy(e.substr(1).trim()):new id(e)},n._deserializeValue=function(e,t){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var r=/^'([^']*)'$/.exec(e);return r?r[1].trim():e},n._deserializeRegexValue=function(e,t){if(SU(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var r=e.indexOf("/"),i=e.lastIndexOf("/");if(r===i||r<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(r+1,i),a=e[i+1]==="i"?"i":"";try{return new RegExp(o,a)}catch(s){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+s);return console.warn("bad regexp-value '"+e+"', parse error: "+s),null}},n}();function t1e(n,e){var t=n.getType(),r=e.getType();if(t!==r)return t-r;switch(t){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var id=function(){function n(e){this.key=e}return n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),Yy=function(){function n(e,t){this.key=e,this.value=t}return n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.normalize=function(){return typeof this.value=="boolean"?this.value?new id(this.key):new Xy(this.key):this},n.prototype.keys=function(){return[this.key]},n}(),n1e=function(){function n(e,t){this.key=e,this.value=t}return n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.normalize=function(){return typeof this.value=="boolean"?this.value?new Xy(this.key):new id(this.key):this},n.prototype.keys=function(){return[this.key]},n}(),Xy=function(){function n(e){this.key=e}return n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),M3=function(){function n(e,t){this.key=e,this.regexp=t}return n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return tr?1:0},n.prototype.equals=function(e){if(e instanceof n){var t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&t===r}return!1},n.prototype.evaluate=function(e){var t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),lg=function(){function n(e){this.expr=n._normalizeArr(e)}return n.prototype.getType=function(){return 5},n.prototype.equals=function(e){if(e instanceof n){if(this.expr.length!==e.expr.length)return!1;for(var t=0,r=this.expr.length;t=0;d--)this._isTargetedForRemoval(e[d],l,u,s,c)&&e.splice(d,1)}return e.concat(r)},n.prototype._addKeyPress=function(e,t){var r=this._map.get(e);if(typeof r>"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(var i=r.length-1;i>=0;i--){var o=r[i];if(o.command!==t.command){var a=o.keypressParts.length>1,s=t.keypressParts.length>1;a&&s&&o.keypressParts[1]!==t.keypressParts[1]||n.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}}r.push(t),this._addToLookupMap(t)},n.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},n.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(var r=0,i=t.length;r"u"||t.length===0?null:t[t.length-1]},n.prototype.resolve=function(e,t,r){var i=null;if(t!==null){var o=this._map.get(t);if(typeof o>"u")return null;i=[];for(var a=0,s=o.length;a"u")return null;i=o}var u=this._findCommand(e,i);return u?t===null&&u.keypressParts.length>1&&u.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},n.prototype._findCommand=function(e,t){for(var r=t.length-1;r>=0;r--){var i=t[r];if(n.contextMatchesRules(e,i.when))return i}return null},n.contextMatchesRules=function(e,t){return t?t.evaluate(e):!0},n}(),i1e=function(){function n(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return n.bindToCurrentPlatform=function(e){if(Ha===1){if(e&&e.win)return e.win}else if(Ha===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},n.prototype.registerKeybindingRule=function(e){var t=n.bindToCurrentPlatform(e);if(t&&t.primary){var r=Dy(t.primary,Ha);r&&this._registerDefaultKeybinding(r,e.id,void 0,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(var i=0,o=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},n.prototype._assertNoCtrlAlt=function(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&n._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)},n.prototype._registerDefaultKeybinding=function(e,t,r,i,o,a){Ha===1&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:r,when:a,weight1:i,weight2:o}),this._cachedMergedKeybindings=null},n.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(a1e)),this._cachedMergedKeybindings.slice(0)},n}(),ea=new i1e,o1e={EditorModes:"platform.keybindingsRegistry"};Ti.add(o1e.EditorModes,ea);function a1e(n,e){return n.weight1!==e.weight1?n.weight1-e.weight1:n.commande.command?1:n.weight2-e.weight2}var k3=function(){function n(e,t,r,i,o){this.resolvedKeybinding=e,this.keypressParts=e?s1e(e.getDispatchParts()):[],this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=r,this.when=i,this.isDefault=o}return n}();function s1e(n){for(var e=[],t=0,r=n.length;t1},e.prototype.getParts=function(){var t=this;return this._parts.map(function(r){return t._getPart(r)})},e.prototype._getPart=function(t){return new Qbe(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,this._getLabel(t),this._getAriaLabel(t))},e.prototype.getDispatchParts=function(){var t=this;return this._parts.map(function(r){return t._getDispatchPart(r)})},e}(Jbe),f1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),F3=function(n){f1e(e,n);function e(t,r){return n.call(this,r,t.parts)||this}return e.prototype._keyCodeToUILabel=function(t){if(this._os===2)switch(t){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return Wf.toString(t)},e.prototype._getLabel=function(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)},e.prototype._getAriaLabel=function(t){return t.isDuplicateModifierCase()?"":Wf.toString(t.keyCode)},e.prototype._getDispatchPart=function(t){return e.getDispatchStr(t)},e.getDispatchStr=function(t){if(t.isModifierKey())return null;var r="";return t.ctrlKey&&(r+="ctrl+"),t.shiftKey&&(r+="shift+"),t.altKey&&(r+="alt+"),t.metaKey&&(r+="meta+"),r+=Wf.toString(t.keyCode),r},e}(d1e),fi=nn("notificationService"),h1e=function(){function n(){}return n}(),o9=nn("contextService"),B3;(function(n){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"&&Array.isArray(t.folders)}n.isIWorkspace=e})(B3||(B3={}));var W3;(function(n){function e(t){return t&&typeof t=="object"&&Xt.isUri(t.uri)&&typeof t.name=="string"&&typeof t.toResource=="function"}n.isIWorkspaceFolder=e})(W3||(W3={}));(function(){function n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=null),this._id=e,this._configuration=r,this._foldersMap=tI.forPaths(),this.folders=t}return Object.defineProperty(n.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),n.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.toString())||null},n.prototype.updateFoldersMap=function(){this._foldersMap=tI.forPaths();for(var e=0,t=this.folders;e=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},m1e=function(n,e){return function(t,r){e(t,r,n)}},_1e=function(){function n(e){this.model=e,this._onDispose=new ae}return Object.defineProperty(n.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._onDispose.fire()},n}();function y1e(n,e,t){return cs(n)?e(n):t(n)}var b1e=function(){function n(){}return n.prototype.setEditor=function(e){this.editor=e},n.prototype.createModelReference=function(e){var t=this,r=y1e(this.editor,function(i){return t.findModel(i,e)},function(i){return t.findModel(i.getOriginalEditor(),e)||t.findModel(i.getModifiedEditor(),e)});return r?Promise.resolve(new Kbe(new _1e(r))):Promise.reject(new Error("Model not found"))},n.prototype.findModel=function(e,t){var r=e.getModel();return r&&r.uri.toString()!==t.toString()?null:r},n}(),C1e=function(){function n(){}return n.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},n}(),w1e=function(){function n(){}return n}(),S1e=function(){function n(){}return n.prototype.info=function(e){return this.notify({severity:zs.Info,message:e})},n.prototype.warn=function(e){return this.notify({severity:zs.Warning,message:e})},n.prototype.error=function(e){return this.notify({severity:zs.Error,message:e})},n.prototype.notify=function(e){switch(e.severity){case zs.Error:console.error(e.message);break;case zs.Warning:console.warn(e.message);break;default:console.log(e.message);break}return n.NO_OP},n.NO_OP=new h1e,n}(),a9=function(){function n(e){this._onWillExecuteCommand=new ae,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return n.prototype.addCommand=function(e){var t=this,r=e.id;return this._dynamicCommands[r]=e,Bn(function(){delete t._dynamicCommands[r]})},n.prototype.executeCommand=function(e){for(var t=[],r=1;r"u"?this.configurationService.getValue():this.configurationService.getValue(o)},n}(),L1e=function(){function n(e){this.configurationService=e}return n.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");return t&&t.eol&&t.eol!=="auto"?t.eol:vs||Vt?` +`+e.stack):e},0)}}return n.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},n.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},n.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},n}(),rU=new ECe;function Je(n){Vg(n)||rU.onUnexpectedError(n)}function Li(n){Vg(n)||rU.onUnexpectedExternalError(n)}function JF(n){if(n instanceof Error){var e=n.name,t=n.message,r=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:r}}return n}var dL="Canceled";function Vg(n){return n instanceof Error&&n.name===dL&&n.message===dL}function Hg(){var n=new Error(dL);return n.name=n.message,n}function Ar(n){return n?new Error("Illegal argument: "+n):new Error("Illegal argument")}function LCe(n){return n?new Error("Illegal state: "+n):new Error("Illegal state")}function ICe(n){var e=this,t=!1,r;return function(){return t||(t=!0,r=n.apply(e,arguments)),r}}function iU(n){return typeof n.dispose=="function"&&n.dispose.length===0}function Oe(n){for(var e=[],t=1;t=d?yf:{done:!1,value:u[c++]}}}}n.fromArray=r;function i(u){return u?Array.isArray(u)?n.fromArray(u):u:n.empty()}n.from=i;function o(u,c){return{next:function(){var d=u.next();return d.done?yf:{done:!1,value:c(d.value)}}}}n.map=o;function a(u,c){return{next:function(){for(;;){var d=u.next();if(d.done)return yf;if(c(d.value))return{done:!1,value:d.value}}}}}n.filter=a;function s(u,c){for(var d=u.next();!d.done;d=u.next())c(d.value)}n.forEach=s;function l(u){var c=[];return s(u,function(d){return c.push(d)}),c}n.collect=l})(Vr||(Vr={}));function OCe(n){return Array.isArray(n)?Vr.fromArray(n):n}var bf=function(){function n(e,t,r,i){t===void 0&&(t=0),r===void 0&&(r=e.length),i===void 0&&(i=t-1),this.items=e,this.start=t,this.end=r,this.index=i}return n.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},n.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},n}(),NCe=function(n){xCe(e,n);function e(t,r,i,o){return r===void 0&&(r=0),i===void 0&&(i=t.length),o===void 0&&(o=r-1),n.call(this,t,r,i,o)||this}return e.prototype.current=function(){return n.prototype.current.call(this)},e.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.last=function(){return this.index=this.end-1,this.current()},e.prototype.parent=function(){return null},e}(bf),e3=function(){function n(e,t){this.iterator=e,this.fn=t}return n.prototype.next=function(){return this.fn(this.iterator.next())},n}(),Er=function(){function n(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}return n.Undefined=new n(void 0),n}(),nd=function(){function n(){this._first=Er.Undefined,this._last=Er.Undefined,this._size=0}return Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.isEmpty=function(){return this._first===Er.Undefined},n.prototype.clear=function(){this._first=Er.Undefined,this._last=Er.Undefined,this._size=0},n.prototype.unshift=function(e){return this._insert(e,!1)},n.prototype.push=function(e){return this._insert(e,!0)},n.prototype._insert=function(e,t){var r=this,i=new Er(e);if(this._first===Er.Undefined)this._first=i,this._last=i;else if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var a=this._first;this._first=i,i.next=a,a.prev=i}this._size+=1;var s=!1;return function(){s||(s=!0,r._remove(i))}},n.prototype.shift=function(){if(this._first!==Er.Undefined){var e=this._first.element;return this._remove(this._first),e}},n.prototype._remove=function(e){if(e.prev!==Er.Undefined&&e.next!==Er.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Er.Undefined&&e.next===Er.Undefined?(this._first=Er.Undefined,this._last=Er.Undefined):e.next===Er.Undefined?(this._last=this._last.prev,this._last.next=Er.Undefined):e.prev===Er.Undefined&&(this._first=this._first.next,this._first.prev=Er.Undefined);this._size-=1},n.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===Er.Undefined?yf:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},n.prototype.toArray=function(){for(var e=[],t=this._first;t!==Er.Undefined;t=t.next)e.push(t.element);return e},n}(),DCe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ht;(function(n){var e={dispose:function(){}};n.None=function(){return e};function t(y){return function(C,w,b){w===void 0&&(w=null);var S=!1,E;return E=y(function(L){if(!S)return E?E.dispose():S=!0,C.call(w,L)},null,b),S&&E.dispose(),E}}n.once=t;function r(y,C){return u(function(w,b,S){return b===void 0&&(b=null),y(function(E){return w.call(b,C(E))},null,S)})}n.map=r;function i(y,C){return u(function(w,b,S){return b===void 0&&(b=null),y(function(E){C(E),w.call(b,E)},null,S)})}n.forEach=i;function o(y,C){return u(function(w,b,S){return b===void 0&&(b=null),y(function(E){return C(E)&&w.call(b,E)},null,S)})}n.filter=o;function a(y){return y}n.signal=a;function s(){for(var y=[],C=0;C1)&&N.fire(M),R=0},w)})},onLastListenerRemove:function(){E.dispose()}});return N.event}n.debounce=c;function d(y){var C=new Date().getTime();return r(t(y),function(w){return new Date().getTime()-C})}n.stopwatch=d;function f(y){var C=!0,w;return o(y,function(b){var S=C||b!==w;return C=!1,w=b,S})}n.latch=f;function h(y,C,w){C===void 0&&(C=!1),w===void 0&&(w=[]);var b=w.slice(),S=y(function(T){b?b.push(T):L.fire(T)}),E=function(){b&&b.forEach(function(T){return L.fire(T)}),b=null},L=new se({onFirstListenerAdd:function(){S||(S=y(function(T){return L.fire(T)}))},onFirstListenerDidAdd:function(){b&&(C?setTimeout(E):E())},onLastListenerRemove:function(){S&&S.dispose(),S=null}});return L.event}n.buffer=h;var p=function(){function y(C){this.event=C}return y.prototype.map=function(C){return new y(r(this.event,C))},y.prototype.forEach=function(C){return new y(i(this.event,C))},y.prototype.filter=function(C){return new y(o(this.event,C))},y.prototype.reduce=function(C,w){return new y(l(this.event,C,w))},y.prototype.latch=function(){return new y(f(this.event))},y.prototype.on=function(C,w,b){return this.event(C,w,b)},y.prototype.once=function(C,w,b){return t(this.event)(C,w,b)},y}();function v(y){return new p(y)}n.chain=v;function m(y,C,w){w===void 0&&(w=function(T){return T});var b=function(){for(var T=[],R=0;R0;){var i=this._deliveryQueue.shift(),o=i[0],a=i[1];try{typeof o=="function"?o.call(void 0,a):o[0].call(o[1],a)}catch(s){Je(s)}}}},n.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},n._noop=function(){},n}(),ACe=function(n){DCe(e,n);function e(t){var r=n.call(this,t)||this;return r._isPaused=0,r._eventQueue=new nd,r._mergeFn=t&&t.merge,r}return e.prototype.pause=function(){this._isPaused++},e.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),n.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&this._eventQueue.size!==0;)n.prototype.fire.call(this,this._eventQueue.shift())},e.prototype.fire=function(t){this._listeners&&(this._isPaused!==0?this._eventQueue.push(t):n.prototype.fire.call(this,t))},e}(se),oa=function(){function n(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new se({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(n.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),n.prototype.add=function(e){var t=this,r={event:e,listener:null};this.events.push(r),this.hasListeners&&this.hook(r);var i=function(){t.hasListeners&&t.unhook(r);var o=t.events.indexOf(r);t.events.splice(o,1)};return Bn(ICe(i))},n.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},n.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},n.prototype.hook=function(e){var t=this;e.listener=e.event(function(r){return t.emitter.fire(r)})},n.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},n.prototype.dispose=function(){this.emitter.dispose()},n}(),uN=function(){function n(){this.buffers=[]}return n.prototype.wrapEvent=function(e){var t=this;return function(r,i,o){return e(function(a){var s=t.buffers[t.buffers.length-1];s?s.push(function(){return r.call(i,a)}):r.call(i,a)},void 0,o)}},n.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var r=e();return this.buffers.pop(),t.forEach(function(i){return i()}),r},n}(),ai=function(){function n(){var e=this;this.listening=!1,this.inputEvent=ht.None,this.inputEventListener=Ue.None,this.emitter=new se({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(n.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},n}(),oU=Object.freeze(function(n,e){var t=setTimeout(n.bind(e),0);return{dispose:function(){clearTimeout(t)}}}),an;(function(n){function e(t){return t===n.None||t===n.Cancelled||t instanceof F_?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}n.isCancellationToken=e,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ht.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oU})})(an||(an={}));var F_=function(){function n(){this._isCancelled=!1,this._emitter=null}return n.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(n.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?oU:(this._emitter||(this._emitter=new se),this._emitter.event)},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},n}(),rd=function(){function n(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(n.prototype,"token",{get:function(){return this._token||(this._token=new F_),this._token},enumerable:!0,configurable:!0}),n.prototype.cancel=function(){this._token?this._token instanceof F_&&this._token.cancel():this._token=an.Cancelled},n.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof F_&&this._token.dispose():this._token=an.None},n}(),cN=function(){function n(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return n.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},n.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},n.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},n}(),fL=new cN,hL=new cN,pL=new cN;(function(){function n(e,t,r,i){r===void 0&&(r=t),i===void 0&&(i=r),fL.define(e,t),hL.define(e,r),pL.define(e,i)}n(0,"unknown"),n(1,"Backspace"),n(2,"Tab"),n(3,"Enter"),n(4,"Shift"),n(5,"Ctrl"),n(6,"Alt"),n(7,"PauseBreak"),n(8,"CapsLock"),n(9,"Escape"),n(10,"Space"),n(11,"PageUp"),n(12,"PageDown"),n(13,"End"),n(14,"Home"),n(15,"LeftArrow","Left"),n(16,"UpArrow","Up"),n(17,"RightArrow","Right"),n(18,"DownArrow","Down"),n(19,"Insert"),n(20,"Delete"),n(21,"0"),n(22,"1"),n(23,"2"),n(24,"3"),n(25,"4"),n(26,"5"),n(27,"6"),n(28,"7"),n(29,"8"),n(30,"9"),n(31,"A"),n(32,"B"),n(33,"C"),n(34,"D"),n(35,"E"),n(36,"F"),n(37,"G"),n(38,"H"),n(39,"I"),n(40,"J"),n(41,"K"),n(42,"L"),n(43,"M"),n(44,"N"),n(45,"O"),n(46,"P"),n(47,"Q"),n(48,"R"),n(49,"S"),n(50,"T"),n(51,"U"),n(52,"V"),n(53,"W"),n(54,"X"),n(55,"Y"),n(56,"Z"),n(57,"Meta"),n(58,"ContextMenu"),n(59,"F1"),n(60,"F2"),n(61,"F3"),n(62,"F4"),n(63,"F5"),n(64,"F6"),n(65,"F7"),n(66,"F8"),n(67,"F9"),n(68,"F10"),n(69,"F11"),n(70,"F12"),n(71,"F13"),n(72,"F14"),n(73,"F15"),n(74,"F16"),n(75,"F17"),n(76,"F18"),n(77,"F19"),n(78,"NumLock"),n(79,"ScrollLock"),n(80,";",";","OEM_1"),n(81,"=","=","OEM_PLUS"),n(82,",",",","OEM_COMMA"),n(83,"-","-","OEM_MINUS"),n(84,".",".","OEM_PERIOD"),n(85,"/","/","OEM_2"),n(86,"`","`","OEM_3"),n(110,"ABNT_C1"),n(111,"ABNT_C2"),n(87,"[","[","OEM_4"),n(88,"\\","\\","OEM_5"),n(89,"]","]","OEM_6"),n(90,"'","'","OEM_7"),n(91,"OEM_8"),n(92,"OEM_102"),n(93,"NumPad0"),n(94,"NumPad1"),n(95,"NumPad2"),n(96,"NumPad3"),n(97,"NumPad4"),n(98,"NumPad5"),n(99,"NumPad6"),n(100,"NumPad7"),n(101,"NumPad8"),n(102,"NumPad9"),n(103,"NumPad_Multiply"),n(104,"NumPad_Add"),n(105,"NumPad_Separator"),n(106,"NumPad_Subtract"),n(107,"NumPad_Decimal"),n(108,"NumPad_Divide")})();var Wf;(function(n){function e(a){return fL.keyCodeToStr(a)}n.toString=e;function t(a){return fL.strToKeyCode(a)}n.fromString=t;function r(a){return hL.keyCodeToStr(a)}n.toUserSettingsUS=r;function i(a){return pL.keyCodeToStr(a)}n.toUserSettingsGeneral=i;function o(a){return hL.strToKeyCode(a)||pL.strToKeyCode(a)}n.fromUserSettings=o})(Wf||(Wf={}));function Ii(n,e){var t=(e&65535)<<16>>>0;return(n|t)>>>0}function Dy(n,e){if(n===0)return null;var t=(n&65535)>>>0,r=(n&4294901760)>>>16;return r!==0?new vL([Uw(t,e),Uw(r,e)]):new vL([Uw(t,e)])}function Uw(n,e){var t=!!(n&2048),r=!!(n&256),i=e===2?r:t,o=!!(n&1024),a=!!(n&512),s=e===2?t:r,l=n&255;return new dN(i,o,a,s,l)}var dN=function(){function n(e,t,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=r,this.metaKey=i,this.keyCode=o}return n.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},n.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},n.prototype.toChord=function(){return new vL([this])},n.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},n}(),vL=function(){function n(e){if(e.length===0)throw Ar("parts");this.parts=e}return n.prototype.equals=function(e){if(e===null||this.parts.length!==e.parts.length)return!1;for(var t=0;t=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)r!==-1&&(t+=encodeURIComponent(n.substring(r,i)),r=-1),t!==void 0&&(t+=n.charAt(i));else{t===void 0&&(t=n.substr(0,i));var a=sU[o];a!==void 0?(r!==-1&&(t+=encodeURIComponent(n.substring(r,i)),r=-1),t+=a):r===-1&&(r=i)}}return r!==-1&&(t+=encodeURIComponent(n.substring(r))),t!==void 0?t:n}function $Ce(n){for(var e=void 0,t=0;t1&&n.scheme==="file"?e="//"+n.authority+n.path:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e=n.path[1].toLowerCase()+n.path.substr(2):e=n.path,zi&&(e=e.replace(/\//g,"\\")),e}function gL(n,e){var t=e?$Ce:t3,r="",i=n.scheme,o=n.authority,a=n.path,s=n.query,l=n.fragment;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=ua,r+=ua),o){var u=o.indexOf("@");if(u!==-1){var c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?r+=t(c,!1):(r+=t(c.substr(0,u),!1),r+=":",r+=t(c.substr(u+1),!1)),r+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?r+=t(o,!1):(r+=t(o.substr(0,u),!1),r+=o.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){var d=a.charCodeAt(1);d>=65&&d<=90&&(a="/"+String.fromCharCode(d+32)+":"+a.substr(3))}else if(a.length>=2&&a.charCodeAt(1)===58){var d=a.charCodeAt(0);d>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}r+=t(a,!0)}return s&&(r+="?",r+=t(s,!1)),l&&(r+="#",r+=e?l:t3(l,!1)),r}var pe=function(){function n(e,t){this.lineNumber=e,this.column=t}return n.prototype.with=function(e,t){return e===void 0&&(e=this.lineNumber),t===void 0&&(t=this.column),e===this.lineNumber&&t===this.column?this:new n(e,t)},n.prototype.delta=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),this.with(this.lineNumber+e,this.column+t)},n.prototype.equals=function(e){return n.equals(this,e)},n.equals=function(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},n.prototype.isBefore=function(e){return n.isBefore(this,e)},n.isBefore=function(e,t){return e.lineNumberr||e===r&&t>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=r,this.endColumn=i)}return n.prototype.isEmpty=function(){return n.isEmpty(this)},n.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},n.prototype.containsPosition=function(e){return n.containsPosition(this,e)},n.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)},n.prototype.containsRange=function(e){return n.containsRange(this,e)},n.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)},n.prototype.plusRange=function(e){return n.plusRange(this,e)},n.plusRange=function(e,t){var r,i,o,a;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,a=e.endColumn),new n(r,i,o,a)},n.prototype.intersectRanges=function(e){return n.intersectRanges(this,e)},n.intersectRanges=function(e,t){var r=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,a=e.endColumn,s=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return ru?(o=u,a=c):o===u&&(a=Math.min(a,c)),r>o||r===o&&i>a?null:new n(r,i,o,a)},n.prototype.equalsRange=function(e){return n.equalsRange(this,e)},n.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},n.prototype.getEndPosition=function(){return new pe(this.endLineNumber,this.endColumn)},n.prototype.getStartPosition=function(){return new pe(this.startLineNumber,this.startColumn)},n.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},n.prototype.setEndPosition=function(e,t){return new n(this.startLineNumber,this.startColumn,e,t)},n.prototype.setStartPosition=function(e,t){return new n(e,t,this.endLineNumber,this.endColumn)},n.prototype.collapseToStart=function(){return n.collapseToStart(this)},n.collapseToStart=function(e){return new n(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},n.fromPositions=function(e,t){return t===void 0&&(t=e),new n(e.lineNumber,e.column,t.lineNumber,t.column)},n.lift=function(e){return e?new n(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},n.isIRange=function(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"},n.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},n}(),jCe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xe=function(n){jCe(e,n);function e(t,r,i,o){var a=n.call(this,t,r,i,o)||this;return a.selectionStartLineNumber=t,a.selectionStartColumn=r,a.positionLineNumber=i,a.positionColumn=o,a}return e.prototype.clone=function(){return new e(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},e.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},e.prototype.equalsSelection=function(t){return e.selectionsEqual(this,t)},e.selectionsEqual=function(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn},e.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},e.prototype.setEndPosition=function(t,r){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,r):new e(t,r,this.startLineNumber,this.startColumn)},e.prototype.getPosition=function(){return new pe(this.positionLineNumber,this.positionColumn)},e.prototype.setStartPosition=function(t,r){return this.getDirection()===0?new e(t,r,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,r)},e.fromPositions=function(t,r){return r===void 0&&(r=t),new e(t.lineNumber,t.column,r.lineNumber,r.column)},e.liftSelection=function(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)},e.selectionsArrEqual=function(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(var i=0,o=t.length;i=0,Ug=ya.indexOf("Edge/")>=0,uu=Ji||Ug,il=ya.indexOf("Firefox")>=0,Fc=ya.indexOf("AppleWebKit")>=0,Jv=ya.indexOf("Chrome")>=0,IC=!Jv&&ya.indexOf("Safari")>=0,qCe=!Jv&&!IC&&Fc,Ry=ya.indexOf("iPad")>=0,YCe=Ug&&ya.indexOf("WebView/")>=0;function XCe(){if(Ji)return!1;if(Ug){var n=ya.indexOf("Edge/"),e=parseInt(ya.substring(n+5,ya.indexOf(".",n)),10);if(!e||e>=12&&e<=16)return!1}return!0}var Gt=function(n,e,t){var r=function(o){return i.fire(o)},i=new se({onFirstListenerAdd:function(){n.addEventListener(e,r,t)},onLastListenerRemove:function(){n.removeEventListener(e,r,t)}});return i.event};function n3(n){return ht.map(n,function(e){return e.preventDefault(),e.stopPropagation(),e})}var fU=new Array(230),$w=new Array(112);(function(){for(var n=0;n<$w.length;n++)$w[n]=-1;function e(t,r){fU[t]=r,$w[r]=t}e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),Ji?e(91,57):il?(e(59,80),e(107,81),e(109,83),Vt&&e(224,57)):Fc&&(e(91,57),e(Vt?93:92,57))})();function ZCe(n){if(n.charCode){var e=String.fromCharCode(n.charCode).toUpperCase();return Wf.fromString(e)}return fU[n.keyCode]||0}var QCe=Vt?256:2048,JCe=512,e0e=1024,t0e=Vt?2048:256,zn=function(){function n(e){this._standardKeyboardEventBrand=!0;var 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=ZCe(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()}return n.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},n.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},n.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},n.prototype.equals=function(e){return this._asKeybinding===e},n.prototype._computeKeybinding=function(){var e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=QCe),this.altKey&&(t|=JCe),this.shiftKey&&(t|=e0e),this.metaKey&&(t|=t0e),t|=e,t},n.prototype._computeRuntimeKeybinding=function(){var e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new dN(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},n}(),jL=!1,$d=null;function n0e(n){if(!n.parent||n.parent===n)return null;try{var e=n.location,t=n.parent.location;if(e.protocol!==t.protocol||e.hostname!==t.hostname||e.port!==t.port)return jL=!0,null}catch{return jL=!0,null}return n.parent}function r0e(n,e){for(var t=n.document.getElementsByTagName("iframe"),r,i=0,o=t.length;i=i)return Promise.resolve(t);var a=n[r++],s=Promise.resolve(a());return s.then(function(l){return e(l)?Promise.resolve(l):o()})};return o()}var Ei=function(n){hU(e,n);function e(t,r){var i=n.call(this)||this;return i._token=-1,typeof t=="function"&&typeof r=="number"&&i.setIfNotSet(t,r),i}return e.prototype.dispose=function(){this.cancel(),n.prototype.dispose.call(this)},e.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,r){var i=this;this.cancel(),this._token=setTimeout(function(){i._token=-1,t()},r)},e.prototype.setIfNotSet=function(t,r){var i=this;this._token===-1&&(this._token=setTimeout(function(){i._token=-1,t()},r))},e}(Ue),jg=function(n){hU(e,n);function e(){var t=n.call(this)||this;return t._token=-1,t}return e.prototype.dispose=function(){this.cancel(),n.prototype.dispose.call(this)},e.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(t,r){this.cancel(),this._token=setInterval(function(){t()},r)},e}(Ue),xr=function(){function n(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return n.prototype.dispose=function(){this.cancel(),this.runner=null},n.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},n.prototype.schedule=function(e){e===void 0&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},n.prototype.isScheduled=function(){return this.timeoutToken!==-1},n.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},n.prototype.doRun=function(){this.runner&&this.runner()},n}(),KL;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var n=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});KL=function(e){var t=setTimeout(function(){return e(n)}),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(t))}}}}else KL=function(e,t){var r=requestIdleCallback(e,typeof t=="number"?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(r))}}}})();var GL=function(){function n(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(r){t._error=r}finally{t._didRun=!0}},this._handle=KL(function(){return t._executor()})}return n.prototype.dispose=function(){this._handle.dispose()},n.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},n}(),a0e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function Go(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function pN(n){n.parentNode&&n.parentNode.removeChild(n)}function s0e(n){for(;n;){if(n===document.body)return!0;n=n.parentNode}return!1}var l0e=new(function(){function n(){}return n.prototype._findClassName=function(e,t){var r=e.className;if(!r){this._lastStart=-1;return}t=t.trim();var i=r.length,o=t.length;if(o===0){this._lastStart=-1;return}if(i=0;){if(s=a+o,(a===0||r.charCodeAt(a-1)===32)&&r.charCodeAt(s)===32){this._lastStart=a,this._lastEnd=s+1;return}if(a>0&&r.charCodeAt(a-1)===32&&s===i){this._lastStart=a-1,this._lastEnd=s;return}if(a===0&&s===i){this._lastStart=0,this._lastEnd=s;return}}this._lastStart=-1},n.prototype.hasClass=function(e,t){return this._findClassName(e,t),this._lastStart!==-1},n.prototype.addClasses=function(e){for(var t=this,r=[],i=1;i0;){e.sort(Kw.sort);var o=e.shift();o.execute()}r=!1};bu=function(o,a){a===void 0&&(a=0);var s=new Kw(o,a);return n.push(s),t||(t=!0,h0e(i)),s},pU=function(o,a){if(r){var s=new Kw(o,a);return e.push(s),s}else return bu(o,a)}})();var p0e=16,v0e=function(n,e){return e},g0e=function(n){a0e(e,n);function e(t,r,i,o,a){o===void 0&&(o=v0e),a===void 0&&(a=p0e);var s=n.call(this)||this,l=null,u=0,c=s._register(new Ei),d=function(){u=new Date().getTime(),i(l),l=null};return s._register(Be(t,r,function(f){l=o(l,f);var h=new Date().getTime()-u;h>=a?(c.cancel(),d()):c.setIfNotSet(d,a-h)})),s}return e}(Ue);function zg(n,e,t,r,i){return new g0e(n,e,t,r,i)}function mN(n){return document.defaultView.getComputedStyle(n,null)}var Qi=function(){function n(){}return n.convertToPixels=function(e,t){return parseFloat(t)||0},n.getDimension=function(e,t,r){var i=mN(e),o="0";return i&&(i.getPropertyValue?o=i.getPropertyValue(t):o=i.getAttribute(r)),n.convertToPixels(e,o)},n.getBorderLeftWidth=function(e){return n.getDimension(e,"border-left-width","borderLeftWidth")},n.getBorderRightWidth=function(e){return n.getDimension(e,"border-right-width","borderRightWidth")},n.getBorderTopWidth=function(e){return n.getDimension(e,"border-top-width","borderTopWidth")},n.getBorderBottomWidth=function(e){return n.getDimension(e,"border-bottom-width","borderBottomWidth")},n.getPaddingLeft=function(e){return n.getDimension(e,"padding-left","paddingLeft")},n.getPaddingRight=function(e){return n.getDimension(e,"padding-right","paddingRight")},n.getPaddingTop=function(e){return n.getDimension(e,"padding-top","paddingTop")},n.getPaddingBottom=function(e){return n.getDimension(e,"padding-bottom","paddingBottom")},n.getMarginLeft=function(e){return n.getDimension(e,"margin-left","marginLeft")},n.getMarginTop=function(e){return n.getDimension(e,"margin-top","marginTop")},n.getMarginRight=function(e){return n.getDimension(e,"margin-right","marginRight")},n.getMarginBottom=function(e){return n.getDimension(e,"margin-bottom","marginBottom")},n}(),m0e=function(){function n(e,t){this.width=e,this.height=t}return n}();function _N(n){for(var e=n.offsetParent,t=n.offsetTop,r=n.offsetLeft;(n=n.parentNode)!==null&&n!==document.body&&n!==document.documentElement;){t-=n.scrollTop;var i=mN(n);i&&(r-=i.direction!=="rtl"?n.scrollLeft:-n.scrollLeft),n===e&&(r+=Qi.getBorderLeftWidth(n),t+=Qi.getBorderTopWidth(n),t+=n.offsetTop,r+=n.offsetLeft,e=n.offsetParent)}return{left:r,top:t}}function ci(n){var e=n.getBoundingClientRect();return{left:e.left+ja.scrollX,top:e.top+ja.scrollY,width:e.width,height:e.height}}var ja=new(function(){function n(){}return Object.defineProperty(n.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),n}());function Nc(n){var e=Qi.getMarginLeft(n)+Qi.getMarginRight(n);return n.offsetWidth+e}function My(n){var e=Qi.getBorderLeftWidth(n)+Qi.getBorderRightWidth(n),t=Qi.getPaddingLeft(n)+Qi.getPaddingRight(n);return n.offsetWidth-e-t}function vU(n){var e=Qi.getBorderTopWidth(n)+Qi.getBorderBottomWidth(n),t=Qi.getPaddingTop(n)+Qi.getPaddingBottom(n);return n.offsetHeight-e-t}function gU(n){var e=Qi.getMarginTop(n)+Qi.getMarginBottom(n);return n.offsetHeight+e}function us(n,e){for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function qL(n,e,t){for(;n;){if(ol(n,e))return n;if(t){if(typeof t=="string"){if(ol(n,t))return null}else if(n===t)return null}n=n.parentNode}return null}function yd(n){n===void 0&&(n=document.getElementsByTagName("head")[0]);var e=document.createElement("style");return e.type="text/css",e.media="screen",n.appendChild(e),e}var Gw=null;function mU(){return Gw||(Gw=yd()),Gw}function _0e(n){return n&&n.sheet&&n.sheet.rules?n.sheet.rules:n&&n.sheet&&n.sheet.cssRules?n.sheet.cssRules:[]}function y0e(n,e,t){t===void 0&&(t=mU()),!(!t||!e)&&t.sheet.insertRule(n+"{"+e+"}",0)}function YL(n,e){if(e===void 0&&(e=mU()),!!e){for(var t=_0e(e),r=[],i=0;i=0;i--)e.sheet.deleteRule(r[i])}}function b0e(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n.nodeType===1&&typeof n.nodeName=="string"}var mt={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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:Fc?"webkitAnimationStart":"animationstart",ANIMATION_END:Fc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Fc?"webkitAnimationIteration":"animationiteration"},xn={stop:function(n,e){n.preventDefault?n.preventDefault():n.returnValue=!1,e&&(n.stopPropagation?n.stopPropagation():n.cancelBubble=!0)}};function C0e(n){for(var e=[],t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)e[t]=n.scrollTop,n=n.parentNode;return e}function w0e(n,e){for(var t=0;n&&n.nodeType===n.ELEMENT_NODE;t++)n.scrollTop!==e[t]&&(n.scrollTop=e[t]),n=n.parentNode}var S0e=function(){function n(e){var t=this;this._onDidFocus=new se,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new se,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var r=us(document.activeElement,e),i=!1,o=function(){i=!1,r||(r=!0,t._onDidFocus.fire())},a=function(){r&&(i=!0,window.setTimeout(function(){i&&(i=!1,r=!1,t._onDidBlur.fire())},0))};Gt(e,mt.FOCUS,!0)(o,null,this.disposables),Gt(e,mt.BLUR,!0)(a,null,this.disposables)}return n.prototype.dispose=function(){this.disposables=Oe(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},n}();function eg(n){return new S0e(n)}function He(n){for(var e=[],t=1;t200)return n;if(typeof n=="object"){switch(n.$mid){case 1:return Yt.revive(n);case 2:return new RegExp(n.source,n.flags)}for(var t in n)Object.hasOwnProperty.call(n,t)&&(n[t]=bU(n[t],e+1))}return n}var Dn;(function(n){n.inMemory="inmemory",n.vscode="vscode",n.internal="private",n.walkThrough="walkThrough",n.walkThroughSnippet="walkThroughSnippet",n.http="http",n.https="https",n.file="file",n.mailto="mailto",n.untitled="untitled",n.data="data",n.command="command",n.vscodeRemote="vscode-remote"})(Dn||(Dn={}));var hv="";function CU(n){return!n||typeof n!="string"?!0:n.trim().length===0}function fp(n,e,t){t===void 0&&(t="0");for(var r=""+n,i=[r],o=r.length;o=e.length?r:e[o]})}function wi(n){return n.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function cs(n){return n.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function x0e(n,e){e===void 0&&(e=" ");var t=XL(n,e);return wU(t,e)}function XL(n,e){if(!n||!e)return n;var t=e.length;if(t===0||n.length===0)return n;for(var r=0;n.indexOf(e,r)===r;)r=r+t;return n.substring(r)}function wU(n,e){if(!n||!e)return n;var t=e.length,r=n.length;if(t===0||r===0)return n;for(var i=r,o=-1;o=n.lastIndexOf(e,i-1),!(o===-1||o+t!==i);){if(o===0)return"";i=o}return n.substring(0,i)}function O0e(n){return n.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function tg(n,e){if(n.length0?n.indexOf(e,t)===t:t===0?n===e:!1}function bN(n,e,t){if(t===void 0&&(t={}),!n)throw new Error("Cannot create regex from empty string");e||(n=cs(n)),t.wholeWord&&(/\B/.test(n.charAt(0))||(n="\\b"+n),/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"));var r="";return t.global&&(r+="g"),t.matchCase||(r+="i"),t.multiline&&(r+="m"),t.unicode&&(r+="u"),new RegExp(n,r)}function N0e(n){if(n.source==="^"||n.source==="^$"||n.source==="$"||n.source==="^\\s*$")return!1;var e=n.exec("");return!!(e&&n.lastIndex===0)}function qw(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")}function eo(n){for(var e=0,t=n.length;e=0;t--){var r=n.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function D0e(n,e){return ne?1:0}function Dc(n){return n>=97&&n<=122}function Hs(n){return n>=65&&n<=90}function o3(n){return Dc(n)||Hs(n)}function za(n,e){var t=n?n.length:0,r=e?e.length:0;return t!==r?!1:SU(n,e)}function SU(n,e,t){if(t===void 0&&(t=n.length),typeof n!="string"||typeof e!="string")return!1;for(var r=0;rn.length?!1:SU(n,e,t)}function wN(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t=11904&&n<=55215||n>=63744&&n<=64255||n>=65281&&n<=65374}var B0e="\uFEFF";function EN(n){return!!(n&&n.length>0&&n.charCodeAt(0)===65279)}function IU(n){return btoa(encodeURIComponent(n))}function W0e(n,e){for(var t="",r=0;r"u"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return zi?"win32":Vt?"darwin":"linux"},nextTick:function(n){return J7(n)}}:process,ZL=LN.cwd,V0e=LN.env,bd=LN.platform,H0e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),U0e=65,$0e=97,j0e=90,z0e=122,cu=46,Cr=47,vo=92,Sl=58,K0e=63,IN=function(n){H0e(e,n);function e(t,r,i){var o=this,a;typeof r=="string"&&r.indexOf("not ")===0?(a="must not be",r=r.replace(/^not /,"")):a="must be";var s=t.indexOf(".")!==-1?"property":"argument",l='The "'+t+'" '+s+" "+a+" of type "+r;return l+=". Received type "+typeof i,o=n.call(this,l)||this,o}return e}(Error);function vr(n,e){if(typeof n!="string")throw new IN(e,"string",n)}function zt(n){return n===Cr||n===vo}function a3(n){return n===Cr}function El(n){return n>=U0e&&n<=j0e||n>=$0e&&n<=z0e}function ky(n,e,t,r){for(var i="",o=0,a=-1,s=0,l,u=0;u<=n.length;++u){if(u2){var c=i.lastIndexOf(t);c===-1?(i="",o=0):(i=i.slice(0,c),o=i.length-1-i.lastIndexOf(t)),a=u,s=0;continue}else if(i.length===2||i.length===1){i="",o=0,a=u,s=0;continue}}e&&(i.length>0?i+=t+"..":i="..",o=2)}else i.length>0?i+=t+n.slice(a+1,u):i=n.slice(a+1,u),o=u-a-1;a=u,s=0}else l===cu&&s!==-1?++s:s=-1}return i}function TU(n,e){var t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+r:t+n+r:r}var Hi={resolve:function(){for(var n=[],e=0;e=-1;o--){var a=void 0;if(o>=0?a=n[o]:t?(a=V0e["="+t]||ZL(),(a===void 0||a.slice(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(a=t+"\\")):a=ZL(),vr(a,"path"),a.length!==0){var s=a.length,l=0,u="",c=!1,d=a.charCodeAt(0);if(s>1)if(zt(d))if(c=!0,zt(a.charCodeAt(1))){for(var f=2,h=f;f2&&zt(a.charCodeAt(2))&&(c=!0,l=3));else zt(d)&&(l=1,c=!0);if(!(u.length>0&&t.length>0&&u.toLowerCase()!==t.toLowerCase())&&(t.length===0&&u.length>0&&(t=u),i||(r=a.slice(l)+"\\"+r,i=c),t.length>0&&i))break}}return r=ky(r,!i,"\\",zt),t+(i?"\\":"")+r||"."},normalize:function(n){vr(n,"path");var e=n.length;if(e===0)return".";var t=0,r,i=!1,o=n.charCodeAt(0);if(e>1)if(zt(o))if(i=!0,zt(n.charCodeAt(1))){for(var a=2,s=a;a2&&zt(n.charCodeAt(2))&&(i=!0,t=3));else if(zt(o))return"\\";var u;return t0&&zt(n.charCodeAt(e-1))&&(u+="\\"),r===void 0?i?u.length>0?"\\"+u:"\\":u.length>0?u:"":i?u.length>0?r+"\\"+u:r+"\\":u.length>0?r+u:r},isAbsolute:function(n){vr(n,"path");var e=n.length;if(e===0)return!1;var t=n.charCodeAt(0);return zt(t)?!0:!!(El(t)&&e>2&&n.charCodeAt(1)===Sl&&zt(n.charCodeAt(2)))},join:function(){for(var n=[],e=0;e0&&(t===void 0?t=r=o:t+="\\"+o)}if(t===void 0)return".";var a=!0,s=0;if(typeof r=="string"&&zt(r.charCodeAt(0))){++s;var l=r.length;l>1&&zt(r.charCodeAt(1))&&(++s,l>2&&(zt(r.charCodeAt(2))?++s:a=!1))}if(a){for(;s=2&&(t="\\"+t.slice(s))}return Hi.normalize(t)},relative:function(n,e){if(vr(n,"from"),vr(e,"to"),n===e)return"";var t=Hi.resolve(n),r=Hi.resolve(e);if(t===r||(n=t.toLowerCase(),e=r.toLowerCase(),n===e))return"";for(var i=0;ii&&n.charCodeAt(o-1)===vo;--o);for(var a=o-i,s=0;ss&&e.charCodeAt(l-1)===vo;--l);for(var u=l-s,c=ac){if(e.charCodeAt(s+f)===vo)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}a>c&&(n.charCodeAt(i+f)===vo?d=f:f===2&&(d=3));break}var h=n.charCodeAt(i+f),p=e.charCodeAt(s+f);if(h!==p)break;h===vo&&(d=f)}if(f!==c&&d===-1)return r;var v="";for(d===-1&&(d=0),f=i+d+1;f<=o;++f)(f===o||n.charCodeAt(f)===vo)&&(v.length===0?v+="..":v+="\\..");return v.length>0?v+r.slice(s+d,l):(s+=d,r.charCodeAt(s)===vo&&++s,r.slice(s,l))},toNamespacedPath:function(n){if(typeof n!="string")return n;if(n.length===0)return"";var e=Hi.resolve(n);if(e.length>=3){if(e.charCodeAt(0)===vo){if(e.charCodeAt(1)===vo){var t=e.charCodeAt(2);if(t!==K0e&&t!==cu)return"\\\\?\\UNC\\"+e.slice(2)}}else if(El(e.charCodeAt(0))&&e.charCodeAt(1)===Sl&&e.charCodeAt(2)===vo)return"\\\\?\\"+e}return n},dirname:function(n){vr(n,"path");var e=n.length;if(e===0)return".";var t=-1,r=-1,i=!0,o=0,a=n.charCodeAt(0);if(e>1)if(zt(a)){if(t=o=1,zt(n.charCodeAt(1))){for(var s=2,l=s;s2&&zt(n.charCodeAt(2))&&(t=o=3));else if(zt(a))return n;for(var u=e-1;u>=o;--u)if(zt(n.charCodeAt(u))){if(!i){r=u;break}}else i=!1;if(r===-1){if(t===-1)return".";r=t}return n.slice(0,r)},basename:function(n,e){e!==void 0&&vr(e,"ext"),vr(n,"path");var t=0,r=-1,i=!0,o;if(n.length>=2){var a=n.charCodeAt(0);El(a)&&n.charCodeAt(1)===Sl&&(t=2)}if(e!==void 0&&e.length>0&&e.length<=n.length){if(e.length===n.length&&e===n)return"";var s=e.length-1,l=-1;for(o=n.length-1;o>=t;--o){var u=n.charCodeAt(o);if(zt(u)){if(!i){t=o+1;break}}else l===-1&&(i=!1,l=o+1),s>=0&&(u===e.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=l))}return t===r?r=l:r===-1&&(r=n.length),n.slice(t,r)}else{for(o=n.length-1;o>=t;--o)if(zt(n.charCodeAt(o))){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)}},extname:function(n){vr(n,"path");var e=0,t=-1,r=0,i=-1,o=!0,a=0;n.length>=2&&n.charCodeAt(1)===Sl&&El(n.charCodeAt(0))&&(e=r=2);for(var s=n.length-1;s>=e;--s){var l=n.charCodeAt(s);if(zt(l)){if(!o){r=s+1;break}continue}i===-1&&(o=!1,i=s+1),l===cu?t===-1?t=s:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===r+1?"":n.slice(t,i)},format:function(n){if(n===null||typeof n!="object")throw new IN("pathObject","Object",n);return TU("\\",n)},parse:function(n){vr(n,"path");var e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;var t=n.length,r=0,i=n.charCodeAt(0);if(t>1){if(zt(i)){if(r=1,zt(n.charCodeAt(1))){for(var o=2,a=o;o2){if(zt(n.charCodeAt(2))){if(t===3)return e.root=e.dir=n,e;r=3}}else return e.root=e.dir=n,e}else if(zt(i))return e.root=e.dir=n,e;r>0&&(e.root=n.slice(0,r));for(var s=-1,l=r,u=-1,c=!0,d=n.length-1,f=0;d>=r;--d){if(i=n.charCodeAt(d),zt(i)){if(!c){l=d+1;break}continue}u===-1&&(c=!1,u=d+1),i===cu?s===-1?s=d:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||u===-1||f===0||f===1&&s===u-1&&s===l+1?u!==-1&&(e.base=e.name=n.slice(l,u)):(e.name=n.slice(l,s),e.base=n.slice(l,u),e.ext=n.slice(s,u)),l>0&&l!==r?e.dir=n.slice(0,l-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},ur={resolve:function(){for(var n=[],e=0;e=-1&&!r;i--){var o=void 0;i>=0?o=n[i]:o=ZL(),vr(o,"path"),o.length!==0&&(t=o+"/"+t,r=o.charCodeAt(0)===Cr)}return t=ky(t,!r,"/",a3),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(n){if(vr(n,"path"),n.length===0)return".";var e=n.charCodeAt(0)===Cr,t=n.charCodeAt(n.length-1)===Cr;return n=ky(n,!e,"/",a3),n.length===0&&!e&&(n="."),n.length>0&&t&&(n+="/"),e?"/"+n:n},isAbsolute:function(n){return vr(n,"path"),n.length>0&&n.charCodeAt(0)===Cr},join:function(){for(var n=[],e=0;e0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":ur.normalize(t)},relative:function(n,e){if(vr(n,"from"),vr(e,"to"),n===e||(n=ur.resolve(n),e=ur.resolve(e),n===e))return"";for(var t=1;tl){if(e.charCodeAt(o+c)===Cr)return e.slice(o+c+1);if(c===0)return e.slice(o+c)}else i>l&&(n.charCodeAt(t+c)===Cr?u=c:c===0&&(u=0));break}var d=n.charCodeAt(t+c),f=e.charCodeAt(o+c);if(d!==f)break;d===Cr&&(u=c)}var h="";for(c=t+u+1;c<=r;++c)(c===r||n.charCodeAt(c)===Cr)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+e.slice(o+u):(o+=u,e.charCodeAt(o)===Cr&&++o,e.slice(o))},toNamespacedPath:function(n){return n},dirname:function(n){if(vr(n,"path"),n.length===0)return".";for(var e=n.charCodeAt(0)===Cr,t=-1,r=!0,i=n.length-1;i>=1;--i)if(n.charCodeAt(i)===Cr){if(!r){t=i;break}}else r=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename:function(n,e){e!==void 0&&vr(e,"ext"),vr(n,"path");var t=0,r=-1,i=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e.length===n.length&&e===n)return"";var a=e.length-1,s=-1;for(o=n.length-1;o>=0;--o){var l=n.charCodeAt(o);if(l===Cr){if(!i){t=o+1;break}}else s===-1&&(i=!1,s=o+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=o):(a=-1,r=s))}return t===r?r=s:r===-1&&(r=n.length),n.slice(t,r)}else{for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===Cr){if(!i){t=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":n.slice(t,r)}},extname:function(n){vr(n,"path");for(var e=-1,t=0,r=-1,i=!0,o=0,a=n.length-1;a>=0;--a){var s=n.charCodeAt(a);if(s===Cr){if(!i){t=a+1;break}continue}r===-1&&(i=!1,r=a+1),s===cu?e===-1?e=a:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||r===-1||o===0||o===1&&e===r-1&&e===t+1?"":n.slice(e,r)},format:function(n){if(n===null||typeof n!="object")throw new IN("pathObject","Object",n);return TU("/",n)},parse:function(n){vr(n,"path");var e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;var t=n.charCodeAt(0)===Cr,r;t?(e.root="/",r=1):r=0;for(var i=-1,o=0,a=-1,s=!0,l=n.length-1,u=0;l>=r;--l){var c=n.charCodeAt(l);if(c===Cr){if(!s){o=l+1;break}continue}a===-1&&(s=!1,a=l+1),c===cu?i===-1?i=l:u!==1&&(u=1):i!==-1&&(u=-1)}return i===-1||a===-1||u===0||u===1&&i===a-1&&i===o+1?a!==-1&&(o===0&&t?e.base=e.name=n.slice(1,a):e.base=e.name=n.slice(o,a)):(o===0&&t?(e.name=n.slice(1,i),e.base=n.slice(1,a)):(e.name=n.slice(o,i),e.base=n.slice(o,a)),e.ext=n.slice(i,a)),o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};ur.win32=Hi.win32=Hi;ur.posix=Hi.posix=ur;var Fy=bd==="win32"?Hi.normalize:ur.normalize,xU=bd==="win32"?Hi.join:ur.join,TN=bd==="win32"?Hi.relative:ur.relative,xN=bd==="win32"?Hi.dirname:ur.dirname,id=bd==="win32"?Hi.basename:ur.basename,OU=bd==="win32"?Hi.extname:ur.extname,pv=bd==="win32"?Hi.sep:ur.sep;const G0e=Object.freeze(Object.defineProperty({__proto__:null,basename:id,dirname:xN,extname:OU,join:xU,normalize:Fy,posix:ur,relative:TN,sep:pv,win32:Hi},Symbol.toStringTag,{value:"Module"}));function q0e(n){return n.replace(/[\\/]/g,ur.sep)}function Y0e(n,e,t,r){if(r===void 0&&(r=pv),n===e)return!0;if(!n||!e||e.length>n.length)return!1;if(t){var i=CN(n,e);if(!i)return!1;if(e.length===n.length)return!0;var o=e.length;return e.charAt(e.length-1)===r&&o--,n.charAt(o)===r}return e.charAt(e.length-1)!==r&&(e+=r),n.indexOf(e)===0}function X0e(n){return n>=65&&n<=90||n>=97&&n<=122}function Z0e(n){return n&&n.scheme===Dn.file?!gs:!0}function NU(n){return sl(n)||n.authority}function DU(n,e){return n===e||za(n,e)}function Q0e(n,e,t){if(t===void 0&&(t=Z0e(n)),n===e)return!0;if(!n||!e||n.scheme!==e.scheme||!DU(n.authority,e.authority))return!1;var r=n.path||"/",i=e.path||"/";return r===i||t&&za(r||"/",i||"/")}function sl(n){return ur.basename(n.path)}function AU(n){if(n.path.length===0)return n;if(n.scheme===Dn.file)return Yt.file(xN(ON(n)));var e=ur.dirname(n.path);return n.authority&&e.length&&e.charCodeAt(0)!==47&&(console.error('dirname("'+n.toString+")) resulted in a relative path"),e="/"),n.with({path:e})}function J0e(n){for(var e,t=[],r=1;r1&&n.scheme===Dn.file?e="//"+n.authority+t:zi&&t.charCodeAt(0)===47&&X0e(t.charCodeAt(1))&&t.charCodeAt(2)===58?e=t.substr(1):e=t,zi&&(e=e.replace(/\//g,"\\")),e}function twe(n,e){if(!(n.scheme!==e.scheme||!DU(n.authority,e.authority))){if(n.scheme===Dn.file){var t=TN(n.path,e.path);return zi?q0e(t):t}return ur.relative(n.path||"/",e.path||"/")}}var dh;(function(n){n.META_DATA_LABEL="label",n.META_DATA_DESCRIPTION="description",n.META_DATA_SIZE="size",n.META_DATA_MIME="mime";function e(t){var r=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach(function(a){var s=a.split(":"),l=s[0],u=s[1];l&&u&&r.set(l,u)});var o=t.path.substring(0,t.path.indexOf(";"));return o&&r.set(n.META_DATA_MIME,o),r}n.parseMetaData=e})(dh||(dh={}));var ri=nn("commandService"),ii=new(function(){function n(){this._commands=new Map,this._onDidRegisterCommand=new se,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return n.prototype.registerCommand=function(e,t){var r=this;if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var i=[],o=0,a=e.description.args;o=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},s3=function(n,e){return function(t,r){e(t,r,n)}},rwe=function(n,e,t,r){return new(t||(t=Promise))(function(i,o){function a(u){try{l(r.next(u))}catch(c){o(c)}}function s(u){try{l(r.throw(u))}catch(c){o(c)}}function l(u){u.done?i(u.value):new t(function(c){c(u.value)}).then(a,s)}l((r=r.apply(n,e||[])).next())})},iwe=function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var r=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=r.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},n.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},n.prototype.next=function(e){e===void 0&&(e=0),this._move(!0,e)},n.prototype.previous=function(e){e===void 0&&(e=0),this._move(!1,e)},n.prototype.dispose=function(){Oe(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},n}(),ll=new(function(){function n(){this._zoomLevel=0,this._onDidChangeZoomLevel=new se,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return n.prototype.getZoomLevel=function(){return this._zoomLevel},n.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},n}()),lwe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),uwe=Vt?1.5:1.35,l3=8,cwe=100,u3=8,dwe=150,fwe=-5,hwe=20;function c3(n,e){if(typeof n=="number")return n;if(typeof n>"u")return e;var t=parseFloat(n);return isNaN(t)?e:t}function pwe(n,e){if(typeof n=="number")return Math.round(n);if(typeof n>"u")return e;var t=parseInt(n);return isNaN(t)?e:t}function Yw(n,e,t){return nt?t:n}function d3(n,e){return typeof n!="string"?e:n}var NN=function(){function n(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=e.lineHeight|0,this.letterSpacing=e.letterSpacing}return n.createFromRawSettings=function(e,t,r){r===void 0&&(r=!1);var i=d3(e.fontFamily,Hp.fontFamily),o=d3(e.fontWeight,Hp.fontWeight),a=c3(e.fontSize,Hp.fontSize);a=Yw(a,0,cwe),a===0?a=Hp.fontSize:a0)i.left||(i.left=new jm,i.left.segment=r.value()),i=i.left;else if(o<0)i.right||(i.right=new jm,i.right.segment=r.value()),i=i.right;else if(r.hasNext())r.next(),i.mid||(i.mid=new jm,i.mid.segment=r.value()),i=i.mid;else break}var a=i.value;return i.value=t,i.key=e,a},n.prototype.get=function(e){for(var t=this._iter.reset(e),r=this._root;r;){var i=t.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else if(t.hasNext())t.next(),r=r.mid;else break}return r?r.value:void 0},n.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),r=this._root,i=void 0;r;){var o=t.cmp(r.segment);if(o>0)r=r.left;else if(o<0)r=r.right;else if(t.hasNext())t.next(),i=r.value||i,r=r.mid;else break}return r&&r.value||i},n.prototype.forEach=function(e){this._forEach(this._root,e)},n.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},n}(),Xw=function(){function n(){this.map=new Map,this.ignoreCase=!1}return n.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},n.prototype.get=function(e){return this.map.get(this.toKey(e))},n.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},n}(),bwe=function(){function n(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return n.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),n.prototype.get=function(e,t){t===void 0&&(t=0);var r=this._map.get(e);if(r)return t!==0&&this.touch(r,t),r.value},n.prototype.set=function(e,t,r){r===void 0&&(r=0);var i=this._map.get(e);if(i)i.value=t,r!==0&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}},n.prototype.delete=function(e){return!!this.remove(e)},n.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},n.prototype.forEach=function(e,t){for(var r=this._head;r;)t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),r=r.next},n.prototype.trimOld=function(e){if(!(e>=this.size)){if(e===0){this.clear();return}for(var t=this._head,r=this.size;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0)}},n.prototype.addItemFirst=function(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},n.prototype.addItemLast=function(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},n.prototype.removeItem=function(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{var t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0},n.prototype.touch=function(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;var r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===2){if(e===this._tail)return;var r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}},n.prototype.toJSON=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),e},n}(),OC=function(n){mwe(e,n);function e(t,r){r===void 0&&(r=1);var i=n.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,r),1),i}return e.prototype.get=function(t){return n.prototype.get.call(this,t,2)},e.prototype.set=function(t,r){n.prototype.set.call(this,t,r,2),this.checkTrim()},e.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},e}(bwe),Zw="**",f3="/",W_="[/\\\\]",V_="[^/\\\\]",Cwe=/\//g;function h3(n){switch(n){case 0:return"";case 1:return V_+"*?";default:return"(?:"+W_+"|"+V_+"+"+W_+"|"+W_+V_+"+)*?"}}function p3(n,e){if(!n)return[];for(var t=[],r=!1,i=!1,o="",a=0,s=n;a0;d--){var f=u.charCodeAt(d-1);if(f===47||f===92)break}c=u.substr(d)}var h=r.indexOf(c);return h!==-1?i[h]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;var l=n.filter(function(u){return!u.basenames});return l.push(s),l}function kU(n,e,t,r){if(Array.isArray(n)){for(var i=0,o=0,a=n;oi&&(i=l)}return i}else{if(typeof n=="string")return r?n==="*"?5:n===t?10:0:0;if(n){var u=n.language,c=n.pattern,d=n.scheme,f=n.hasAccessToAllModels;if(!r&&!f)return 0;var i=0;if(d)if(d===e.scheme)i=10;else if(d==="*")i=5;else return 0;if(u)if(u===t)i=10;else if(u==="*")i=Math.max(i,5);else return 0;if(c)if(c===e.fsPath||PU(c,e.fsPath))i=10;else return 0;return i}else return 0}}var Gi=nn("modelService");function Mwe(n){return!n.isTooLargeForSyncing()&&!n.isForSimpleWidget}function FU(n){return typeof n=="string"?!1:Array.isArray(n)?n.every(FU):!!n.exclusive}var Mr=function(){function n(){this._clock=0,this._entries=[],this._onDidChange=new se}return Object.defineProperty(n.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),n.prototype.register=function(e,t){var r=this,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),Bn(function(){if(i){var o=r._entries.indexOf(i);o>=0&&(r._entries.splice(o,1),r._lastCandidate=void 0,r._onDidChange.fire(r._entries.length),i=void 0)}})},n.prototype.has=function(e){return this.all(e).length>0},n.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],r=0,i=this._entries;r0&&t.push(o.provider)}return t},n.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(r){return t.push(r.provider)}),t},n.prototype.orderedGroups=function(e){var t=[],r,i;return this._orderedForEach(e,function(o){r&&i===o._score?r.push(o.provider):(i=o._score,r=[o.provider],t.push(r))}),t},n.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var r=0,i=this._entries;r0&&t(o)}}},n.prototype._updateScores=function(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!(this._lastCandidate&&this._lastCandidate.language===t.language&&this._lastCandidate.uri===t.uri)){this._lastCandidate=t;for(var r=0,i=this._entries;r0){for(var a=0,s=this._entries;at._score?-1:e._timet._time?-1:0},n}(),kwe=function(){function n(){this._map=new Map,this._promises=new Map,this._onDidChange=new se,this.onDidChange=this._onDidChange.event,this._colorMap=null}return n.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},n.prototype.register=function(e,t){var r=this;return this._map.set(e,t),this.fire([e]),Bn(function(){r._map.get(e)===t&&(r._map.delete(e),r.fire([e]))})},n.prototype.registerPromise=function(e,t){var r=this,i=null,o=!1;return this._promises.set(e,t.then(function(a){r._promises.delete(e),!(o||!a)&&(i=r.register(e,a))})),Bn(function(){o=!0,i&&i.dispose()})},n.prototype.getPromise=function(e){var t=this,r=this.get(e);if(r)return Promise.resolve(r);var i=this._promises.get(e);return i?i.then(function(o){return t.get(e)}):null},n.prototype.get=function(e){return su(this._map.get(e))},n.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:By(this._map),changedColorMap:!0})},n.prototype.getColorMap=function(){return this._colorMap},n.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},n}(),RN=function(){function n(e,t){this.language=e,this.id=t}return n}(),fa=function(){function n(){}return n.getLanguageId=function(e){return(e&255)>>>0},n.getTokenType=function(e){return(e&1792)>>>8},n.getFontStyle=function(e){return(e&14336)>>>11},n.getForeground=function(e){return(e&8372224)>>>14},n.getBackground=function(e){return(e&4286578688)>>>23},n.getClassNameFromMetadata=function(e){var t=this.getForeground(e),r="mtk"+t,i=this.getFontStyle(e);return i&1&&(r+=" mtki"),i&2&&(r+=" mtkb"),i&4&&(r+=" mtku"),r},n.getInlineStyleFromMetadata=function(e,t){var r=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[r]+";";return i&1&&(o+="font-style: italic;"),i&2&&(o+="font-weight: bold;"),i&4&&(o+="text-decoration: underline;"),o},n}(),y3=function(){var n=Object.create(null);return n[0]="method",n[1]="function",n[2]="constructor",n[3]="field",n[4]="variable",n[5]="class",n[6]="struct",n[7]="interface",n[8]="module",n[9]="property",n[10]="event",n[11]="operator",n[12]="unit",n[13]="value",n[14]="constant",n[15]="enum",n[16]="enum-member",n[17]="keyword",n[25]="snippet",n[18]="text",n[19]="color",n[20]="file",n[21]="reference",n[22]="customcolor",n[23]="folder",n[24]="type-parameter",function(e){return n[e]||"property"}}(),PN=function(){var n=Object.create(null);return n.method=0,n.function=1,n.constructor=2,n.field=3,n.variable=4,n.class=5,n.struct=6,n.interface=7,n.module=8,n.property=9,n.event=10,n.operator=11,n.unit=12,n.value=13,n.constant=14,n.enum=15,n["enum-member"]=16,n.enumMember=16,n.keyword=17,n.snippet=25,n.text=18,n.color=19,n.file=20,n.reference=21,n.customcolor=22,n.folder=23,n["type-parameter"]=24,n.typeParameter=24,function(e,t){var r=n[e];return typeof r>"u"&&!t&&(r=9),r}}(),Bc;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(Bc||(Bc={}));var rg;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(rg||(rg={}));function Fwe(n){return n&&Yt.isUri(n.uri)&&q.isIRange(n.range)&&(q.isIRange(n.originSelectionRange)||q.isIRange(n.targetSelectionRange))}var Bwe=function(){var n=Object.create(null);return n[0]="file",n[1]="module",n[2]="namespace",n[3]="package",n[4]="class",n[5]="method",n[6]="property",n[7]="field",n[8]="constructor",n[9]="enum",n[10]="interface",n[11]="function",n[12]="variable",n[13]="constant",n[14]="string",n[15]="number",n[16]="boolean",n[17]="array",n[18]="object",n[19]="key",n[20]="null",n[21]="enum-member",n[22]="struct",n[23]="event",n[24]="operator",n[25]="type-parameter",function(t,r){return"symbol-icon "+(r?"inline":"block")+" "+(n[t]||"property")}}(),NC=function(){function n(e){this.value=e}return n.Comment=new n("comment"),n.Imports=new n("imports"),n.Region=new n("region"),n}();function Wwe(n){return si(n)&&n.resource&&Array.isArray(n.edits)}var Wy=new Mr,Vy=new Mr,Ka=new Mr,Wc=new Mr,ig=new Mr,og=new Mr,fh=new Mr,ag=new Mr,eI=new Mr,Hy=new Mr,Uy=new Mr,Vc=new Mr,el=new Mr,vv=new Mr,ha=new Mr,$y=new Mr,sg=new Mr,hh=new Mr,MN=new Mr,tI=new Mr,An=new kwe,Vwe=function(){function n(){}return n.prototype.clone=function(){return this},n.prototype.equals=function(e){return this===e},n}(),Kg=new Vwe,kN="vs.editor.nullMode",jy=new RN(kN,0);function BU(n,e,t,r){return new fN([new SC(r,"",n)],t)}function zy(n,e,t,r){var i=new Uint32Array(2);return i[0]=r,i[1]=(n<<0|0|0|16384|2<<23)>>>0,new EC(i,t===null?Kg:t)}var Hwe="editorWorkerService",Qo=nn(Hwe),od=nn("textModelService"),Uwe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),$we="$initialize",b3=!1;function nI(n){Q7&&(b3||(b3=!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(n.message))}var jwe=function(){function n(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return n.prototype.setWorkerId=function(e){this._workerId=e},n.prototype.sendMessage=function(e,t){var r=this,i=String(++this._lastSentReq);return new Promise(function(o,a){r._pendingReplies[i]={resolve:o,reject:a},r._send({vsWorker:r._workerId,req:i,method:e,args:t})})},n.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch{return}!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)},n.prototype._handleMessage=function(e){var t=this;if(e.seq){var r=e;if(!this._pendingReplies[r.seq]){console.warn("Got reply to unknown seq");return}var i=this._pendingReplies[r.seq];if(delete this._pendingReplies[r.seq],r.err){var o=r.err;r.err.$isError&&(o=new Error,o.name=r.err.name,o.message=r.err.message,o.stack=r.err.stack),i.reject(o);return}i.resolve(r.res);return}var a=e,s=a.req,l=this._handler.handleMessage(a.method,a.args);l.then(function(u){t._send({vsWorker:t._workerId,seq:s,res:u,err:void 0})},function(u){u.detail instanceof Error&&(u.detail=JF(u.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:JF(u)})})},n.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},n}(),zwe=function(n){Uwe(e,n);function e(t,r){var i=n.call(this)||this,o=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",function(u){i._protocol.handleMessage(u)},function(u){o&&o(u)})),i._protocol=new jwe({sendMessage:function(u){i._worker.postMessage(u)},handleMessage:function(u,c){return Promise.resolve(null)}}),i._protocol.setWorkerId(i._worker.getId());var a=null;typeof self.require<"u"&&typeof self.require.getConfig=="function"?a=self.require.getConfig():typeof self.requirejs<"u"&&(a=self.requirejs.s.contexts._.config),i._onModuleLoaded=i._protocol.sendMessage($we,[i._worker.getId(),r,a]),i._lazyProxy=new Promise(function(u,c){o=c,i._onModuleLoaded.then(function(d){for(var f={},h=0,p=d;h0&&n.getLanguageId(a-1)===i;)a--;return new Xwe(n,i,a,o+1,n.getStartOffset(a),n.getEndOffset(o))}var Xwe=function(){function n(e,t,r,i,o,a){this._actual=e,this.languageId=t,this._firstTokenIndex=r,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=a}return n.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},n.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},n.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},n.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},n}();function ac(n){return(n&7)!==0}var WU=function(){function n(e){e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(function(t){return new Ky(t)}):e.brackets?this._autoClosingPairs=e.brackets.map(function(t){return new Ky({open:t[0],close:t[1]})}):this._autoClosingPairs=[],this._autoCloseBefore=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:n.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}return n.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},n.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},n.prototype.shouldAutoClosePair=function(e,t,r){if(t.getTokenCount()===0)return!0;for(var i=t.findTokenIndexAtOffset(r-2),o=t.getStandardTokenType(i),a=0,s=this._autoClosingPairs;a + `,n}(),Zwe=function(){function n(e,t,r,i,o){this.languageIdentifier=e,this.open=t,this.close=r,this.forwardRegex=i,this.reversedRegex=o}return n}(),Qwe=function(){function n(e,t){var r=this;this.brackets=t.map(function(o){return new Zwe(e,o[0],o[1],Jwe({open:o[0],close:o[1]}),eSe({open:o[0],close:o[1]}))}),this.forwardRegex=tSe(this.brackets),this.reversedRegex=nSe(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var i=0;this.brackets.forEach(function(o){r.textIsBracket[o.open.toLowerCase()]=o,r.textIsBracket[o.close.toLowerCase()]=o,r.textIsOpenBracket[o.open.toLowerCase()]=!0,r.textIsOpenBracket[o.close.toLowerCase()]=!1,i=Math.max(i,o.open.length),i=Math.max(i,o.close.length)}),this.maxBracketLength=i}return n}();function DC(n,e){var t={};return function(r){var i=n(r);return t.hasOwnProperty(i)||(t[i]=e(r)),t[i]}}var Jwe=DC(function(n){return n.open+";"+n.close},function(n){return AC([n.open,n.close])}),eSe=DC(function(n){return n.open+";"+n.close},function(n){return AC([lg(n.open),lg(n.close)])}),tSe=DC(function(n){return n.map(function(e){return e.open+";"+e.close}).join(";")},function(n){var e=[];return n.forEach(function(t){e.push(t.open),e.push(t.close)}),AC(e)}),nSe=DC(function(n){return n.map(function(e){return e.open+";"+e.close}).join(";")},function(n){var e=[];return n.forEach(function(t){e.push(lg(t.open)),e.push(lg(t.close))}),AC(e)});function rSe(n){var e=/^[\w]+$/.test(n);return n=cs(n),e?"\\b"+n+"\\b":n}function AC(n){var e="("+n.map(rSe).join(")|(")+")";return bN(e,!0)}var lg=function(){function n(r){for(var i="",o=r.length-1;o>=0;o--)i+=r.charAt(o);return i}var e=null,t=null;return function(i){return e!==i&&(e=i,t=n(e)),t}}(),sc=function(){function n(){}return n._findPrevBracketInText=function(e,t,r,i){var o=r.match(e);if(!o)return null;var a=r.length-(o.index||0),s=o[0].length,l=i+a;return new q(t,l-s+1,t,l+1)},n.findPrevBracketInToken=function(e,t,r,i,o){var a=lg(r),s=a.substring(r.length-o,r.length-i);return this._findPrevBracketInText(e,t,s,i)},n.findNextBracketInText=function(e,t,r,i){var o=r.match(e);if(!o)return null;var a=o.index||0,s=o[0].length;if(s===0)return null;var l=i+a;return new q(t,l+1,t,l+1+s)},n.findNextBracketInToken=function(e,t,r,i,o){var a=r.substring(i,o);return this.findNextBracketInText(e,t,a,i)},n}(),iSe=function(){function n(e,t,r){r=r||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(i){return i.open.length>1&&!!i.close}).map(function(i){return new Ky(i)}),r.docComment&&this._complexAutoClosePairs.push(new Ky({open:r.docComment.open,close:r.docComment.close||""}))}return n.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,r=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},n}(),oSe=function(){function n(e){this._indentationRules=e}return n.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},n.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},n.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},n.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},n.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},n}(),aSe=function(){function n(e){var t=this;e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(function(r){var i=n._createOpenBracketRegExp(r[0]),o=n._createCloseBracketRegExp(r[1]);i&&o&&t._brackets.push({open:r[0],openRegExp:i,close:r[1],closeRegExp:o})}),this._regExpRules=e.regExpRules||[]}return n.prototype.onEnter=function(e,t,r){for(var i=0,o=this._regExpRules.length;i0&&r.length>0)for(var i=0,o=this._brackets.length;i0)for(var i=0,o=this._brackets.length;i1){var o=void 0,a=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return a;var s=e.getLineContent(o);if(r.shouldIgnore(s)||/^\s+$/.test(s)||s===""){a=o;continue}return o}}return-1},n.prototype.getInheritIndentForLine=function(e,t,r){r===void 0&&(r=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var a=e.getLineContent(o);if(i.shouldIncrease(a)||i.shouldIndentNextLine(a))return{indentation:Tn(a),action:$n.Indent,line:o};if(i.shouldDecrease(a))return{indentation:Tn(a),action:null,line:o};if(o===1)return{indentation:Tn(e.getLineContent(o)),action:null,line:o};var s=o-1,l=i.getIndentMetadata(e.getLineContent(s));if(!(l&3)&&l&4){for(var u=0,c=s-1;c>0;c--)if(!i.shouldIndentNextLine(e.getLineContent(c))){u=c;break}return{indentation:Tn(e.getLineContent(u+1)),action:null,line:u+1}}if(r)return{indentation:Tn(e.getLineContent(o)),action:null,line:o};for(var c=o;c>0;c--){var d=e.getLineContent(c);if(i.shouldIncrease(d))return{indentation:Tn(d),action:$n.Indent,line:c};if(i.shouldIndentNextLine(d)){for(var u=0,f=c-1;f>0;f--)if(!i.shouldIndentNextLine(e.getLineContent(c))){u=f;break}return{indentation:Tn(e.getLineContent(u+1)),action:null,line:u+1}}else if(i.shouldDecrease(d))return{indentation:Tn(d),action:null,line:c}}return{indentation:Tn(e.getLineContent(1)),action:null,line:1}},n.prototype.getGoodIndentForLine=function(e,t,r,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var a=this.getInheritIndentForLine(e,r),s=e.getLineContent(r);if(a){var l=a.line;if(l!==void 0){var u=this._getOnEnterSupport(t),c=null;try{u&&(c=u.onEnter("",e.getLineContent(l),""))}catch(f){Je(f)}if(c){var d=Tn(e.getLineContent(l));return c.removeText&&(d=d.substring(0,d.length-c.removeText)),c.indentAction===$n.Indent||c.indentAction===$n.IndentOutdent?d=i.shiftIndent(d):c.indentAction===$n.Outdent&&(d=i.unshiftIndent(d)),o.shouldDecrease(s)&&(d=i.unshiftIndent(d)),c.appendText&&(d+=c.appendText),Tn(d)}}return o.shouldDecrease(s)?a.action===$n.Indent?a.indentation:i.unshiftIndent(a.indentation):a.action===$n.Indent?i.shiftIndent(a.indentation):a.indentation}return null},n.prototype.getIndentForEnter=function(e,t,r,i){e.forceTokenization(t.startLineNumber);var o=e.getLineTokens(t.startLineNumber),a,s,l=zm(o,t.startColumn-1),u=l.getLineContent(),c=!1;if(l.firstCharOffset>0&&o.getLanguageId(0)!==l.languageId?(c=!0,a=u.substr(0,t.startColumn-1-l.firstCharOffset)):a=o.getLineContent().substring(0,t.startColumn-1),t.isEmpty())s=u.substr(t.startColumn-1-l.firstCharOffset);else{var d=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);s=d.getLineContent().substr(t.endColumn-1-l.firstCharOffset)}var f=this.getIndentRulesSupport(l.languageId);if(!f)return null;var h=a,p=Tn(a);if(!i&&!c){var v=this.getInheritIndentForLine(e,t.startLineNumber);f.shouldDecrease(a)&&v&&(p=v.indentation,v.action!==$n.Indent&&(p=r.unshiftIndent(p))),h=p+XL(XL(a," ")," ")}var m={getLineTokens:function(w){return e.getLineTokens(w)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(w,b){return e.getLanguageIdAtPosition(w,b)},getLineContent:function(w){return w===t.startLineNumber?h:e.getLineContent(w)}},g=Tn(o.getLineContent()),_=this.getInheritIndentForLine(m,t.startLineNumber+1);if(!_){var y=c?g:p;return{beforeEnter:y,afterEnter:y}}var C=c?g:_.indentation;return _.action===$n.Indent&&(C=r.shiftIndent(C)),f.shouldDecrease(s)&&(C=r.unshiftIndent(C)),{beforeEnter:c?g:p,afterEnter:C}},n.prototype.getIndentActionForType=function(e,t,r,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),a=this.getIndentRulesSupport(o.languageId);if(!a)return null;var s=o.getLineContent(),l=s.substr(0,t.startColumn-1-o.firstCharOffset),u;if(t.isEmpty())u=s.substr(t.startColumn-1-o.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);u=c.getLineContent().substr(t.endColumn-1-o.firstCharOffset)}if(!a.shouldDecrease(l+u)&&a.shouldDecrease(l+r+u)){var d=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!d)return null;var f=d.indentation;return d.action!==$n.Indent&&(f=i.unshiftIndent(f)),f}return null},n.prototype.getIndentMetadata=function(e,t){var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return!r||t<1||t>e.getLineCount()?null:r.getIndentMetadata(e.getLineContent(t))},n.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},n.prototype.getRawEnterActionAtPosition=function(e,t,r){var i=this.getEnterAction(e,new q(t,r,t,r));return i?i.enterAction:null},n.prototype.getEnterAction=function(e,t){var r=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var a=i.getLineContent(),s=a.substr(0,t.startColumn-1-i.firstCharOffset),l;if(t.isEmpty())l=a.substr(t.startColumn-1-i.firstCharOffset);else{var u=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn);l=u.getLineContent().substr(t.endColumn-1-i.firstCharOffset)}var c=t.startLineNumber,d="";if(c>1&&i.firstCharOffset===0){var f=this.getScopedLineTokens(e,c-1);f.languageId===i.languageId&&(d=f.getLineContent())}var h=null;try{h=o.onEnter(d,s,l)}catch(p){Je(p)}if(h)h.appendText||(h.indentAction===$n.Indent||h.indentAction===$n.IndentOutdent?h.appendText=" ":h.appendText="");else return null;return h.removeText&&(r=r.substring(0,r.length-h.removeText)),{enterAction:h,indentation:r}},n.prototype.getIndentationAtPosition=function(e,t,r){var i=e.getLineContent(t),o=Tn(i);return o.length>r-1&&(o=o.substring(0,r-1)),o},n.prototype.getScopedLineTokens=function(e,t,r){e.forceTokenization(t);var i=e.getLineTokens(t),o=typeof r>"u"?e.getLineMaxColumn(t)-1:r-1,a=zm(i,o);return a},n.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},n}(),Ut=new lSe,kl=function(){function n(e,t,r,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=r,this.modifiedLength=i}return n.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},n.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},n}();function C3(n){return{getLength:function(){return n.length},getElementAtIndex:function(e){return n.charCodeAt(e)}}}function uSe(n,e,t){return new FN(C3(n),C3(e)).ComputeDiff(t)}var jd=function(){function n(){}return n.Assert=function(e,t){if(!e)throw new Error(t)},n}(),zd=function(){function n(){}return n.Copy=function(e,t,r,i,o){for(var a=0;a0||this.m_modifiedCount>0)&&this.m_changes.push(new kl(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},n.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},n.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},n.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},n.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},n}(),FN=function(){function n(e,t,r){r===void 0&&(r=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=r,this.m_forwardHistory=[],this.m_reverseHistory=[]}return n.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},n.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},n.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},n.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},n.prototype._ComputeDiff=function(e,t,r,i,o){var a=[!1],s=this.ComputeDiffRecursive(e,t,r,i,a);return o?this.PrettifyChanges(s):s},n.prototype.ComputeDiffRecursive=function(e,t,r,i,o){for(o[0]=!1;e<=t&&r<=i&&this.ElementsAreEqual(e,r);)e++,r++;for(;t>=e&&i>=r&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||r>i){var a=void 0;return r<=i?(jd.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new kl(e,0,r,i-r+1)]):e<=t?(jd.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[new kl(e,t-e+1,r,0)]):(jd.Assert(e===t+1,"originalStart should only be one more than originalEnd"),jd.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var s=[0],l=[0],u=this.ComputeRecursionPoint(e,t,r,i,s,l,o),c=s[0],d=l[0];if(u!==null)return u;if(!o[0]){var f=this.ComputeDiffRecursive(e,c,r,d,o),h=[];return o[0]?h=[new kl(c+1,t-(c+1)+1,d+1,i-(d+1)+1)]:h=this.ComputeDiffRecursive(c+1,t,d+1,i,o),this.ConcatenateChanges(f,h)}return[new kl(e,t-e+1,r,i-r+1)]},n.prototype.WALKTRACE=function(e,t,r,i,o,a,s,l,u,c,d,f,h,p,v,m,g,_){var y=null,C=null,w=new w3,b=t,S=r,E=h[0]-m[0]-i,L=Number.MIN_VALUE,T=this.m_forwardHistory.length-1,R;do R=E+e,R===b||R=0&&(u=this.m_forwardHistory[T],e=u[0],b=1,S=u.length-1);while(--T>=-1);if(y=w.getReverseChanges(),_[0]){var N=h[0]+1,D=m[0]+1;if(y!==null&&y.length>0){var M=y[y.length-1];N=Math.max(N,M.getOriginalEnd()),D=Math.max(D,M.getModifiedEnd())}C=[new kl(N,f-N+1,D,v-D+1)]}else{w=new w3,b=a,S=s,E=h[0]-m[0]-l,L=Number.MAX_VALUE,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do R=E+o,R===b||R=c[R+1]?(d=c[R+1]-1,p=d-E-l,d>L&&w.MarkNextChange(),L=d+1,w.AddOriginalElement(d+1,p+1),E=R+1-o):(d=c[R-1],p=d-E-l,d>L&&w.MarkNextChange(),L=d,w.AddModifiedElement(d+1,p+1),E=R-1-o),T>=0&&(c=this.m_reverseHistory[T],o=c[0],b=1,S=c.length-1);while(--T>=-1);C=w.getChanges()}return this.ConcatenateChanges(y,C)},n.prototype.ComputeRecursionPoint=function(e,t,r,i,o,a,s){var l=0,u=0,c=0,d=0,f=0,h=0,p;e--,r--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v=t-e+(i-r),m=v+1,g=new Array(m),_=new Array(m),y=i-r,C=t-e,w=e-r,b=t-i,S=C-y,E=S%2===0;g[y]=e,_[C]=t,s[0]=!1;var L,T;for(p=1;p<=v/2+1;p++){var R=0,N=0;for(c=this.ClipDiagonalBound(y-p,p,y,m),d=this.ClipDiagonalBound(y+p,p,y,m),L=c;L<=d;L+=2){for(L===c||LR+N&&(R=l,N=u),!E&&Math.abs(L-C)<=p-1&&l>=_[L])return o[0]=l,a[0]=u,T<=_[L]&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,C,f,h,b,g,_,l,t,o,u,i,a,E,s):null}var D=(R-e+(N-r)-p)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(R,this.OriginalSequence,D))return s[0]=!0,o[0]=R,a[0]=N,D>0&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,C,f,h,b,g,_,l,t,o,u,i,a,E,s):(e++,r++,[new kl(e,t-e+1,r,i-r+1)]);for(f=this.ClipDiagonalBound(C-p,p,C,m),h=this.ClipDiagonalBound(C+p,p,C,m),L=f;L<=h;L+=2){for(L===f||L=_[L+1]?l=_[L+1]-1:l=_[L-1],u=l-(L-C)-b,T=l;l>e&&u>r&&this.ElementsAreEqual(l,u);)l--,u--;if(_[L]=l,E&&Math.abs(L-y)<=p&&l<=g[L])return o[0]=l,a[0]=u,T>=g[L]&&Gu>0&&p<=Gu+1?this.WALKTRACE(y,c,d,w,C,f,h,b,g,_,l,t,o,u,i,a,E,s):null}if(p<=Gu){var M=new Array(d-c+2);M[0]=y-c+1,zd.Copy(g,c,M,1,d-c+1),this.m_forwardHistory.push(M),M=new Array(h-f+2),M[0]=C-f+1,zd.Copy(_,f,M,1,h-f+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(y,c,d,w,C,f,h,b,g,_,l,t,o,u,i,a,E,s)},n.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=r.modifiedLength>0;r.originalStart+r.originalLength=0;t--){var r=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength)}for(var a=r.originalLength>0,s=r.modifiedLength>0,c=0,d=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength),f=1;;f++){var h=r.originalStart-f,p=r.modifiedStart-f;if(hd&&(d=v,c=f)}r.originalStart-=c,r.modifiedStart-=c}return e},n.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return typeof t=="string"&&/^\s*$/.test(t)},n.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1},n.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return typeof t=="string"&&/^\s*$/.test(t)},n.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var r=e+t;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1},n.prototype._boundaryScore=function(e,t,r,i){var o=this._OriginalRegionIsBoundary(e,t)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return o+a},n.prototype.ConcatenateChanges=function(e,t){var r=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],r)){var i=new Array(e.length+t.length-1);return zd.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],zd.Copy(t,1,i,e.length,t.length-1),i}else{var i=new Array(e.length+t.length);return zd.Copy(e,0,i,0,e.length),zd.Copy(t,0,i,e.length,t.length),i}},n.prototype.ChangesOverlap=function(e,t,r){if(jd.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),jd.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){var i=e.originalStart,o=e.originalLength,a=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),r[0]=new kl(i,o,a,s),!0}else return r[0]=null,!1},n.prototype.ClipDiagonalBound=function(e,t,r,i){if(e>=0&&e1&&v>1;){var m=f.charCodeAt(p-2),g=h.charCodeAt(v-2);if(m!==g)break;p--,v--}(p>1||v>1)&&this._pushTrimWhitespaceCharChange(o,a+1,1,p,s+1,1,v)}{for(var _=Kd._getLastNonBlankColumn(f,1),y=Kd._getLastNonBlankColumn(h,1),C=f.length+1,w=h.length+1;_255?255:n|0}function lc(n){return n<0?0:n>4294967295?4294967295:n|0}function gSe(n){for(var e=n.length,t=new Uint32Array(e),r=0;r=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},n.prototype.changeValue=function(e,t){return e=lc(e),t=lc(t),this.values[e]===t?!1:(this.values[e]=t,e-1=r.length)return!1;var o=r.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},n.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},n.prototype.getAccumulatedValue=function(e){return e<0?0:(e=lc(e),this._getAccumulatedValue(e))},n.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var r=t;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},n.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,r=this.values.length-1,i=0,o=0,a=0;t<=r;)if(i=t+(r-t)/2|0,o=this.prefixSum[i],a=o-this.values[i],e=o)t=i+1;else break;return new mSe(i,e-a)},n}(),_Se=function(){function n(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new BN(e),this._bustCache()}return n.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},n.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},n.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},n.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},n.prototype.getTotalValue=function(){return this._actual.getTotalValue()},n.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},n.prototype.getIndexOf=function(e){if(e=Math.floor(e),this._cache!==null){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)},n.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},n}(),Cf=function(){function n(){this._actual=new RC(0)}return n.prototype.add=function(e){this._actual.set(e,1)},n.prototype.has=function(e){return this._actual.get(e)===1},n}(),bSe=function(){function n(e){for(var t=0,r=0,i=0,o=e.length;it&&(t=l),s>r&&(r=s),u>r&&(r=u)}t++,r++;for(var c=new vSe(r,t,0),i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)},n}(),eS=null;function CSe(){return eS===null&&(eS=new bSe([[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]])),eS}var hp=null;function wSe(){if(hp===null){hp=new RC(0);for(var n=` <>'"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…`,e=0;ei);if(i>0){var u=t.charCodeAt(i-1),c=t.charCodeAt(a);(u===40&&c===41||u===91&&c===93||u===123&&c===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:t.substring(i,a+1)}},n.computeLinks=function(e,t){t===void 0&&(t=CSe());for(var r=wSe(),i=[],o=1,a=e.getLineCount();o<=a;o++){for(var s=e.getLineContent(o),l=s.length,u=0,c=0,d=0,f=1,h=!1,p=!1,v=!1;u=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},n.INSTANCE=new n,n}(),HU=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ISe=function(n){HU(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),e.prototype.getValue=function(){return this.getText()},e.prototype.getLinesContent=function(){return this._lines.slice(0)},e.prototype.getLineCount=function(){return this._lines.length},e.prototype.getLineContent=function(t){return this._lines[t-1]},e.prototype.getWordAtPosition=function(t,r){var i=uL(t.column,lL(r),this._lines[t.lineNumber-1],0);return i?new q(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):null},e.prototype.getWordUntilPosition=function(t,r){var i=this.getWordAtPosition(t,r);return i?{word:this._lines[t.lineNumber-1].substring(i.startColumn-1,t.column-1),startColumn:i.startColumn,endColumn:t.column}:{word:"",startColumn:t.column,endColumn:t.column}},e.prototype.createWordIterator=function(t){var r=this,i,o=0,a,s=0,l=[],u=function(){if(s=r._lines.length?yf:(a=r._lines[o],l=r._wordenize(a,t),s=0,o+=1,u())};return{next:u}},e.prototype.getLineWords=function(t,r){for(var i=this._lines[t-1],o=this._wordenize(i,r),a=[],s=0,l=o;sthis._lines.length)r=this._lines.length,i=this._lines[r-1].length+1,o=!0;else{var a=this._lines[r-1].length+1;i<1?(i=1,o=!0):i>a&&(i=a,o=!0)}return o?{lineNumber:r,column:i}:t},e}(ySe),TSe=function(){function n(e){this._foreignModuleFactory=e,this._foreignModule=null}return n.prototype.computeDiff=function(e,t,r){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return Promise.resolve(null);var a=i.getLinesContent(),s=o.getLinesContent(),l=new pSe(a,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:r,shouldMakePrettyDiff:!0}),u=l.computeDiff(),c=u.length>0?!1:this._modelsAreIdentical(i,o);return Promise.resolve({identical:c,changes:u})},n.prototype._modelsAreIdentical=function(e,t){var r=e.getLineCount(),i=t.getLineCount();if(r!==i)return!1;for(var o=1;o<=r;o++){var a=e.getLineContent(o),s=t.getLineContent(o);if(a!==s)return!1}return!0},n.prototype.computeMoreMinimalEdits=function(e,t){var r=this._getModel(e);if(!r)return Promise.resolve(t);var i=[],o=void 0;t=wC(t,function(w,b){if(w.range&&b.range)return q.compareRangesUsingStarts(w.range,b.range);var S=w.range?0:1,E=b.range?0:1;return S-E});for(var a=0,s=t;an._diffLimit){i.push({range:u,text:c});continue}for(var h=uSe(f,c,!1),p=r.offsetAt(q.lift(u).getStartPosition()),v=0,m=h;v=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},tS=function(n,e){return function(t,r){e(t,r,n)}},L3=60*1e3,I3=5*60*1e3;function uc(n,e){var t=n.getModel(e);return!(!t||t.isTooLargeForSyncing())}var DSe=function(n){PC(e,n);function e(t,r,i){var o=n.call(this)||this;return o._modelService=t,o._workerManager=o._register(new RSe(o._modelService)),o._logService=i,o._register(sg.register("*",{provideLinks:function(a,s){return uc(o._modelService,a.uri)?o._workerManager.withWorker().then(function(l){return l.computeLinks(a.uri)}).then(function(l){return l&&{links:l}}):Promise.resolve({links:[]})}})),o._register(Ka.register("*",new ASe(o._workerManager,r,o._modelService))),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.canComputeDiff=function(t,r){return uc(this._modelService,t)&&uc(this._modelService,r)},e.prototype.computeDiff=function(t,r,i){return this._workerManager.withWorker().then(function(o){return o.computeDiff(t,r,i)})},e.prototype.computeMoreMinimalEdits=function(t,r){var i=this;if($i(r)){if(!uc(this._modelService,t))return Promise.resolve(r);var o=VN.create(!0),a=this._workerManager.withWorker().then(function(s){return s.computeMoreMinimalEdits(t,r)});return a.finally(function(){return i._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),o.elapsed())}),a}else return Promise.resolve(void 0)},e.prototype.canNavigateValueSet=function(t){return uc(this._modelService,t)},e.prototype.navigateValueSet=function(t,r,i){return this._workerManager.withWorker().then(function(o){return o.navigateValueSet(t,r,i)})},e.prototype.canComputeWordRanges=function(t){return uc(this._modelService,t)},e.prototype.computeWordRanges=function(t,r){return this._workerManager.withWorker().then(function(i){return i.computeWordRanges(t,r)})},e=NSe([tS(0,Gi),tS(1,UU),tS(2,WN)],e),e}(Ue),ASe=function(){function n(e,t,r){this._workerManager=e,this._configurationService=t,this._modelService=r}return n.prototype.provideCompletionItems=function(e,t){var r=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions;if(r&&uc(this._modelService,e.uri))return this._workerManager.withWorker().then(function(i){return i.textualSuggest(e.uri,t)})},n}(),RSe=function(n){PC(e,n);function e(t){var r=n.call(this)||this;r._modelService=t,r._editorWorkerClient=null;var i=r._register(new jg);return i.cancelAndSet(function(){return r._checkStopIdleWorker()},Math.round(I3/2)),r._register(r._modelService.onModelRemoved(function(o){return r._checkStopEmptyWorker()})),r}return e.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),n.prototype.dispose.call(this)},e.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var t=this._modelService.getModels();t.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},e.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var t=new Date().getTime()-this._lastWorkerUsedTime;t>I3&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},e.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new jU(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},e}(Ue),PSe=function(n){PC(e,n);function e(t,r,i){var o=n.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=r,!i){var a=new jg;a.cancelAndSet(function(){return o._checkStopModelSync()},Math.round(L3/2)),o._register(a)}return o}return e.prototype.dispose=function(){for(var t in this._syncedModels)Oe(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),n.prototype.dispose.call(this)},e.prototype.esureSyncedResources=function(t){for(var r=0,i=t;rL3&&r.push(i)}for(var a=0,s=r;a>>1,this._text=t}return n.prototype.equals=function(e){return e instanceof n?this.slicedEquals(e,0,this._tokensCount):!1},n.prototype.slicedEquals=function(e,t,r){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(r<<1),a=i;a0?this._tokens[e-1<<1]:0},n.prototype.getLanguageId=function(e){var t=this._tokens[(e<<1)+1];return fa.getLanguageId(t)},n.prototype.getStandardTokenType=function(e){var t=this._tokens[(e<<1)+1];return fa.getTokenType(t)},n.prototype.getForeground=function(e){var t=this._tokens[(e<<1)+1];return fa.getForeground(t)},n.prototype.getClassName=function(e){var t=this._tokens[(e<<1)+1];return fa.getClassNameFromMetadata(t)},n.prototype.getInlineStyle=function(e,t){var r=this._tokens[(e<<1)+1];return fa.getInlineStyleFromMetadata(r,t)},n.prototype.getEndOffset=function(e){return this._tokens[e<<1]},n.prototype.findTokenIndexAtOffset=function(e){return n.findIndexInTokensArray(this._tokens,e)},n.prototype.inflate=function(){return this},n.prototype.sliceAndInflate=function(e,t,r){return new BSe(this,e,t,r)},n.convertToEndOffset=function(e,t){for(var r=e.length>>>1,i=r-1,o=0;o>>1)-1;rt&&(i=o)}return r},n}(),BSe=function(){function n(e,t,r,i){this._source=e,this._startOffset=t,this._endOffset=r,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,a=e.getCount();o=r)break;this._tokensCount++}}return n.prototype.equals=function(e){return e instanceof n?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1},n.prototype.getCount=function(){return this._tokensCount},n.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},n.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},n.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},n.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},n.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},n}(),ug;typeof TextDecoder<"u"?ug=function(n){return new WSe(n)}:ug=function(n){return new VSe};var WSe=function(){function n(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return n.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},n.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},n.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},n.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},n.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(t===0||Mi(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},n.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},n.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(var r=0;rt)&&!(c.isEmpty()&&(u.type===0||u.type===3))){var d=c.startLineNumber===t?c.startColumn:r,f=c.endLineNumber===t?c.endColumn:i;o[a++]=new n(d,f,u.inlineClassName,u.type)}}return o},n.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},n}(),x3=function(){function n(e,t,r){this.startOffset=e,this.endOffset=t,this.className=r}return n}(),HSe=function(){function n(){this.stopOffsets=[],this.classNames=[],this.count=0}return n.prototype.consumeLowerThan=function(e,t,r){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(r,0,e),this.classNames.splice(r,0,t);break}this.count++},n}(),USe=function(){function n(){}return n.normalize=function(e,t){if(t.length===0)return[];for(var r=[],i=new HSe,o=0,a=0,s=t.length;a1){var f=e.charCodeAt(u-2);Mi(f)&&u--}if(c>1){var f=e.charCodeAt(c-2);Mi(f)&&c--}var h=u-1,p=c-2;o=i.consumeLowerThan(h,o,r),i.count===0&&(o=h),i.insert(p,d)}return i.consumeLowerThan(1073741824,o,r),r},n}(),Wi=function(){function n(e,t){this.endIndex=e,this.type=t}return n}(),Bh=function(){function n(e,t,r,i,o,a,s,l,u,c,d,f,h,p,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=r,this.continuesWithWrappedLine=i,this.isBasicASCII=o,this.containsRTL=a,this.fauxIndentLength=s,this.lineTokens=l,this.lineDecorations=u,this.tabSize=c,this.spaceWidth=d,this.stopRenderingLineAfter=f,this.renderWhitespace=h==="all"?2:h==="boundary"?1:0,this.renderControlCharacters=p,this.fontLigatures=v}return n.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&cg.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},n}(),$l=function(){function n(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return n.getPartIndex=function(e){return(e&4294901760)>>>16},n.getCharIndex=function(e){return(e&65535)>>>0},n.prototype.setPartData=function(e,t,r,i){var o=(t<<16|r<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+r},n.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},n.prototype.charOffsetToPartData=function(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},n.prototype.partDataToCharOffset=function(e,t,r){if(this.length===0)return 0;for(var i=(e<<16|r<<0)>>>0,o=0,a=this.length-1;o+1>>1,l=this._data[s];if(l===i)return s;l>i?a=s:o=s}if(o===a)return o;var u=this._data[o],c=this._data[a];if(u===i)return o;if(c===i)return a;var d=n.getPartIndex(u),f=n.getCharIndex(u),h=n.getPartIndex(c),p;d!==h?p=t:p=n.getCharIndex(c);var v=r-f,m=p-r;return v<=m?o:a},n}(),zU=function(){function n(e,t,r){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=r}return n}();function HN(n,e){if(n.lineContent.length===0){var t=0,r=" ";if(n.lineDecorations.length>0){for(var i=[],o=0,a=n.lineDecorations.length;o')}return e.appendASCIIString(r),new zU(new $l(0,0),!1,t)}return XSe(zSe(n),e)}var $Se=function(){function n(e,t,r,i){this.characterMapping=e,this.html=t,this.containsRTL=r,this.containsForeignElements=i}return n}();function MC(n){var e=ug(1e4),t=HN(n,e);return new $Se(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}var jSe=function(){function n(e,t,r,i,o,a,s,l,u,c,d,f){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=r,this.len=i,this.isOverflowing=o,this.parts=a,this.containsForeignElements=s,this.tabSize=l,this.containsRTL=u,this.spaceWidth=c,this.renderWhitespace=d,this.renderControlCharacters=f}return n}();function zSe(n){var e=n.useMonospaceOptimizations,t=n.lineContent,r,i;n.stopRenderingLineAfter!==-1&&n.stopRenderingLineAfter0){for(var s=0,l=n.lineDecorations.length;s0&&(r[i++]=new Wi(e,""));for(var o=0,a=n.getCount();o=t){r[i++]=new Wi(t,l);break}r[i++]=new Wi(s,l)}}return r}function GSe(n,e,t){var r=0,i=[],o=0;if(t)for(var a=0,s=e.length;a=50&&(i[o++]=new Wi(d+1,c),f=d+1,d=-1);f!==u&&(i[o++]=new Wi(u,c))}else i[o++]=l;r=u}else for(var a=0,s=e.length;a50){for(var c=l.type,v=Math.ceil(p/50),h=1;hv)C=!0;else if(_===9)C=!0;else if(_===32)if(s)if(y)C=!0;else{var w=g+1=o)&&(l[u++]=new Wi(g,"vs-whitespace"),m=m%o):(g===f||C&&g>i)&&(l[u++]=new Wi(g,d),m=m%o),_===9?m=o:Cu(_)?m+=2:m++,y=C,g===f&&(c++,c0?n.charCodeAt(e-1):0,E=e>1?n.charCodeAt(e-2):0,L=S===32&&E!==32&&E!==9;L||(b=!0)}else b=!0;return l[u++]=new Wi(e,b?"vs-whitespace":d),l}function YSe(n,e,t,r){r.sort(cg.compare);for(var i=USe.normalize(n,r),o=i.length,a=0,s=[],l=0,u=0,c=0,d=t.length;cu&&(u=v.startOffset,s[l++]=new Wi(u,p)),v.endOffset+1<=h)u=v.endOffset+1,s[l++]=new Wi(u,p+" "+v.className),a++;else{u=h,s[l++]=new Wi(u,p+" "+v.className);break}}h>u&&(u=h,s[l++]=new Wi(u,p))}var m=t[t.length-1].endIndex;if(a");for(var C=0,w=l.length;C=0;if(g=0,e.appendASCIIString('0&&(!r||M>1?e.write1(8594):e.write1(65515),M--);M>0;)e.write1(160),M--}else e.write1(183);g++}_=T}else{var T=0;for(c&&e.appendASCIIString(' dir="ltr"'),e.appendASCII(62);v0;)e.write1(160),T++,M--;break;case 32:e.write1(160),T++;break;case 60:e.appendASCIIString("<"),T++;break;case 62:e.appendASCIIString(">"),T++;break;case 38:e.appendASCIIString("&"),T++;break;case 0:e.appendASCIIString("�"),T++;break;case 65279:case 8232:e.write1(65533),T++;break;default:Cu(D)&&m++,h&&D<32?(e.write1(9216+D),T++):(e.write1(D),T++)}g++}_=T}e.appendASCIIString("")}return p.setPartData(a,l.length-1,g,y),s&&e.appendASCIIString(""),e.appendASCIIString(""),new zU(p,c,i)}var O3=function(){function n(e,t,r,i){this.top=e|0,this.left=t|0,this.width=r|0,this.height=i|0}return n}(),ZSe=function(){function n(e,t){this.tabSize=e,this.data=t}return n}(),UN=function(){function n(e,t,r,i,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=r,this.maxColumn=i,this.tokens=o}return n}(),Ea=function(){function n(e,t,r,i,o,a,s,l,u){this.minColumn=e,this.maxColumn=t,this.content=r,this.continuesWithWrappedLine=i,this.isBasicASCII=n.isBasicASCII(r,a),this.containsRTL=n.containsRTL(r,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=l,this.tabSize=u}return n.isBasicASCII=function(e,t){return t?LU(e):!0},n.containsRTL=function(e,t,r){return!t&&r?SN(e):!1},n}(),H_=function(){function n(e,t,r){this.range=e,this.inlineClassName=t,this.type=r}return n}(),QSe=function(){function n(e,t){this.range=e,this.options=t}return n}();function JSe(n){return Array.isArray(n)}function e1e(n){return!JSe(n)}function KU(n){return typeof n=="string"}function N3(n){return!KU(n)}function cf(n){return!n}function du(n,e){return n.ignoreCase&&e?e.toLowerCase():e}function D3(n){return n.replace(/[&<>'"_]/g,"-")}function t1e(n,e){console.log(n.languageId+": "+e)}function cn(n,e){return new Error(n.languageId+": "+e)}function Yl(n,e,t,r,i){var o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,a=null;return e.replace(o,function(s,l,u,c,d,f,h,p,v){return cf(u)?cf(c)?!cf(d)&&d0;){var r=n.tokenizer[t];if(r)return r;var i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return null}function n1e(n,e){for(var t=e;t&&t.length>0;){var r=n.stateNames[t];if(r)return!0;var i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return!1}var GU=5,iI=function(){function n(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return n.create=function(e,t){return this._INSTANCE.create(e,t)},n.prototype.create=function(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new U_(e,t);var r=U_.getStackElementId(e);r.length>0&&(r+="|"),r+=t;var i=this._entries[r];return i||(i=new U_(e,t),this._entries[r]=i,i)},n._INSTANCE=new n(GU),n}(),U_=function(){function n(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return n.getStackElementId=function(e){for(var t="";e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},n._equals=function(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},n.prototype.equals=function(e){return n._equals(this,e)},n.prototype.push=function(e){return iI.create(this,e)},n.prototype.pop=function(){return this.parent},n.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},n.prototype.switchTo=function(e){return iI.create(this.parent,e)},n}(),nS=function(){function n(e,t){this.modeId=e,this.state=t}return n.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},n.prototype.clone=function(){var e=this.state.clone();return e===this.state?this:new n(this.modeId,this.state)},n}(),df=function(){function n(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return n.create=function(e,t){return this._INSTANCE.create(e,t)},n.prototype.create=function(e,t){if(t!==null)return new rS(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new rS(e,t);var r=U_.getStackElementId(e),i=this._entries[r];return i||(i=new rS(e,null),this._entries[r]=i,i)},n._INSTANCE=new n(GU),n}(),rS=function(){function n(e,t){this.stack=e,this.embeddedModeData=t}return n.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:df.create(this.stack,this.embeddedModeData)},n.prototype.equals=function(e){return!(e instanceof n)||!this.stack.equals(e.stack)?!1:this.embeddedModeData===null&&e.embeddedModeData===null?!0:this.embeddedModeData===null||e.embeddedModeData===null?!1:this.embeddedModeData.equals(e.embeddedModeData)},n}(),A3=Object.hasOwnProperty,r1e=function(){function n(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return n.prototype.enterMode=function(e,t){this._language=t},n.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new SC(e,t,this._language)))},n.prototype.nestedModeTokenize=function(e,t,r){var i=t.modeId,o=t.state,a=An.get(i);if(!a)return this.enterMode(r,i),this.emit(r,""),o;var s=a.tokenize(e,o,r);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},n.prototype.finalize=function(e){return new fN(this._tokens,e)},n}(),i1e=function(){function n(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return n.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},n.prototype.emit=function(e,t){var r=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==r&&(this._lastTokenMetadata=r,this._tokens.push(e),this._tokens.push(r))},n._merge=function(e,t,r){var i=e!==null?e.length:0,o=t.length,a=r!==null?r.length:0;if(i===0&&o===0&&a===0)return new Uint32Array(0);if(i===0&&o===0)return r;if(o===0&&a===0)return e;var s=new Uint32Array(i+o+a);e!==null&&s.set(e);for(var l=0;l0&&i.nestedModeTokenize(s,t.embeddedModeData,r);var l=e.substring(o);return this._myTokenize(l,t,r+o,i)},n.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},n.prototype._myTokenize=function(e,t,r,i){i.enterMode(r,this._modeId);for(var o=e.length,a=t.embeddedModeData,s=t.stack,l=0,u=null,c=!0;c||l=o)break;c=!1;var w=this._lexer.tokenizer[p];if(!w&&(w=Km(this._lexer,p),!w))throw cn(this._lexer,"tokenizer state is not defined: "+p);var b=e.substr(l);for(var S in w)if(A3.call(w,S)){var E=w[S];if((l===0||!E.matchOnlyAtLineStart)&&(v=b.match(E.regex),v)){m=v[0],g=E.action;break}}}if(v||(v=[""],m=""),g||(l=this._lexer.maxStack)throw cn(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(p)}else if(g.next==="@pop"){if(s.depth<=1)throw cn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(_));s=s.pop()}else if(g.next==="@popall")s=s.popall();else{var T=Yl(this._lexer,g.next,m,v,p);if(T[0]==="@"&&(T=T.substr(1)),Km(this._lexer,T))s=s.push(T);else throw cn(this._lexer,"trying to set a next state '"+T+"' that is undefined in rule: "+this._safeRuleName(_))}}g.log&&typeof g.log=="string"&&t1e(this._lexer,this._lexer.languageId+": "+Yl(this._lexer,g.log,m,v,p))}if(L===null)throw cn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(_));if(Array.isArray(L)){if(u&&u.groups.length>0)throw cn(this._lexer,"groups cannot be nested: "+this._safeRuleName(_));if(v.length!==L.length+1)throw cn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(_));for(var R=0,N=1;N=0&&p()})})},n.colorizeLine=function(e,t,r,i,o){o===void 0&&(o=4);var a=Ea.isBasicASCII(e,t),s=Ea.containsRTL(e,a,r),l=MC(new Bh(!1,!0,e,!1,a,s,0,i,[],o,0,-1,"none",!1,!1));return l.html},n.colorizeModelLine=function(e,t,r){r===void 0&&(r=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t),a=o.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),a,r)},n}();function iS(n,e,t){return new Promise(function(r,i){var o=function(){var a=s1e(n,e,t);if(t instanceof qU){var s=t.getLoadStatus();if(s.loaded===!1){s.promise.then(o,i);return}}r(a)};o()})}function R3(n,e){var t=[],r=16793600,i=new Uint32Array(2);i[0]=0,i[1]=r;for(var o=0,a=n.length;o")}return t.join("")}function s1e(n,e,t){for(var r=[],i=t.getInitialState(),o=0,a=n.length;o"),i=l.endState}return r.join("")}var dg;(function(n){n[n.Ignore=0]="Ignore",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error"})(dg||(dg={}));(function(n){var e="error",t="warning",r="warn",i="info",o=Object.create(null);o[n.Error]=x("sev.error","Error"),o[n.Warning]=x("sev.warning","Warning"),o[n.Info]=x("sev.info","Info");function a(s){return s?za(e,s)?n.Error:za(t,s)||za(r,s)?n.Warning:za(i,s)?n.Info:n.Ignore:n.Ignore}n.fromValue=a})(dg||(dg={}));const Ks=dg;function ds(n){return n&&typeof n.getEditorType=="function"?n.getEditorType()===xC.ICodeEditor:!1}var l1e=function(){function n(){this.data={}}return n.prototype.add=function(e,t){Vf(ss(e)),Vf(si(t)),Vf(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},n.prototype.as=function(e){return this.data[e]||null},n}(),Ti=new l1e,jN={JSONContribution:"base.contributions.json"};function u1e(n){return n.length>0&&n.charAt(n.length-1)==="#"?n.substring(0,n.length-1):n}var c1e=function(){function n(){this._onDidChangeSchema=new se,this.schemasById={}}return n.prototype.registerSchema=function(e,t){this.schemasById[u1e(e)]=t,this._onDidChangeSchema.fire(e)},n.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},n}(),d1e=new c1e;Ti.add(jN.JSONContribution,d1e);var Wh={Configuration:"base.contributions.configuration"},Gm={properties:{},patternProperties:{}},oS={properties:{},patternProperties:{}},aS={properties:{},patternProperties:{}},sS={properties:{},patternProperties:{}},lS={properties:{},patternProperties:{}},uS="vscode://schemas/settings/editor",P3=Ti.as(jN.JSONContribution),f1e=function(){function n(){this.overrideIdentifiers=[],this._onDidSchemaChange=new se,this._onDidUpdateConfiguration=new se,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:x("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),P3.registerSchema(uS,this.editorConfigurationSchema)}return n.prototype.registerConfiguration=function(e,t){t===void 0&&(t=!0),this.registerConfigurations([e],t)},n.prototype.registerConfigurations=function(e,t){var r=this;t===void 0&&(t=!0);var i=[];e.forEach(function(o){i.push.apply(i,r.validateAndRegisterProperties(o,t)),r.configurationContributors.push(o),r.registerJSONConfiguration(o),r.updateSchemaForOverrideSettingsConfiguration(o)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},n.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},n.prototype.validateAndRegisterProperties=function(e,t,r,i){t===void 0&&(t=!0),r===void 0&&(r=3),i===void 0&&(i=!1),r=au(e.scope)?r:e.scope,i=e.overridable||i;var o=[],a=e.properties;if(a)for(var s in a){var l=void 0;if(t&&(l=g1e(s))){console.warn(l),delete a[s];continue}var u=a[s],c=u.default;if(Vi(c)&&(u.default=v1e(u.type)),i&&(u.overridable=!0),zN.test(s)?u.scope=void 0:u.scope=au(u.scope)?r:u.scope,a[s].hasOwnProperty("included")&&!a[s].included){this.excludedConfigurationProperties[s]=a[s],delete a[s];continue}else this.configurationProperties[s]=a[s];o.push(s)}var d=e.allOf;if(d)for(var f=0,h=d;f"u"||e._subsetEquals(this._rawOptions,t)||(this._rawOptions=Ir(this._rawOptions,t||{}),this._validatedOptions=QF.validate(this._rawOptions,Qe),this._recomputeOptions())},e.prototype.setIsDominatedByLongLines=function(t){this._isDominatedByLongLines=t,this._recomputeOptions()},e.prototype.setMaxLineNumber=function(t){var r=e._digitCount(t);this._lineNumbersDigitCount!==r&&(this._lineNumbersDigitCount=r,this._recomputeOptions())},e._digitCount=function(t){for(var r=0;t;)t=Math.floor(t/10),r++;return r||1},e}(Ue),b1e=Ti.as(Wh.Configuration),ZU={id:"editor",order:5,type:"object",title:x("editorConfigurationTitle","Editor"),overridable:!0,scope:4,properties:{"editor.fontFamily":{type:"string",default:pp.fontFamily,description:x("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:pp.fontWeight,description:x("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:pp.fontSize,description:x("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:pp.lineHeight,description:x("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:pp.letterSpacing,description:x("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[x("lineNumbers.off","Line numbers are not rendered."),x("lineNumbers.on","Line numbers are rendered as absolute number."),x("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),x("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:x("lineNumbers","Controls the display of line numbers.")},"editor.renderFinalNewline":{type:"boolean",default:Qe.viewInfo.renderFinalNewline,description:x("renderFinalNewline","Render last line number when the file ends with a newline.")},"editor.rulers":{type:"array",items:{type:"number"},default:Qe.viewInfo.rulers,description:x("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.")},"editor.wordSeparators":{type:"string",default:Qe.wordSeparators,description:x("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:vp.tabSize,minimum:1,markdownDescription:x("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:vp.insertSpaces,markdownDescription:x("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:vp.detectIndentation,markdownDescription:x("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:Qe.viewInfo.roundedSelection,description:x("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:Qe.viewInfo.scrollBeyondLastLine,description:x("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:Qe.viewInfo.scrollBeyondLastColumn,description:x("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:Qe.viewInfo.smoothScrolling,description:x("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:Qe.viewInfo.minimap.enabled,description:x("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Qe.viewInfo.minimap.side,description:x("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Qe.viewInfo.minimap.showSlider,description:x("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:Qe.viewInfo.minimap.renderCharacters,description:x("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Qe.viewInfo.minimap.maxColumn,description:x("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:Qe.contribInfo.hover.enabled,description:x("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Qe.contribInfo.hover.delay,description:x("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Qe.contribInfo.hover.sticky,description:x("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Qe.contribInfo.find.seedSearchStringFromSelection,description:x("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:Qe.contribInfo.find.autoFindInSelection,description:x("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:Qe.contribInfo.find.globalFindClipboard,description:x("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Vt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:x("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.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[x("wordWrap.off","Lines will never wrap."),x("wordWrap.on","Lines will wrap at the viewport width."),x({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),x({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#`.")],default:Qe.wordWrap,description:x({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.")},"editor.wordWrapColumn":{type:"integer",default:Qe.wordWrapColumn,minimum:1,markdownDescription:x({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`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[x("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),x("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),x("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),x("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:x("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:Qe.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:x("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.fastScrollSensitivity":{type:"number",default:Qe.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:x("fastScrollSensitivity","Scrolling speed mulitiplier when pressing `Alt`.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[x("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),x("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:x({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).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:Qe.multiCursorMergeOverlapping,description:x("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:x("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:x("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:x("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Qe.contribInfo.quickSuggestions,description:x("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:Qe.contribInfo.quickSuggestionsDelay,minimum:0,description:x("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:Qe.contribInfo.parameterHints.enabled,description:x("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Qe.contribInfo.parameterHints.cycle,description:x("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",x("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),x("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:Qe.autoClosingBrackets,description:x("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",x("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),x("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:Qe.autoClosingQuotes,description:x("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[x("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),x("editor.autoSurround.brackets","Surround with brackets but not quotes."),x("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:Qe.autoSurround,description:x("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:Qe.contribInfo.formatOnType,description:x("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:Qe.contribInfo.formatOnPaste,description:x("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.")},"editor.autoIndent":{type:"boolean",default:Qe.autoIndent,description:x("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:Qe.contribInfo.suggestOnTriggerCharacters,description:x("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:Qe.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",x("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:x("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:Qe.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:x("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.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[x("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),x("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),x("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),x("snippetSuggestions.none","Do not show snippet suggestions.")],default:Qe.contribInfo.suggest.snippets,description:x("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:Qe.emptySelectionClipboard,description:x("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:Qe.copyWithSyntaxHighlighting,description:x("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:Qe.contribInfo.wordBasedSuggestions,description:x("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[x("suggestSelection.first","Always select the first suggestion."),x("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),x("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:x("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:x("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:x("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[x("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),x("tabCompletion.off","Disable tab completions."),x("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:x("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:x("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:x("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:x("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:x("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Qe.contribInfo.suggest.showIcons,description:x("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Qe.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:x("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0},markdownDescription:x("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:x("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:x("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:Qe.contribInfo.gotoLocation.multiple,enumDescriptions:[x("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),x("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),x("editor.gotoLocation.multiple.goto","Go to the primary result and ignore others")]},"editor.selectionHighlight":{type:"boolean",default:Qe.contribInfo.selectionHighlight,description:x("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:Qe.contribInfo.occurrencesHighlight,description:x("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:x("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:Qe.viewInfo.overviewRulerBorder,description:x("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:hCe(Qe.viewInfo.cursorBlinking),description:x("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:Qe.viewInfo.mouseWheelZoom,markdownDescription:x("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:Qe.viewInfo.cursorSmoothCaretAnimation,description:x("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:pCe(Qe.viewInfo.cursorStyle),description:x("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:Qe.viewInfo.cursorWidth,markdownDescription:x("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:Qe.viewInfo.fontLigatures,description:x("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:Qe.viewInfo.hideCursorInOverviewRuler,description:x("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",x("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:Qe.viewInfo.renderWhitespace,description:x("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:Qe.viewInfo.renderControlCharacters,description:x("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:Qe.viewInfo.renderIndentGuides,description:x("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:Qe.viewInfo.highlightActiveIndentGuide,description:x("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",x("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:Qe.viewInfo.renderLineHighlight,description:x("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:Qe.contribInfo.codeLens,description:x("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:Qe.contribInfo.folding,description:x("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:Qe.contribInfo.foldingStrategy,markdownDescription:x("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:Qe.contribInfo.showFoldingControls,description:x("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:Qe.contribInfo.matchBrackets,description:x("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:Qe.viewInfo.glyphMargin,description:x("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:Qe.useTabStops,description:x("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:vp.trimAutoWhitespace,description:x("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:x("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:Qe.dragAndDrop,description:x("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[x("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),x("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),x("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:Qe.accessibilitySupport,description:x("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:Qe.showUnused,description:x("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:Qe.contribInfo.links,description:x("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:Qe.contribInfo.colorDecorators,description:x("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:Qe.contribInfo.lightbulbEnabled,description:x("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:x("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:x("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:x("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:Qe.contribInfo.codeActionsOnSave,description:x("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:Qe.contribInfo.codeActionsOnSaveTimeout,description:x("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:Qe.contribInfo.selectionClipboard,description:x("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:gs},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:x("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:x("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:vp.largeFileOptimizations,description:x("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:x("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},qm=null;function QU(){return qm===null&&(qm=Object.create(null),Object.keys(ZU.properties).forEach(function(n){qm[n]=!0})),qm}function C1e(n){var e=QU();return e["editor."+n]||!1}function w1e(n){var e=QU();return e["diffEditor."+n]||!1}b1e.registerConfiguration(ZU);var wr=function(){function n(){}return n.insert=function(e,t){return{range:new q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},n.delete=function(e){return{range:e,text:null}},n.replace=function(e,t){return{range:e,text:t}},n.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},n}(),di=nn("configurationService");function S1e(n,e){var t=Object.create(null);for(var r in n)KN(t,r,n[r],e);return t}function KN(n,e,t,r){for(var i=e.split("."),o=i.pop(),a=n,s=0;s"u"?t:o}function I1e(){var n=Ti.as(Wh.Configuration).getConfigurationProperties();return Object.keys(n)}function T1e(){var n=Object.create(null),e=Ti.as(Wh.Configuration).getConfigurationProperties();for(var t in e){var r=e[t].default;KN(n,t,r,function(i){return console.error("Conflict in default settings: "+i)})}return n}function x1e(n){return n.substring(1,n.length-1)}function O1e(n,e,t){var r=n.inspect(e),i=n.inspect(t);return typeof r.user<"u"||typeof r.workspace<"u"||typeof r.workspaceFolder<"u"?r.value:typeof i.user<"u"||typeof i.workspace<"u"||typeof i.workspaceFolder<"u"?i.value:r.default}var N1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wf=function(){function n(e,t,r){e===void 0&&(e={}),t===void 0&&(t=[]),r===void 0&&(r=[]),this._contents=e,this._keys=t,this._overrides=r,this.isFrozen=!1}return Object.defineProperty(n.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),n.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},n.prototype.getValue=function(e){return e?L1e(this.contents,e):this.contents},n.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||typeof t!="object"||!Object.keys(t).length)return this;for(var r={},i=0,o=j7(Object.keys(this.contents).concat(Object.keys(t)));i5e3&&i._leaveChordMode()},500)},e.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},e.prototype._dispatch=function(t,r){return this._doDispatch(this.resolveKeyboardEvent(t),r)},e.prototype._doDispatch=function(t,r){var i=this,o=!1;if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var a=t.getDispatchParts()[0];if(a===null)return o;var s=this._contextKeyService.getContext(r),l=this._currentChord?this._currentChord.keypress:null,u=t.getLabel(),c=this._getResolver().resolve(s,l,a);return c&&c.enterChord?(o=!0,this._enterChordMode(a,u),o):(this._statusService&&this._currentChord&&(!c||!c.commandId)&&(this._statusService.setStatusMessage(x("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,u),10*1e3),o=!0),this._leaveChordMode(),c&&c.commandId&&(c.bubble||(o=!0),typeof c.commandArgs>"u"?this._commandService.executeCommand(c.commandId).then(void 0,function(d){return i._notificationService.warn(d)}):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,function(d){return i._notificationService.warn(d)}),this._telemetryService.publicLog("workbenchActionExecuted",{id:c.commandId,from:"keybinding"})),o)},e.prototype.mightProducePrintableCharacter=function(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30},e}(Ue),M1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),dt=function(){function n(){}return n.has=function(e){return new ad(e)},n.equals=function(e,t){return new qy(e,t)},n.regex=function(e,t){return new M3(e,t)},n.not=function(e){return new Yy(e)},n.and=function(){for(var e=[],t=0;t=0){var r=e.split("!=");return new F1e(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("==")>=0){var r=e.split("==");return new qy(r[0].trim(),this._deserializeValue(r[1],t))}if(e.indexOf("=~")>=0){var r=e.split("=~");return new M3(r[0].trim(),this._deserializeRegexValue(r[1],t))}return/^\!\s*/.test(e)?new Yy(e.substr(1).trim()):new ad(e)},n._deserializeValue=function(e,t){if(e=e.trim(),e==="true")return!0;if(e==="false")return!1;var r=/^'([^']*)'$/.exec(e);return r?r[1].trim():e},n._deserializeRegexValue=function(e,t){if(CU(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var r=e.indexOf("/"),i=e.lastIndexOf("/");if(r===i||r<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(r+1,i),a=e[i+1]==="i"?"i":"";try{return new RegExp(o,a)}catch(s){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+s);return console.warn("bad regexp-value '"+e+"', parse error: "+s),null}},n}();function k1e(n,e){var t=n.getType(),r=e.getType();if(t!==r)return t-r;switch(t){case 1:return n.cmp(e);case 2:return n.cmp(e);case 3:return n.cmp(e);case 4:return n.cmp(e);case 6:return n.cmp(e);default:throw new Error("Unknown ContextKeyExpr!")}}var ad=function(){function n(e){this.key=e}return n.prototype.getType=function(){return 1},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!!e.getValue(this.key)},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),qy=function(){function n(e,t){this.key=e,this.value=t}return n.prototype.getType=function(){return 3},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},n.prototype.normalize=function(){return typeof this.value=="boolean"?this.value?new ad(this.key):new Yy(this.key):this},n.prototype.keys=function(){return[this.key]},n}(),F1e=function(){function n(e,t){this.key=e,this.value=t}return n.prototype.getType=function(){return 4},n.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key&&this.value===e.value:!1},n.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},n.prototype.normalize=function(){return typeof this.value=="boolean"?this.value?new Yy(this.key):new ad(this.key):this},n.prototype.keys=function(){return[this.key]},n}(),Yy=function(){function n(e){this.key=e}return n.prototype.getType=function(){return 2},n.prototype.cmp=function(e){return this.keye.key?1:0},n.prototype.equals=function(e){return e instanceof n?this.key===e.key:!1},n.prototype.evaluate=function(e){return!e.getValue(this.key)},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),M3=function(){function n(e,t){this.key=e,this.regexp=t}return n.prototype.getType=function(){return 6},n.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return tr?1:0},n.prototype.equals=function(e){if(e instanceof n){var t=this.regexp?this.regexp.source:"",r=e.regexp?e.regexp.source:"";return this.key===e.key&&t===r}return!1},n.prototype.evaluate=function(e){var t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1},n.prototype.normalize=function(){return this},n.prototype.keys=function(){return[this.key]},n}(),fg=function(){function n(e){this.expr=n._normalizeArr(e)}return n.prototype.getType=function(){return 5},n.prototype.equals=function(e){if(e instanceof n){if(this.expr.length!==e.expr.length)return!1;for(var t=0,r=this.expr.length;t=0;d--)this._isTargetedForRemoval(e[d],l,u,s,c)&&e.splice(d,1)}return e.concat(r)},n.prototype._addKeyPress=function(e,t){var r=this._map.get(e);if(typeof r>"u"){this._map.set(e,[t]),this._addToLookupMap(t);return}for(var i=r.length-1;i>=0;i--){var o=r[i];if(o.command!==t.command){var a=o.keypressParts.length>1,s=t.keypressParts.length>1;a&&s&&o.keypressParts[1]!==t.keypressParts[1]||n.whenIsEntirelyIncluded(o.when,t.when)&&this._removeFromLookupMap(o)}}r.push(t),this._addToLookupMap(t)},n.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);typeof t>"u"?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},n.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(!(typeof t>"u")){for(var r=0,i=t.length;r"u"||t.length===0?null:t[t.length-1]},n.prototype.resolve=function(e,t,r){var i=null;if(t!==null){var o=this._map.get(t);if(typeof o>"u")return null;i=[];for(var a=0,s=o.length;a"u")return null;i=o}var u=this._findCommand(e,i);return u?t===null&&u.keypressParts.length>1&&u.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},n.prototype._findCommand=function(e,t){for(var r=t.length-1;r>=0;r--){var i=t[r];if(n.contextMatchesRules(e,i.when))return i}return null},n.contextMatchesRules=function(e,t){return t?t.evaluate(e):!0},n}(),W1e=function(){function n(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return n.bindToCurrentPlatform=function(e){if(Ha===1){if(e&&e.win)return e.win}else if(Ha===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},n.prototype.registerKeybindingRule=function(e){var t=n.bindToCurrentPlatform(e);if(t&&t.primary){var r=Dy(t.primary,Ha);r&&this._registerDefaultKeybinding(r,e.id,void 0,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(var i=0,o=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},n.prototype._assertNoCtrlAlt=function(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&n._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)},n.prototype._registerDefaultKeybinding=function(e,t,r,i,o,a){Ha===1&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:r,when:a,weight1:i,weight2:o}),this._cachedMergedKeybindings=null},n.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(H1e)),this._cachedMergedKeybindings.slice(0)},n}(),Jo=new W1e,V1e={EditorModes:"platform.keybindingsRegistry"};Ti.add(V1e.EditorModes,Jo);function H1e(n,e){return n.weight1!==e.weight1?n.weight1-e.weight1:n.commande.command?1:n.weight2-e.weight2}var k3=function(){function n(e,t,r,i,o){this.resolvedKeybinding=e,this.keypressParts=e?U1e(e.getDispatchParts()):[],this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=r,this.when=i,this.isDefault=o}return n}();function U1e(n){for(var e=[],t=0,r=n.length;t1},e.prototype.getParts=function(){var t=this;return this._parts.map(function(r){return t._getPart(r)})},e.prototype._getPart=function(t){return new RCe(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,this._getLabel(t),this._getAriaLabel(t))},e.prototype.getDispatchParts=function(){var t=this;return this._parts.map(function(r){return t._getDispatchPart(r)})},e}(PCe),G1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),F3=function(n){G1e(e,n);function e(t,r){return n.call(this,r,t.parts)||this}return e.prototype._keyCodeToUILabel=function(t){if(this._os===2)switch(t){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return Wf.toString(t)},e.prototype._getLabel=function(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)},e.prototype._getAriaLabel=function(t){return t.isDuplicateModifierCase()?"":Wf.toString(t.keyCode)},e.prototype._getDispatchPart=function(t){return e.getDispatchStr(t)},e.getDispatchStr=function(t){if(t.isModifierKey())return null;var r="";return t.ctrlKey&&(r+="ctrl+"),t.shiftKey&&(r+="shift+"),t.altKey&&(r+="alt+"),t.metaKey&&(r+="meta+"),r+=Wf.toString(t.keyCode),r},e}(K1e),fi=nn("notificationService"),q1e=function(){function n(){}return n}(),r9=nn("contextService"),B3;(function(n){function e(t){return t&&typeof t=="object"&&typeof t.id=="string"&&Array.isArray(t.folders)}n.isIWorkspace=e})(B3||(B3={}));var W3;(function(n){function e(t){return t&&typeof t=="object"&&Yt.isUri(t.uri)&&typeof t.name=="string"&&typeof t.toResource=="function"}n.isIWorkspaceFolder=e})(W3||(W3={}));(function(){function n(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=null),this._id=e,this._configuration=r,this._foldersMap=JL.forPaths(),this.folders=t}return Object.defineProperty(n.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),n.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.toString())||null},n.prototype.updateFoldersMap=function(){this._foldersMap=JL.forPaths();for(var e=0,t=this.folders;e=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Q1e=function(n,e){return function(t,r){e(t,r,n)}},J1e=function(){function n(e){this.model=e,this._onDispose=new se}return Object.defineProperty(n.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),n.prototype.dispose=function(){this._onDispose.fire()},n}();function eEe(n,e,t){return ds(n)?e(n):t(n)}var tEe=function(){function n(){}return n.prototype.setEditor=function(e){this.editor=e},n.prototype.createModelReference=function(e){var t=this,r=eEe(this.editor,function(i){return t.findModel(i,e)},function(i){return t.findModel(i.getOriginalEditor(),e)||t.findModel(i.getModifiedEditor(),e)});return r?Promise.resolve(new TCe(new J1e(r))):Promise.reject(new Error("Model not found"))},n.prototype.findModel=function(e,t){var r=e.getModel();return r&&r.uri.toString()!==t.toString()?null:r},n}(),nEe=function(){function n(){}return n.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},n}(),rEe=function(){function n(){}return n}(),iEe=function(){function n(){}return n.prototype.info=function(e){return this.notify({severity:Ks.Info,message:e})},n.prototype.warn=function(e){return this.notify({severity:Ks.Warning,message:e})},n.prototype.error=function(e){return this.notify({severity:Ks.Error,message:e})},n.prototype.notify=function(e){switch(e.severity){case Ks.Error:console.error(e.message);break;case Ks.Warning:console.warn(e.message);break;default:console.log(e.message);break}return n.NO_OP},n.NO_OP=new q1e,n}(),i9=function(){function n(e){this._onWillExecuteCommand=new se,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return n.prototype.addCommand=function(e){var t=this,r=e.id;return this._dynamicCommands[r]=e,Bn(function(){delete t._dynamicCommands[r]})},n.prototype.executeCommand=function(e){for(var t=[],r=1;r"u"?this.configurationService.getValue():this.configurationService.getValue(o)},n}(),aEe=function(){function n(e){this.configurationService=e}return n.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");return t&&t.eol&&t.eol!=="auto"?t.eol:gs||Vt?` `:`\r -`},n=g1e([m1e(0,di)],n),n}(),I1e=function(){function n(){}return n.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},n}(),T1e=function(){function n(){var e=Xt.from({scheme:n.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new p1e({uri:e,name:"",index:0})]}}return n.prototype.getWorkspace=function(){return this.workspace},n.prototype.getWorkspaceFolder=function(e){return e&&e.scheme===n.SCHEME?this.workspace.folders[0]:null},n.SCHEME="inmemory",n}();function Zy(n,e,t){e&&n instanceof l9&&Object.keys(e).forEach(function(r){VSe(r)&&n.updateValue("editor."+r,e[r]),t&&HSe(r)&&n.updateValue("diffEditor."+r,e[r])})}var x1e=function(){function n(e){this._modelService=e}return n.prototype.apply=function(e,t){var r=new Map;if(e.edits)for(var i=0,o=e.edits;i.001){w=!1;break}}var T=!0;w&&y.width!==C&&(T=!1),y.width>_.width&&(T=!1);var P=dCe()>2e3;return new eI({zoomLevel:Ry(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:w,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:a.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:s.width,maxDigitWidth:b},P)},e.INSTANCE=new e,e}($e),Oo=function(n){c9(e,n);function e(t,r,i,o){i===void 0&&(i=null);var a=n.call(this,t,r)||this;return a.accessibilityService=o,a._elementSizeObserver=a._register(new k1e(i,function(){return a._onReferenceDomElementSizeChanged()})),a._register(cI.INSTANCE.onDidChange(function(){return a._onCSSBasedConfigurationChanged()})),a._validatedOptions.automaticLayout&&a._elementSizeObserver.startObserving(),a._register(hU(function(s){return a._recomputeOptions()})),a._register(a.accessibilityService.onDidChangeAccessibilitySupport(function(){return a._recomputeOptions()})),a._recomputeOptions(),a}return e.applyFontInfoSlow=function(t,r){t.style.fontFamily=r.getMassagedFontFamily(),t.style.fontWeight=r.fontWeight,t.style.fontSize=r.fontSize+"px",t.style.lineHeight=r.lineHeight+"px",t.style.letterSpacing=r.letterSpacing+"px"},e.applyFontInfo=function(t,r){t.setFontFamily(r.getMassagedFontFamily()),t.setFontWeight(r.fontWeight),t.setFontSize(r.fontSize),t.setLineHeight(r.lineHeight),t.setLetterSpacing(r.letterSpacing)},e.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},e.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},e.prototype.observeReferenceElement=function(t){this._elementSizeObserver.observe(t)},e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._getExtraEditorClassName=function(){var t="";return!OC&&!hCe&&(t+="no-user-select "),Vt&&(t+="mac "),t},e.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:kc||rl,pixelRatio:fCe(),zoomLevel:Ry(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},e.prototype.readConfiguration=function(t){return cI.INSTANCE.readConfiguration(t)},e}(BSe),B1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xo=function(){function n(e,t,r,i,o){t===void 0&&(t=""),r===void 0&&(r=""),i===void 0&&(i=!0),this._onDidChange=new ae,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=r,this._enabled=i,this._actionCallback=o}return Object.defineProperty(n.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),n.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(n.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),n.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(n.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),n.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(n.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),n.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),n.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},n.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},n.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},n.prototype.dispose=function(){this._onDidChange.dispose()},n}(),d9=function(n){B1e(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new ae),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new ae),t.onDidRun=t._onDidRun.event,t}return e.prototype.run=function(t,r){var i=this;return t.enabled?(this._onDidBeforeRun.fire({action:t}),this.runAction(t,r).then(function(o){i._onDidRun.fire({action:t,result:o})},function(o){i._onDidRun.fire({action:t,error:o})})):Promise.resolve(null)},e.prototype.runAction=function(t,r){var i=r?t.run(r):t.run();return Promise.resolve(i)},e}($e),GN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),f9=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},dI=function(n,e){return function(t,r){e(t,r,n)}};function U_(n){return n.command!==void 0}var h9=nn("menuService"),La=new(function(){function n(){this._commands=Object.create(null),this._menuItems=Object.create(null),this._onDidChangeMenu=new ae,this.onDidChangeMenu=this._onDidChangeMenu.event}return n.prototype.addCommand=function(e){var t=this;return this._commands[e.id]=e,this._onDidChangeMenu.fire(0),{dispose:function(){delete t._commands[e.id]&&t._onDidChangeMenu.fire(0)}}},n.prototype.getCommand=function(e){return this._commands[e]},n.prototype.getCommands=function(){var e=Object.create(null);for(var t in this._commands)e[t]=this.getCommand(t);return e},n.prototype.appendMenuItem=function(e,t){var r=this,i=this._menuItems[e];return i?i.push(t):this._menuItems[e]=i=[t],this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);o>=0&&(i.splice(o,1),r._onDidChangeMenu.fire(e))}}},n.prototype.getMenuItems=function(e){var t=(this._menuItems[e]||[]).slice(0);return e===0&&this._appendImplicitItems(t),t},n.prototype._appendImplicitItems=function(e){for(var t=new Set,r=e.filter(function(c){return U_(c)}),i=0,o=r;i=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Ur;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(Ur||(Ur={}));var Bh=function(n){j1e(e,n);function e(){var t=n.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(We(document,"touchstart",function(r){return t.onTouchStart(r)})),t._register(We(document,"touchend",function(r){return t.onTouchEnd(r)})),t._register(We(document,"touchmove",function(r){return t.onTouchMove(r)})),t}return e.addTarget=function(t){e.isTouchDevice()&&(e.INSTANCE||(e.INSTANCE=new e),e.INSTANCE.targets.push(t))},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},e.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),n.prototype.dispose.call(this)},e.prototype.onTouchStart=function(t){var r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,o=t.targetTouches.length;i=e.HOLD_DELAY&&Math.abs(f.initialPageX-fo(f.rollingPageX))<30&&Math.abs(f.initialPageY-fo(f.rollingPageY))<30){var p=a.newGestureEvent(Ur.Contextmenu,f.initialTarget);p.pageX=fo(f.rollingPageX),p.pageY=fo(f.rollingPageY),a.dispatchEvent(p)}else if(i===1){var v=fo(f.rollingPageX),m=fo(f.rollingPageY),g=fo(f.rollingTimestamps)-f.rollingTimestamps[0],_=v-f.rollingPageX[0],y=m-f.rollingPageY[0],b=a.targets.filter(function(w){return f.initialTarget instanceof Node&&w.contains(f.initialTarget)});a.inertia(b,r,Math.abs(_)/g,_>0?1:-1,v,Math.abs(y)/g,y>0?1:-1,m)}a.dispatchEvent(a.newGestureEvent(Ur.End,f.initialTarget)),delete a.activeTouches[d.identifier]},a=this,s=0,l=t.changedTouches.length;s0&&(v=!1,h=o*i*f),s>0&&(v=!1,p=l*s*f);var m=c.newGestureEvent(Ur.Change);m.translationX=h,m.translationY=p,t.forEach(function(g){return g.dispatchEvent(m)}),v||c.inertia(t,d,i,o,a+h,s,l,u+p)})},e.prototype.onTouchMove=function(t){for(var r=Date.now(),i=0,o=t.changedTouches.length;i3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(a.pageX),s.rollingPageY.push(a.pageY),s.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,z1e([Vo],e,"isTouchDevice",null),e}($e),K1e=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function Wh(n,e){var t=new jr(e);return t.preventDefault(),{leftButton:t.leftButton,posx:t.posx,posy:t.posy}}var Cd=function(n){K1e(e,n);function e(){var t=n.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return e.prototype.dispose=function(){this.stopMonitoring(!1),n.prototype.dispose.call(this)},e.prototype.stopMonitoring=function(t){if(this.isMonitoring()){this.hooks=Ne(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var r=this.onStopCallback;this.onStopCallback=null,t&&r&&r()}},e.prototype.isMonitoring=function(){return this.hooks.length>0},e.prototype.startMonitoring=function(t,r,i){var o=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=t,this.mouseMoveCallback=r,this.onStopCallback=i;for(var a=GL.getSameOriginWindowChain(),s=0,l=a;s=u?o=Math.max(o,u+c-i):(t[r++]=new hu(i,o),i=u,o=c)}return t[r++]=new hu(i,o),t},n._createHorizontalRangesFromClientRects=function(e,t){if(!e||e.length===0)return null;for(var r=[],i=0,o=e.length;iu)return null;t=Math.min(u,Math.max(l,t)),i=Math.min(u,Math.max(l,i)),t!==i&&i>0&&o===0&&(i--,o=Number.MAX_VALUE);var c=e.children[t].firstChild,d=e.children[i].firstChild;if((!c||!d)&&(!c&&r===0&&t>0&&(c=e.children[t-1].firstChild,r=1073741824),!d&&o===0&&i>0&&(d=e.children[i-1].firstChild,o=1073741824)),!c||!d)return null;r=Math.min(c.textContent.length,Math.max(0,r)),o=Math.min(d.textContent.length,Math.max(0,o));var f=this._readClientRects(c,r,d,o,s);return this._createHorizontalRangesFromClientRects(f,a)},n}(),Fr=nn("themeService");function Ca(n){return{id:n}}var nEe="dark",gh="hc";function Qy(n){switch(n){case nEe:return"vs-dark";case gh:return"hc-black";default:return"vs"}}var _9={ThemingContribution:"base.contributions.theming"},rEe=function(){function n(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ae}return n.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Bn(function(){var r=t.themingParticipants.indexOf(e);t.themingParticipants.splice(r,1)})},n.prototype.getThemingParticipants=function(){return this.themingParticipants},n}(),y9=new rEe;Ti.add(_9.ThemingContribution,y9);function Cn(n){return y9.onThemeChange(n)}var iEe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),oEe=function(){return ss?!0:!(vs||rl||OC)}(),z3=uu,K3=function(){function n(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(n.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),n}(),G3=function(){function n(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return n.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},n}(),wf=function(){function n(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return n.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},n.prototype.setDomNode=function(e){if(this._renderedViewLine)this._renderedViewLine.domNode=Bt(e);else throw new Error("I have no rendered view line to set the dom node to...")},n.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},n.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},n.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},n.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},n.prototype.onSelectionChanged=function(){return z3||this._options.themeType===gh?(this._isMaybeInvalid=!0,!0):!1},n.prototype.renderLine=function(e,t,r,i){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(e),a=this._options,s=ag.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);if(z3||a.themeType===gh)for(var l=r.selections,u=0,c=l;ue)){var f=d.startLineNumber===e?d.startColumn:o.minColumn,h=d.endLineNumber===e?d.endColumn:o.maxColumn;f');var v=HN(p,i);i.appendASCIIString("");var m=null;return oEe&&o.isBasicASCII&&a.useMonospaceOptimizations&&v.containsForeignElements===0&&o.content.length<300&&p.lineTokens.getCount()<100&&(m=new aEe(this._renderedViewLine?this._renderedViewLine.domNode:null,p,v.characterMapping)),m||(m=lEe(this._renderedViewLine?this._renderedViewLine.domNode:null,p,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=m,!0},n.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},n.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},n.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},n.prototype.getVisibleRangesForRange=function(e,t,r){if(!this._renderedViewLine)return null;e=e|0,t=t|0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=this._renderedViewLine.input.stopRenderingLineAfter|0;return i!==-1&&e>i&&t>i?null:(i!==-1&&e>i&&(e=i),i!==-1&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,r))},n.prototype.getColumnOfNodeOffset=function(e,t,r){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,r):1},n.CLASS_NAME="view-line",n}(),aEe=function(){function n(e,t,r){this.domNode=e,this.input=t,this._characterMapping=r,this._charWidth=t.spaceWidth}return n.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},n.prototype.getWidthIsFast=function(){return!0},n.prototype.getVisibleRangesForRange=function(e,t,r){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new hu(i,o-i)]},n.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[e-1])},n.prototype.getColumnOfNodeOffset=function(e,t,r){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var a=this._characterMapping.partDataToCharOffset(o,i,r);return a+1},n}(),b9=function(){function n(e,t,r,i,o){if(this.domNode=e,this.input=t,this._characterMapping=r,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var a=0,s=this._characterMapping.length;a<=s;a++)this._pixelOffsetCache[a]=-1}}return n.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},n.prototype.getWidth=function(){return this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},n.prototype.getWidthIsFast=function(){return this._cachedWidth!==-1},n.prototype.getVisibleRangesForRange=function(e,t,r){if(this._pixelOffsetCache!==null){var i=this._readPixelOffset(e,r);if(i===-1)return null;var o=this._readPixelOffset(t,r);return o===-1?null:[new hu(i,o-i)]}return this._readVisibleRangesForRange(e,t,r)},n.prototype._readVisibleRangesForRange=function(e,t,r){if(e===t){var i=this._readPixelOffset(e,r);return i===-1?null:[new hu(i,0)]}else return this._readRawVisibleRangesForRange(e,t,r)},n.prototype._readPixelOffset=function(e,t){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth()}if(this._pixelOffsetCache!==null){var r=this._pixelOffsetCache[e];if(r!==-1)return r;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},n.prototype._actualReadPixelOffset=function(e,t){if(this._characterMapping.length===0){var r=vS.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return!r||r.length===0?-1:r[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=$l.getPartIndex(i),a=$l.getCharIndex(i),s=vS.readHorizontalRanges(this._getReadingTarget(),o,a,o,a,t.clientRectDeltaLeft,t.endNode);return!s||s.length===0?-1:s[0].left},n.prototype._readRawVisibleRangesForRange=function(e,t,r){if(e===1&&t===this._characterMapping.length)return[new hu(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=$l.getPartIndex(i),a=$l.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),l=$l.getPartIndex(s),u=$l.getCharIndex(s);return vS.readHorizontalRanges(this._getReadingTarget(),o,a,l,u,r.clientRectDeltaLeft,r.endNode)},n.prototype.getColumnOfNodeOffset=function(e,t,r){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var a=this._characterMapping.partDataToCharOffset(o,i,r);return a+1},n}(),sEe=function(n){iEe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._readVisibleRangesForRange=function(t,r,i){var o=n.prototype._readVisibleRangesForRange.call(this,t,r,i);if(!o||o.length===0||t===r||t===1&&r===this._characterMapping.length)return o;if(!this.input.containsRTL){var a=this._readPixelOffset(r,i);if(a!==-1){var s=o[o.length-1];s.left=4&&e[0]===3&&e[3]===7},n.isStrictChildOfViewLines=function(e){return e.length>4&&e[0]===3&&e[3]===7},n.isChildOfScrollableElement=function(e){return e.length>=2&&e[0]===3&&e[1]===5},n.isChildOfMinimap=function(e){return e.length>=2&&e[0]===3&&e[1]===8},n.isChildOfContentWidgets=function(e){return e.length>=4&&e[0]===3&&e[3]===1},n.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&e[0]===2},n.isChildOfOverlayWidgets=function(e){return e.length>=2&&e[0]===3&&e[1]===4},n}(),pI=function(){function n(e,t,r){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=r,this._context=e,this._viewHelper=t}return n.prototype.getZoneAtCoord=function(e){return n.getZoneAtCoord(this._context,e)},n.getZoneAtCoord=function(e,t){var r=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(r){var i=r.verticalOffset+r.height/2,o=e.model.getLineCount(),a=null,s=void 0,l=null;return r.afterLineNumber!==o&&(l=new he(r.afterLineNumber+1,1)),r.afterLineNumber>0&&(a=new he(r.afterLineNumber,e.model.getLineMaxColumn(r.afterLineNumber))),l===null?s=a:a===null?s=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,C9._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return n}(),hEe=function(n){dEe(e,n);function e(t,r,i,o){var a=n.call(this,t,r,i)||this;return a._ctx=t,o?(a.target=o,a.targetPath=ds.collect(o,t.viewDomNode)):(a.target=null,a.targetPath=new Uint8Array(0)),a}return e.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+` - target: `+(this.target?this.target.outerHTML:null)},e.prototype.fulfill=function(t,r,i,o){return r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=null),new ks(this.target,t,this.mouseColumn,r,i,o)},e.prototype.withTarget=function(t){return new e(this._ctx,this.editorPos,this.pos,t)},e}(fEe),pEe={isAfterLines:!0};function gS(n){return{isAfterLines:!1,horizontalDistanceToText:n}}var C9=function(){function n(e,t){this._context=e,this._viewHelper=t}return n.prototype.mouseTargetIsWidget=function(e){var t=e.target,r=ds.collect(t,this._viewHelper.viewDomNode);return!!(Bo.isChildOfContentWidgets(r)||Bo.isChildOfOverflowingContentWidgets(r)||Bo.isChildOfOverlayWidgets(r))},n.prototype.createMouseTarget=function(e,t,r,i){var o=new pI(this._context,this._viewHelper,e),a=new hEe(o,t,r,i);try{var s=n._createMouseTarget(o,a,!1);return s}catch{return a.fulfill(0)}},n._createMouseTarget=function(e,t,r){if(t.target===null){if(r)return t.fulfill(0);var i=n._doHitTest(e,t);return i.position?n.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}var o=t,a=null;return a=a||n._hitTestContentWidget(e,o),a=a||n._hitTestOverlayWidget(e,o),a=a||n._hitTestMinimap(e,o),a=a||n._hitTestScrollbarSlider(e,o),a=a||n._hitTestViewZone(e,o),a=a||n._hitTestMargin(e,o),a=a||n._hitTestViewCursor(e,o),a=a||n._hitTestTextArea(e,o),a=a||n._hitTestViewLines(e,o,r),a=a||n._hitTestScrollbar(e,o),a||t.fulfill(0)},n._hitTestContentWidget=function(e,t){if(Bo.isChildOfContentWidgets(t.targetPath)||Bo.isChildOfOverflowingContentWidgets(t.targetPath)){var r=e.findAttribute(t.target,"widgetId");return r?t.fulfill(9,null,null,r):t.fulfill(0)}return null},n._hitTestOverlayWidget=function(e,t){if(Bo.isChildOfOverlayWidgets(t.targetPath)){var r=e.findAttribute(t.target,"widgetId");return r?t.fulfill(12,null,null,r):t.fulfill(0)}return null},n._hitTestViewCursor=function(e,t){if(t.target)for(var r=e.lastViewCursorsRenderData,i=0,o=r;ia.contentLeft+a.width)){var d=e.getVerticalOffsetForLineNumber(a.position.lineNumber);if(d<=l&&l<=d+a.height)return t.fulfill(6,a.position)}}return null},n._hitTestViewZone=function(e,t){var r=e.getZoneAtCoord(t.mouseVerticalOffset);if(r){var i=t.isInContentArea?8:5;return t.fulfill(i,r.position,null,r)}return null},n._hitTestTextArea=function(e,t){return Bo.isTextArea(t.targetPath)?t.fulfill(1):null},n._hitTestMargin=function(e,t){if(t.isInMarginArea){var r=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=r.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),a={isAfterLines:r.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.fulfill(2,i,r.range,a):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,r.range,a):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,r.range,a)))}return null},n._hitTestViewLines=function(e,t,r){if(!Bo.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var i=e.model.getLineCount(),o=e.model.getLineMaxColumn(i);return t.fulfill(7,new he(i,o),void 0,pEe)}if(r){if(Bo.isStrictChildOfViewLines(t.targetPath)){var a=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.model.getLineLength(a)===0){var s=e.getLineWidth(a),l=gS(t.mouseContentHorizontalOffset-s);return t.fulfill(7,new he(a,1),void 0,l)}}return t.fulfill(0)}var u=n._doHitTest(e,t);return u.position?n.createMouseTargetFromHitTestPosition(e,t,u.position.lineNumber,u.position.column):this._createMouseTarget(e,t.withTarget(u.hitTarget),!0)},n._hitTestMinimap=function(e,t){if(Bo.isChildOfMinimap(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new he(r,i))}return null},n._hitTestScrollbarSlider=function(e,t){if(Bo.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){var r=t.target.className;if(r&&/\b(slider|scrollbar)\b/.test(r)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new he(i,o))}}return null},n._hitTestScrollbar=function(e,t){if(Bo.isChildOfScrollableElement(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new he(r,i))}return null},n.prototype.getMouseColumn=function(e,t){var r=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-r.contentLeft;return n._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},n._getMouseColumn=function(e,t){if(e<0)return 1;var r=Math.round(e/t);return r+1},n.createMouseTargetFromHitTestPosition=function(e,t,r,i){var o=new he(r,i),a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){if(Wg&&o.column===1){var s=gS(t.mouseContentHorizontalOffset-a);return t.fulfill(7,new he(r,e.model.getLineMaxColumn(r)),void 0,s)}var l=gS(t.mouseContentHorizontalOffset-a);return t.fulfill(7,o,void 0,l)}var u=e.visibleRangeForPosition2(r,i);if(!u)return t.fulfill(0,o);var c=u.left;if(t.mouseContentHorizontalOffset===c)return t.fulfill(6,o);var d=[];if(d.push({offset:u.left,column:i}),i>1){var f=e.visibleRangeForPosition2(r,i-1);f&&d.push({offset:f.left,column:i-1})}var h=e.model.getLineMaxColumn(r);if(i=t.editorPos.y+e.layoutInfo.height&&(a=t.editorPos.y+e.layoutInfo.height-1);var s=new YN(t.pos.x,a),l=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return l.position?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},n._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var r=document.caretRangeFromPoint(t.clientX,t.clientY);if(!r||!r.startContainer)return{position:null,hitTarget:null};var i=r.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var a=i.parentNode,s=a?a.parentNode:null,l=s?s.parentNode:null,u=l&&l.nodeType===l.ELEMENT_NODE?l.className:null;if(u===wf.CLASS_NAME){var c=e.getPositionFromDOMInfo(a,r.startOffset);return{position:c,hitTarget:null}}else o=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){var a=i.parentNode,s=a?a.parentNode:null,d=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(d===wf.CLASS_NAME){var c=e.getPositionFromDOMInfo(i,i.textContent.length);return{position:c,hitTarget:null}}else o=i}return{position:null,hitTarget:o}},n._doHitTestWithCaretPositionFromPoint=function(e,t){var r=document.caretPositionFromPoint(t.clientX,t.clientY);if(r.offsetNode.nodeType===r.offsetNode.TEXT_NODE){var i=r.offsetNode.parentNode,o=i?i.parentNode:null,a=o?o.parentNode:null,s=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(s===wf.CLASS_NAME){var l=e.getPositionFromDOMInfo(r.offsetNode.parentNode,r.offset);return{position:l,hitTarget:null}}else return{position:null,hitTarget:r.offsetNode.parentNode}}return{position:null,hitTarget:r.offsetNode}},n._doHitTestWithMoveToPoint=function(e,t){var r=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch{return{position:null,hitTarget:null}}o.collapse(!0);var a=o?o.parentElement():null,s=a?a.parentNode:null,l=s?s.parentNode:null,u=l&&l.nodeType===l.ELEMENT_NODE?l.className:"";if(u===wf.CLASS_NAME){var c=o.duplicate();c.moveToElementText(a),c.setEndPoint("EndToStart",o),r=e.getPositionFromDOMInfo(a,c.text.length),c.moveToElementText(e.viewDomNode)}else i=a;return o.moveToElementText(e.viewDomNode),{position:r,hitTarget:i}},n._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},n}(),w9=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function vI(n){return function(e,t){var r=!1;return n&&(r=n.mouseTargetIsWidget(t)),r||t.preventDefault(),t}}var WC=function(n){w9(e,n);function e(t,r,i){var o=n.call(this)||this;o._isFocused=!1,o._context=t,o.viewController=r,o.viewHelper=i,o.mouseTargetFactory=new C9(o._context,i),o._mouseDownOperation=o._register(new vEe(o._context,o.viewController,o.viewHelper,function(l,u){return o._createMouseTarget(l,u)},function(l){return o._getMouseColumn(l)})),o._asyncFocus=o._register(new Nr(function(){return o.viewHelper.focusTextArea()},0)),o.lastMouseLeaveTime=-1;var a=new q1e(o.viewHelper.viewDomNode);o._register(a.onContextMenu(o.viewHelper.viewDomNode,function(l){return o._onContextMenu(l,!0)})),o._register(a.onMouseMoveThrottled(o.viewHelper.viewDomNode,function(l){return o._onMouseMove(l)},vI(o.mouseTargetFactory),e.MOUSE_MOVE_MINIMUM_TIME)),o._register(a.onMouseUp(o.viewHelper.viewDomNode,function(l){return o._onMouseUp(l)})),o._register(a.onMouseLeave(o.viewHelper.viewDomNode,function(l){return o._onMouseLeave(l)})),o._register(a.onMouseDown(o.viewHelper.viewDomNode,function(l){return o._onMouseDown(l)}));var s=function(l){if(o.viewController.emitMouseWheel(l),!!o._context.configuration.editor.viewInfo.mouseWheelZoom){var u=new ch(l);if(u.browserEvent.ctrlKey||u.browserEvent.metaKey){var c=sl.getZoomLevel(),d=u.deltaY>0?1:-1;sl.setZoomLevel(c+d),u.preventDefault(),u.stopPropagation()}}};return o._register(We(o.viewHelper.viewDomNode,"mousewheel",s,!0)),o._context.addEventHandler(o),o}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},e.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},e.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},e.prototype.getTargetAtClientPoint=function(t,r){var i=new g9(t,r),o=i.toPageCoordinates(),a=m9(this.viewHelper.viewDomNode);if(o.ya.y+a.height||o.xa.x+a.width)return null;var s=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(s,a,o,null)},e.prototype._createMouseTarget=function(t,r){var i=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(i,t.editorPos,t.pos,r?t.target:null)},e.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},e.prototype._onContextMenu=function(t,r){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,r)})},e.prototype._onMouseMove=function(t){if(!this._mouseDownOperation.isActive()){var r=t.timestamp;rr.y+r.height){var s=o.getCurrentScrollTop()+(t.posy-r.y),l=pI.getZoneAtCoord(this._context,s);if(l){var u=this._helpPositionJumpOverViewZone(l);if(u)return new ks(null,13,a,u)}var d=o.getLineNumberAtVerticalOffset(s);return new ks(null,13,a,new he(d,i.getLineMaxColumn(d)))}var f=o.getLineNumberAtVerticalOffset(o.getCurrentScrollTop()+(t.posy-r.y));return t.posxr.x+r.width?new ks(null,13,a,new he(f,i.getLineMaxColumn(f))):null},e.prototype._findMousePosition=function(t,r){var i=this._getPositionOutsideEditor(t);if(i)return i;var o=this._createMouseTarget(t,r),a=o.position;if(!a)return null;if(o.type===8||o.type===5){var s=this._helpPositionJumpOverViewZone(o.detail);if(s)return new ks(o.element,o.type,o.mouseColumn,s,null,o.detail)}return o},e.prototype._helpPositionJumpOverViewZone=function(t){var r=new he(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=t.positionBefore,o=t.positionAfter;return i&&o?i.isBefore(r)?i:o:null},e.prototype._dispatchMouse=function(t,r){t.position&&this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:r,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})},e}($e),gEe=function(){function n(){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}return Object.defineProperty(n.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),n.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},n.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},n.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},n.prototype.trySetCount=function(e,t){var r=new Date().getTime();r-this._lastSetMouseDownCountTime>n.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=r,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)},n.CLEAR_MOUSE_DOWN_COUNT_TIME=400,n}(),XN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function S9(n,e){var t={translationY:e.translationY,translationX:e.translationX};return n&&(t.translationY+=n.translationY,t.translationX+=n.translationX),t}var mEe=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var a=new MSGesture,s=new MSGesture;a.target=o.viewHelper.linesContentDomNode,s.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(l){var u=l.pointerType;if(u===(l.MSPOINTER_TYPE_MOUSE||"mouse")){o._lastPointerType="mouse";return}else u===(l.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",a.addPointer(l.pointerId)):(o._lastPointerType="pen",s.addPointer(l.pointerId))}),o._register(Ug(o.viewHelper.linesContentDomNode,"MSGestureChange",function(l){return o._onGestureChange(l)},S9)),o._register(We(o.viewHelper.linesContentDomNode,"MSGestureTap",function(l){return o._onCaptureGestureTap(l)},!0))}},100),o._lastPointerType="mouse",o}return e.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&n.prototype._onMouseDown.call(this,t)},e.prototype._onCaptureGestureTap=function(t){var r=this,i=new vh(t,this.viewHelper.viewDomNode),o=this._createMouseTarget(i,!1);o.position&&this.viewController.moveTo(o.position),i.browserEvent.fromElement?(i.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){r.viewHelper.focusTextArea()})},e.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),n.prototype.dispose.call(this)},e}(WC),_Ee=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var a=new MSGesture,s=new MSGesture;a.target=o.viewHelper.linesContentDomNode,s.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(l){var u=l.pointerType;if(u==="mouse"){o._lastPointerType="mouse";return}else u==="touch"?(o._lastPointerType="touch",a.addPointer(l.pointerId)):(o._lastPointerType="pen",s.addPointer(l.pointerId))}),o._register(Ug(o.viewHelper.linesContentDomNode,"MSGestureChange",function(l){return o._onGestureChange(l)},S9)),o._register(We(o.viewHelper.linesContentDomNode,"MSGestureTap",function(l){return o._onCaptureGestureTap(l)},!0))}},100),o._lastPointerType="mouse",o}return e.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&n.prototype._onMouseDown.call(this,t)},e.prototype._onCaptureGestureTap=function(t){var r=this,i=new vh(t,this.viewHelper.viewDomNode),o=this._createMouseTarget(i,!1);o.position&&this.viewController.moveTo(o.position),i.browserEvent.fromElement?(i.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){r.viewHelper.focusTextArea()})},e.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),n.prototype.dispose.call(this)},e}(WC),yEe=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return Bh.addTarget(o.viewHelper.linesContentDomNode),o._register(We(o.viewHelper.linesContentDomNode,Ur.Tap,function(a){return o.onTap(a)})),o._register(We(o.viewHelper.linesContentDomNode,Ur.Change,function(a){return o.onChange(a)})),o._register(We(o.viewHelper.linesContentDomNode,Ur.Contextmenu,function(a){return o._onContextMenu(new vh(a,o.viewHelper.viewDomNode),!1)})),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var r=this._createMouseTarget(new vh(t,this.viewHelper.viewDomNode),!1);r.position&&this.viewController.moveTo(r.position)},e.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e}(WC),bEe=function(){function n(e,t,r){window.navigator.msPointerEnabled?this.handler=new mEe(e,t,r):window.TouchEvent?this.handler=new yEe(e,t,r):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new _Ee(e,t,r):this.handler=new WC(e,t,r)}return n.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},n.prototype.dispose=function(){this.handler.dispose()},n}(),mo=function(){function n(e,t,r,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=r,this.selectionStartPosition=i,this.selectionEndPosition=o}return n.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},n.readFromTextArea=function(e){return new n(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},n.prototype.collapseSelection=function(){return new n(this.value,this.value.length,this.value.length,null,null)},n.prototype.writeToTextArea=function(e,t,r){t.setValue(e,this.value),r&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},n.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var r=this.value.substring(this.selectionStart,e);if(r.indexOf("…")===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,r,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},n.prototype._finishDeduceEditorPosition=function(e,t,r){for(var i=0,o=-1;(o=t.indexOf(` -`,o+1))!==-1;)i++;return[e,r*t.length,i]},n.selectedText=function(e){return new n(e,0,e.length,null,null)},n.deduceInput=function(e,t,r,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,a=e.selectionStart,s=e.selectionEnd,l=t.value,u=t.selectionStart,c=t.selectionEnd;i&&o.length>0&&a===s&&u===c&&!Zv(l,o)&&ol(l,o)&&(a=0,s=0);var d=o.substring(s),f=l.substring(c),h=ZCe(d,f);l=l.substring(0,l.length-h),o=o.substring(0,o.length-h);var p=o.substring(0,a),v=l.substring(0,u),m=wN(p,v);if(l=l.substring(m),o=o.substring(m),u-=m,a-=m,c-=m,s-=m,r&&u===c&&o.length>0){var g=null;if(u===l.length?Zv(l,o)&&(g=l.substring(o.length)):ol(l,o)&&(g=l.substring(0,l.length-o.length)),g!==null&&g.length>0&&(/\uFE0F/.test(g)||e0e(g)))return{text:g,replaceCharCnt:0}}if(u===c){if(o===l&&a===0&&s===o.length&&u===l.length&&l.indexOf(` -`)===-1&&n0e(l))return{text:"",replaceCharCnt:0};var _=p.length-m;return{text:l,replaceCharCnt:_}}var y=s-a;return{text:l,replaceCharCnt:y}},n.EMPTY=new n("",0,0,null,null),n}(),CEe=function(){function n(){}return n._getPageOfLine=function(e){return Math.floor((e-1)/n._LINES_PER_PAGE)},n._getRangeForPage=function(e){var t=e*n._LINES_PER_PAGE,r=t+1,i=t+n._LINES_PER_PAGE;return new q(r,1,i+1,1)},n.fromEditorSelection=function(e,t,r,i){var o=n._getPageOfLine(r.startLineNumber),a=n._getRangeForPage(o),s=n._getPageOfLine(r.endLineNumber),l=n._getRangeForPage(s),u=a.intersectRanges(new q(1,1,r.startLineNumber,r.startColumn)),c=t.getValueInRange(u,1),d=t.getLineCount(),f=t.getLineMaxColumn(d),h=l.intersectRanges(new q(r.endLineNumber,r.endColumn,d,f)),p=t.getValueInRange(h,1),v;if(o===s||o+1===s)v=t.getValueInRange(r,1);else{var m=a.intersectRanges(r),g=l.intersectRanges(r);v=t.getValueInRange(m,1)+"…"+t.getValueInRange(g,1)}if(i){var _=500;c.length>_&&(c=c.substring(c.length-_,c.length)),p.length>_&&(p=p.substring(0,_)),v.length>2*_&&(v=v.substring(0,_)+"…"+v.substring(v.length-_,v.length))}return new mo(c+v+p,c.length,c.length+v.length,new he(r.startLineNumber,r.startColumn),new he(r.endLineNumber,r.endColumn))},n._LINES_PER_PAGE=10,n}(),E9=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Jy={forceCopyWithSyntaxHighlighting:!1},wEe=function(n){E9(e,n);function e(t,r){var i=n.call(this)||this;i._onFocus=i._register(new ae),i.onFocus=i._onFocus.event,i._onBlur=i._register(new ae),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new ae),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new ae),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new ae),i.onCut=i._onCut.event,i._onPaste=i._register(new ae),i.onPaste=i._onPaste.event,i._onType=i._register(new ae),i.onType=i._onType.event,i._onCompositionStart=i._register(new ae),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new ae),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new ae),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new ae),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new SEe(r)),i._lastTextAreaEvent=0,i._asyncTriggerCut=i._register(new Nr(function(){return i._onCut.fire()},0)),i._textAreaState=mo.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(qr(r.domNode,"keydown",function(l){i._isDoingComposition&&(l.keyCode===109||l.keyCode===1)&&l.stopPropagation(),l.equals(9)&&l.preventDefault(),i._onKeyDown.fire(l)})),i._register(qr(r.domNode,"keyup",function(l){i._onKeyUp.fire(l)})),i._register(We(r.domNode,"compositionstart",function(l){i._lastTextAreaEvent=1,!i._isDoingComposition&&(i._isDoingComposition=!0,uu||i._setAndWriteTextAreaState("compositionstart",mo.EMPTY),i._onCompositionStart.fire())}));var o=function(l,u){var c=i._textAreaState,d=mo.readFromTextArea(i._textArea);return[d,mo.deduceInput(c,d,l,u)]},a=function(l){var u=i._textAreaState,c=mo.selectedText(l),d={text:c.value,replaceCharCnt:u.selectionEnd-u.selectionStart};return[c,d]},s=function(l){return!!(uu&&l==="ja"||Ji&&l.indexOf("zh-Han")===0)};return i._register(We(r.domNode,"compositionupdate",function(l){if(i._lastTextAreaEvent=2,s(l.locale)){var u=o(!1,!1),c=u[0],d=u[1];i._textAreaState=c,i._onType.fire(d),i._onCompositionUpdate.fire(l);return}var f=a(l.data),h=f[0],p=f[1];i._textAreaState=h,i._onType.fire(p),i._onCompositionUpdate.fire(l)})),i._register(We(r.domNode,"compositionend",function(l){if(i._lastTextAreaEvent=3,s(l.locale)){var u=o(!1,!1),c=u[0],d=u[1];i._textAreaState=c,i._onType.fire(d)}else{var f=a(l.data),c=f[0],d=f[1];i._textAreaState=c,i._onType.fire(d)}(uu||Yv)&&(i._textAreaState=mo.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())})),i._register(We(r.domNode,"input",function(){var l=i._lastTextAreaEvent===8;if(i._lastTextAreaEvent=4,i._textArea.setIgnoreSelectionChangeTime("received input event"),!i._isDoingComposition){var u=o(Vt,l&&Vt),c=u[0],d=u[1];d.replaceCharCnt===0&&d.text.length===1&&Mi(d.text.charCodeAt(0))||(i._textAreaState=c,i._nextCommand===0?d.text!==""&&i._onType.fire(d):(d.text!==""&&i._onPaste.fire({text:d.text}),i._nextCommand=0))}})),i._register(We(r.domNode,"cut",function(l){i._lastTextAreaEvent=5,i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(l),i._asyncTriggerCut.schedule()})),i._register(We(r.domNode,"copy",function(l){i._lastTextAreaEvent=6,i._ensureClipboardGetsEditorSelection(l)})),i._register(We(r.domNode,"paste",function(l){if(i._lastTextAreaEvent=7,i._textArea.setIgnoreSelectionChangeTime("received paste event"),Gm.canUseTextData(l)){var u=Gm.getTextData(l);u!==""&&i._onPaste.fire({text:u})}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",mo.EMPTY),i._nextCommand=1})),i._register(We(r.domNode,"focus",function(){i._lastTextAreaEvent=8,i._setHasFocus(!0)})),i._register(We(r.domNode,"blur",function(){i._lastTextAreaEvent=9,i._setHasFocus(!1)})),i}return e.prototype._installSelectionChangeListener=function(){var t=this,r=0;return We(document,"selectionchange",function(i){if(t._hasFocus&&!t._isDoingComposition&&!(!Yv||!zi)){var o=Date.now(),a=o-r;if(r=o,!(a<5)){var s=o-t._textArea.getIgnoreSelectionChangeTime();if(t._textArea.resetSelectionChangeTime(),!(s<100)&&!(!t._textAreaState.selectionStartPosition||!t._textAreaState.selectionEndPosition)){var l=t._textArea.getValue();if(t._textAreaState.value===l){var u=t._textArea.getSelectionStart(),c=t._textArea.getSelectionEnd();if(!(t._textAreaState.selectionStart===u&&t._textAreaState.selectionEnd===c)){var d=t._textAreaState.deduceEditorPosition(u),f=t._host.deduceModelPosition(d[0],d[1],d[2]),h=t._textAreaState.deduceEditorPosition(c),p=t._host.deduceModelPosition(h[0],h[1],h[2]),v=new Ze(f.lineNumber,f.column,p.lineNumber,p.column);t._onSelectionChangeRequest.fire(v)}}}}}})},e.prototype.dispose=function(){n.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},e.prototype.focusTextArea=function(){this._setHasFocus(!0)},e.prototype.isFocused=function(){return this._hasFocus},e.prototype._setHasFocus=function(t){this._hasFocus!==t&&(this._hasFocus=t,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(Wg?this._setAndWriteTextAreaState("focusgain",mo.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},e.prototype._setAndWriteTextAreaState=function(t,r){this._hasFocus||(r=r.collapseSelection()),r.writeToTextArea(t,this._textArea,this._hasFocus),this._textAreaState=r},e.prototype.writeScreenReaderContent=function(t){this._isDoingComposition||this._setAndWriteTextAreaState(t,this._host.getScreenReaderContent(this._textAreaState))},e.prototype._ensureClipboardGetsEditorSelection=function(t){var r=this._host.getPlainTextToCopy();if(!Gm.canUseTextData(t)){this._setAndWriteTextAreaState("copy or cut",mo.selectedText(r));return}var i=null;vCe()&&(r.length<65536||Jy.forceCopyWithSyntaxHighlighting)&&(i=this._host.getHTMLToCopy()),Gm.setTextData(t,r,i)},e}($e),Gm=function(){function n(){}return n.canUseTextData=function(e){return!!(e.clipboardData||window.clipboardData)},n.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},n.setTextData=function(e,t,r){if(e.clipboardData){e.clipboardData.setData("text/plain",t),r!==null&&e.clipboardData.setData("text/html",r),e.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",t),e.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},n}(),SEe=function(n){E9(e,n);function e(t){var r=n.call(this)||this;return r._actual=t,r._ignoreSelectionChangeTime=0,r}return e.prototype.setIgnoreSelectionChangeTime=function(t){this._ignoreSelectionChangeTime=Date.now()},e.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},e.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},e.prototype.getValue=function(){return this._actual.domNode.value},e.prototype.setValue=function(t,r){var i=this._actual.domNode;i.value!==r&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=r)},e.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},e.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},e.prototype.setSelectionRange=function(t,r,i){var o=this._actual.domNode,a=document.activeElement===o,s=o.selectionStart,l=o.selectionEnd;if(a&&s===r&&l===i){rl&&window.parent!==window&&o.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(r,i),rl&&window.parent!==window&&o.focus();return}try{var u=VCe(o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(r,i),HCe(o,u)}catch{}},e}($e),EEe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wd=function(n){EEe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(zg);function pu(n,e){var t=Math.pow(10,e);return Math.round(n*t)/t}var Qt=function(){function n(e,t,r,i){i===void 0&&(i=1),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,r))|0,this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},n}(),Kd=function(){function n(e,t,r,i){this.h=Math.max(Math.min(360,e),0)|0,this.s=pu(Math.max(Math.min(1,t),0),3),this.l=pu(Math.max(Math.min(1,r),0),3),this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},n.fromRGBA=function(e){var t=e.r/255,r=e.g/255,i=e.b/255,o=e.a,a=Math.max(t,r,i),s=Math.min(t,r,i),l=0,u=0,c=(s+a)/2,d=a-s;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case t:l=(r-i)/d+(r1&&(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},n.toRGBA=function(e){var t=e.h/360,r=e.s,i=e.l,o=e.a,a,s,l;if(r===0)a=s=l=i;else{var u=i<.5?i*(1+r):i+r-i*r,c=2*i-u;a=n._hue2rgb(c,u,t+1/3),s=n._hue2rgb(c,u,t),l=n._hue2rgb(c,u,t-1/3)}return new Qt(Math.round(a*255),Math.round(s*255),Math.round(l*255),o)},n}(),Ql=function(){function n(e,t,r,i){this.h=Math.max(Math.min(360,e),0)|0,this.s=pu(Math.max(Math.min(1,t),0),3),this.v=pu(Math.max(Math.min(1,r),0),3),this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},n.fromRGBA=function(e){var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(t,r,i),a=Math.min(t,r,i),s=o-a,l=o===0?0:s/o,u;return s===0?u=0:o===t?u=((r-i)/s%6+6)%6:o===r?u=(i-t)/s+2:u=(t-r)/s+4,new n(Math.round(u*60),l,o,e.a)},n.toRGBA=function(e){var t=e.h,r=e.s,i=e.v,o=e.a,a=i*r,s=a*(1-Math.abs(t/60%2-1)),l=i-a,u=[0,0,0],c=u[0],d=u[1],f=u[2];return t<60?(c=a,d=s):t<120?(c=s,d=a):t<180?(d=a,f=s):t<240?(d=s,f=a):t<300?(c=s,f=a):t<360&&(c=a,f=s),c=Math.round((c+l)*255),d=Math.round((d+l)*255),f=Math.round((f+l)*255),new Qt(c,d,f,o)},n}(),Oe=function(){function n(e){if(e)if(e instanceof Qt)this.rgba=e;else if(e instanceof Kd)this._hsla=e,this.rgba=Kd.toRGBA(e);else if(e instanceof Ql)this._hsva=e,this.rgba=Ql.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return n.fromHex=function(e){return n.Format.CSS.parseHex(e)||n.red},Object.defineProperty(n.prototype,"hsla",{get:function(){return this._hsla?this._hsla:Kd.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hsva",{get:function(){return this._hsva?this._hsva:Ql.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),n.prototype.equals=function(e){return!!e&&Qt.equals(this.rgba,e.rgba)&&Kd.equals(this.hsla,e.hsla)&&Ql.equals(this.hsva,e.hsva)},n.prototype.getRelativeLuminance=function(){var e=n._relativeLuminanceForComponent(this.rgba.r),t=n._relativeLuminanceForComponent(this.rgba.g),r=n._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*t+.0722*r;return pu(i,4)},n._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},n.prototype.isLighter=function(){var e=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return e>=128},n.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance(),r=e.getRelativeLuminance();return t>r},n.prototype.isDarkerThan=function(e){var t=this.getRelativeLuminance(),r=e.getRelativeLuminance();return t'+i+"":String(s)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===i||i%10===0?String(i):"":String(i)},e.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var r=vs?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=t.visibleRange.startLineNumber,o=t.visibleRange.endLineNumber,a='
',s=[],l=i;l<=o;l++){var u=l-i,c=this._getLineRenderLineNumber(l);c?s[u]=a+c+"
":s[u]=""}this._renderResult=s},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e.CLASS_NAME="line-numbers",e}(wd);Cn(function(n,e){var t=n.getColor(K9);t&&e.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var r=n.getColor(hLe);r&&e.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")});var TLe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),t$=function(n){TLe(e,n);function e(t){var r=n.call(this,t)||this;return r._canUseLayerHinting=r._context.configuration.editor.canUseLayerHinting,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._glyphMarginLeft=r._context.configuration.editor.layoutInfo.glyphMarginLeft,r._glyphMarginWidth=r._context.configuration.editor.layoutInfo.glyphMarginWidth,r._domNode=r._createDomNode(),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this._domNode},e.prototype._createDomNode=function(){var t=Bt(document.createElement("div"));return t.setClassName(e.OUTER_CLASS_NAME),t.setPosition("absolute"),t.setAttribute("role","presentation"),t.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Bt(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(e.CLASS_NAME),t.appendChild(this._glyphMarginBackgroundDomNode),t},e.prototype.onConfigurationChanged=function(t){return t.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting);var r=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-r);var i=Math.min(t.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)},e.CLASS_NAME="glyph-margin",e.OUTER_CLASS_NAME="margin",e}(Ao),xLe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),OLe=function(n){xLe(e,n);function e(t){for(var r=n.call(this,0)||this,i=0,o=t.length;i0&&this._emit(t)}},e.prototype._emit=function(t){for(var r=this._listeners.slice(0),i=0,o=r.length;i0)return new mo(f,f.length,f.length,d,d)}}return mo.EMPTY}return CEe.fromEditorSelection(u,s,o._selections[0],o._accessibilitySupport===0)},deduceModelPosition:function(u,c,d){return o._context.model.deduceModelPositionRelativeToViewPosition(u,c,d)}};return o._textAreaInput=o._register(new wEe(l,o.textArea)),o._register(o._textAreaInput.onKeyDown(function(u){o._viewController.emitKeyDown(u)})),o._register(o._textAreaInput.onKeyUp(function(u){o._viewController.emitKeyUp(u)})),o._register(o._textAreaInput.onPaste(function(u){var c=Q3.INSTANCE.get(u.text),d=!1,f=null;c&&(d=o._emptySelectionClipboard&&c.isFromEmptySelection,f=c.multicursorText),o._viewController.paste("keyboard",u.text,d,f)})),o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")})),o._register(o._textAreaInput.onType(function(u){u.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",u.text,u.replaceCharCnt):o._viewController.type("keyboard",u.text)})),o._register(o._textAreaInput.onSelectionChangeRequest(function(u){o._viewController.setSelection("keyboard",u)})),o._register(o._textAreaInput.onCompositionStart(function(){var u=o._selections[0].startLineNumber,c=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new dA(new q(u,c,u,c),0,!0,1));var d=o._viewHelper.visibleRangeForPositionRelativeToEditor(u,c);d&&(o._visibleTextArea=new $Le(o._context.viewLayout.getVerticalOffsetForLineNumber(u),d.left,Xm?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")})),o._register(o._textAreaInput.onCompositionUpdate(function(u){uu?o._visibleTextArea=o._visibleTextArea.setWidth(0):o._visibleTextArea=o._visibleTextArea.setWidth(zLe(u.data,o._fontInfo)),o._render()})),o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")})),o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Z3(!0))})),o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Z3(!1))})),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._getWordBeforePosition=function(t){for(var r=this._context.model.getLineContent(t.lineNumber),i=sd(this._context.configuration.editor.wordSeparators),o=t.column,a=0;o>1;){var s=r.charCodeAt(o-2),l=i.get(s);if(l!==0||a>50)return r.substring(o-1,t.column-1);a++,o--}return r.substring(0,t.column-1)},e.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var r=this._context.model.getLineContent(t.lineNumber),i=r.charAt(t.column-2);if(!Mi(i.charCodeAt(0)))return i}return""},e.prototype.onConfigurationChanged=function(t){var r=this._context.configuration.editor;return t.fontInfo&&(this._fontInfo=r.fontInfo),t.viewInfo&&this.textArea.setAttribute("aria-label",r.viewInfo.ariaLabel),t.layoutInfo&&(this._contentLeft=r.layoutInfo.contentLeft,this._contentWidth=r.layoutInfo.contentWidth,this._contentHeight=r.layoutInfo.contentHeight),t.lineHeight&&(this._lineHeight=r.lineHeight),t.accessibilitySupport&&(this._accessibilitySupport=r.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),t.emptySelectionClipboard&&(this._emptySelectionClipboard=r.emptySelectionClipboard),t.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=r.copyWithSyntaxHighlighting),!0},e.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},e.prototype.onZonesChanged=function(t){return!0},e.prototype.isFocused=function(){return this._textAreaInput.isFocused()},e.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},e.prototype.prepareRender=function(t){if(this._accessibilitySupport===2)this._primaryCursorVisibleRange=null;else{var r=new he(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=t.visibleRangeForPosition(r)}},e.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},e.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var r=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(r<0||r>this._contentHeight){this._renderAtTopLeft();return}this._renderInsideEditor(r,t,Xm?0:1,Xm?0:1,!1)},e.prototype._renderInsideEditor=function(t,r,i,o,a){var s=this.textArea,l=this.textAreaCover;a?Oo.applyFontInfo(s,this._fontInfo):(s.setFontSize(1),s.setLineHeight(this._fontInfo.lineHeight)),s.setTop(t),s.setLeft(r),s.setWidth(i),s.setHeight(o),l.setTop(0),l.setLeft(0),l.setWidth(0),l.setHeight(0)},e.prototype._renderAtTopLeft=function(){var t=this.textArea,r=this.textAreaCover;if(Oo.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),r.setTop(0),r.setLeft(0),Xm){t.setWidth(0),t.setHeight(0),r.setWidth(0),r.setHeight(0);return}t.setWidth(1),t.setHeight(1),r.setWidth(1),r.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?r.setClassName("monaco-editor-background textAreaCover "+t$.OUTER_CLASS_NAME):this._context.configuration.editor.viewInfo.renderLineNumbers!==0?r.setClassName("monaco-editor-background textAreaCover "+e$.CLASS_NAME):r.setClassName("monaco-editor-background textAreaCover")},e}(Ao);function zLe(n,e){var t=document.createElement("canvas"),r=t.getContext("2d");r.font=KLe(e);var i=r.measureText(n);return rl?i.width+2:i.width}function KLe(n){return GLe("normal",n.fontWeight,n.fontSize,n.lineHeight,n.fontFamily)}function GLe(n,e,t,r,i){return n+" normal "+e+" "+t+"px / "+r+"px "+i}var J3=function(){function n(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return n.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},n.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(t){return et(t),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},n.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},n.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(t){return et(t),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},n.prototype.canRedo=function(){return this.future.length>0},n}(),YLe=function(){function n(){}return n}();function XLe(n,e,t,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;var o;for(o=0;o0&&u>0)&&!(d>0&&f>0)){var h=Math.abs(u-f),p=Math.abs(l-d);if(h===0){i.spacesDiff=p,p>0&&0<=d-1&&d-10?i++:_>1&&o++,XLe(a,s,p,g,d),!d.looksLikeAlignment)){var S=d.spacesDiff;S<=u&&c[S]++,a=p,s=g}}var L=t;i!==o&&(L=iT&&(T=A,E=P)}),E===4&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(E=2),{insertSpaces:L,tabSize:E}}function vi(n){return(n.metadata&1)>>>0}function un(n,e){n.metadata=n.metadata&254|e<<0}function Ar(n){return(n.metadata&2)>>>1===1}function ln(n,e){n.metadata=n.metadata&253|(e?1:0)<<1}function i$(n){return(n.metadata&4)>>>2===1}function n4(n,e){n.metadata=n.metadata&251|(e?1:0)<<2}function wS(n){return(n.metadata&8)>>>3===1}function r4(n,e){n.metadata=n.metadata&247|(e?1:0)<<3}function ZLe(n){return(n.metadata&48)>>>4}function i4(n,e){n.metadata=n.metadata&207|e<<4}function QLe(n){return(n.metadata&64)>>>6===1}function o4(n,e){n.metadata=n.metadata&191|(e?1:0)<<6}var o$=function(){function n(e,t,r){this.metadata=0,this.parent=this,this.left=this,this.right=this,un(this,1),this.start=t,this.end=r,this.delta=0,this.maxEnd=r,this.id=e,this.ownerId=0,this.options=null,n4(this,!1),i4(this,1),r4(this,!1),o4(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=null,ln(this,!1)}return n.prototype.reset=function(e,t,r,i){this.start=t,this.end=r,this.maxEnd=r,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=i},n.prototype.setOptions=function(e){this.options=e;var t=this.options.className;n4(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),i4(this,this.options.stickiness),r4(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),o4(this,this.options.collapseOnReplaceEdit)},n.prototype.setCachedOffsets=function(e,t,r){this.cachedVersionId!==r&&(this.range=null),this.cachedVersionId=r,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},n.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},n}(),gt=new o$(null,0,0);gt.parent=gt;gt.left=gt;gt.right=gt;un(gt,0);var a4=function(){function n(){this.root=gt,this.requestNormalizeDelta=!1}return n.prototype.intervalSearch=function(e,t,r,i,o){return this.root===gt?[]:aIe(this,e,t,r,i,o)},n.prototype.search=function(e,t,r){return this.root===gt?[]:oIe(this,e,t,r)},n.prototype.collectNodesFromOwner=function(e){return rIe(this,e)},n.prototype.collectNodesPostOrder=function(){return iIe(this)},n.prototype.insert=function(e){s4(this,e),this._normalizeDeltaIfNecessary()},n.prototype.delete=function(e){l4(this,e),this._normalizeDeltaIfNecessary()},n.prototype.resolveNode=function(e,t){for(var r=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=r.start+i,a=r.end+i;r.setCachedOffsets(o,a,t)},n.prototype.acceptReplace=function(e,t,r,i){for(var o=tIe(this,e,e+t),a=0,s=o.length;at||r===1?!1:r===2?!0:e}function eIe(n,e,t,r,i){var o=ZLe(n),a=o===0||o===2,s=o===1||o===2,l=t-e,u=r,c=Math.min(l,u),d=n.start,f=!1,h=n.end,p=!1;e<=d&&h<=t&&QLe(n)&&(n.start=e,f=!0,n.end=e,p=!0);{var v=i?1:l>0?2:0;!f&&qd(d,a,e,v)&&(f=!0),!p&&qd(h,s,e,v)&&(p=!0)}if(c>0&&!i){var v=l>u?2:0;!f&&qd(d,a,e+c,v)&&(f=!0),!p&&qd(h,s,e+c,v)&&(p=!0)}{var v=i?1:0;!f&&qd(d,a,t,v)&&(n.start=e+u,f=!0),!p&&qd(h,s,t,v)&&(n.end=e+u,p=!0)}var m=u-l;f||(n.start=Math.max(0,d+m)),p||(n.end=Math.max(0,h+m)),n.start>n.end&&(n.end=n.start)}function tIe(n,e,t){for(var r=n.root,i=0,o=0,a=0,s=0,l=[],u=0;r!==gt;){if(Ar(r)){ln(r.left,!1),ln(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;continue}if(!Ar(r.left)){if(o=i+r.maxEnd,ot){ln(r,!0);continue}if(s=i+r.end,s>=e&&(r.setCachedOffsets(a,s,0),l[u++]=r),ln(r,!0),r.right!==gt&&!Ar(r.right)){i+=r.delta,r=r.right;continue}}return ln(n.root,!1),l}function nIe(n,e,t,r){for(var i=n.root,o=0,a=0,s=0,l=r-(t-e);i!==gt;){if(Ar(i)){ln(i.left,!1),ln(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),wu(i),i=i.parent;continue}if(!Ar(i.left)){if(a=o+i.maxEnd,at){i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(n.requestNormalizeDelta=!0),ln(i,!0);continue}if(ln(i,!0),i.right!==gt&&!Ar(i.right)){o+=i.delta,i=i.right;continue}}ln(n.root,!1)}function rIe(n,e){for(var t=n.root,r=[],i=0;t!==gt;){if(Ar(t)){ln(t.left,!1),ln(t.right,!1),t=t.parent;continue}if(t.left!==gt&&!Ar(t.left)){t=t.left;continue}if(t.ownerId===e&&(r[i++]=t),ln(t,!0),t.right!==gt&&!Ar(t.right)){t=t.right;continue}}return ln(n.root,!1),r}function iIe(n){for(var e=n.root,t=[],r=0;e!==gt;){if(Ar(e)){ln(e.left,!1),ln(e.right,!1),e=e.parent;continue}if(e.left!==gt&&!Ar(e.left)){e=e.left;continue}if(e.right!==gt&&!Ar(e.right)){e=e.right;continue}t[r++]=e,ln(e,!0)}return ln(n.root,!1),t}function oIe(n,e,t,r){for(var i=n.root,o=0,a=0,s=0,l=[],u=0;i!==gt;){if(Ar(i)){ln(i.left,!1),ln(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;continue}if(i.left!==gt&&!Ar(i.left)){i=i.left;continue}a=o+i.start,s=o+i.end,i.setCachedOffsets(a,s,r);var c=!0;if(e&&i.ownerId&&i.ownerId!==e&&(c=!1),t&&i$(i)&&(c=!1),c&&(l[u++]=i),ln(i,!0),i.right!==gt&&!Ar(i.right)){o+=i.delta,i=i.right;continue}}return ln(n.root,!1),l}function aIe(n,e,t,r,i,o){for(var a=n.root,s=0,l=0,u=0,c=0,d=[],f=0;a!==gt;){if(Ar(a)){ln(a.left,!1),ln(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;continue}if(!Ar(a.left)){if(l=s+a.maxEnd,lt){ln(a,!0);continue}if(c=s+a.end,c>=e){a.setCachedOffsets(u,c,o);var h=!0;r&&a.ownerId&&a.ownerId!==r&&(h=!1),i&&i$(a)&&(h=!1),h&&(d[f++]=a)}if(ln(a,!0),a.right!==gt&&!Ar(a.right)){s+=a.delta,a=a.right;continue}}return ln(n.root,!1),d}function s4(n,e){if(n.root===gt)return e.parent=gt,e.left=gt,e.right=gt,un(e,0),n.root=e,n.root;sIe(n,e),Ml(e.parent);for(var t=e;t!==n.root&&vi(t.parent)===1;)if(t.parent===t.parent.parent.left){var r=t.parent.parent.right;vi(r)===1?(un(t.parent,0),un(r,0),un(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,gv(n,t)),un(t.parent,0),un(t.parent.parent,1),mv(n,t.parent.parent))}else{var r=t.parent.parent.left;vi(r)===1?(un(t.parent,0),un(r,0),un(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,mv(n,t)),un(t.parent,0),un(t.parent.parent,1),gv(n,t.parent.parent))}return un(n.root,0),e}function sIe(n,e){for(var t=0,r=n.root,i=e.start,o=e.end;;){var a=uIe(i,o,r.start+t,r.end+t);if(a<0)if(r.left===gt){e.start-=t,e.end-=t,e.maxEnd-=t,r.left=e;break}else r=r.left;else if(r.right===gt){e.start-=t+r.delta,e.end-=t+r.delta,e.maxEnd-=t+r.delta,r.right=e;break}else t+=r.delta,r=r.right}e.parent=r,e.left=gt,e.right=gt,un(e,1)}function l4(n,e){var t,r;if(e.left===gt?(t=e.right,r=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===gt?(t=e.left,r=e):(r=lIe(e.right),t=r.right,t.start+=r.delta,t.end+=r.delta,t.delta+=r.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),r.start+=e.delta,r.end+=e.delta,r.delta=e.delta,(r.delta<-1073741824||r.delta>1073741824)&&(n.requestNormalizeDelta=!0)),r===n.root){n.root=t,un(t,0),e.detach(),SS(),wu(t),n.root.parent=gt;return}var i=vi(r)===1;if(r===r.parent.left?r.parent.left=t:r.parent.right=t,r===e?t.parent=r.parent:(r.parent===e?t.parent=r:t.parent=r.parent,r.left=e.left,r.right=e.right,r.parent=e.parent,un(r,vi(e)),e===n.root?n.root=r:e===e.parent.left?e.parent.left=r:e.parent.right=r,r.left!==gt&&(r.left.parent=r),r.right!==gt&&(r.right.parent=r)),e.detach(),i){Ml(t.parent),r!==e&&(Ml(r),Ml(r.parent)),SS();return}Ml(t),Ml(t.parent),r!==e&&(Ml(r),Ml(r.parent));for(var o;t!==n.root&&vi(t)===0;)t===t.parent.left?(o=t.parent.right,vi(o)===1&&(un(o,0),un(t.parent,1),gv(n,t.parent),o=t.parent.right),vi(o.left)===0&&vi(o.right)===0?(un(o,1),t=t.parent):(vi(o.right)===0&&(un(o.left,0),un(o,1),mv(n,o),o=t.parent.right),un(o,vi(t.parent)),un(t.parent,0),un(o.right,0),gv(n,t.parent),t=n.root)):(o=t.parent.left,vi(o)===1&&(un(o,0),un(t.parent,1),mv(n,t.parent),o=t.parent.left),vi(o.left)===0&&vi(o.right)===0?(un(o,1),t=t.parent):(vi(o.left)===0&&(un(o.right,0),un(o,1),gv(n,o),o=t.parent.left),un(o,vi(t.parent)),un(t.parent,0),un(o.left,0),mv(n,t.parent),t=n.root));un(t,0),SS()}function lIe(n){for(;n.left!==gt;)n=n.left;return n}function SS(){gt.parent=gt,gt.delta=0,gt.start=0,gt.end=0}function gv(n,e){var t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==gt&&(t.left.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,wu(e),wu(t)}function mv(n,e){var t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(n.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==gt&&(t.right.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,wu(e),wu(t)}function a$(n){var e=n.end;if(n.left!==gt){var t=n.left.maxEnd;t>e&&(e=t)}if(n.right!==gt){var r=n.right.maxEnd+n.delta;r>e&&(e=r)}return e}function wu(n){n.maxEnd=a$(n)}function Ml(n){for(;n!==gt;){var e=a$(n);if(n.maxEnd===e)return;n.maxEnd=e,n=n.parent}}function uIe(n,e,t,r){return n===t?e-r:n-t}var wI=function(){function n(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}return n.prototype.next=function(){if(this.right!==ut)return fA(this.right);for(var e=this;e.parent!==ut&&e.parent.left!==e;)e=e.parent;return e.parent===ut?ut:e.parent},n.prototype.prev=function(){if(this.left!==ut)return s$(this.left);for(var e=this;e.parent!==ut&&e.parent.right!==e;)e=e.parent;return e.parent===ut?ut:e.parent},n.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},n}(),ut=new wI(null,0);ut.parent=ut;ut.left=ut;ut.right=ut;ut.color=0;function fA(n){for(;n.left!==ut;)n=n.left;return n}function s$(n){for(;n.right!==ut;)n=n.right;return n}function hA(n){return n===ut?0:n.size_left+n.piece.length+hA(n.right)}function pA(n){return n===ut?0:n.lf_left+n.piece.lineFeedCnt+pA(n.right)}function ES(){ut.parent=ut}function _v(n,e){var 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!==ut&&(t.left.parent=e),t.parent=e.parent,e.parent===ut?n.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function yv(n,e){var t=e.left;e.left=t.right,t.right!==ut&&(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===ut?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function Zm(n,e){var t,r;if(e.left===ut?(r=e,t=r.right):e.right===ut?(r=e,t=r.left):(r=fA(e.right),t=r.right),r===n.root){n.root=t,t.color=0,e.detach(),ES(),n.root.parent=ut;return}var i=r.color===1;if(r===r.parent.left?r.parent.left=t:r.parent.right=t,r===e?(t.parent=r.parent,Vp(n,t)):(r.parent===e?t.parent=r:t.parent=r.parent,Vp(n,t),r.left=e.left,r.right=e.right,r.parent=e.parent,r.color=e.color,e===n.root?n.root=r:e===e.parent.left?e.parent.left=r:e.parent.right=r,r.left!==ut&&(r.left.parent=r),r.right!==ut&&(r.right.parent=r),r.size_left=e.size_left,r.lf_left=e.lf_left,Vp(n,r)),e.detach(),t.parent.left===t){var o=hA(t),a=pA(t);if(o!==t.parent.size_left||a!==t.parent.lf_left){var s=o-t.parent.size_left,l=a-t.parent.lf_left;t.parent.size_left=o,t.parent.lf_left=a,Rs(n,t.parent,s,l)}}if(Vp(n,t.parent),i){ES();return}for(var u;t!==n.root&&t.color===0;)t===t.parent.left?(u=t.parent.right,u.color===1&&(u.color=0,t.parent.color=1,_v(n,t.parent),u=t.parent.right),u.left.color===0&&u.right.color===0?(u.color=1,t=t.parent):(u.right.color===0&&(u.left.color=0,u.color=1,yv(n,u),u=t.parent.right),u.color=t.parent.color,t.parent.color=0,u.right.color=0,_v(n,t.parent),t=n.root)):(u=t.parent.left,u.color===1&&(u.color=0,t.parent.color=1,yv(n,t.parent),u=t.parent.left),u.left.color===0&&u.right.color===0?(u.color=1,t=t.parent):(u.left.color===0&&(u.right.color=0,u.color=1,_v(n,u),u=t.parent.left),u.color=t.parent.color,t.parent.color=0,u.left.color=0,yv(n,t.parent),t=n.root));t.color=0,ES()}function u4(n,e){for(Vp(n,e);e!==n.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){var 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,_v(n,e)),e.parent.color=0,e.parent.parent.color=1,yv(n,e.parent.parent))}else{var 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,yv(n,e)),e.parent.color=0,e.parent.parent.color=1,_v(n,e.parent.parent))}n.root.color=0}function Rs(n,e,t,r){for(;e!==n.root&&e!==ut;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=r),e=e.parent}function Vp(n,e){var t=0,r=0;if(e!==n.root){if(t===0){for(;e!==n.root&&e===e.parent.right;)e=e.parent;if(e===n.root)return;e=e.parent,t=hA(e.left)-e.size_left,r=pA(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=r}for(;e!==n.root&&(t!==0||r!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=r),e=e.parent}}var cIe=999,cc=function(){function n(e,t,r,i){this.searchString=e,this.isRegex=t,this.matchCase=r,this.wordSeparators=i}return n.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var e;this.isRegex?e=dIe(this.searchString):e=this.searchString.indexOf(` -`)>=0;var t=null;try{t=bN(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch{return null}if(!t)return null;var r=!this.isRegex&&!e;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new fIe(t,this.wordSeparators?sd(this.wordSeparators):null,r?this.searchString:null)},n}();function dIe(n){if(!n||n.length===0)return!1;for(var e=0,t=n.length;e=t)break;var i=n.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}var fIe=function(){function n(e,t,r){this.regex=e,this.wordSeparators=t,this.simpleSearch=r}return n}();function yc(n,e,t){if(!t)return new Qv(n,null);for(var r=[],i=0,o=e.length;i>0);t[o]>=e?i=o-1:t[o+1]>=e?(r=o,i=o):r=o+1}return r+1},n}(),Qm=function(){function n(){}return n.findMatches=function(e,t,r,i,o){var a=t.parseSearchRequest();return a?a.regex.multiline?this._doFindMatchesMultiline(e,r,new Hp(a.wordSeparators,a.regex),i,o):this._doFindMatchesLineByLine(e,r,a,i,o):[]},n._getMultilineMatchRange=function(e,t,r,i,o,a){var s,l=0;i?(l=i.findLineFeedCountBeforeOffset(o),s=t+o+l):s=t+o;var u;if(i){var c=i.findLineFeedCountBeforeOffset(o+a.length),d=c-l;u=s+a.length+d}else u=s+a.length;var f=e.getPositionAt(s),h=e.getPositionAt(u);return new q(f.lineNumber,f.column,h.lineNumber,h.column)},n._doFindMatchesMultiline=function(e,t,r,i,o){var a=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),l=e.getEOL()===`\r -`?new c4(s):null,u=[],c=0,d;for(r.reset(0);d=r.next(s);)if(u[c++]=yc(this._getMultilineMatchRange(e,a,s,l,d.index,d[0]),d,i),c>=o)return u;return u},n._doFindMatchesLineByLine=function(e,t,r,i,o){var a=[],s=0;if(t.startLineNumber===t.endLineNumber){var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(r,l,t.startLineNumber,t.startColumn-1,s,a,i,o),a}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(r,u,t.startLineNumber,t.startColumn-1,s,a,i,o);for(var c=t.startLineNumber+1;c=l))return o;return o}var p=new Hp(e.wordSeparators,e.regex),v;p.reset(0);do if(v=p.next(t),v&&(a[o++]=yc(new q(r,v.index+1+i,r,v.index+1+v[0].length+i),v,s),o>=l))return o;while(v);return o},n.findNextMatch=function(e,t,r,i){var o=t.parseSearchRequest();if(!o)return null;var a=new Hp(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,r,a,i):this._doFindNextMatchLineByLine(e,r,a,i)},n._doFindNextMatchMultiline=function(e,t,r,i){var o=new he(t.lineNumber,1),a=e.getOffsetAt(o),s=e.getLineCount(),l=e.getValueInRange(new q(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),1),u=e.getEOL()===`\r -`?new c4(l):null;r.reset(t.column-1);var c=r.next(l);return c?yc(this._getMultilineMatchRange(e,a,l,u,c.index,c[0]),c,i):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new he(1,1),r,i):null},n._doFindNextMatchLineByLine=function(e,t,r,i){var o=e.getLineCount(),a=t.lineNumber,s=e.getLineContent(a),l=this._findFirstMatchInLine(r,s,a,t.column,i);if(l)return l;for(var u=1;u<=o;u++){var c=(a+u-1)%o,d=e.getLineContent(c+1),f=this._findFirstMatchInLine(r,d,c+1,1,i);if(f)return f}return null},n._findFirstMatchInLine=function(e,t,r,i,o){e.reset(i-1);var a=e.next(t);return a?yc(new q(r,a.index+1,r,a.index+1+a[0].length),a,o):null},n.findPreviousMatch=function(e,t,r,i){var o=t.parseSearchRequest();if(!o)return null;var a=new Hp(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,r,a,i):this._doFindPreviousMatchLineByLine(e,r,a,i)},n._doFindPreviousMatchMultiline=function(e,t,r,i){var o=this._doFindMatchesMultiline(e,new q(1,1,t.lineNumber,t.column),r,i,10*cIe);if(o.length>0)return o[o.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new he(a,e.getLineMaxColumn(a)),r,i):null},n._doFindPreviousMatchLineByLine=function(e,t,r,i){var o=e.getLineCount(),a=t.lineNumber,s=e.getLineContent(a).substring(0,t.column-1),l=this._findLastMatchInLine(r,s,a,i);if(l)return l;for(var u=1;u<=o;u++){var c=(o+a-u-1)%o,d=e.getLineContent(c+1),f=this._findLastMatchInLine(r,d,c+1,i);if(f)return f}return null},n._findLastMatchInLine=function(e,t,r,i){var o=null,a;for(e.reset(0);a=e.next(t);)o=yc(new q(r,a.index+1,r,a.index+1+a[0].length),a,i);return o},n}();function hIe(n,e,t,r,i){if(r===0)return!0;var o=e.charCodeAt(r-1);if(n.get(o)!==0||o===13||o===10)return!0;if(i>0){var a=e.charCodeAt(r);if(n.get(a)!==0)return!0}return!1}function pIe(n,e,t,r,i){if(r+i===t)return!0;var o=e.charCodeAt(r+i);if(n.get(o)!==0||o===13||o===10)return!0;if(i>0){var a=e.charCodeAt(r+i-1);if(n.get(a)!==0)return!0}return!1}function vA(n,e,t,r,i){return hIe(n,e,t,r,i)&&pIe(n,e,t,r,i)}var Hp=function(){function n(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return n.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},n.prototype.next=function(e){var t=e.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(r=this._searchRegex.exec(e),!r))return null;var i=r.index,o=r[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||vA(this._wordSeparators,e,t,i,o))return r}while(r);return null},n}(),xs=65535;function l$(n){var e;return n[n.length-1]<65536?e=new Uint16Array(n.length):e=new Uint32Array(n.length),e.set(n,0),e}var vIe=function(){function n(e,t,r,i,o){this.lineStarts=e,this.cr=t,this.lf=r,this.crlf=i,this.isBasicASCII=o}return n}();function Fs(n,e){e===void 0&&(e=!0);for(var t=[0],r=1,i=0,o=n.length;i126)&&(a=!1)}var c=new vIe(l$(n),r,i,o,a);return n.length=0,c}var xi=function(){function n(e,t,r,i,o){this.bufferIndex=e,this.start=t,this.end=r,this.lineFeedCnt=i,this.length=o}return n}(),bc=function(){function n(e,t){this.buffer=e,this.lineStarts=t}return n}(),mIe=function(){function n(e){this._limit=e,this._cache=[]}return n.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var r=this._cache[t];if(r.nodeStartOffset<=e&&r.nodeStartOffset+r.node.piece.length>=e)return r}return null},n.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var r=this._cache[t];if(r.nodeStartLineNumber&&r.nodeStartLineNumber=e)return r}return null},n.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},n.prototype.valdiate=function(e){for(var t=!1,r=this._cache,i=0;i=e){r[i]=null,t=!0;continue}}if(t){for(var a=[],s=0,l=r;s0){e[o].lineStarts||(e[o].lineStarts=Fs(e[o].buffer));var s=new xi(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]),i=this.rbInsertRight(i,s)}this._searchCache=new mIe(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},n.prototype.normalizeEOL=function(e){var t=this,r=xs,i=r-Math.floor(r/3),o=i*2,a="",s=0,l=[];if(this.iterate(this.root,function(c){var d=t.getNodeContent(c),f=d.length;if(s<=i||s+f0){var u=a.replace(/\r\n|\r|\n/g,e);l.push(new bc(u,Fs(u)))}this.create(l,e,!0)},n.prototype.getEOL=function(){return this._EOL},n.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},n.prototype.getOffsetAt=function(e,t){for(var r=0,i=this.root;i!==ut;)if(i.left!==ut&&i.lf_left+1>=e)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt+1>=e){r+=i.size_left;var o=this.getAccumulatedValue(i,e-i.lf_left-2);return r+=o+t-1}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right;return r},n.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,r=0,i=e;t!==ut;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(r+=t.lf_left+o.index,o.index===0){var a=this.getOffsetAt(r+1,1),s=i-a;return new he(r+1,s+1)}return new he(r+1,o.remainder+1)}else if(e-=t.size_left+t.piece.length,r+=t.lf_left+t.piece.lineFeedCnt,t.right===ut){var a=this.getOffsetAt(r+1,1),s=i-e-a;return new he(r+1,s+1)}else t=t.right;return new he(1,1)},n.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var r=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(r,i);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},n.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var r=e.node,i=this._buffers[r.piece.bufferIndex].buffer,o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var a=e.node,s=this._buffers[a.piece.bufferIndex].buffer,l=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start),u=s.substring(l+e.remainder,l+a.piece.length);for(a=a.next();a!==ut;){var c=this._buffers[a.piece.bufferIndex].buffer,d=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);if(a===t.node){u+=c.substring(d,d+t.remainder);break}else u+=c.substr(d,a.piece.length);a=a.next()}return u},n.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},n.prototype.getLength=function(){return this._length},n.prototype.getLineCount=function(){return this._lineCnt},n.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},n.prototype.getLineCharCode=function(e,t){var r=this.nodeAt2(e,t+1);if(r.remainder===r.node.piece.length){var i=r.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(a)}else{var o=this._buffers[r.node.piece.bufferIndex],a=this.offsetInBuffer(r.node.piece.bufferIndex,r.node.piece.start),s=a+r.remainder;return o.buffer.charCodeAt(s)}},n.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},n.prototype.findMatchesInNode=function(e,t,r,i,o,a,s,l,u,c,d){var f=this._buffers[e.piece.bufferIndex],h=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,o),v=this.offsetInBuffer(e.piece.bufferIndex,a),m;t.reset(p);var g={line:0,column:0};do if(m=t.next(f.buffer),m){if(m.index>=v)return c;this.positionInBuffer(e,m.index-h,g);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,g),y=g.line===o.line?g.column-o.column+i:g.column+1,b=y+m[0].length;if(d[c++]=yc(new q(r+_,y,r+_,b),m,l),m.index+m[0].length>=v||c>=u)return c}while(m);return c},n.prototype.findMatchesLineByLine=function(e,t,r,i){var o=[],a=0,s=new Hp(t.wordSeparators,t.regex),l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(u===null)return[];var c=this.positionInBuffer(l.node,l.remainder),d=this.positionInBuffer(u.node,u.remainder);if(l.node===u.node)return this.findMatchesInNode(l.node,s,e.startLineNumber,e.startColumn,c,d,t,r,i,a,o),o;for(var f=e.startLineNumber,h=l.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(p>=1){var v=this._buffers[h.piece.bufferIndex].lineStarts,m=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),g=v[c.line+p],_=f===e.startLineNumber?e.startColumn:1;if(a=this.findMatchesInNode(h,s,f,_,c,this.positionInBuffer(h,g-m),t,r,i,a,o),a>=i)return o;f+=p}var y=f===e.startLineNumber?e.startColumn-1:0;if(f===e.endLineNumber){var b=this.getLineContent(f).substring(y,e.endColumn-1);return a=this._findMatchesInLine(t,s,b,e.endLineNumber,y,a,o,r,i),o}if(a=this._findMatchesInLine(t,s,this.getLineContent(f).substr(y),f,y,a,o,r,i),a>=i)return o;f++,l=this.nodeAt2(f,1),h=l.node,c=this.positionInBuffer(l.node,l.remainder)}if(f===e.endLineNumber){var w=f===e.startLineNumber?e.startColumn-1:0,b=this.getLineContent(f).substring(w,e.endColumn-1);return a=this._findMatchesInLine(t,s,b,e.endLineNumber,w,a,o,r,i),o}var C=f===e.startLineNumber?e.startColumn:1;return a=this.findMatchesInNode(u.node,s,f,C,c,d,t,r,i,a,o),o},n.prototype._findMatchesInLine=function(e,t,r,i,o,a,s,l,u){var c=e.wordSeparators;if(!l&&e.simpleSearch){for(var d=e.simpleSearch,f=d.length,h=r.length,p=-f;(p=r.indexOf(d,p+f))!==-1;)if((!c||vA(c,r,h,p,f))&&(s[a++]=new Qv(new q(i,p+1+o,i,p+1+f+o),null),a>=u))return a;return a}var v;t.reset(0);do if(v=t.next(r),v&&(s[a++]=yc(new q(i,v.index+1+o,i,v.index+1+v[0].length+o),v,l),a>=u))return a;while(v);return a},n.prototype.insert=function(e,t,r){if(r===void 0&&(r=!1),this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ut){var i=this.nodeAt(e),o=i.node,a=i.remainder,s=i.nodeStartOffset,l=o.piece,u=l.bufferIndex,c=this.positionInBuffer(o,a);if(o.piece.bufferIndex===0&&l.end.line===this._lastChangeBufferPos.line&&l.end.column===this._lastChangeBufferPos.column&&s+l.length===e&&t.lengthe){var d=[],f=new xi(l.bufferIndex,c,l.end,this.getLineFeedCnt(l.bufferIndex,c,l.end),this.offsetInBuffer(u,l.end)-this.offsetInBuffer(u,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(o,a);if(h===10){var p={line:f.start.line+1,column:0};f=new xi(f.bufferIndex,p,f.end,this.getLineFeedCnt(f.bufferIndex,p,f.end),f.length-1),t+=` -`}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var v=this.nodeCharCodeAt(o,a-1);if(v===13){var m=this.positionInBuffer(o,a-1);this.deleteNodeTail(o,m),t="\r"+t,o.piece.length===0&&d.push(o)}else this.deleteNodeTail(o,c)}else this.deleteNodeTail(o,c);var g=this.createNewPieces(t);f.length>0&&this.rbInsertRight(o,f);for(var _=o,y=0;y.001){w=!1;break}}var T=!0;w&&y.width!==b&&(T=!1),y.width>_.width&&(T=!1);var R=KCe()>2e3;return new QL({zoomLevel:Ay(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:w,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:a.width,canUseHalfwidthRightwardsArrow:T,spaceWidth:s.width,maxDigitWidth:C},R)},e.INSTANCE=new e,e}(Ue),Oo=function(n){l9(e,n);function e(t,r,i,o){i===void 0&&(i=null);var a=n.call(this,t,r)||this;return a.accessibilityService=o,a._elementSizeObserver=a._register(new mEe(i,function(){return a._onReferenceDomElementSizeChanged()})),a._register(lI.INSTANCE.onDidChange(function(){return a._onCSSBasedConfigurationChanged()})),a._validatedOptions.automaticLayout&&a._elementSizeObserver.startObserving(),a._register(dU(function(s){return a._recomputeOptions()})),a._register(a.accessibilityService.onDidChangeAccessibilitySupport(function(){return a._recomputeOptions()})),a._recomputeOptions(),a}return e.applyFontInfoSlow=function(t,r){t.style.fontFamily=r.getMassagedFontFamily(),t.style.fontWeight=r.fontWeight,t.style.fontSize=r.fontSize+"px",t.style.lineHeight=r.lineHeight+"px",t.style.letterSpacing=r.letterSpacing+"px"},e.applyFontInfo=function(t,r){t.setFontFamily(r.getMassagedFontFamily()),t.setFontWeight(r.fontWeight),t.setFontSize(r.fontSize),t.setLineHeight(r.lineHeight),t.setLetterSpacing(r.letterSpacing)},e.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},e.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},e.prototype.observeReferenceElement=function(t){this._elementSizeObserver.observe(t)},e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._getExtraEditorClassName=function(){var t="";return!IC&&!qCe&&(t+="no-user-select "),Vt&&(t+="mac "),t},e.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:Fc||il,pixelRatio:GCe(),zoomLevel:Ay(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},e.prototype.readConfiguration=function(t){return lI.INSTANCE.readConfiguration(t)},e}(y1e),yEe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Yo=function(){function n(e,t,r,i,o){t===void 0&&(t=""),r===void 0&&(r=""),i===void 0&&(i=!0),this._onDidChange=new se,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=r,this._enabled=i,this._actionCallback=o}return Object.defineProperty(n.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),n.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(n.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),n.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(n.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),n.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(n.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),n.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),n.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},n.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},n.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},n.prototype.dispose=function(){this._onDidChange.dispose()},n}(),u9=function(n){yEe(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new se),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new se),t.onDidRun=t._onDidRun.event,t}return e.prototype.run=function(t,r){var i=this;return t.enabled?(this._onDidBeforeRun.fire({action:t}),this.runAction(t,r).then(function(o){i._onDidRun.fire({action:t,result:o})},function(o){i._onDidRun.fire({action:t,error:o})})):Promise.resolve(null)},e.prototype.runAction=function(t,r){var i=r?t.run(r):t.run();return Promise.resolve(i)},e}(Ue),GN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),c9=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},uI=function(n,e){return function(t,r){e(t,r,n)}};function $_(n){return n.command!==void 0}var d9=nn("menuService"),La=new(function(){function n(){this._commands=Object.create(null),this._menuItems=Object.create(null),this._onDidChangeMenu=new se,this.onDidChangeMenu=this._onDidChangeMenu.event}return n.prototype.addCommand=function(e){var t=this;return this._commands[e.id]=e,this._onDidChangeMenu.fire(0),{dispose:function(){delete t._commands[e.id]&&t._onDidChangeMenu.fire(0)}}},n.prototype.getCommand=function(e){return this._commands[e]},n.prototype.getCommands=function(){var e=Object.create(null);for(var t in this._commands)e[t]=this.getCommand(t);return e},n.prototype.appendMenuItem=function(e,t){var r=this,i=this._menuItems[e];return i?i.push(t):this._menuItems[e]=i=[t],this._onDidChangeMenu.fire(e),{dispose:function(){var o=i.indexOf(t);o>=0&&(i.splice(o,1),r._onDidChangeMenu.fire(e))}}},n.prototype.getMenuItems=function(e){var t=(this._menuItems[e]||[]).slice(0);return e===0&&this._appendImplicitItems(t),t},n.prototype._appendImplicitItems=function(e){for(var t=new Set,r=e.filter(function(c){return $_(c)}),i=0,o=r;i=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Hr;(function(n){n.Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu"})(Hr||(Hr={}));var Vh=function(n){LEe(e,n);function e(){var t=n.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(Be(document,"touchstart",function(r){return t.onTouchStart(r)})),t._register(Be(document,"touchend",function(r){return t.onTouchEnd(r)})),t._register(Be(document,"touchmove",function(r){return t.onTouchMove(r)})),t}return e.addTarget=function(t){e.isTouchDevice()&&(e.INSTANCE||(e.INSTANCE=new e),e.INSTANCE.targets.push(t))},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},e.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),n.prototype.dispose.call(this)},e.prototype.onTouchStart=function(t){var r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,o=t.targetTouches.length;i=e.HOLD_DELAY&&Math.abs(f.initialPageX-fo(f.rollingPageX))<30&&Math.abs(f.initialPageY-fo(f.rollingPageY))<30){var p=a.newGestureEvent(Hr.Contextmenu,f.initialTarget);p.pageX=fo(f.rollingPageX),p.pageY=fo(f.rollingPageY),a.dispatchEvent(p)}else if(i===1){var v=fo(f.rollingPageX),m=fo(f.rollingPageY),g=fo(f.rollingTimestamps)-f.rollingTimestamps[0],_=v-f.rollingPageX[0],y=m-f.rollingPageY[0],C=a.targets.filter(function(w){return f.initialTarget instanceof Node&&w.contains(f.initialTarget)});a.inertia(C,r,Math.abs(_)/g,_>0?1:-1,v,Math.abs(y)/g,y>0?1:-1,m)}a.dispatchEvent(a.newGestureEvent(Hr.End,f.initialTarget)),delete a.activeTouches[d.identifier]},a=this,s=0,l=t.changedTouches.length;s0&&(v=!1,h=o*i*f),s>0&&(v=!1,p=l*s*f);var m=c.newGestureEvent(Hr.Change);m.translationX=h,m.translationY=p,t.forEach(function(g){return g.dispatchEvent(m)}),v||c.inertia(t,d,i,o,a+h,s,l,u+p)})},e.prototype.onTouchMove=function(t){for(var r=Date.now(),i=0,o=t.changedTouches.length;i3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(a.pageX),s.rollingPageY.push(a.pageY),s.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,IEe([Vo],e,"isTouchDevice",null),e}(Ue),TEe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function Hh(n,e){var t=new jr(e);return t.preventDefault(),{leftButton:t.leftButton,posx:t.posx,posy:t.posy}}var Cd=function(n){TEe(e,n);function e(){var t=n.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return e.prototype.dispose=function(){this.stopMonitoring(!1),n.prototype.dispose.call(this)},e.prototype.stopMonitoring=function(t){if(this.isMonitoring()){this.hooks=Oe(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var r=this.onStopCallback;this.onStopCallback=null,t&&r&&r()}},e.prototype.isMonitoring=function(){return this.hooks.length>0},e.prototype.startMonitoring=function(t,r,i){var o=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=t,this.mouseMoveCallback=r,this.onStopCallback=i;for(var a=zL.getSameOriginWindowChain(),s=0,l=a;s=u?o=Math.max(o,u+c-i):(t[r++]=new hu(i,o),i=u,o=c)}return t[r++]=new hu(i,o),t},n._createHorizontalRangesFromClientRects=function(e,t){if(!e||e.length===0)return null;for(var r=[],i=0,o=e.length;iu)return null;t=Math.min(u,Math.max(l,t)),i=Math.min(u,Math.max(l,i)),t!==i&&i>0&&o===0&&(i--,o=Number.MAX_VALUE);var c=e.children[t].firstChild,d=e.children[i].firstChild;if((!c||!d)&&(!c&&r===0&&t>0&&(c=e.children[t-1].firstChild,r=1073741824),!d&&o===0&&i>0&&(d=e.children[i-1].firstChild,o=1073741824)),!c||!d)return null;r=Math.min(c.textContent.length,Math.max(0,r)),o=Math.min(d.textContent.length,Math.max(0,o));var f=this._readClientRects(c,r,d,o,s);return this._createHorizontalRangesFromClientRects(f,a)},n}(),kr=nn("themeService");function Ca(n){return{id:n}}var FEe="dark",gh="hc";function Zy(n){switch(n){case FEe:return"vs-dark";case gh:return"hc-black";default:return"vs"}}var g9={ThemingContribution:"base.contributions.theming"},BEe=function(){function n(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new se}return n.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Bn(function(){var r=t.themingParticipants.indexOf(e);t.themingParticipants.splice(r,1)})},n.prototype.getThemingParticipants=function(){return this.themingParticipants},n}(),m9=new BEe;Ti.add(g9.ThemingContribution,m9);function Cn(n){return m9.onThemeChange(n)}var WEe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),VEe=function(){return ls?!0:!(gs||il||IC)}(),z3=uu,K3=function(){function n(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(n.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),n}(),G3=function(){function n(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return n.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},n}(),Sf=function(){function n(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return n.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},n.prototype.setDomNode=function(e){if(this._renderedViewLine)this._renderedViewLine.domNode=Bt(e);else throw new Error("I have no rendered view line to set the dom node to...")},n.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},n.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},n.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},n.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},n.prototype.onSelectionChanged=function(){return z3||this._options.themeType===gh?(this._isMaybeInvalid=!0,!0):!1},n.prototype.renderLine=function(e,t,r,i){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(e),a=this._options,s=cg.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);if(z3||a.themeType===gh)for(var l=r.selections,u=0,c=l;ue)){var f=d.startLineNumber===e?d.startColumn:o.minColumn,h=d.endLineNumber===e?d.endColumn:o.maxColumn;f');var v=HN(p,i);i.appendASCIIString("");var m=null;return VEe&&o.isBasicASCII&&a.useMonospaceOptimizations&&v.containsForeignElements===0&&o.content.length<300&&p.lineTokens.getCount()<100&&(m=new HEe(this._renderedViewLine?this._renderedViewLine.domNode:null,p,v.characterMapping)),m||(m=$Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,p,v.characterMapping,v.containsRTL,v.containsForeignElements)),this._renderedViewLine=m,!0},n.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},n.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},n.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},n.prototype.getVisibleRangesForRange=function(e,t,r){if(!this._renderedViewLine)return null;e=e|0,t=t|0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=this._renderedViewLine.input.stopRenderingLineAfter|0;return i!==-1&&e>i&&t>i?null:(i!==-1&&e>i&&(e=i),i!==-1&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,r))},n.prototype.getColumnOfNodeOffset=function(e,t,r){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,r):1},n.CLASS_NAME="view-line",n}(),HEe=function(){function n(e,t,r){this.domNode=e,this.input=t,this._characterMapping=r,this._charWidth=t.spaceWidth}return n.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},n.prototype.getWidthIsFast=function(){return!0},n.prototype.getVisibleRangesForRange=function(e,t,r){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new hu(i,o-i)]},n.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[e-1])},n.prototype.getColumnOfNodeOffset=function(e,t,r){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var a=this._characterMapping.partDataToCharOffset(o,i,r);return a+1},n}(),_9=function(){function n(e,t,r,i,o){if(this.domNode=e,this.input=t,this._characterMapping=r,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var a=0,s=this._characterMapping.length;a<=s;a++)this._pixelOffsetCache[a]=-1}}return n.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},n.prototype.getWidth=function(){return this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},n.prototype.getWidthIsFast=function(){return this._cachedWidth!==-1},n.prototype.getVisibleRangesForRange=function(e,t,r){if(this._pixelOffsetCache!==null){var i=this._readPixelOffset(e,r);if(i===-1)return null;var o=this._readPixelOffset(t,r);return o===-1?null:[new hu(i,o-i)]}return this._readVisibleRangesForRange(e,t,r)},n.prototype._readVisibleRangesForRange=function(e,t,r){if(e===t){var i=this._readPixelOffset(e,r);return i===-1?null:[new hu(i,0)]}else return this._readRawVisibleRangesForRange(e,t,r)},n.prototype._readPixelOffset=function(e,t){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth()}if(this._pixelOffsetCache!==null){var r=this._pixelOffsetCache[e];if(r!==-1)return r;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},n.prototype._actualReadPixelOffset=function(e,t){if(this._characterMapping.length===0){var r=cS.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return!r||r.length===0?-1:r[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=$l.getPartIndex(i),a=$l.getCharIndex(i),s=cS.readHorizontalRanges(this._getReadingTarget(),o,a,o,a,t.clientRectDeltaLeft,t.endNode);return!s||s.length===0?-1:s[0].left},n.prototype._readRawVisibleRangesForRange=function(e,t,r){if(e===1&&t===this._characterMapping.length)return[new hu(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=$l.getPartIndex(i),a=$l.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),l=$l.getPartIndex(s),u=$l.getCharIndex(s);return cS.readHorizontalRanges(this._getReadingTarget(),o,a,l,u,r.clientRectDeltaLeft,r.endNode)},n.prototype.getColumnOfNodeOffset=function(e,t,r){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var a=this._characterMapping.partDataToCharOffset(o,i,r);return a+1},n}(),UEe=function(n){WEe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._readVisibleRangesForRange=function(t,r,i){var o=n.prototype._readVisibleRangesForRange.call(this,t,r,i);if(!o||o.length===0||t===r||t===1&&r===this._characterMapping.length)return o;if(!this.input.containsRTL){var a=this._readPixelOffset(r,i);if(a!==-1){var s=o[o.length-1];s.left=4&&e[0]===3&&e[3]===7},n.isStrictChildOfViewLines=function(e){return e.length>4&&e[0]===3&&e[3]===7},n.isChildOfScrollableElement=function(e){return e.length>=2&&e[0]===3&&e[1]===5},n.isChildOfMinimap=function(e){return e.length>=2&&e[0]===3&&e[1]===8},n.isChildOfContentWidgets=function(e){return e.length>=4&&e[0]===3&&e[3]===1},n.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&e[0]===2},n.isChildOfOverlayWidgets=function(e){return e.length>=2&&e[0]===3&&e[1]===4},n}(),fI=function(){function n(e,t,r){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=r,this._context=e,this._viewHelper=t}return n.prototype.getZoneAtCoord=function(e){return n.getZoneAtCoord(this._context,e)},n.getZoneAtCoord=function(e,t){var r=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(r){var i=r.verticalOffset+r.height/2,o=e.model.getLineCount(),a=null,s=void 0,l=null;return r.afterLineNumber!==o&&(l=new pe(r.afterLineNumber+1,1)),r.afterLineNumber>0&&(a=new pe(r.afterLineNumber,e.model.getLineMaxColumn(r.afterLineNumber))),l===null?s=a:a===null?s=l:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,y9._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return n}(),qEe=function(n){KEe(e,n);function e(t,r,i,o){var a=n.call(this,t,r,i)||this;return a._ctx=t,o?(a.target=o,a.targetPath=fs.collect(o,t.viewDomNode)):(a.target=null,a.targetPath=new Uint8Array(0)),a}return e.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+` + target: `+(this.target?this.target.outerHTML:null)},e.prototype.fulfill=function(t,r,i,o){return r===void 0&&(r=null),i===void 0&&(i=null),o===void 0&&(o=null),new Fs(this.target,t,this.mouseColumn,r,i,o)},e.prototype.withTarget=function(t){return new e(this._ctx,this.editorPos,this.pos,t)},e}(GEe),YEe={isAfterLines:!0};function dS(n){return{isAfterLines:!1,horizontalDistanceToText:n}}var y9=function(){function n(e,t){this._context=e,this._viewHelper=t}return n.prototype.mouseTargetIsWidget=function(e){var t=e.target,r=fs.collect(t,this._viewHelper.viewDomNode);return!!(Bo.isChildOfContentWidgets(r)||Bo.isChildOfOverflowingContentWidgets(r)||Bo.isChildOfOverlayWidgets(r))},n.prototype.createMouseTarget=function(e,t,r,i){var o=new fI(this._context,this._viewHelper,e),a=new qEe(o,t,r,i);try{var s=n._createMouseTarget(o,a,!1);return s}catch{return a.fulfill(0)}},n._createMouseTarget=function(e,t,r){if(t.target===null){if(r)return t.fulfill(0);var i=n._doHitTest(e,t);return i.position?n.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}var o=t,a=null;return a=a||n._hitTestContentWidget(e,o),a=a||n._hitTestOverlayWidget(e,o),a=a||n._hitTestMinimap(e,o),a=a||n._hitTestScrollbarSlider(e,o),a=a||n._hitTestViewZone(e,o),a=a||n._hitTestMargin(e,o),a=a||n._hitTestViewCursor(e,o),a=a||n._hitTestTextArea(e,o),a=a||n._hitTestViewLines(e,o,r),a=a||n._hitTestScrollbar(e,o),a||t.fulfill(0)},n._hitTestContentWidget=function(e,t){if(Bo.isChildOfContentWidgets(t.targetPath)||Bo.isChildOfOverflowingContentWidgets(t.targetPath)){var r=e.findAttribute(t.target,"widgetId");return r?t.fulfill(9,null,null,r):t.fulfill(0)}return null},n._hitTestOverlayWidget=function(e,t){if(Bo.isChildOfOverlayWidgets(t.targetPath)){var r=e.findAttribute(t.target,"widgetId");return r?t.fulfill(12,null,null,r):t.fulfill(0)}return null},n._hitTestViewCursor=function(e,t){if(t.target)for(var r=e.lastViewCursorsRenderData,i=0,o=r;ia.contentLeft+a.width)){var d=e.getVerticalOffsetForLineNumber(a.position.lineNumber);if(d<=l&&l<=d+a.height)return t.fulfill(6,a.position)}}return null},n._hitTestViewZone=function(e,t){var r=e.getZoneAtCoord(t.mouseVerticalOffset);if(r){var i=t.isInContentArea?8:5;return t.fulfill(i,r.position,null,r)}return null},n._hitTestTextArea=function(e,t){return Bo.isTextArea(t.targetPath)?t.fulfill(1):null},n._hitTestMargin=function(e,t){if(t.isInMarginArea){var r=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=r.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),a={isAfterLines:r.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.fulfill(2,i,r.range,a):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,r.range,a):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,r.range,a)))}return null},n._hitTestViewLines=function(e,t,r){if(!Bo.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var i=e.model.getLineCount(),o=e.model.getLineMaxColumn(i);return t.fulfill(7,new pe(i,o),void 0,YEe)}if(r){if(Bo.isStrictChildOfViewLines(t.targetPath)){var a=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(e.model.getLineLength(a)===0){var s=e.getLineWidth(a),l=dS(t.mouseContentHorizontalOffset-s);return t.fulfill(7,new pe(a,1),void 0,l)}}return t.fulfill(0)}var u=n._doHitTest(e,t);return u.position?n.createMouseTargetFromHitTestPosition(e,t,u.position.lineNumber,u.position.column):this._createMouseTarget(e,t.withTarget(u.hitTarget),!0)},n._hitTestMinimap=function(e,t){if(Bo.isChildOfMinimap(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new pe(r,i))}return null},n._hitTestScrollbarSlider=function(e,t){if(Bo.isChildOfScrollableElement(t.targetPath)&&t.target&&t.target.nodeType===1){var r=t.target.className;if(r&&/\b(slider|scrollbar)\b/.test(r)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new pe(i,o))}}return null},n._hitTestScrollbar=function(e,t){if(Bo.isChildOfScrollableElement(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new pe(r,i))}return null},n.prototype.getMouseColumn=function(e,t){var r=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-r.contentLeft;return n._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},n._getMouseColumn=function(e,t){if(e<0)return 1;var r=Math.round(e/t);return r+1},n.createMouseTargetFromHitTestPosition=function(e,t,r,i){var o=new pe(r,i),a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a){if(Ug&&o.column===1){var s=dS(t.mouseContentHorizontalOffset-a);return t.fulfill(7,new pe(r,e.model.getLineMaxColumn(r)),void 0,s)}var l=dS(t.mouseContentHorizontalOffset-a);return t.fulfill(7,o,void 0,l)}var u=e.visibleRangeForPosition2(r,i);if(!u)return t.fulfill(0,o);var c=u.left;if(t.mouseContentHorizontalOffset===c)return t.fulfill(6,o);var d=[];if(d.push({offset:u.left,column:i}),i>1){var f=e.visibleRangeForPosition2(r,i-1);f&&d.push({offset:f.left,column:i-1})}var h=e.model.getLineMaxColumn(r);if(i=t.editorPos.y+e.layoutInfo.height&&(a=t.editorPos.y+e.layoutInfo.height-1);var s=new YN(t.pos.x,a),l=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return l.position?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},n._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var r=document.caretRangeFromPoint(t.clientX,t.clientY);if(!r||!r.startContainer)return{position:null,hitTarget:null};var i=r.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var a=i.parentNode,s=a?a.parentNode:null,l=s?s.parentNode:null,u=l&&l.nodeType===l.ELEMENT_NODE?l.className:null;if(u===Sf.CLASS_NAME){var c=e.getPositionFromDOMInfo(a,r.startOffset);return{position:c,hitTarget:null}}else o=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){var a=i.parentNode,s=a?a.parentNode:null,d=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(d===Sf.CLASS_NAME){var c=e.getPositionFromDOMInfo(i,i.textContent.length);return{position:c,hitTarget:null}}else o=i}return{position:null,hitTarget:o}},n._doHitTestWithCaretPositionFromPoint=function(e,t){var r=document.caretPositionFromPoint(t.clientX,t.clientY);if(r.offsetNode.nodeType===r.offsetNode.TEXT_NODE){var i=r.offsetNode.parentNode,o=i?i.parentNode:null,a=o?o.parentNode:null,s=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(s===Sf.CLASS_NAME){var l=e.getPositionFromDOMInfo(r.offsetNode.parentNode,r.offset);return{position:l,hitTarget:null}}else return{position:null,hitTarget:r.offsetNode.parentNode}}return{position:null,hitTarget:r.offsetNode}},n._doHitTestWithMoveToPoint=function(e,t){var r=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch{return{position:null,hitTarget:null}}o.collapse(!0);var a=o?o.parentElement():null,s=a?a.parentNode:null,l=s?s.parentNode:null,u=l&&l.nodeType===l.ELEMENT_NODE?l.className:"";if(u===Sf.CLASS_NAME){var c=o.duplicate();c.moveToElementText(a),c.setEndPoint("EndToStart",o),r=e.getPositionFromDOMInfo(a,c.text.length),c.moveToElementText(e.viewDomNode)}else i=a;return o.moveToElementText(e.viewDomNode),{position:r,hitTarget:i}},n._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},n}(),b9=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function hI(n){return function(e,t){var r=!1;return n&&(r=n.mouseTargetIsWidget(t)),r||t.preventDefault(),t}}var kC=function(n){b9(e,n);function e(t,r,i){var o=n.call(this)||this;o._isFocused=!1,o._context=t,o.viewController=r,o.viewHelper=i,o.mouseTargetFactory=new y9(o._context,i),o._mouseDownOperation=o._register(new XEe(o._context,o.viewController,o.viewHelper,function(l,u){return o._createMouseTarget(l,u)},function(l){return o._getMouseColumn(l)})),o._asyncFocus=o._register(new xr(function(){return o.viewHelper.focusTextArea()},0)),o.lastMouseLeaveTime=-1;var a=new OEe(o.viewHelper.viewDomNode);o._register(a.onContextMenu(o.viewHelper.viewDomNode,function(l){return o._onContextMenu(l,!0)})),o._register(a.onMouseMoveThrottled(o.viewHelper.viewDomNode,function(l){return o._onMouseMove(l)},hI(o.mouseTargetFactory),e.MOUSE_MOVE_MINIMUM_TIME)),o._register(a.onMouseUp(o.viewHelper.viewDomNode,function(l){return o._onMouseUp(l)})),o._register(a.onMouseLeave(o.viewHelper.viewDomNode,function(l){return o._onMouseLeave(l)})),o._register(a.onMouseDown(o.viewHelper.viewDomNode,function(l){return o._onMouseDown(l)}));var s=function(l){if(o.viewController.emitMouseWheel(l),!!o._context.configuration.editor.viewInfo.mouseWheelZoom){var u=new ch(l);if(u.browserEvent.ctrlKey||u.browserEvent.metaKey){var c=ll.getZoomLevel(),d=u.deltaY>0?1:-1;ll.setZoomLevel(c+d),u.preventDefault(),u.stopPropagation()}}};return o._register(Be(o.viewHelper.viewDomNode,"mousewheel",s,!0)),o._context.addEventHandler(o),o}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},e.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},e.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},e.prototype.getTargetAtClientPoint=function(t,r){var i=new p9(t,r),o=i.toPageCoordinates(),a=v9(this.viewHelper.viewDomNode);if(o.ya.y+a.height||o.xa.x+a.width)return null;var s=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(s,a,o,null)},e.prototype._createMouseTarget=function(t,r){var i=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(i,t.editorPos,t.pos,r?t.target:null)},e.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},e.prototype._onContextMenu=function(t,r){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,r)})},e.prototype._onMouseMove=function(t){if(!this._mouseDownOperation.isActive()){var r=t.timestamp;rr.y+r.height){var s=o.getCurrentScrollTop()+(t.posy-r.y),l=fI.getZoneAtCoord(this._context,s);if(l){var u=this._helpPositionJumpOverViewZone(l);if(u)return new Fs(null,13,a,u)}var d=o.getLineNumberAtVerticalOffset(s);return new Fs(null,13,a,new pe(d,i.getLineMaxColumn(d)))}var f=o.getLineNumberAtVerticalOffset(o.getCurrentScrollTop()+(t.posy-r.y));return t.posxr.x+r.width?new Fs(null,13,a,new pe(f,i.getLineMaxColumn(f))):null},e.prototype._findMousePosition=function(t,r){var i=this._getPositionOutsideEditor(t);if(i)return i;var o=this._createMouseTarget(t,r),a=o.position;if(!a)return null;if(o.type===8||o.type===5){var s=this._helpPositionJumpOverViewZone(o.detail);if(s)return new Fs(o.element,o.type,o.mouseColumn,s,null,o.detail)}return o},e.prototype._helpPositionJumpOverViewZone=function(t){var r=new pe(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=t.positionBefore,o=t.positionAfter;return i&&o?i.isBefore(r)?i:o:null},e.prototype._dispatchMouse=function(t,r){t.position&&this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:r,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})},e}(Ue),ZEe=function(){function n(){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}return Object.defineProperty(n.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),n.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},n.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},n.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},n.prototype.trySetCount=function(e,t){var r=new Date().getTime();r-this._lastSetMouseDownCountTime>n.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=r,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)},n.CLEAR_MOUSE_DOWN_COUNT_TIME=400,n}(),XN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function C9(n,e){var t={translationY:e.translationY,translationX:e.translationX};return n&&(t.translationY+=n.translationY,t.translationX+=n.translationX),t}var QEe=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var a=new MSGesture,s=new MSGesture;a.target=o.viewHelper.linesContentDomNode,s.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(l){var u=l.pointerType;if(u===(l.MSPOINTER_TYPE_MOUSE||"mouse")){o._lastPointerType="mouse";return}else u===(l.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",a.addPointer(l.pointerId)):(o._lastPointerType="pen",s.addPointer(l.pointerId))}),o._register(zg(o.viewHelper.linesContentDomNode,"MSGestureChange",function(l){return o._onGestureChange(l)},C9)),o._register(Be(o.viewHelper.linesContentDomNode,"MSGestureTap",function(l){return o._onCaptureGestureTap(l)},!0))}},100),o._lastPointerType="mouse",o}return e.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&n.prototype._onMouseDown.call(this,t)},e.prototype._onCaptureGestureTap=function(t){var r=this,i=new vh(t,this.viewHelper.viewDomNode),o=this._createMouseTarget(i,!1);o.position&&this.viewController.moveTo(o.position),i.browserEvent.fromElement?(i.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){r.viewHelper.focusTextArea()})},e.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),n.prototype.dispose.call(this)},e}(kC),JEe=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var a=new MSGesture,s=new MSGesture;a.target=o.viewHelper.linesContentDomNode,s.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(l){var u=l.pointerType;if(u==="mouse"){o._lastPointerType="mouse";return}else u==="touch"?(o._lastPointerType="touch",a.addPointer(l.pointerId)):(o._lastPointerType="pen",s.addPointer(l.pointerId))}),o._register(zg(o.viewHelper.linesContentDomNode,"MSGestureChange",function(l){return o._onGestureChange(l)},C9)),o._register(Be(o.viewHelper.linesContentDomNode,"MSGestureTap",function(l){return o._onCaptureGestureTap(l)},!0))}},100),o._lastPointerType="mouse",o}return e.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&n.prototype._onMouseDown.call(this,t)},e.prototype._onCaptureGestureTap=function(t){var r=this,i=new vh(t,this.viewHelper.viewDomNode),o=this._createMouseTarget(i,!1);o.position&&this.viewController.moveTo(o.position),i.browserEvent.fromElement?(i.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){r.viewHelper.focusTextArea()})},e.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),n.prototype.dispose.call(this)},e}(kC),eLe=function(n){XN(e,n);function e(t,r,i){var o=n.call(this,t,r,i)||this;return Vh.addTarget(o.viewHelper.linesContentDomNode),o._register(Be(o.viewHelper.linesContentDomNode,Hr.Tap,function(a){return o.onTap(a)})),o._register(Be(o.viewHelper.linesContentDomNode,Hr.Change,function(a){return o.onChange(a)})),o._register(Be(o.viewHelper.linesContentDomNode,Hr.Contextmenu,function(a){return o._onContextMenu(new vh(a,o.viewHelper.viewDomNode),!1)})),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var r=this._createMouseTarget(new vh(t,this.viewHelper.viewDomNode),!1);r.position&&this.viewController.moveTo(r.position)},e.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},e}(kC),tLe=function(){function n(e,t,r){window.navigator.msPointerEnabled?this.handler=new QEe(e,t,r):window.TouchEvent?this.handler=new eLe(e,t,r):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new JEe(e,t,r):this.handler=new kC(e,t,r)}return n.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},n.prototype.dispose=function(){this.handler.dispose()},n}(),mo=function(){function n(e,t,r,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=r,this.selectionStartPosition=i,this.selectionEndPosition=o}return n.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},n.readFromTextArea=function(e){return new n(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},n.prototype.collapseSelection=function(){return new n(this.value,this.value.length,this.value.length,null,null)},n.prototype.writeToTextArea=function(e,t,r){t.setValue(e,this.value),r&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},n.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){var t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var r=this.value.substring(this.selectionStart,e);if(r.indexOf("…")===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,r,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},n.prototype._finishDeduceEditorPosition=function(e,t,r){for(var i=0,o=-1;(o=t.indexOf(` +`,o+1))!==-1;)i++;return[e,r*t.length,i]},n.selectedText=function(e){return new n(e,0,e.length,null,null)},n.deduceInput=function(e,t,r,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,a=e.selectionStart,s=e.selectionEnd,l=t.value,u=t.selectionStart,c=t.selectionEnd;i&&o.length>0&&a===s&&u===c&&!tg(l,o)&&al(l,o)&&(a=0,s=0);var d=o.substring(s),f=l.substring(c),h=A0e(d,f);l=l.substring(0,l.length-h),o=o.substring(0,o.length-h);var p=o.substring(0,a),v=l.substring(0,u),m=wN(p,v);if(l=l.substring(m),o=o.substring(m),u-=m,a-=m,c-=m,s-=m,r&&u===c&&o.length>0){var g=null;if(u===l.length?tg(l,o)&&(g=l.substring(o.length)):al(l,o)&&(g=l.substring(0,l.length-o.length)),g!==null&&g.length>0&&(/\uFE0F/.test(g)||M0e(g)))return{text:g,replaceCharCnt:0}}if(u===c){if(o===l&&a===0&&s===o.length&&u===l.length&&l.indexOf(` +`)===-1&&F0e(l))return{text:"",replaceCharCnt:0};var _=p.length-m;return{text:l,replaceCharCnt:_}}var y=s-a;return{text:l,replaceCharCnt:y}},n.EMPTY=new n("",0,0,null,null),n}(),nLe=function(){function n(){}return n._getPageOfLine=function(e){return Math.floor((e-1)/n._LINES_PER_PAGE)},n._getRangeForPage=function(e){var t=e*n._LINES_PER_PAGE,r=t+1,i=t+n._LINES_PER_PAGE;return new q(r,1,i+1,1)},n.fromEditorSelection=function(e,t,r,i){var o=n._getPageOfLine(r.startLineNumber),a=n._getRangeForPage(o),s=n._getPageOfLine(r.endLineNumber),l=n._getRangeForPage(s),u=a.intersectRanges(new q(1,1,r.startLineNumber,r.startColumn)),c=t.getValueInRange(u,1),d=t.getLineCount(),f=t.getLineMaxColumn(d),h=l.intersectRanges(new q(r.endLineNumber,r.endColumn,d,f)),p=t.getValueInRange(h,1),v;if(o===s||o+1===s)v=t.getValueInRange(r,1);else{var m=a.intersectRanges(r),g=l.intersectRanges(r);v=t.getValueInRange(m,1)+"…"+t.getValueInRange(g,1)}if(i){var _=500;c.length>_&&(c=c.substring(c.length-_,c.length)),p.length>_&&(p=p.substring(0,_)),v.length>2*_&&(v=v.substring(0,_)+"…"+v.substring(v.length-_,v.length))}return new mo(c+v+p,c.length,c.length+v.length,new pe(r.startLineNumber,r.startColumn),new pe(r.endLineNumber,r.endColumn))},n._LINES_PER_PAGE=10,n}(),w9=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Qy={forceCopyWithSyntaxHighlighting:!1},rLe=function(n){w9(e,n);function e(t,r){var i=n.call(this)||this;i._onFocus=i._register(new se),i.onFocus=i._onFocus.event,i._onBlur=i._register(new se),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new se),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new se),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new se),i.onCut=i._onCut.event,i._onPaste=i._register(new se),i.onPaste=i._onPaste.event,i._onType=i._register(new se),i.onType=i._onType.event,i._onCompositionStart=i._register(new se),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new se),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new se),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new se),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new iLe(r)),i._lastTextAreaEvent=0,i._asyncTriggerCut=i._register(new xr(function(){return i._onCut.fire()},0)),i._textAreaState=mo.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(qr(r.domNode,"keydown",function(l){i._isDoingComposition&&(l.keyCode===109||l.keyCode===1)&&l.stopPropagation(),l.equals(9)&&l.preventDefault(),i._onKeyDown.fire(l)})),i._register(qr(r.domNode,"keyup",function(l){i._onKeyUp.fire(l)})),i._register(Be(r.domNode,"compositionstart",function(l){i._lastTextAreaEvent=1,!i._isDoingComposition&&(i._isDoingComposition=!0,uu||i._setAndWriteTextAreaState("compositionstart",mo.EMPTY),i._onCompositionStart.fire())}));var o=function(l,u){var c=i._textAreaState,d=mo.readFromTextArea(i._textArea);return[d,mo.deduceInput(c,d,l,u)]},a=function(l){var u=i._textAreaState,c=mo.selectedText(l),d={text:c.value,replaceCharCnt:u.selectionEnd-u.selectionStart};return[c,d]},s=function(l){return!!(uu&&l==="ja"||Ji&&l.indexOf("zh-Han")===0)};return i._register(Be(r.domNode,"compositionupdate",function(l){if(i._lastTextAreaEvent=2,s(l.locale)){var u=o(!1,!1),c=u[0],d=u[1];i._textAreaState=c,i._onType.fire(d),i._onCompositionUpdate.fire(l);return}var f=a(l.data),h=f[0],p=f[1];i._textAreaState=h,i._onType.fire(p),i._onCompositionUpdate.fire(l)})),i._register(Be(r.domNode,"compositionend",function(l){if(i._lastTextAreaEvent=3,s(l.locale)){var u=o(!1,!1),c=u[0],d=u[1];i._textAreaState=c,i._onType.fire(d)}else{var f=a(l.data),c=f[0],d=f[1];i._textAreaState=c,i._onType.fire(d)}(uu||Jv)&&(i._textAreaState=mo.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())})),i._register(Be(r.domNode,"input",function(){var l=i._lastTextAreaEvent===8;if(i._lastTextAreaEvent=4,i._textArea.setIgnoreSelectionChangeTime("received input event"),!i._isDoingComposition){var u=o(Vt,l&&Vt),c=u[0],d=u[1];d.replaceCharCnt===0&&d.text.length===1&&Mi(d.text.charCodeAt(0))||(i._textAreaState=c,i._nextCommand===0?d.text!==""&&i._onType.fire(d):(d.text!==""&&i._onPaste.fire({text:d.text}),i._nextCommand=0))}})),i._register(Be(r.domNode,"cut",function(l){i._lastTextAreaEvent=5,i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(l),i._asyncTriggerCut.schedule()})),i._register(Be(r.domNode,"copy",function(l){i._lastTextAreaEvent=6,i._ensureClipboardGetsEditorSelection(l)})),i._register(Be(r.domNode,"paste",function(l){if(i._lastTextAreaEvent=7,i._textArea.setIgnoreSelectionChangeTime("received paste event"),Xm.canUseTextData(l)){var u=Xm.getTextData(l);u!==""&&i._onPaste.fire({text:u})}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",mo.EMPTY),i._nextCommand=1})),i._register(Be(r.domNode,"focus",function(){i._lastTextAreaEvent=8,i._setHasFocus(!0)})),i._register(Be(r.domNode,"blur",function(){i._lastTextAreaEvent=9,i._setHasFocus(!1)})),i}return e.prototype._installSelectionChangeListener=function(){var t=this,r=0;return Be(document,"selectionchange",function(i){if(t._hasFocus&&!t._isDoingComposition&&!(!Jv||!zi)){var o=Date.now(),a=o-r;if(r=o,!(a<5)){var s=o-t._textArea.getIgnoreSelectionChangeTime();if(t._textArea.resetSelectionChangeTime(),!(s<100)&&!(!t._textAreaState.selectionStartPosition||!t._textAreaState.selectionEndPosition)){var l=t._textArea.getValue();if(t._textAreaState.value===l){var u=t._textArea.getSelectionStart(),c=t._textArea.getSelectionEnd();if(!(t._textAreaState.selectionStart===u&&t._textAreaState.selectionEnd===c)){var d=t._textAreaState.deduceEditorPosition(u),f=t._host.deduceModelPosition(d[0],d[1],d[2]),h=t._textAreaState.deduceEditorPosition(c),p=t._host.deduceModelPosition(h[0],h[1],h[2]),v=new Xe(f.lineNumber,f.column,p.lineNumber,p.column);t._onSelectionChangeRequest.fire(v)}}}}}})},e.prototype.dispose=function(){n.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},e.prototype.focusTextArea=function(){this._setHasFocus(!0)},e.prototype.isFocused=function(){return this._hasFocus},e.prototype._setHasFocus=function(t){this._hasFocus!==t&&(this._hasFocus=t,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(Ug?this._setAndWriteTextAreaState("focusgain",mo.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},e.prototype._setAndWriteTextAreaState=function(t,r){this._hasFocus||(r=r.collapseSelection()),r.writeToTextArea(t,this._textArea,this._hasFocus),this._textAreaState=r},e.prototype.writeScreenReaderContent=function(t){this._isDoingComposition||this._setAndWriteTextAreaState(t,this._host.getScreenReaderContent(this._textAreaState))},e.prototype._ensureClipboardGetsEditorSelection=function(t){var r=this._host.getPlainTextToCopy();if(!Xm.canUseTextData(t)){this._setAndWriteTextAreaState("copy or cut",mo.selectedText(r));return}var i=null;XCe()&&(r.length<65536||Qy.forceCopyWithSyntaxHighlighting)&&(i=this._host.getHTMLToCopy()),Xm.setTextData(t,r,i)},e}(Ue),Xm=function(){function n(){}return n.canUseTextData=function(e){return!!(e.clipboardData||window.clipboardData)},n.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},n.setTextData=function(e,t,r){if(e.clipboardData){e.clipboardData.setData("text/plain",t),r!==null&&e.clipboardData.setData("text/html",r),e.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",t),e.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},n}(),iLe=function(n){w9(e,n);function e(t){var r=n.call(this)||this;return r._actual=t,r._ignoreSelectionChangeTime=0,r}return e.prototype.setIgnoreSelectionChangeTime=function(t){this._ignoreSelectionChangeTime=Date.now()},e.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},e.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},e.prototype.getValue=function(){return this._actual.domNode.value},e.prototype.setValue=function(t,r){var i=this._actual.domNode;i.value!==r&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=r)},e.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},e.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},e.prototype.setSelectionRange=function(t,r,i){var o=this._actual.domNode,a=document.activeElement===o,s=o.selectionStart,l=o.selectionEnd;if(a&&s===r&&l===i){il&&window.parent!==window&&o.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(r,i),il&&window.parent!==window&&o.focus();return}try{var u=C0e(o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(r,i),w0e(o,u)}catch{}},e}(Ue),oLe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wd=function(n){oLe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(qg);function pu(n,e){var t=Math.pow(10,e);return Math.round(n*t)/t}var Qt=function(){function n(e,t,r,i){i===void 0&&(i=1),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,r))|0,this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},n}(),Gd=function(){function n(e,t,r,i){this.h=Math.max(Math.min(360,e),0)|0,this.s=pu(Math.max(Math.min(1,t),0),3),this.l=pu(Math.max(Math.min(1,r),0),3),this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},n.fromRGBA=function(e){var t=e.r/255,r=e.g/255,i=e.b/255,o=e.a,a=Math.max(t,r,i),s=Math.min(t,r,i),l=0,u=0,c=(s+a)/2,d=a-s;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case t:l=(r-i)/d+(r1&&(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},n.toRGBA=function(e){var t=e.h/360,r=e.s,i=e.l,o=e.a,a,s,l;if(r===0)a=s=l=i;else{var u=i<.5?i*(1+r):i+r-i*r,c=2*i-u;a=n._hue2rgb(c,u,t+1/3),s=n._hue2rgb(c,u,t),l=n._hue2rgb(c,u,t-1/3)}return new Qt(Math.round(a*255),Math.round(s*255),Math.round(l*255),o)},n}(),Ql=function(){function n(e,t,r,i){this.h=Math.max(Math.min(360,e),0)|0,this.s=pu(Math.max(Math.min(1,t),0),3),this.v=pu(Math.max(Math.min(1,r),0),3),this.a=pu(Math.max(Math.min(1,i),0),3)}return n.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},n.fromRGBA=function(e){var t=e.r/255,r=e.g/255,i=e.b/255,o=Math.max(t,r,i),a=Math.min(t,r,i),s=o-a,l=o===0?0:s/o,u;return s===0?u=0:o===t?u=((r-i)/s%6+6)%6:o===r?u=(i-t)/s+2:u=(t-r)/s+4,new n(Math.round(u*60),l,o,e.a)},n.toRGBA=function(e){var t=e.h,r=e.s,i=e.v,o=e.a,a=i*r,s=a*(1-Math.abs(t/60%2-1)),l=i-a,u=[0,0,0],c=u[0],d=u[1],f=u[2];return t<60?(c=a,d=s):t<120?(c=s,d=a):t<180?(d=a,f=s):t<240?(d=s,f=a):t<300?(c=s,f=a):t<360&&(c=a,f=s),c=Math.round((c+l)*255),d=Math.round((d+l)*255),f=Math.round((f+l)*255),new Qt(c,d,f,o)},n}(),Te=function(){function n(e){if(e)if(e instanceof Qt)this.rgba=e;else if(e instanceof Gd)this._hsla=e,this.rgba=Gd.toRGBA(e);else if(e instanceof Ql)this._hsva=e,this.rgba=Ql.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return n.fromHex=function(e){return n.Format.CSS.parseHex(e)||n.red},Object.defineProperty(n.prototype,"hsla",{get:function(){return this._hsla?this._hsla:Gd.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hsva",{get:function(){return this._hsva?this._hsva:Ql.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),n.prototype.equals=function(e){return!!e&&Qt.equals(this.rgba,e.rgba)&&Gd.equals(this.hsla,e.hsla)&&Ql.equals(this.hsva,e.hsva)},n.prototype.getRelativeLuminance=function(){var e=n._relativeLuminanceForComponent(this.rgba.r),t=n._relativeLuminanceForComponent(this.rgba.g),r=n._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*t+.0722*r;return pu(i,4)},n._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},n.prototype.isLighter=function(){var e=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return e>=128},n.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance(),r=e.getRelativeLuminance();return t>r},n.prototype.isDarkerThan=function(e){var t=this.getRelativeLuminance(),r=e.getRelativeLuminance();return t'+i+"":String(s)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===i||i%10===0?String(i):"":String(i)},e.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var r=gs?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=t.visibleRange.startLineNumber,o=t.visibleRange.endLineNumber,a='
',s=[],l=i;l<=o;l++){var u=l-i,c=this._getLineRenderLineNumber(l);c?s[u]=a+c+"
":s[u]=""}this._renderResult=s},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e.CLASS_NAME="line-numbers",e}(wd);Cn(function(n,e){var t=n.getColor(j9);t&&e.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var r=n.getColor(qLe);r&&e.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")});var lIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),J9=function(n){lIe(e,n);function e(t){var r=n.call(this,t)||this;return r._canUseLayerHinting=r._context.configuration.editor.canUseLayerHinting,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._glyphMarginLeft=r._context.configuration.editor.layoutInfo.glyphMarginLeft,r._glyphMarginWidth=r._context.configuration.editor.layoutInfo.glyphMarginWidth,r._domNode=r._createDomNode(),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this._domNode},e.prototype._createDomNode=function(){var t=Bt(document.createElement("div"));return t.setClassName(e.OUTER_CLASS_NAME),t.setPosition("absolute"),t.setAttribute("role","presentation"),t.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Bt(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(e.CLASS_NAME),t.appendChild(this._glyphMarginBackgroundDomNode),t},e.prototype.onConfigurationChanged=function(t){return t.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting);var r=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-r);var i=Math.min(t.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)},e.CLASS_NAME="glyph-margin",e.OUTER_CLASS_NAME="margin",e}(Do),uIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cIe=function(n){uIe(e,n);function e(t){for(var r=n.call(this,0)||this,i=0,o=t.length;i0&&this._emit(t)}},e.prototype._emit=function(t){for(var r=this._listeners.slice(0),i=0,o=r.length;i0)return new mo(f,f.length,f.length,d,d)}}return mo.EMPTY}return nLe.fromEditorSelection(u,s,o._selections[0],o._accessibilitySupport===0)},deduceModelPosition:function(u,c,d){return o._context.model.deduceModelPositionRelativeToViewPosition(u,c,d)}};return o._textAreaInput=o._register(new rLe(l,o.textArea)),o._register(o._textAreaInput.onKeyDown(function(u){o._viewController.emitKeyDown(u)})),o._register(o._textAreaInput.onKeyUp(function(u){o._viewController.emitKeyUp(u)})),o._register(o._textAreaInput.onPaste(function(u){var c=Q3.INSTANCE.get(u.text),d=!1,f=null;c&&(d=o._emptySelectionClipboard&&c.isFromEmptySelection,f=c.multicursorText),o._viewController.paste("keyboard",u.text,d,f)})),o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")})),o._register(o._textAreaInput.onType(function(u){u.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",u.text,u.replaceCharCnt):o._viewController.type("keyboard",u.text)})),o._register(o._textAreaInput.onSelectionChangeRequest(function(u){o._viewController.setSelection("keyboard",u)})),o._register(o._textAreaInput.onCompositionStart(function(){var u=o._selections[0].startLineNumber,c=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new dD(new q(u,c,u,c),0,!0,1));var d=o._viewHelper.visibleRangeForPositionRelativeToEditor(u,c);d&&(o._visibleTextArea=new EIe(o._context.viewLayout.getVerticalOffsetForLineNumber(u),d.left,Jm?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")})),o._register(o._textAreaInput.onCompositionUpdate(function(u){uu?o._visibleTextArea=o._visibleTextArea.setWidth(0):o._visibleTextArea=o._visibleTextArea.setWidth(IIe(u.data,o._fontInfo)),o._render()})),o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")})),o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Z3(!0))})),o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Z3(!1))})),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._getWordBeforePosition=function(t){for(var r=this._context.model.getLineContent(t.lineNumber),i=ud(this._context.configuration.editor.wordSeparators),o=t.column,a=0;o>1;){var s=r.charCodeAt(o-2),l=i.get(s);if(l!==0||a>50)return r.substring(o-1,t.column-1);a++,o--}return r.substring(0,t.column-1)},e.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var r=this._context.model.getLineContent(t.lineNumber),i=r.charAt(t.column-2);if(!Mi(i.charCodeAt(0)))return i}return""},e.prototype.onConfigurationChanged=function(t){var r=this._context.configuration.editor;return t.fontInfo&&(this._fontInfo=r.fontInfo),t.viewInfo&&this.textArea.setAttribute("aria-label",r.viewInfo.ariaLabel),t.layoutInfo&&(this._contentLeft=r.layoutInfo.contentLeft,this._contentWidth=r.layoutInfo.contentWidth,this._contentHeight=r.layoutInfo.contentHeight),t.lineHeight&&(this._lineHeight=r.lineHeight),t.accessibilitySupport&&(this._accessibilitySupport=r.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),t.emptySelectionClipboard&&(this._emptySelectionClipboard=r.emptySelectionClipboard),t.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=r.copyWithSyntaxHighlighting),!0},e.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},e.prototype.onZonesChanged=function(t){return!0},e.prototype.isFocused=function(){return this._textAreaInput.isFocused()},e.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},e.prototype.prepareRender=function(t){if(this._accessibilitySupport===2)this._primaryCursorVisibleRange=null;else{var r=new pe(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=t.visibleRangeForPosition(r)}},e.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},e.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var r=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(r<0||r>this._contentHeight){this._renderAtTopLeft();return}this._renderInsideEditor(r,t,Jm?0:1,Jm?0:1,!1)},e.prototype._renderInsideEditor=function(t,r,i,o,a){var s=this.textArea,l=this.textAreaCover;a?Oo.applyFontInfo(s,this._fontInfo):(s.setFontSize(1),s.setLineHeight(this._fontInfo.lineHeight)),s.setTop(t),s.setLeft(r),s.setWidth(i),s.setHeight(o),l.setTop(0),l.setLeft(0),l.setWidth(0),l.setHeight(0)},e.prototype._renderAtTopLeft=function(){var t=this.textArea,r=this.textAreaCover;if(Oo.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),r.setTop(0),r.setLeft(0),Jm){t.setWidth(0),t.setHeight(0),r.setWidth(0),r.setHeight(0);return}t.setWidth(1),t.setHeight(1),r.setWidth(1),r.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?r.setClassName("monaco-editor-background textAreaCover "+J9.OUTER_CLASS_NAME):this._context.configuration.editor.viewInfo.renderLineNumbers!==0?r.setClassName("monaco-editor-background textAreaCover "+Q9.CLASS_NAME):r.setClassName("monaco-editor-background textAreaCover")},e}(Do);function IIe(n,e){var t=document.createElement("canvas"),r=t.getContext("2d");r.font=TIe(e);var i=r.measureText(n);return il?i.width+2:i.width}function TIe(n){return xIe("normal",n.fontWeight,n.fontSize,n.lineHeight,n.fontFamily)}function xIe(n,e,t,r,i){return n+" normal "+e+" "+t+"px / "+r+"px "+i}var J3=function(){function n(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return n.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},n.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(t){return Je(t),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},n.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},n.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(t){return Je(t),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},n.prototype.canRedo=function(){return this.future.length>0},n}(),NIe=function(){function n(){}return n}();function DIe(n,e,t,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;var o;for(o=0;o0&&u>0)&&!(d>0&&f>0)){var h=Math.abs(u-f),p=Math.abs(l-d);if(h===0){i.spacesDiff=p,p>0&&0<=d-1&&d-10?i++:_>1&&o++,DIe(a,s,p,g,d),!d.looksLikeAlignment)){var S=d.spacesDiff;S<=u&&c[S]++,a=p,s=g}}var E=t;i!==o&&(E=iT&&(T=N,L=R)}),L===4&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(L=2),{insertSpaces:E,tabSize:L}}function vi(n){return(n.metadata&1)>>>0}function un(n,e){n.metadata=n.metadata&254|e<<0}function Or(n){return(n.metadata&2)>>>1===1}function ln(n,e){n.metadata=n.metadata&253|(e?1:0)<<1}function n$(n){return(n.metadata&4)>>>2===1}function n4(n,e){n.metadata=n.metadata&251|(e?1:0)<<2}function mS(n){return(n.metadata&8)>>>3===1}function r4(n,e){n.metadata=n.metadata&247|(e?1:0)<<3}function AIe(n){return(n.metadata&48)>>>4}function i4(n,e){n.metadata=n.metadata&207|e<<4}function RIe(n){return(n.metadata&64)>>>6===1}function o4(n,e){n.metadata=n.metadata&191|(e?1:0)<<6}var r$=function(){function n(e,t,r){this.metadata=0,this.parent=this,this.left=this,this.right=this,un(this,1),this.start=t,this.end=r,this.delta=0,this.maxEnd=r,this.id=e,this.ownerId=0,this.options=null,n4(this,!1),i4(this,1),r4(this,!1),o4(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=null,ln(this,!1)}return n.prototype.reset=function(e,t,r,i){this.start=t,this.end=r,this.maxEnd=r,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=r,this.range=i},n.prototype.setOptions=function(e){this.options=e;var t=this.options.className;n4(this,t==="squiggly-error"||t==="squiggly-warning"||t==="squiggly-info"),i4(this,this.options.stickiness),r4(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),o4(this,this.options.collapseOnReplaceEdit)},n.prototype.setCachedOffsets=function(e,t,r){this.cachedVersionId!==r&&(this.range=null),this.cachedVersionId=r,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},n.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},n}(),gt=new r$(null,0,0);gt.parent=gt;gt.left=gt;gt.right=gt;un(gt,0);var a4=function(){function n(){this.root=gt,this.requestNormalizeDelta=!1}return n.prototype.intervalSearch=function(e,t,r,i,o){return this.root===gt?[]:HIe(this,e,t,r,i,o)},n.prototype.search=function(e,t,r){return this.root===gt?[]:VIe(this,e,t,r)},n.prototype.collectNodesFromOwner=function(e){return BIe(this,e)},n.prototype.collectNodesPostOrder=function(){return WIe(this)},n.prototype.insert=function(e){s4(this,e),this._normalizeDeltaIfNecessary()},n.prototype.delete=function(e){l4(this,e),this._normalizeDeltaIfNecessary()},n.prototype.resolveNode=function(e,t){for(var r=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var o=r.start+i,a=r.end+i;r.setCachedOffsets(o,a,t)},n.prototype.acceptReplace=function(e,t,r,i){for(var o=kIe(this,e,e+t),a=0,s=o.length;at||r===1?!1:r===2?!0:e}function MIe(n,e,t,r,i){var o=AIe(n),a=o===0||o===2,s=o===1||o===2,l=t-e,u=r,c=Math.min(l,u),d=n.start,f=!1,h=n.end,p=!1;e<=d&&h<=t&&RIe(n)&&(n.start=e,f=!0,n.end=e,p=!0);{var v=i?1:l>0?2:0;!f&&Yd(d,a,e,v)&&(f=!0),!p&&Yd(h,s,e,v)&&(p=!0)}if(c>0&&!i){var v=l>u?2:0;!f&&Yd(d,a,e+c,v)&&(f=!0),!p&&Yd(h,s,e+c,v)&&(p=!0)}{var v=i?1:0;!f&&Yd(d,a,t,v)&&(n.start=e+u,f=!0),!p&&Yd(h,s,t,v)&&(n.end=e+u,p=!0)}var m=u-l;f||(n.start=Math.max(0,d+m)),p||(n.end=Math.max(0,h+m)),n.start>n.end&&(n.end=n.start)}function kIe(n,e,t){for(var r=n.root,i=0,o=0,a=0,s=0,l=[],u=0;r!==gt;){if(Or(r)){ln(r.left,!1),ln(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;continue}if(!Or(r.left)){if(o=i+r.maxEnd,ot){ln(r,!0);continue}if(s=i+r.end,s>=e&&(r.setCachedOffsets(a,s,0),l[u++]=r),ln(r,!0),r.right!==gt&&!Or(r.right)){i+=r.delta,r=r.right;continue}}return ln(n.root,!1),l}function FIe(n,e,t,r){for(var i=n.root,o=0,a=0,s=0,l=r-(t-e);i!==gt;){if(Or(i)){ln(i.left,!1),ln(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),wu(i),i=i.parent;continue}if(!Or(i.left)){if(a=o+i.maxEnd,at){i.start+=l,i.end+=l,i.delta+=l,(i.delta<-1073741824||i.delta>1073741824)&&(n.requestNormalizeDelta=!0),ln(i,!0);continue}if(ln(i,!0),i.right!==gt&&!Or(i.right)){o+=i.delta,i=i.right;continue}}ln(n.root,!1)}function BIe(n,e){for(var t=n.root,r=[],i=0;t!==gt;){if(Or(t)){ln(t.left,!1),ln(t.right,!1),t=t.parent;continue}if(t.left!==gt&&!Or(t.left)){t=t.left;continue}if(t.ownerId===e&&(r[i++]=t),ln(t,!0),t.right!==gt&&!Or(t.right)){t=t.right;continue}}return ln(n.root,!1),r}function WIe(n){for(var e=n.root,t=[],r=0;e!==gt;){if(Or(e)){ln(e.left,!1),ln(e.right,!1),e=e.parent;continue}if(e.left!==gt&&!Or(e.left)){e=e.left;continue}if(e.right!==gt&&!Or(e.right)){e=e.right;continue}t[r++]=e,ln(e,!0)}return ln(n.root,!1),t}function VIe(n,e,t,r){for(var i=n.root,o=0,a=0,s=0,l=[],u=0;i!==gt;){if(Or(i)){ln(i.left,!1),ln(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;continue}if(i.left!==gt&&!Or(i.left)){i=i.left;continue}a=o+i.start,s=o+i.end,i.setCachedOffsets(a,s,r);var c=!0;if(e&&i.ownerId&&i.ownerId!==e&&(c=!1),t&&n$(i)&&(c=!1),c&&(l[u++]=i),ln(i,!0),i.right!==gt&&!Or(i.right)){o+=i.delta,i=i.right;continue}}return ln(n.root,!1),l}function HIe(n,e,t,r,i,o){for(var a=n.root,s=0,l=0,u=0,c=0,d=[],f=0;a!==gt;){if(Or(a)){ln(a.left,!1),ln(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;continue}if(!Or(a.left)){if(l=s+a.maxEnd,lt){ln(a,!0);continue}if(c=s+a.end,c>=e){a.setCachedOffsets(u,c,o);var h=!0;r&&a.ownerId&&a.ownerId!==r&&(h=!1),i&&n$(a)&&(h=!1),h&&(d[f++]=a)}if(ln(a,!0),a.right!==gt&&!Or(a.right)){s+=a.delta,a=a.right;continue}}return ln(n.root,!1),d}function s4(n,e){if(n.root===gt)return e.parent=gt,e.left=gt,e.right=gt,un(e,0),n.root=e,n.root;UIe(n,e),Fl(e.parent);for(var t=e;t!==n.root&&vi(t.parent)===1;)if(t.parent===t.parent.parent.left){var r=t.parent.parent.right;vi(r)===1?(un(t.parent,0),un(r,0),un(t.parent.parent,1),t=t.parent.parent):(t===t.parent.right&&(t=t.parent,_v(n,t)),un(t.parent,0),un(t.parent.parent,1),yv(n,t.parent.parent))}else{var r=t.parent.parent.left;vi(r)===1?(un(t.parent,0),un(r,0),un(t.parent.parent,1),t=t.parent.parent):(t===t.parent.left&&(t=t.parent,yv(n,t)),un(t.parent,0),un(t.parent.parent,1),_v(n,t.parent.parent))}return un(n.root,0),e}function UIe(n,e){for(var t=0,r=n.root,i=e.start,o=e.end;;){var a=jIe(i,o,r.start+t,r.end+t);if(a<0)if(r.left===gt){e.start-=t,e.end-=t,e.maxEnd-=t,r.left=e;break}else r=r.left;else if(r.right===gt){e.start-=t+r.delta,e.end-=t+r.delta,e.maxEnd-=t+r.delta,r.right=e;break}else t+=r.delta,r=r.right}e.parent=r,e.left=gt,e.right=gt,un(e,1)}function l4(n,e){var t,r;if(e.left===gt?(t=e.right,r=e,t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta):e.right===gt?(t=e.left,r=e):(r=$Ie(e.right),t=r.right,t.start+=r.delta,t.end+=r.delta,t.delta+=r.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),r.start+=e.delta,r.end+=e.delta,r.delta=e.delta,(r.delta<-1073741824||r.delta>1073741824)&&(n.requestNormalizeDelta=!0)),r===n.root){n.root=t,un(t,0),e.detach(),_S(),wu(t),n.root.parent=gt;return}var i=vi(r)===1;if(r===r.parent.left?r.parent.left=t:r.parent.right=t,r===e?t.parent=r.parent:(r.parent===e?t.parent=r:t.parent=r.parent,r.left=e.left,r.right=e.right,r.parent=e.parent,un(r,vi(e)),e===n.root?n.root=r:e===e.parent.left?e.parent.left=r:e.parent.right=r,r.left!==gt&&(r.left.parent=r),r.right!==gt&&(r.right.parent=r)),e.detach(),i){Fl(t.parent),r!==e&&(Fl(r),Fl(r.parent)),_S();return}Fl(t),Fl(t.parent),r!==e&&(Fl(r),Fl(r.parent));for(var o;t!==n.root&&vi(t)===0;)t===t.parent.left?(o=t.parent.right,vi(o)===1&&(un(o,0),un(t.parent,1),_v(n,t.parent),o=t.parent.right),vi(o.left)===0&&vi(o.right)===0?(un(o,1),t=t.parent):(vi(o.right)===0&&(un(o.left,0),un(o,1),yv(n,o),o=t.parent.right),un(o,vi(t.parent)),un(t.parent,0),un(o.right,0),_v(n,t.parent),t=n.root)):(o=t.parent.left,vi(o)===1&&(un(o,0),un(t.parent,1),yv(n,t.parent),o=t.parent.left),vi(o.left)===0&&vi(o.right)===0?(un(o,1),t=t.parent):(vi(o.left)===0&&(un(o.right,0),un(o,1),_v(n,o),o=t.parent.left),un(o,vi(t.parent)),un(t.parent,0),un(o.left,0),yv(n,t.parent),t=n.root));un(t,0),_S()}function $Ie(n){for(;n.left!==gt;)n=n.left;return n}function _S(){gt.parent=gt,gt.delta=0,gt.start=0,gt.end=0}function _v(n,e){var t=e.right;t.delta+=e.delta,(t.delta<-1073741824||t.delta>1073741824)&&(n.requestNormalizeDelta=!0),t.start+=e.delta,t.end+=e.delta,e.right=t.left,t.left!==gt&&(t.left.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t,wu(e),wu(t)}function yv(n,e){var t=e.left;e.delta-=t.delta,(e.delta<-1073741824||e.delta>1073741824)&&(n.requestNormalizeDelta=!0),e.start-=t.delta,e.end-=t.delta,e.left=t.right,t.right!==gt&&(t.right.parent=e),t.parent=e.parent,e.parent===gt?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t,wu(e),wu(t)}function i$(n){var e=n.end;if(n.left!==gt){var t=n.left.maxEnd;t>e&&(e=t)}if(n.right!==gt){var r=n.right.maxEnd+n.delta;r>e&&(e=r)}return e}function wu(n){n.maxEnd=i$(n)}function Fl(n){for(;n!==gt;){var e=i$(n);if(n.maxEnd===e)return;n.maxEnd=e,n=n.parent}}function jIe(n,e,t,r){return n===t?e-r:n-t}var bI=function(){function n(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}return n.prototype.next=function(){if(this.right!==ut)return fD(this.right);for(var e=this;e.parent!==ut&&e.parent.left!==e;)e=e.parent;return e.parent===ut?ut:e.parent},n.prototype.prev=function(){if(this.left!==ut)return o$(this.left);for(var e=this;e.parent!==ut&&e.parent.right!==e;)e=e.parent;return e.parent===ut?ut:e.parent},n.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},n}(),ut=new bI(null,0);ut.parent=ut;ut.left=ut;ut.right=ut;ut.color=0;function fD(n){for(;n.left!==ut;)n=n.left;return n}function o$(n){for(;n.right!==ut;)n=n.right;return n}function hD(n){return n===ut?0:n.size_left+n.piece.length+hD(n.right)}function pD(n){return n===ut?0:n.lf_left+n.piece.lineFeedCnt+pD(n.right)}function yS(){ut.parent=ut}function bv(n,e){var 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!==ut&&(t.left.parent=e),t.parent=e.parent,e.parent===ut?n.root=t:e.parent.left===e?e.parent.left=t:e.parent.right=t,t.left=e,e.parent=t}function Cv(n,e){var t=e.left;e.left=t.right,t.right!==ut&&(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===ut?n.root=t:e===e.parent.right?e.parent.right=t:e.parent.left=t,t.right=e,e.parent=t}function e_(n,e){var t,r;if(e.left===ut?(r=e,t=r.right):e.right===ut?(r=e,t=r.left):(r=fD(e.right),t=r.right),r===n.root){n.root=t,t.color=0,e.detach(),yS(),n.root.parent=ut;return}var i=r.color===1;if(r===r.parent.left?r.parent.left=t:r.parent.right=t,r===e?(t.parent=r.parent,Up(n,t)):(r.parent===e?t.parent=r:t.parent=r.parent,Up(n,t),r.left=e.left,r.right=e.right,r.parent=e.parent,r.color=e.color,e===n.root?n.root=r:e===e.parent.left?e.parent.left=r:e.parent.right=r,r.left!==ut&&(r.left.parent=r),r.right!==ut&&(r.right.parent=r),r.size_left=e.size_left,r.lf_left=e.lf_left,Up(n,r)),e.detach(),t.parent.left===t){var o=hD(t),a=pD(t);if(o!==t.parent.size_left||a!==t.parent.lf_left){var s=o-t.parent.size_left,l=a-t.parent.lf_left;t.parent.size_left=o,t.parent.lf_left=a,Rs(n,t.parent,s,l)}}if(Up(n,t.parent),i){yS();return}for(var u;t!==n.root&&t.color===0;)t===t.parent.left?(u=t.parent.right,u.color===1&&(u.color=0,t.parent.color=1,bv(n,t.parent),u=t.parent.right),u.left.color===0&&u.right.color===0?(u.color=1,t=t.parent):(u.right.color===0&&(u.left.color=0,u.color=1,Cv(n,u),u=t.parent.right),u.color=t.parent.color,t.parent.color=0,u.right.color=0,bv(n,t.parent),t=n.root)):(u=t.parent.left,u.color===1&&(u.color=0,t.parent.color=1,Cv(n,t.parent),u=t.parent.left),u.left.color===0&&u.right.color===0?(u.color=1,t=t.parent):(u.left.color===0&&(u.right.color=0,u.color=1,bv(n,u),u=t.parent.left),u.color=t.parent.color,t.parent.color=0,u.left.color=0,Cv(n,t.parent),t=n.root));t.color=0,yS()}function u4(n,e){for(Up(n,e);e!==n.root&&e.parent.color===1;)if(e.parent===e.parent.parent.left){var 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,bv(n,e)),e.parent.color=0,e.parent.parent.color=1,Cv(n,e.parent.parent))}else{var 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,Cv(n,e)),e.parent.color=0,e.parent.parent.color=1,bv(n,e.parent.parent))}n.root.color=0}function Rs(n,e,t,r){for(;e!==n.root&&e!==ut;)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=r),e=e.parent}function Up(n,e){var t=0,r=0;if(e!==n.root){if(t===0){for(;e!==n.root&&e===e.parent.right;)e=e.parent;if(e===n.root)return;e=e.parent,t=hD(e.left)-e.size_left,r=pD(e.left)-e.lf_left,e.size_left+=t,e.lf_left+=r}for(;e!==n.root&&(t!==0||r!==0);)e.parent.left===e&&(e.parent.size_left+=t,e.parent.lf_left+=r),e=e.parent}}var zIe=999,cc=function(){function n(e,t,r,i){this.searchString=e,this.isRegex=t,this.matchCase=r,this.wordSeparators=i}return n.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var e;this.isRegex?e=KIe(this.searchString):e=this.searchString.indexOf(` +`)>=0;var t=null;try{t=bN(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch{return null}if(!t)return null;var r=!this.isRegex&&!e;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new GIe(t,this.wordSeparators?ud(this.wordSeparators):null,r?this.searchString:null)},n}();function KIe(n){if(!n||n.length===0)return!1;for(var e=0,t=n.length;e=t)break;var i=n.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}var GIe=function(){function n(e,t,r){this.regex=e,this.wordSeparators=t,this.simpleSearch=r}return n}();function bc(n,e,t){if(!t)return new ng(n,null);for(var r=[],i=0,o=e.length;i>0);t[o]>=e?i=o-1:t[o+1]>=e?(r=o,i=o):r=o+1}return r+1},n}(),t_=function(){function n(){}return n.findMatches=function(e,t,r,i,o){var a=t.parseSearchRequest();return a?a.regex.multiline?this._doFindMatchesMultiline(e,r,new $p(a.wordSeparators,a.regex),i,o):this._doFindMatchesLineByLine(e,r,a,i,o):[]},n._getMultilineMatchRange=function(e,t,r,i,o,a){var s,l=0;i?(l=i.findLineFeedCountBeforeOffset(o),s=t+o+l):s=t+o;var u;if(i){var c=i.findLineFeedCountBeforeOffset(o+a.length),d=c-l;u=s+a.length+d}else u=s+a.length;var f=e.getPositionAt(s),h=e.getPositionAt(u);return new q(f.lineNumber,f.column,h.lineNumber,h.column)},n._doFindMatchesMultiline=function(e,t,r,i,o){var a=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),l=e.getEOL()===`\r +`?new c4(s):null,u=[],c=0,d;for(r.reset(0);d=r.next(s);)if(u[c++]=bc(this._getMultilineMatchRange(e,a,s,l,d.index,d[0]),d,i),c>=o)return u;return u},n._doFindMatchesLineByLine=function(e,t,r,i,o){var a=[],s=0;if(t.startLineNumber===t.endLineNumber){var l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(r,l,t.startLineNumber,t.startColumn-1,s,a,i,o),a}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(r,u,t.startLineNumber,t.startColumn-1,s,a,i,o);for(var c=t.startLineNumber+1;c=l))return o;return o}var p=new $p(e.wordSeparators,e.regex),v;p.reset(0);do if(v=p.next(t),v&&(a[o++]=bc(new q(r,v.index+1+i,r,v.index+1+v[0].length+i),v,s),o>=l))return o;while(v);return o},n.findNextMatch=function(e,t,r,i){var o=t.parseSearchRequest();if(!o)return null;var a=new $p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,r,a,i):this._doFindNextMatchLineByLine(e,r,a,i)},n._doFindNextMatchMultiline=function(e,t,r,i){var o=new pe(t.lineNumber,1),a=e.getOffsetAt(o),s=e.getLineCount(),l=e.getValueInRange(new q(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),1),u=e.getEOL()===`\r +`?new c4(l):null;r.reset(t.column-1);var c=r.next(l);return c?bc(this._getMultilineMatchRange(e,a,l,u,c.index,c[0]),c,i):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new pe(1,1),r,i):null},n._doFindNextMatchLineByLine=function(e,t,r,i){var o=e.getLineCount(),a=t.lineNumber,s=e.getLineContent(a),l=this._findFirstMatchInLine(r,s,a,t.column,i);if(l)return l;for(var u=1;u<=o;u++){var c=(a+u-1)%o,d=e.getLineContent(c+1),f=this._findFirstMatchInLine(r,d,c+1,1,i);if(f)return f}return null},n._findFirstMatchInLine=function(e,t,r,i,o){e.reset(i-1);var a=e.next(t);return a?bc(new q(r,a.index+1,r,a.index+1+a[0].length),a,o):null},n.findPreviousMatch=function(e,t,r,i){var o=t.parseSearchRequest();if(!o)return null;var a=new $p(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,r,a,i):this._doFindPreviousMatchLineByLine(e,r,a,i)},n._doFindPreviousMatchMultiline=function(e,t,r,i){var o=this._doFindMatchesMultiline(e,new q(1,1,t.lineNumber,t.column),r,i,10*zIe);if(o.length>0)return o[o.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new pe(a,e.getLineMaxColumn(a)),r,i):null},n._doFindPreviousMatchLineByLine=function(e,t,r,i){var o=e.getLineCount(),a=t.lineNumber,s=e.getLineContent(a).substring(0,t.column-1),l=this._findLastMatchInLine(r,s,a,i);if(l)return l;for(var u=1;u<=o;u++){var c=(o+a-u-1)%o,d=e.getLineContent(c+1),f=this._findLastMatchInLine(r,d,c+1,i);if(f)return f}return null},n._findLastMatchInLine=function(e,t,r,i){var o=null,a;for(e.reset(0);a=e.next(t);)o=bc(new q(r,a.index+1,r,a.index+1+a[0].length),a,i);return o},n}();function qIe(n,e,t,r,i){if(r===0)return!0;var o=e.charCodeAt(r-1);if(n.get(o)!==0||o===13||o===10)return!0;if(i>0){var a=e.charCodeAt(r);if(n.get(a)!==0)return!0}return!1}function YIe(n,e,t,r,i){if(r+i===t)return!0;var o=e.charCodeAt(r+i);if(n.get(o)!==0||o===13||o===10)return!0;if(i>0){var a=e.charCodeAt(r+i-1);if(n.get(a)!==0)return!0}return!1}function vD(n,e,t,r,i){return qIe(n,e,t,r,i)&&YIe(n,e,t,r,i)}var $p=function(){function n(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return n.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},n.prototype.next=function(e){var t=e.length,r;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(r=this._searchRegex.exec(e),!r))return null;var i=r.index,o=r[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||vD(this._wordSeparators,e,t,i,o))return r}while(r);return null},n}(),xs=65535;function a$(n){var e;return n[n.length-1]<65536?e=new Uint16Array(n.length):e=new Uint32Array(n.length),e.set(n,0),e}var XIe=function(){function n(e,t,r,i,o){this.lineStarts=e,this.cr=t,this.lf=r,this.crlf=i,this.isBasicASCII=o}return n}();function Bs(n,e){e===void 0&&(e=!0);for(var t=[0],r=1,i=0,o=n.length;i126)&&(a=!1)}var c=new XIe(a$(n),r,i,o,a);return n.length=0,c}var xi=function(){function n(e,t,r,i,o){this.bufferIndex=e,this.start=t,this.end=r,this.lineFeedCnt=i,this.length=o}return n}(),Cc=function(){function n(e,t){this.buffer=e,this.lineStarts=t}return n}(),QIe=function(){function n(e){this._limit=e,this._cache=[]}return n.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var r=this._cache[t];if(r.nodeStartOffset<=e&&r.nodeStartOffset+r.node.piece.length>=e)return r}return null},n.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var r=this._cache[t];if(r.nodeStartLineNumber&&r.nodeStartLineNumber=e)return r}return null},n.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},n.prototype.valdiate=function(e){for(var t=!1,r=this._cache,i=0;i=e){r[i]=null,t=!0;continue}}if(t){for(var a=[],s=0,l=r;s0){e[o].lineStarts||(e[o].lineStarts=Bs(e[o].buffer));var s=new xi(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]),i=this.rbInsertRight(i,s)}this._searchCache=new QIe(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},n.prototype.normalizeEOL=function(e){var t=this,r=xs,i=r-Math.floor(r/3),o=i*2,a="",s=0,l=[];if(this.iterate(this.root,function(c){var d=t.getNodeContent(c),f=d.length;if(s<=i||s+f0){var u=a.replace(/\r\n|\r|\n/g,e);l.push(new Cc(u,Bs(u)))}this.create(l,e,!0)},n.prototype.getEOL=function(){return this._EOL},n.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},n.prototype.getOffsetAt=function(e,t){for(var r=0,i=this.root;i!==ut;)if(i.left!==ut&&i.lf_left+1>=e)i=i.left;else if(i.lf_left+i.piece.lineFeedCnt+1>=e){r+=i.size_left;var o=this.getAccumulatedValue(i,e-i.lf_left-2);return r+=o+t-1}else e-=i.lf_left+i.piece.lineFeedCnt,r+=i.size_left+i.piece.length,i=i.right;return r},n.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,r=0,i=e;t!==ut;)if(t.size_left!==0&&t.size_left>=e)t=t.left;else if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(r+=t.lf_left+o.index,o.index===0){var a=this.getOffsetAt(r+1,1),s=i-a;return new pe(r+1,s+1)}return new pe(r+1,o.remainder+1)}else if(e-=t.size_left+t.piece.length,r+=t.lf_left+t.piece.lineFeedCnt,t.right===ut){var a=this.getOffsetAt(r+1,1),s=i-e-a;return new pe(r+1,s+1)}else t=t.right;return new pe(1,1)},n.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var r=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(r,i);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},n.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var r=e.node,i=this._buffers[r.piece.bufferIndex].buffer,o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var a=e.node,s=this._buffers[a.piece.bufferIndex].buffer,l=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start),u=s.substring(l+e.remainder,l+a.piece.length);for(a=a.next();a!==ut;){var c=this._buffers[a.piece.bufferIndex].buffer,d=this.offsetInBuffer(a.piece.bufferIndex,a.piece.start);if(a===t.node){u+=c.substring(d,d+t.remainder);break}else u+=c.substr(d,a.piece.length);a=a.next()}return u},n.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},n.prototype.getLength=function(){return this._length},n.prototype.getLineCount=function(){return this._lineCnt},n.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},n.prototype.getLineCharCode=function(e,t){var r=this.nodeAt2(e,t+1);if(r.remainder===r.node.piece.length){var i=r.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(a)}else{var o=this._buffers[r.node.piece.bufferIndex],a=this.offsetInBuffer(r.node.piece.bufferIndex,r.node.piece.start),s=a+r.remainder;return o.buffer.charCodeAt(s)}},n.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},n.prototype.findMatchesInNode=function(e,t,r,i,o,a,s,l,u,c,d){var f=this._buffers[e.piece.bufferIndex],h=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,o),v=this.offsetInBuffer(e.piece.bufferIndex,a),m;t.reset(p);var g={line:0,column:0};do if(m=t.next(f.buffer),m){if(m.index>=v)return c;this.positionInBuffer(e,m.index-h,g);var _=this.getLineFeedCnt(e.piece.bufferIndex,o,g),y=g.line===o.line?g.column-o.column+i:g.column+1,C=y+m[0].length;if(d[c++]=bc(new q(r+_,y,r+_,C),m,l),m.index+m[0].length>=v||c>=u)return c}while(m);return c},n.prototype.findMatchesLineByLine=function(e,t,r,i){var o=[],a=0,s=new $p(t.wordSeparators,t.regex),l=this.nodeAt2(e.startLineNumber,e.startColumn);if(l===null)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(u===null)return[];var c=this.positionInBuffer(l.node,l.remainder),d=this.positionInBuffer(u.node,u.remainder);if(l.node===u.node)return this.findMatchesInNode(l.node,s,e.startLineNumber,e.startColumn,c,d,t,r,i,a,o),o;for(var f=e.startLineNumber,h=l.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(p>=1){var v=this._buffers[h.piece.bufferIndex].lineStarts,m=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),g=v[c.line+p],_=f===e.startLineNumber?e.startColumn:1;if(a=this.findMatchesInNode(h,s,f,_,c,this.positionInBuffer(h,g-m),t,r,i,a,o),a>=i)return o;f+=p}var y=f===e.startLineNumber?e.startColumn-1:0;if(f===e.endLineNumber){var C=this.getLineContent(f).substring(y,e.endColumn-1);return a=this._findMatchesInLine(t,s,C,e.endLineNumber,y,a,o,r,i),o}if(a=this._findMatchesInLine(t,s,this.getLineContent(f).substr(y),f,y,a,o,r,i),a>=i)return o;f++,l=this.nodeAt2(f,1),h=l.node,c=this.positionInBuffer(l.node,l.remainder)}if(f===e.endLineNumber){var w=f===e.startLineNumber?e.startColumn-1:0,C=this.getLineContent(f).substring(w,e.endColumn-1);return a=this._findMatchesInLine(t,s,C,e.endLineNumber,w,a,o,r,i),o}var b=f===e.startLineNumber?e.startColumn:1;return a=this.findMatchesInNode(u.node,s,f,b,c,d,t,r,i,a,o),o},n.prototype._findMatchesInLine=function(e,t,r,i,o,a,s,l,u){var c=e.wordSeparators;if(!l&&e.simpleSearch){for(var d=e.simpleSearch,f=d.length,h=r.length,p=-f;(p=r.indexOf(d,p+f))!==-1;)if((!c||vD(c,r,h,p,f))&&(s[a++]=new ng(new q(i,p+1+o,i,p+1+f+o),null),a>=u))return a;return a}var v;t.reset(0);do if(v=t.next(r),v&&(s[a++]=bc(new q(i,v.index+1+o,i,v.index+1+v[0].length+o),v,l),a>=u))return a;while(v);return a},n.prototype.insert=function(e,t,r){if(r===void 0&&(r=!1),this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ut){var i=this.nodeAt(e),o=i.node,a=i.remainder,s=i.nodeStartOffset,l=o.piece,u=l.bufferIndex,c=this.positionInBuffer(o,a);if(o.piece.bufferIndex===0&&l.end.line===this._lastChangeBufferPos.line&&l.end.column===this._lastChangeBufferPos.column&&s+l.length===e&&t.lengthe){var d=[],f=new xi(l.bufferIndex,c,l.end,this.getLineFeedCnt(l.bufferIndex,c,l.end),this.offsetInBuffer(u,l.end)-this.offsetInBuffer(u,c));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(o,a);if(h===10){var p={line:f.start.line+1,column:0};f=new xi(f.bufferIndex,p,f.end,this.getLineFeedCnt(f.bufferIndex,p,f.end),f.length-1),t+=` +`}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var v=this.nodeCharCodeAt(o,a-1);if(v===13){var m=this.positionInBuffer(o,a-1);this.deleteNodeTail(o,m),t="\r"+t,o.piece.length===0&&d.push(o)}else this.deleteNodeTail(o,c)}else this.deleteNodeTail(o,c);var g=this.createNewPieces(t);f.length>0&&this.rbInsertRight(o,f);for(var _=o,y=0;y=0;u--)l=this.rbInsertLeft(l,s[u]);this.validateCRLFWithPrevNode(l),this.deleteNodes(r)},n.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+=` -`);for(var r=this.createNewPieces(e),i=this.rbInsertRight(t,r[0]),o=i,a=1;a=f)u=d+1;else break;return r?(r.line=d,r.column=l-h,null):{line:d,column:l-h}},n.prototype.getLineFeedCnt=function(e,t,r){if(r.column===0)return r.line-t.line;var i=this._buffers[e].lineStarts;if(r.line===i.length-1)return r.line-t.line;var o=i[r.line+1],a=i[r.line]+r.column;if(o>a+1)return r.line-t.line;var s=a-1,l=this._buffers[e].buffer;return l.charCodeAt(s)===13?r.line-t.line+1:r.line-t.line},n.prototype.offsetInBuffer=function(e,t){var r=this._buffers[e].lineStarts;return r[t.line]+t.column},n.prototype.deleteNodes=function(e){for(var t=0;txs){for(var t=[];e.length>xs;){var r=e.charCodeAt(xs-1),i=void 0;r===13||r>=55296&&r<=56319?(i=e.substring(0,xs-1),e=e.substring(xs-1)):(i=e.substring(0,xs),e=e.substring(xs));var o=Fs(i);t.push(new xi(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new bc(i,o))}var a=Fs(e);return t.push(new xi(this._buffers.length,{line:0,column:0},{line:a.length-1,column:e.length-a[a.length-1]},a.length-1,e.length)),this._buffers.push(new bc(e,a)),t}var s=this._buffers[0].buffer.length,l=Fs(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&s!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var c=0;c=e-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>e-1){var a=this.getAccumulatedValue(r,e-r.lf_left-2),u=this.getAccumulatedValue(r,e-r.lf_left-1),s=this._buffers[r.piece.bufferIndex].buffer,l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return c+=r.size_left,this._searchCache.set({node:r,nodeStartOffset:c,nodeStartLineNumber:d-(e-1-r.lf_left)}),s.substring(l+a,l+u-t)}else if(r.lf_left+r.piece.lineFeedCnt===e-1){var a=this.getAccumulatedValue(r,e-r.lf_left-2),s=this._buffers[r.piece.bufferIndex].buffer,l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);i=s.substring(l+a,l+r.piece.length);break}else e-=r.lf_left+r.piece.lineFeedCnt,c+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==ut;){var s=this._buffers[r.piece.bufferIndex].buffer;if(r.piece.lineFeedCnt>0){var u=this.getAccumulatedValue(r,0),l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i+=s.substring(l,l+u-t),i}else{var l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);i+=s.substr(l,r.piece.length)}r=r.next()}return i},n.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,r=0;e!==ut;)t+=e.lf_left+e.piece.lineFeedCnt,r+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=r,this._searchCache.valdiate(this._length)},n.prototype.getIndexOf=function(e,t){var r=e.piece,i=this.positionInBuffer(e,t),o=i.line-r.start.line;if(this.offsetInBuffer(r.bufferIndex,r.end)-this.offsetInBuffer(r.bufferIndex,r.start)===t){var a=this.getLineFeedCnt(e.piece.bufferIndex,r.start,i);if(a!==o)return{index:a,remainder:0}}return{index:o,remainder:i.column}},n.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var r=e.piece,i=this._buffers[r.bufferIndex].lineStarts,o=r.start.line+t+1;return o>r.end.line?i[r.end.line]+r.end.column-i[r.start.line]-r.start.column:i[o]-i[r.start.line]-r.start.column},n.prototype.deleteNodeTail=function(e,t){var r=e.piece,i=r.lineFeedCnt,o=this.offsetInBuffer(r.bufferIndex,r.end),a=t,s=this.offsetInBuffer(r.bufferIndex,a),l=this.getLineFeedCnt(r.bufferIndex,r.start,a),u=l-i,c=s-o,d=r.length+c;e.piece=new xi(r.bufferIndex,r.start,a,l,d),Rs(this,e,c,u)},n.prototype.deleteNodeHead=function(e,t){var r=e.piece,i=r.lineFeedCnt,o=this.offsetInBuffer(r.bufferIndex,r.start),a=t,s=this.getLineFeedCnt(r.bufferIndex,a,r.end),l=this.offsetInBuffer(r.bufferIndex,a),u=s-i,c=o-l,d=r.length+c;e.piece=new xi(r.bufferIndex,a,r.end,s,d),Rs(this,e,c,u)},n.prototype.shrinkNode=function(e,t,r){var i=e.piece,o=i.start,a=i.end,s=i.length,l=i.lineFeedCnt,u=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,u),d=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new xi(i.bufferIndex,i.start,u,c,d),Rs(this,e,d-s,c-l);var f=new xi(i.bufferIndex,r,a,this.getLineFeedCnt(i.bufferIndex,r,a),this.offsetInBuffer(i.bufferIndex,a)-this.offsetInBuffer(i.bufferIndex,r)),h=this.rbInsertRight(e,f);this.validateCRLFWithPrevNode(h)},n.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` -`);var r=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=Fs(t,!1),a=0;ae)t=t.left;else if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}else e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right;return null},n.prototype.nodeAt2=function(e,t){for(var r=this.root,i=0;r!==ut;)if(r.left!==ut&&r.lf_left>=e-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(r,e-r.lf_left-2),a=this.getAccumulatedValue(r,e-r.lf_left-1);return i+=r.size_left,{node:r,remainder:Math.min(o+t-1,a),nodeStartOffset:i}}else if(r.lf_left+r.piece.lineFeedCnt===e-1){var o=this.getAccumulatedValue(r,e-r.lf_left-2);if(o+t-1<=r.piece.length)return{node:r,remainder:o+t-1,nodeStartOffset:i};t-=r.piece.length-o;break}else e-=r.lf_left+r.piece.lineFeedCnt,i+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==ut;){if(r.piece.lineFeedCnt>0){var a=this.getAccumulatedValue(r,0),s=this.offsetOfNode(r);return{node:r,remainder:Math.min(t-1,a),nodeStartOffset:s}}else if(r.piece.length>=t-1){var l=this.offsetOfNode(r);return{node:r,remainder:t-1,nodeStartOffset:l}}else t-=r.piece.length;r=r.next()}return null},n.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var r=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return r.buffer.charCodeAt(i)},n.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},n.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===` +`);for(var r=this.createNewPieces(e),i=this.rbInsertRight(t,r[0]),o=i,a=1;a=f)u=d+1;else break;return r?(r.line=d,r.column=l-h,null):{line:d,column:l-h}},n.prototype.getLineFeedCnt=function(e,t,r){if(r.column===0)return r.line-t.line;var i=this._buffers[e].lineStarts;if(r.line===i.length-1)return r.line-t.line;var o=i[r.line+1],a=i[r.line]+r.column;if(o>a+1)return r.line-t.line;var s=a-1,l=this._buffers[e].buffer;return l.charCodeAt(s)===13?r.line-t.line+1:r.line-t.line},n.prototype.offsetInBuffer=function(e,t){var r=this._buffers[e].lineStarts;return r[t.line]+t.column},n.prototype.deleteNodes=function(e){for(var t=0;txs){for(var t=[];e.length>xs;){var r=e.charCodeAt(xs-1),i=void 0;r===13||r>=55296&&r<=56319?(i=e.substring(0,xs-1),e=e.substring(xs-1)):(i=e.substring(0,xs),e=e.substring(xs));var o=Bs(i);t.push(new xi(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new Cc(i,o))}var a=Bs(e);return t.push(new xi(this._buffers.length,{line:0,column:0},{line:a.length-1,column:e.length-a[a.length-1]},a.length-1,e.length)),this._buffers.push(new Cc(e,a)),t}var s=this._buffers[0].buffer.length,l=Bs(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&s!==0&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var c=0;c=e-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>e-1){var a=this.getAccumulatedValue(r,e-r.lf_left-2),u=this.getAccumulatedValue(r,e-r.lf_left-1),s=this._buffers[r.piece.bufferIndex].buffer,l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return c+=r.size_left,this._searchCache.set({node:r,nodeStartOffset:c,nodeStartLineNumber:d-(e-1-r.lf_left)}),s.substring(l+a,l+u-t)}else if(r.lf_left+r.piece.lineFeedCnt===e-1){var a=this.getAccumulatedValue(r,e-r.lf_left-2),s=this._buffers[r.piece.bufferIndex].buffer,l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);i=s.substring(l+a,l+r.piece.length);break}else e-=r.lf_left+r.piece.lineFeedCnt,c+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==ut;){var s=this._buffers[r.piece.bufferIndex].buffer;if(r.piece.lineFeedCnt>0){var u=this.getAccumulatedValue(r,0),l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i+=s.substring(l,l+u-t),i}else{var l=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);i+=s.substr(l,r.piece.length)}r=r.next()}return i},n.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,r=0;e!==ut;)t+=e.lf_left+e.piece.lineFeedCnt,r+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=r,this._searchCache.valdiate(this._length)},n.prototype.getIndexOf=function(e,t){var r=e.piece,i=this.positionInBuffer(e,t),o=i.line-r.start.line;if(this.offsetInBuffer(r.bufferIndex,r.end)-this.offsetInBuffer(r.bufferIndex,r.start)===t){var a=this.getLineFeedCnt(e.piece.bufferIndex,r.start,i);if(a!==o)return{index:a,remainder:0}}return{index:o,remainder:i.column}},n.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var r=e.piece,i=this._buffers[r.bufferIndex].lineStarts,o=r.start.line+t+1;return o>r.end.line?i[r.end.line]+r.end.column-i[r.start.line]-r.start.column:i[o]-i[r.start.line]-r.start.column},n.prototype.deleteNodeTail=function(e,t){var r=e.piece,i=r.lineFeedCnt,o=this.offsetInBuffer(r.bufferIndex,r.end),a=t,s=this.offsetInBuffer(r.bufferIndex,a),l=this.getLineFeedCnt(r.bufferIndex,r.start,a),u=l-i,c=s-o,d=r.length+c;e.piece=new xi(r.bufferIndex,r.start,a,l,d),Rs(this,e,c,u)},n.prototype.deleteNodeHead=function(e,t){var r=e.piece,i=r.lineFeedCnt,o=this.offsetInBuffer(r.bufferIndex,r.start),a=t,s=this.getLineFeedCnt(r.bufferIndex,a,r.end),l=this.offsetInBuffer(r.bufferIndex,a),u=s-i,c=o-l,d=r.length+c;e.piece=new xi(r.bufferIndex,a,r.end,s,d),Rs(this,e,c,u)},n.prototype.shrinkNode=function(e,t,r){var i=e.piece,o=i.start,a=i.end,s=i.length,l=i.lineFeedCnt,u=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,u),d=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new xi(i.bufferIndex,i.start,u,c,d),Rs(this,e,d-s,c-l);var f=new xi(i.bufferIndex,r,a,this.getLineFeedCnt(i.bufferIndex,r,a),this.offsetInBuffer(i.bufferIndex,a)-this.offsetInBuffer(i.bufferIndex,r)),h=this.rbInsertRight(e,f);this.validateCRLFWithPrevNode(h)},n.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+=` +`);var r=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=Bs(t,!1),a=0;ae)t=t.left;else if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}else e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right;return null},n.prototype.nodeAt2=function(e,t){for(var r=this.root,i=0;r!==ut;)if(r.left!==ut&&r.lf_left>=e-1)r=r.left;else if(r.lf_left+r.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(r,e-r.lf_left-2),a=this.getAccumulatedValue(r,e-r.lf_left-1);return i+=r.size_left,{node:r,remainder:Math.min(o+t-1,a),nodeStartOffset:i}}else if(r.lf_left+r.piece.lineFeedCnt===e-1){var o=this.getAccumulatedValue(r,e-r.lf_left-2);if(o+t-1<=r.piece.length)return{node:r,remainder:o+t-1,nodeStartOffset:i};t-=r.piece.length-o;break}else e-=r.lf_left+r.piece.lineFeedCnt,i+=r.size_left+r.piece.length,r=r.right;for(r=r.next();r!==ut;){if(r.piece.lineFeedCnt>0){var a=this.getAccumulatedValue(r,0),s=this.offsetOfNode(r);return{node:r,remainder:Math.min(t-1,a),nodeStartOffset:s}}else if(r.piece.length>=t-1){var l=this.offsetOfNode(r);return{node:r,remainder:t-1,nodeStartOffset:l}}else t-=r.piece.length;r=r.next()}return null},n.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var r=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return r.buffer.charCodeAt(i)},n.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},n.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===` `)},n.prototype.startWithLF=function(e){if(typeof e=="string")return e.charCodeAt(0)===10;if(e===ut||e.piece.lineFeedCnt===0)return!1;var t=e.piece,r=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=r[i]+t.start.column;if(i===r.length-1)return!1;var a=r[i+1];return a>o+1?!1:this._buffers[t.bufferIndex].buffer.charCodeAt(o)===10},n.prototype.endWithCR=function(e){return typeof e=="string"?e.charCodeAt(e.length-1)===13:e===ut||e.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(e,e.piece.length-1)===13},n.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},n.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},n.prototype.fixCRLF=function(e,t){var r=[],i=this._buffers[e.piece.bufferIndex].lineStarts,o;e.piece.end.column===0?o={line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:o={line:e.piece.end.line,column:e.piece.end.column-1};var a=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new xi(e.piece.bufferIndex,e.piece.start,o,s,a),Rs(this,e,-1,-1),e.piece.length===0&&r.push(e);var l={line:t.piece.start.line+1,column:0},u=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,l,t.piece.end);t.piece=new xi(t.piece.bufferIndex,l,t.piece.end,c,u),Rs(this,t,-1,-1),t.piece.length===0&&r.push(t);var d=this.createNewPieces(`\r -`);this.rbInsertRight(e,d[0]);for(var f=0;f0){v.sort(function(E,T){return T.lineNumber-E.lineNumber}),w=[];for(var s=0,C=v.length;s0&&v[s-1].lineNumber===g)){var S=v[s].oldContent,L=this.getLineContent(g);L.length===0||L===S||eo(L)!==-1||w.push(g)}}}return new M0e(y,b,w)},n.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},n.prototype._toSingleEditOperation=function(e){for(var t=!1,r=e[0].range,i=e[e.length-1].range,o=new q(r.startLineNumber,r.startColumn,i.endLineNumber,i.endColumn),a=r.startLineNumber,s=r.startColumn,l=[],u=0,c=e.length;u0){v.sort(function(L,T){return T.lineNumber-L.lineNumber}),w=[];for(var s=0,b=v.length;s0&&v[s-1].lineNumber===g)){var S=v[s].oldContent,E=this.getLineContent(g);E.length===0||E===S||eo(E)!==-1||w.push(g)}}}return new gwe(y,C,w)},n.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},n.prototype._toSingleEditOperation=function(e){for(var t=!1,r=e[0].range,i=e[e.length-1].range,o=new q(r.startLineNumber,r.startColumn,i.endLineNumber,i.endColumn),a=r.startLineNumber,s=r.startColumn,l=[],u=0,c=e.length;u0){var f=l.lines.length,h=l.lines[0],p=l.lines[f-1];f===1?d=new q(u,c,u,c+h.length):d=new q(u,c,u+f-1,p.length+1)}else d=new q(u,c,u,c);r=d.endLineNumber,i=d.endColumn,t.push(d),o=l}return t},n._sortOpsAscending=function(e,t){var r=q.compareRangesUsingEnds(e.range,t.range);return r===0?e.sortIndex-t.sortIndex:r},n._sortOpsDescending=function(e,t){var r=q.compareRangesUsingEnds(e.range,t.range);return r===0?t.sortIndex-e.sortIndex:-r},n}(),bIe=function(){function n(e,t,r,i,o,a,s,l){this._chunks=e,this._bom=t,this._cr=r,this._lf=i,this._crlf=o,this._containsRTL=a,this._isBasicASCII=s,this._normalizeEOL=l}return n.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,r=this._cr+this._crlf;return t===0?e===1?` +`),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},n.prototype._doApplyEdits=function(e){e.sort(n._sortOpsDescending);for(var t=[],r=0;r0){var f=l.lines.length,h=l.lines[0],p=l.lines[f-1];f===1?d=new q(u,c,u,c+h.length):d=new q(u,c,u+f-1,p.length+1)}else d=new q(u,c,u,c);r=d.endLineNumber,i=d.endColumn,t.push(d),o=l}return t},n._sortOpsAscending=function(e,t){var r=q.compareRangesUsingEnds(e.range,t.range);return r===0?e.sortIndex-t.sortIndex:r},n._sortOpsDescending=function(e,t){var r=q.compareRangesUsingEnds(e.range,t.range);return r===0?t.sortIndex-e.sortIndex:-r},n}(),tTe=function(){function n(e,t,r,i,o,a,s,l){this._chunks=e,this._bom=t,this._cr=r,this._lf=i,this._crlf=o,this._containsRTL=a,this._isBasicASCII=s,this._normalizeEOL=l}return n.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,r=this._cr+this._crlf;return t===0?e===1?` `:`\r `:r>t/2?`\r `:` `},n.prototype.create=function(e){var t=this._getEOL(e),r=this._chunks;if(this._normalizeEOL&&(t===`\r `&&(this._cr>0||this._lf>0)||t===` -`&&(this._cr>0||this._crlf>0)))for(var i=0,o=r.length;i=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)}},n.prototype._acceptChunk1=function(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},n.prototype._acceptChunk2=function(e){var t=gIe(this._tmpLineStarts,e);this.chunks.push(new bc(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=SN(e))},n.prototype.finish=function(e){return e===void 0&&(e=!0),this._finish(),new bIe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},n.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Fs(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}},n}(),wIe=function(){function n(){this.changeType=1}return n}(),SIe=function(){function n(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}return n}(),EIe=function(){function n(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}return n}(),LIe=function(){function n(e,t,r){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=r}return n}(),IIe=function(){function n(){this.changeType=5}return n}(),$_=function(){function n(e,t,r,i){this.changes=e,this.versionId=t,this.isUndoing=r,this.isRedoing=i}return n.prototype.containsEvent=function(e){for(var t=0,r=this.changes.length;t>>0}var jl=new Uint32Array(0).buffer,Jm=function(){function n(e){this._state=e,this._lineTokens=null,this._invalid=!0}return n.prototype.deleteBeginning=function(e){this._lineTokens===null||this._lineTokens===jl||this.delete(0,e)},n.prototype.deleteEnding=function(e){if(!(this._lineTokens===null||this._lineTokens===jl)){var t=new Uint32Array(this._lineTokens),r=t[t.length-2];this.delete(e,r)}},n.prototype.delete=function(e,t){if(!(this._lineTokens===null||this._lineTokens===jl||e===t)){var r=new Uint32Array(this._lineTokens),i=r.length>>>1;if(e===0&&r[r.length-2]===t){this._lineTokens=jl;return}var o=ba.findIndexInTokensArray(r,e),a=o>0?r[o-1<<1]:0,s=r[o<<1];if(td&&(r[c++]=p,r[c++]=r[(h<<1)+1],d=p)}if(c!==r.length){var v=new Uint32Array(c);v.set(r.subarray(0,c),0),this._lineTokens=v.buffer}}},n.prototype.append=function(e){if(e!==jl){if(this._lineTokens===jl){this._lineTokens=e;return}if(this._lineTokens!==null){if(e===null){this._lineTokens=null;return}var t=new Uint32Array(this._lineTokens),r=new Uint32Array(e),i=r.length>>>1,o=new Uint32Array(t.length+r.length);o.set(t,0);for(var a=t.length,s=t[t.length-2],l=0;l>>1,o=ba.findIndexInTokensArray(r,e);if(o>0){var a=r[o-1<<1];a===e&&o--}for(var s=o;s=e},n.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex1&&(a=fa.getLanguageId(i[1])!==e),!a){o._lineTokens=jl;return}}(!i||i.length===0)&&(i=new Uint32Array(2),i[0]=0,i[1]=d4(e)),ba.convertToEndOffset(i,r),o._lineTokens=i.buffer},n.prototype._setState=function(e,t){if(e=0;s--)this.invalidateLine(e.startLineNumber+s-1);this._acceptDeleteRange(e),this._acceptInsertText(new he(e.startLineNumber,e.startColumn),t,r)},n.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length)){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._tokens[t].delete(e.startColumn-1,e.endColumn-1);return}var r=this._tokens[t];r.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length)){if(t===0){this._tokens[i].insert(e.column-1,r);return}var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,r);for(var a=new Array(t),s=t-1;s>=0;s--)a[s]=new Jm(null);this._tokens=mbe(this._tokens,e.lineNumber,a)}}},n.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var r=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,r),r},n.prototype._tokenizeText=function(e,t,r){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,r,0)}catch(o){et(o)}return i||(i=Ky(this.languageIdentifier.id,t,r,0)),i},n.prototype._updateTokensUntilLine=function(e,t,r){if(!this.tokenizationSupport){this._invalidLineStartIndex=e.getLineCount();return}for(var i=e.getLineCount(),o=r-1,a=this._invalidLineStartIndex;a<=o;a++){var s=a+1,l=e.getLineContent(a+1),u=this._getState(a),c=null;try{var d=u.clone();c=this.tokenizationSupport.tokenize2(l,d,0)}catch(p){et(p)}if(c||(c=Ky(this.languageIdentifier.id,l,u,0)),this._setTokens(this.languageIdentifier.id,a,l.length,c.tokens),t.registerChangedTokens(a+1),this._setIsInvalid(a,!1),s0?t[r-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[r]={fromLineNumber:e,toLineNumber:e}},n.prototype.build=function(){return this._ranges.length===0?null:{tokenizationSupportChanged:!1,ranges:this._ranges}},n}(),gA=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),xIe=2048;function OIe(){return new CIe}function NIe(n){var e=OIe();return e.acceptChunk(n),e.finish()}function h4(n,e){var t=typeof n=="string"?NIe(n):n;return t.create(e)}var e_=0;function AIe(n){var e=26;return n=n%(2*e),n"u"||o===null?a._associatedResource=Xt.parse("inmemory://model/"+e_):a._associatedResource=o,a._attachedEditorCount=0,a._buffer=h4(t,r.defaultEOL),a._options=e.resolveOptions(a._buffer,r);var s=a._buffer.getLineCount(),l=a._buffer.getValueLengthInRange(new q(1,1,s,a._buffer.getLineLength(s)+1),0);return r.largeFileOptimizations?a._isTooLargeForTokenization=l>e.LARGE_FILE_SIZE_THRESHOLD||s>e.LARGE_FILE_LINE_COUNT_THRESHOLD:a._isTooLargeForTokenization=!1,a._isTooLargeForSyncing=l>e.MODEL_SYNC_LIMIT,a._setVersionId(1),a._isDisposed=!1,a._isDisposing=!1,a._languageIdentifier=i||zy,a._tokenizationListener=Dn.onDidChange(function(u){u.changedLanguages.indexOf(a._languageIdentifier.language)!==-1&&(a._resetTokenizationState(),a.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:a.getLineCount()}]}),a._shouldAutoTokenize()&&a._warmUpTokens())}),a._revalidateTokensTimeout=-1,a._languageRegistryListener=Ut.onDidChange(function(u){u.languageIdentifier.id===a._languageIdentifier.id&&a._onDidChangeLanguageConfiguration.fire({})}),a._resetTokenizationState(),a._instanceId=AIe(e_),a._lastDecorationId=0,a._decorations=Object.create(null),a._decorationsTree=new p4,a._commandManager=new e4(a),a._isUndoing=!1,a._isRedoing=!1,a._trimAutoWhitespaceLines=null,a}return e.createFromString=function(t,r,i,o){return r===void 0&&(r=e.DEFAULT_CREATION_OPTIONS),i===void 0&&(i=null),o===void 0&&(o=null),new e(t,r,i,o)},e.resolveOptions=function(t,r){if(r.detectIndentation){var i=t4(t,r.tabSize,r.insertSpaces);return new F_({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:r.trimAutoWhitespace,defaultEOL:r.defaultEOL})}return new F_({tabSize:r.tabSize,indentSize:r.indentSize,insertSpaces:r.insertSpaces,trimAutoWhitespace:r.trimAutoWhitespace,defaultEOL:r.defaultEOL})},e.prototype.onDidChangeRawContentFast=function(t){return this._eventEmitter.fastEvent(function(r){return t(r.rawContentChangedEvent)})},e.prototype.onDidChangeRawContent=function(t){return this._eventEmitter.slowEvent(function(r){return t(r.rawContentChangedEvent)})},e.prototype.onDidChangeContent=function(t){return this._eventEmitter.slowEvent(function(r){return t(r.contentChangedEvent)})},e.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._isDisposed=!0,n.prototype.dispose.call(this),this._isDisposing=!1},e.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},e.prototype._emitContentChangedEvent=function(t,r){this._isDisposing||this._eventEmitter.fire(new TIe(t,r))},e.prototype.setValue=function(t){if(this._assertNotDisposed(),t!==null){var r=h4(t,this._options.defaultEOL);this.setValueFromTextBuffer(r)}},e.prototype._createContentChanged2=function(t,r,i,o,a,s,l){return{changes:[{range:t,rangeOffset:r,rangeLength:i,text:o}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:a,isRedoing:s,isFlush:l}},e.prototype.setValueFromTextBuffer=function(t){if(this._assertNotDisposed(),t!==null){var r=this.getFullModelRange(),i=this.getValueLengthInRange(r),o=this.getLineCount(),a=this.getLineMaxColumn(o);this._buffer=t,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new p4,this._commandManager=new e4(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new $_([new wIe],this._versionId,!1,!1),this._createContentChanged2(new q(1,1,o,a),0,i,this.getValue(),!1,!1,!0))}},e.prototype.setEOL=function(t){this._assertNotDisposed();var r=t===1?`\r +`&&(this._cr>0||this._crlf>0)))for(var i=0,o=r.length;i=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)}},n.prototype._acceptChunk1=function(e,t){!t&&e.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},n.prototype._acceptChunk2=function(e){var t=ZIe(this._tmpLineStarts,e);this.chunks.push(new Cc(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=SN(e))},n.prototype.finish=function(e){return e===void 0&&(e=!0),this._finish(),new tTe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},n.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Bs(e.buffer);e.lineStarts=t,this._previousChar===13&&this.cr++}},n}(),rTe=function(){function n(){this.changeType=1}return n}(),iTe=function(){function n(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}return n}(),oTe=function(){function n(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}return n}(),aTe=function(){function n(e,t,r){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=r}return n}(),sTe=function(){function n(){this.changeType=5}return n}(),j_=function(){function n(e,t,r,i){this.changes=e,this.versionId=t,this.isUndoing=r,this.isRedoing=i}return n.prototype.containsEvent=function(e){for(var t=0,r=this.changes.length;t>>0}var jl=new Uint32Array(0).buffer,n_=function(){function n(e){this._state=e,this._lineTokens=null,this._invalid=!0}return n.prototype.deleteBeginning=function(e){this._lineTokens===null||this._lineTokens===jl||this.delete(0,e)},n.prototype.deleteEnding=function(e){if(!(this._lineTokens===null||this._lineTokens===jl)){var t=new Uint32Array(this._lineTokens),r=t[t.length-2];this.delete(e,r)}},n.prototype.delete=function(e,t){if(!(this._lineTokens===null||this._lineTokens===jl||e===t)){var r=new Uint32Array(this._lineTokens),i=r.length>>>1;if(e===0&&r[r.length-2]===t){this._lineTokens=jl;return}var o=ba.findIndexInTokensArray(r,e),a=o>0?r[o-1<<1]:0,s=r[o<<1];if(td&&(r[c++]=p,r[c++]=r[(h<<1)+1],d=p)}if(c!==r.length){var v=new Uint32Array(c);v.set(r.subarray(0,c),0),this._lineTokens=v.buffer}}},n.prototype.append=function(e){if(e!==jl){if(this._lineTokens===jl){this._lineTokens=e;return}if(this._lineTokens!==null){if(e===null){this._lineTokens=null;return}var t=new Uint32Array(this._lineTokens),r=new Uint32Array(e),i=r.length>>>1,o=new Uint32Array(t.length+r.length);o.set(t,0);for(var a=t.length,s=t[t.length-2],l=0;l>>1,o=ba.findIndexInTokensArray(r,e);if(o>0){var a=r[o-1<<1];a===e&&o--}for(var s=o;s=e},n.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex1&&(a=fa.getLanguageId(i[1])!==e),!a){o._lineTokens=jl;return}}(!i||i.length===0)&&(i=new Uint32Array(2),i[0]=0,i[1]=d4(e)),ba.convertToEndOffset(i,r),o._lineTokens=i.buffer},n.prototype._setState=function(e,t){if(e=0;s--)this.invalidateLine(e.startLineNumber+s-1);this._acceptDeleteRange(e),this._acceptInsertText(new pe(e.startLineNumber,e.startColumn),t,r)},n.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length)){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._tokens[t].delete(e.startColumn-1,e.endColumn-1);return}var r=this._tokens[t];r.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length)){if(t===0){this._tokens[i].insert(e.column-1,r);return}var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,r);for(var a=new Array(t),s=t-1;s>=0;s--)a[s]=new n_(null);this._tokens=Qbe(this._tokens,e.lineNumber,a)}}},n.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var r=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,r),r},n.prototype._tokenizeText=function(e,t,r){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,r,0)}catch(o){Je(o)}return i||(i=zy(this.languageIdentifier.id,t,r,0)),i},n.prototype._updateTokensUntilLine=function(e,t,r){if(!this.tokenizationSupport){this._invalidLineStartIndex=e.getLineCount();return}for(var i=e.getLineCount(),o=r-1,a=this._invalidLineStartIndex;a<=o;a++){var s=a+1,l=e.getLineContent(a+1),u=this._getState(a),c=null;try{var d=u.clone();c=this.tokenizationSupport.tokenize2(l,d,0)}catch(p){Je(p)}if(c||(c=zy(this.languageIdentifier.id,l,u,0)),this._setTokens(this.languageIdentifier.id,a,l.length,c.tokens),t.registerChangedTokens(a+1),this._setIsInvalid(a,!1),s0?t[r-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[r]={fromLineNumber:e,toLineNumber:e}},n.prototype.build=function(){return this._ranges.length===0?null:{tokenizationSupportChanged:!1,ranges:this._ranges}},n}(),gD=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),uTe=2048;function cTe(){return new nTe}function dTe(n){var e=cTe();return e.acceptChunk(n),e.finish()}function h4(n,e){var t=typeof n=="string"?dTe(n):n;return t.create(e)}var r_=0;function fTe(n){var e=26;return n=n%(2*e),n"u"||o===null?a._associatedResource=Yt.parse("inmemory://model/"+r_):a._associatedResource=o,a._attachedEditorCount=0,a._buffer=h4(t,r.defaultEOL),a._options=e.resolveOptions(a._buffer,r);var s=a._buffer.getLineCount(),l=a._buffer.getValueLengthInRange(new q(1,1,s,a._buffer.getLineLength(s)+1),0);return r.largeFileOptimizations?a._isTooLargeForTokenization=l>e.LARGE_FILE_SIZE_THRESHOLD||s>e.LARGE_FILE_LINE_COUNT_THRESHOLD:a._isTooLargeForTokenization=!1,a._isTooLargeForSyncing=l>e.MODEL_SYNC_LIMIT,a._setVersionId(1),a._isDisposed=!1,a._isDisposing=!1,a._languageIdentifier=i||jy,a._tokenizationListener=An.onDidChange(function(u){u.changedLanguages.indexOf(a._languageIdentifier.language)!==-1&&(a._resetTokenizationState(),a.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:a.getLineCount()}]}),a._shouldAutoTokenize()&&a._warmUpTokens())}),a._revalidateTokensTimeout=-1,a._languageRegistryListener=Ut.onDidChange(function(u){u.languageIdentifier.id===a._languageIdentifier.id&&a._onDidChangeLanguageConfiguration.fire({})}),a._resetTokenizationState(),a._instanceId=fTe(r_),a._lastDecorationId=0,a._decorations=Object.create(null),a._decorationsTree=new p4,a._commandManager=new e4(a),a._isUndoing=!1,a._isRedoing=!1,a._trimAutoWhitespaceLines=null,a}return e.createFromString=function(t,r,i,o){return r===void 0&&(r=e.DEFAULT_CREATION_OPTIONS),i===void 0&&(i=null),o===void 0&&(o=null),new e(t,r,i,o)},e.resolveOptions=function(t,r){if(r.detectIndentation){var i=t4(t,r.tabSize,r.insertSpaces);return new B_({tabSize:i.tabSize,indentSize:i.tabSize,insertSpaces:i.insertSpaces,trimAutoWhitespace:r.trimAutoWhitespace,defaultEOL:r.defaultEOL})}return new B_({tabSize:r.tabSize,indentSize:r.indentSize,insertSpaces:r.insertSpaces,trimAutoWhitespace:r.trimAutoWhitespace,defaultEOL:r.defaultEOL})},e.prototype.onDidChangeRawContentFast=function(t){return this._eventEmitter.fastEvent(function(r){return t(r.rawContentChangedEvent)})},e.prototype.onDidChangeRawContent=function(t){return this._eventEmitter.slowEvent(function(r){return t(r.rawContentChangedEvent)})},e.prototype.onDidChangeContent=function(t){return this._eventEmitter.slowEvent(function(r){return t(r.contentChangedEvent)})},e.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._isDisposed=!0,n.prototype.dispose.call(this),this._isDisposing=!1},e.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},e.prototype._emitContentChangedEvent=function(t,r){this._isDisposing||this._eventEmitter.fire(new lTe(t,r))},e.prototype.setValue=function(t){if(this._assertNotDisposed(),t!==null){var r=h4(t,this._options.defaultEOL);this.setValueFromTextBuffer(r)}},e.prototype._createContentChanged2=function(t,r,i,o,a,s,l){return{changes:[{range:t,rangeOffset:r,rangeLength:i,text:o}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:a,isRedoing:s,isFlush:l}},e.prototype.setValueFromTextBuffer=function(t){if(this._assertNotDisposed(),t!==null){var r=this.getFullModelRange(),i=this.getValueLengthInRange(r),o=this.getLineCount(),a=this.getLineMaxColumn(o);this._buffer=t,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new p4,this._commandManager=new e4(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new j_([new rTe],this._versionId,!1,!1),this._createContentChanged2(new q(1,1,o,a),0,i,this.getValue(),!1,!1,!0))}},e.prototype.setEOL=function(t){this._assertNotDisposed();var r=t===1?`\r `:` -`;if(this._buffer.getEOL()!==r){var i=this.getFullModelRange(),o=this.getValueLengthInRange(i),a=this.getLineCount(),s=this.getLineMaxColumn(a);this._onBeforeEOLChange(),this._buffer.setEOL(r),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new $_([new IIe],this._versionId,!1,!1),this._createContentChanged2(new q(1,1,a,s),0,o,this.getValue(),!1,!1,!1))}},e.prototype._onBeforeEOLChange=function(){var t=this.getVersionId(),r=this._decorationsTree.search(0,!1,!1,t);this._ensureNodesHaveRanges(r)},e.prototype._onAfterEOLChange=function(){for(var t=this.getVersionId(),r=this._decorationsTree.collectNodesPostOrder(),i=0,o=r.length;i0},e.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},e.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},e.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},e.prototype.isDisposed=function(){return this._isDisposed},e.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var t=0,r=0,i=this._buffer.getLineCount(),o=1;o<=i;o++){var a=this._buffer.getLineLength(o);a>=RIe?r+=a:t+=a}return r>t},Object.defineProperty(e.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),e.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},e.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},e.prototype.updateOptions=function(t){this._assertNotDisposed();var r=typeof t.tabSize<"u"?t.tabSize:this._options.tabSize,i=typeof t.indentSize<"u"?t.indentSize:this._options.indentSize,o=typeof t.insertSpaces<"u"?t.insertSpaces:this._options.insertSpaces,a=typeof t.trimAutoWhitespace<"u"?t.trimAutoWhitespace:this._options.trimAutoWhitespace,s=new F_({tabSize:r,indentSize:i,insertSpaces:o,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:a});if(!this._options.equals(s)){var l=this._options.createChangeEvent(s);this._options=s,this._onDidChangeOptions.fire(l)}},e.prototype.detectIndentation=function(t,r){this._assertNotDisposed();var i=t4(this._buffer,r,t);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})},e._normalizeIndentationFromWhitespace=function(t,r,i){for(var o=0,a=0;athis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(t)},e.prototype.getLineLength=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(t)},e.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},e.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},e.prototype.getLineMinColumn=function(t){return this._assertNotDisposed(),1},e.prototype.getLineMaxColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(t)+1},e.prototype.getLineFirstNonWhitespaceColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(t)},e.prototype.getLineLastNonWhitespaceColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(t)},e.prototype._validateRangeRelaxedNoAllocations=function(t){var r=this._buffer.getLineCount(),i=t.startLineNumber,o=t.startColumn,a,s;if(i<1)a=1,s=1;else if(i>r)a=r,s=this.getLineMaxColumn(a);else if(a=i|0,o<=1)s=1;else{var l=this.getLineMaxColumn(a);o>=l?s=l:s=o|0}var u=t.endLineNumber,c=t.endColumn,d,f;if(u<1)d=1,f=1;else if(u>r)d=r,f=this.getLineMaxColumn(d);else if(d=u|0,c<=1)f=1;else{var l=this.getLineMaxColumn(d);c>=l?f=l:f=c|0}return i===a&&o===s&&u===d&&c===f&&t instanceof q&&!(t instanceof Ze)?t:new q(a,s,d,f)},e.prototype._isValidPosition=function(t,r,i){if(typeof t!="number"||typeof r!="number"||isNaN(t)||isNaN(r)||t<1||r<1||(t|0)!==t||(r|0)!==r)return!1;var o=this._buffer.getLineCount();if(t>o)return!1;var a=this.getLineMaxColumn(t);if(r>a)return!1;if(i&&r>1){var s=this._buffer.getLineCharCode(t,r-2);if(Mi(s))return!1}return!0},e.prototype._validatePosition=function(t,r,i){var o=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),a=Math.floor(typeof r=="number"&&!isNaN(r)?r:1),s=this._buffer.getLineCount();if(o<1)return new he(1,1);if(o>s)return new he(s,this.getLineMaxColumn(s));if(a<=1)return new he(o,1);var l=this.getLineMaxColumn(o);if(a>=l)return new he(o,l);if(i){var u=this._buffer.getLineCharCode(o,a-2);if(Mi(u))return new he(o,a-1)}return new he(o,a)},e.prototype.validatePosition=function(t){return this._assertNotDisposed(),t instanceof he&&this._isValidPosition(t.lineNumber,t.column,!0)?t:this._validatePosition(t.lineNumber,t.column,!0)},e.prototype._isValidRange=function(t,r){var i=t.startLineNumber,o=t.startColumn,a=t.endLineNumber,s=t.endColumn;if(!this._isValidPosition(i,o,!1)||!this._isValidPosition(a,s,!1))return!1;if(r){var l=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,s-2):0,c=Mi(l),d=Mi(u);return!c&&!d}return!0},e.prototype.validateRange=function(t){if(this._assertNotDisposed(),t instanceof q&&!(t instanceof Ze)&&this._isValidRange(t,!0))return t;var r=this._validatePosition(t.startLineNumber,t.startColumn,!1),i=this._validatePosition(t.endLineNumber,t.endColumn,!1),o=r.lineNumber,a=r.column,s=i.lineNumber,l=i.column,u=a>1?this._buffer.getLineCharCode(o,a-2):0,c=l>1&&l<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,l-2):0,d=Mi(u),f=Mi(c);return!d&&!f?new q(o,a,s,l):o===s&&a===l?new q(o,a-1,s,l-1):d&&f?new q(o,a-1,s,l+1):d?new q(o,a-1,s,l):new q(o,a,s,l+1)},e.prototype.modifyPosition=function(t,r){this._assertNotDisposed();var i=this.getOffsetAt(t)+r;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))},e.prototype.getFullModelRange=function(){this._assertNotDisposed();var t=this.getLineCount();return new q(1,1,t,this.getLineMaxColumn(t))},e.prototype.findMatchesLineByLine=function(t,r,i,o){return this._buffer.findMatchesLineByLine(t,r,i,o)},e.prototype.findMatches=function(t,r,i,o,a,s,l){l===void 0&&(l=DIe),this._assertNotDisposed();var u;if(q.isIRange(r)?u=this.validateRange(r):u=this.getFullModelRange(),!i&&t.indexOf(` -`)<0){var c=new cc(t,i,o,a),d=c.parseSearchRequest();return d?this.findMatchesLineByLine(u,d,s,l):[]}return Qm.findMatches(this,new cc(t,i,o,a),u,s,l)},e.prototype.findNextMatch=function(t,r,i,o,a,s){this._assertNotDisposed();var l=this.validatePosition(r);if(!i&&t.indexOf(` -`)<0){var u=new cc(t,i,o,a),c=u.parseSearchRequest();if(!c)return null;var d=this.getLineCount(),f=new q(l.lineNumber,l.column,d,this.getLineMaxColumn(d)),h=this.findMatchesLineByLine(f,c,s,1);return Qm.findNextMatch(this,new cc(t,i,o,a),l,s),h.length>0||(f=new q(1,1,l.lineNumber,this.getLineMaxColumn(l.lineNumber)),h=this.findMatchesLineByLine(f,c,s,1),h.length>0)?h[0]:null}return Qm.findNextMatch(this,new cc(t,i,o,a),l,s)},e.prototype.findPreviousMatch=function(t,r,i,o,a,s){this._assertNotDisposed();var l=this.validatePosition(r);return Qm.findPreviousMatch(this,new cc(t,i,o,a),l,s)},e.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},e.prototype.pushEOL=function(t){var r=this.getEOL()===` -`?0:1;if(r!==t)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e.prototype.pushEditOperations=function(t,r,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(t,r,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e.prototype._pushEditOperations=function(t,r,i){var o=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var a=r.map(function(w){return{range:o.validateRange(w.range),text:w.text}}),s=!0,l=0,u=t.length;lc.endLineNumber,m=c.startLineNumber>p.endLineNumber;if(!v&&!m){d=!0;break}}if(!d){s=!1;break}}if(s)for(var l=0,u=this._trimAutoWhitespaceLines.length;lp.endLineNumber)&&!(g===p.startLineNumber&&p.startColumn===_&&p.isEmpty()&&b&&b.length>0&&b.charAt(0)===` -`)&&!(g===p.startLineNumber&&p.startColumn===1&&p.isEmpty()&&b&&b.length>0&&b.charAt(b.length-1)===` -`)){y=!1;break}}y&&r.push({range:new q(g,1,g,_),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(t,r,i)},e.prototype.applyEdits=function(t){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e._eolCount=function(t){for(var r=0,i=0,o=0,a=t.length;o=0;w--){var C=v+w,S=s-c-b+C;u.push(new SIe(C,this.getLineContent(S)))}if(ythis.getLineCount()?[]:this.getLinesDecorations(t,t,r,i)},e.prototype.getLinesDecorations=function(t,r,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var a=this.getLineCount(),s=Math.min(a,Math.max(1,t)),l=Math.min(a,Math.max(1,r)),u=this.getLineMaxColumn(l);return this._getDecorationsInRange(new q(s,1,l,u),i,o)},e.prototype.getDecorationsInRange=function(t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=this.validateRange(t);return this._getDecorationsInRange(o,r,i)},e.prototype.getOverviewRulerDecorations=function(t,r){t===void 0&&(t=0),r===void 0&&(r=!1);var i=this.getVersionId(),o=this._decorationsTree.search(t,r,!0,i);return this._ensureNodesHaveRanges(o)},e.prototype.getAllDecorations=function(t,r){t===void 0&&(t=0),r===void 0&&(r=!1);var i=this.getVersionId(),o=this._decorationsTree.search(t,r,!1,i);return this._ensureNodesHaveRanges(o)},e.prototype._getDecorationsInRange=function(t,r,i){var o=this._buffer.getOffsetAt(t.startLineNumber,t.startColumn),a=this._buffer.getOffsetAt(t.endLineNumber,t.endColumn),s=this.getVersionId(),l=this._decorationsTree.intervalSearch(o,a,r,i,s);return this._ensureNodesHaveRanges(l)},e.prototype._ensureNodesHaveRanges=function(t){for(var r=0,i=t.length;r0&&s>=1;s--){var l=this.getLineFirstNonWhitespaceColumn(s);if(l!==0&&l=0;s--){var c=this._tokens._tokenizeText(this._buffer,o[s],u);c?u=c.endState.clone():u=a.clone()}for(var d=new LS,s=t;s<=r;s++){var f=this.getLineContent(s),c=this._tokens._tokenizeText(this._buffer,f,u);c?(this._tokens._setTokens(this._tokens.languageIdentifier.id,s-1,f.length,c.tokens),this._tokens._setIsInvalid(s-1,!0),this._tokens._setState(s-1,u),u=c.endState.clone(),d.registerChangedTokens(s)):u=a.clone()}var h=d.build();h&&this._onDidChangeTokens.fire(h)}},e.prototype.flushTokens=function(){this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},e.prototype.forceTokenization=function(t){if(t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");var r=new LS;this._tokens._updateTokensUntilLine(this._buffer,r,t);var i=r.build();i&&this._onDidChangeTokens.fire(i)},e.prototype.isCheapToTokenize=function(t){return this._tokens.isCheapToTokenize(t)?tthis.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(t)},e.prototype._getLineTokens=function(t){var r=this._buffer.getLineContent(t);return this._tokens.getTokens(this._languageIdentifier.id,t-1,r)},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e.prototype.getModeId=function(){return this._languageIdentifier.language},e.prototype.setMode=function(t){if(this._languageIdentifier.id!==t.id){var r={oldLanguage:this._languageIdentifier.language,newLanguage:t.language};this._languageIdentifier=t,this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(r),this._onDidChangeLanguageConfiguration.fire({})}},e.prototype.getLanguageIdAtPosition=function(t,r){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var i=this.validatePosition({lineNumber:t,column:r}),o=i.lineNumber,a=i.column,s=this._getLineTokens(o);return s.getLanguageId(s.findTokenIndexAtOffset(a-1))},e.prototype._beginBackgroundTokenization=function(){var t=this;this._shouldAutoTokenize()&&this._revalidateTokensTimeout===-1&&(this._revalidateTokensTimeout=setTimeout(function(){t._revalidateTokensTimeout=-1,t._revalidateTokensNow()},0))},e.prototype._warmUpTokens=function(){var t=Math.min(100,this.getLineCount());this._revalidateTokensNow(t),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},e.prototype._revalidateTokensNow=function(t){t===void 0&&(t=this._buffer.getLineCount());for(var r=20,i=new LS,o=VN.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(o.elapsed()>r);){var a=this._tokens._tokenizeOneLine(this._buffer,i);if(a>=t)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var s=i.build();s&&this._onDidChangeTokens.fire(s)},e.prototype.emitModelTokensChangedEvent=function(t){this._isDisposing||this._onDidChangeTokens.fire(t)},e.prototype.getWordAtPosition=function(t){this._assertNotDisposed();var r=this.validatePosition(t),i=this.getLineContent(r.lineNumber),o=this._getLineTokens(r.lineNumber),a=o.findTokenIndexAtOffset(r.column-1),s=e._findLanguageBoundaries(o,a),l=s[0],u=s[1],c=dL(r.column,Ut.getWordDefinition(o.getLanguageId(a)),i.substring(l,u),l);if(c&&c.startColumn<=t.column&&t.column<=c.endColumn)return c;if(a>0&&l===r.column-1){var d=e._findLanguageBoundaries(o,a-1),f=d[0],h=d[1],p=dL(r.column,Ut.getWordDefinition(o.getLanguageId(a-1)),i.substring(f,h),f);if(p&&p.startColumn<=t.column&&t.column<=p.endColumn)return p}return null},e._findLanguageBoundaries=function(t,r){for(var i=t.getLanguageId(r),o=0,a=r;a>=0&&t.getLanguageId(a)===i;a--)o=t.getStartOffset(a);for(var s=t.getLineContent().length,a=r,l=t.getCount();a0&&i.getStartOffset(a)===t.column-1){var u=i.getStartOffset(a);a--;var p=Ut.getBracketsSupport(i.getLanguageId(a));if(p&&!ac(i.getStandardTokenType(a))){var l=Math.max(i.getStartOffset(a),t.column-1-p.maxBracketLength),d=sc.findPrevBracketInToken(p.reversedRegex,r,o,l,u);if(d&&d.startColumn<=t.column&&t.column<=d.endColumn){var f=o.substring(d.startColumn-1,d.endColumn-1);f=f.toLowerCase();var h=this._matchFoundBracket(d,p.textIsBracket[f],p.textIsOpenBracket[f]);if(h)return h}}}return null},e.prototype._matchFoundBracket=function(t,r,i){if(!r)return null;if(i){var o=this._findMatchingBracketDown(r,t.getEndPosition());if(o)return[t,o]}else{var o=this._findMatchingBracketUp(r,t.getStartPosition());if(o)return[t,o]}return null},e.prototype._findMatchingBracketUp=function(t,r){for(var i=t.languageIdentifier.id,o=t.reversedRegex,a=-1,s=r.lineNumber;s>=1;s--){var l=this._getLineTokens(s),u=l.getCount(),c=this._buffer.getLineContent(s),d=u-1,f=-1;for(s===r.lineNumber&&(d=l.findTokenIndexAtOffset(r.column-1),f=r.column-1);d>=0;d--){var h=l.getLanguageId(d),p=l.getStandardTokenType(d),v=l.getStartOffset(d),m=l.getEndOffset(d);if(f===-1&&(f=m),h===i&&!ac(p))for(;;){var g=sc.findPrevBracketInToken(o,s,c,v,f);if(!g)break;var _=c.substring(g.startColumn-1,g.endColumn-1);if(_=_.toLowerCase(),_===t.open?a++:_===t.close&&a--,a===0)return g;f=g.startColumn-1}f=-1}}return null},e.prototype._findMatchingBracketDown=function(t,r){for(var i=t.languageIdentifier.id,o=t.forwardRegex,a=1,s=r.lineNumber,l=this.getLineCount();s<=l;s++){var u=this._getLineTokens(s),c=u.getCount(),d=this._buffer.getLineContent(s),f=0,h=0;for(s===r.lineNumber&&(f=u.findTokenIndexAtOffset(r.column-1),h=r.column-1);f=1;a--){var s=this._getLineTokens(a),l=s.getCount(),u=this._buffer.getLineContent(a),c=l-1,d=-1;for(a===r.lineNumber&&(c=s.findTokenIndexAtOffset(r.column-1),d=r.column-1);c>=0;c--){var f=s.getLanguageId(c),h=s.getStandardTokenType(c),p=s.getStartOffset(c),v=s.getEndOffset(c);if(d===-1&&(d=v),i!==f&&(i=f,o=Ut.getBracketsSupport(i)),o&&!ac(h)){var m=sc.findPrevBracketInToken(o.reversedRegex,a,u,p,d);if(m)return this._toFoundBracket(o,m)}d=-1}}return null},e.prototype.findNextBracket=function(t){for(var r=this.validatePosition(t),i=-1,o=null,a=r.lineNumber,s=this.getLineCount();a<=s;a++){var l=this._getLineTokens(a),u=l.getCount(),c=this._buffer.getLineContent(a),d=0,f=0;for(a===r.lineNumber&&(d=l.findTokenIndexAtOffset(r.column-1),f=r.column-1);da)throw new Error("Illegal value for lineNumber");for(var s=Ut.getFoldingRules(this._languageIdentifier.id),l=!!(s&&s.offSide),u=-2,c=-1,d=-2,f=-1,h=function(M){if(u!==-1&&(u===-2||u>M-1)){u=-1,c=-1;for(var H=M-2;H>=0;H--){var k=o._computeIndentLevel(H);if(k>=0){u=H,c=k;break}}}if(d===-2){d=-1,f=-1;for(var H=M;H=0){d=H,f=B;break}}}},p=-2,v=-1,m=-2,g=-1,_=function(M){if(p===-2){p=-1,v=-1;for(var H=M-2;H>=0;H--){var k=o._computeIndentLevel(H);if(k>=0){p=H,v=k;break}}}if(m!==-1&&(m===-2||m=0){m=H,g=B;break}}}},y=0,b=!0,w=0,C=!0,S=0,L=0;b||C;L++){var E=t-L,T=t+L;if(L!==0&&(E<1||Ea||T>i)&&(C=!1),L>5e4&&(b=!1,C=!1),b){var P=void 0,A=this._computeIndentLevel(E-1);if(A>=0?(d=E-1,f=A,P=Math.ceil(A/this._options.indentSize)):(h(E),P=this._getIndentLevelForWhitespaceLine(l,c,f)),L===0){if(y=E,w=T,S=P,S===0)return{startLineNumber:y,endLineNumber:w,indent:S};continue}P>=S?y=E:b=!1}if(C){var D=void 0,A=this._computeIndentLevel(T-1);A>=0?(p=T-1,v=A,D=Math.ceil(A/this._options.indentSize)):(_(T),D=this._getIndentLevelForWhitespaceLine(l,v,g)),D>=S?w=T:C=!1}}return{startLineNumber:y,endLineNumber:w,indent:S}},e.prototype.getLinesIndentGuides=function(t,r){this._assertNotDisposed();var i=this.getLineCount();if(t<1||t>i)throw new Error("Illegal value for startLineNumber");if(r<1||r>i)throw new Error("Illegal value for endLineNumber");for(var o=Ut.getFoldingRules(this._languageIdentifier.id),a=!!(o&&o.offSide),s=new Array(r-t+1),l=-2,u=-1,c=-2,d=-1,f=t;f<=r;f++){var h=f-t,p=this._computeIndentLevel(f-1);if(p>=0){l=f-1,u=p,s[h]=Math.ceil(p/this._options.indentSize);continue}if(l===-2){l=-1,u=-1;for(var v=f-2;v>=0;v--){var m=this._computeIndentLevel(v);if(m>=0){l=v,u=m;break}}}if(c!==-1&&(c===-2||c=0){c=v,d=m;break}}}s[h]=this._getIndentLevelForWhitespaceLine(a,u,d)}return s},e.prototype._getIndentLevelForWhitespaceLine=function(t,r,i){return r===-1||i===-1?0:r0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(t):this._deferredEvent=t;return}this._fastEmitter.fire(t),this._slowEmitter.fire(t)},e}($e),FIe=function(){return!0},m4=function(){return!1},BIe=function(n){return n===" "||n===" "},u$=function(){function n(e,t,r){this._languageIdentifier=e;var i=r.editor;this.readOnly=i.readOnly,this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:n._getShouldAutoClose(e,this.autoClosingQuotes),bracket:n._getShouldAutoClose(e,this.autoClosingBrackets)};var o=n._getAutoClosingPairs(e);if(o)for(var a=0,s=o;a=i.length?!1:IU(i.charCodeAt(r))},n.isHighSurrogate=function(e,t,r){var i=e.getLineContent(t);return r<0||r>=i.length?!1:Mi(i.charCodeAt(r))},n.isInsideSurrogatePair=function(e,t,r){return this.isHighSurrogate(e,t,r-2)},n.visibleColumnFromColumn=function(e,t,r){var i=e.length;i>t-1&&(i=t-1);for(var o=0,a=0;a=t){var u=t-o,c=l-t;return cs?s:o},n.nextRenderTabStop=function(e,t){return e+t-e%t},n.nextIndentTabStop=function(e,t){return e+t-e%t},n.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},n.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},n}();function kl(n){return n==="'"||n==='"'||n==="`"}var gp=function(){function n(){}return n._columnSelect=function(e,t,r,i,o,a){for(var s=Math.abs(o-r)+1,l=r>o,u=i>a,c=ia||gi||m1&&o--,this.columnSelect(e,t,r.selection,i,o)},n.columnSelectRight=function(e,t,r,i,o){for(var a=0,s=Math.min(r.position.lineNumber,i),l=Math.max(r.position.lineNumber,i),u=s;u<=l;u++){var c=t.getLineMaxColumn(u),d=gn.visibleColumnFromColumn2(e,t,new he(u,c));a=Math.max(a,d)}return ot.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,r.selection,o,a)},n}(),Ir=function(){function n(e,t,r){r===void 0&&(r=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=r}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Ze(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)},n}(),t_=function(){function n(e,t,r){r===void 0&&(r=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=r}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Ze(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)},n}(),mp=function(){function n(e,t,r,i,o){o===void 0&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=r,this.insertsAutoWhitespace=o}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Ze(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)},n}(),tb=function(){function n(e,t,r){this._range=e,this._text=t,this._initialSelection=r}return n.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},n.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},n}(),n_=function(){function n(e,t,r){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=r}return n}(),hr=function(){function n(){}return n.left=function(e,t,r,i){return i>t.getLineMinColumn(r)?gn.isLowSurrogate(t,r,i-2)?i=i-2:i=i-1:r>1&&(r=r-1,i=t.getLineMaxColumn(r)),new n_(r,i,0)},n.moveLeft=function(e,t,r,i,o){var a,s;if(r.hasSelection()&&!i)a=r.selection.startLineNumber,s=r.selection.startColumn;else{var l=n.left(e,t,r.position.lineNumber,r.position.column-(o-1));a=l.lineNumber,s=l.column}return r.move(i,a,s,0)},n.right=function(e,t,r,i){return iu?(r=u,s?i=t.getLineMaxColumn(r):(i=Math.min(t.getLineMaxColumn(r),i),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1))):(i=gn.columnFromVisibleColumn2(e,t,r,l),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1)),o=l-gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize),new n_(r,i,o)},n.moveDown=function(e,t,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.endLineNumber,s=r.selection.endColumn):(a=r.position.lineNumber,s=r.position.column);var l=n.down(e,t,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,l.lineNumber,l.column,l.leftoverVisibleColumns)},n.translateDown=function(e,t,r){var i=r.selection,o=n.down(e,t,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),a=n.down(e,t,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new ki(new q(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new he(a.lineNumber,a.column),a.leftoverVisibleColumns)},n.up=function(e,t,r,i,o,a,s){var l=gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize)+o;return r=r-a,r<1?(r=1,s?i=t.getLineMinColumn(r):(i=Math.min(t.getLineMaxColumn(r),i),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1))):(i=gn.columnFromVisibleColumn2(e,t,r,l),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1)),o=l-gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize),new n_(r,i,o)},n.moveUp=function(e,t,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.startLineNumber,s=r.selection.startColumn):(a=r.position.lineNumber,s=r.position.column);var l=n.up(e,t,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,l.lineNumber,l.column,l.leftoverVisibleColumns)},n.translateUp=function(e,t,r){var i=r.selection,o=n.up(e,t,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),a=n.up(e,t,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new ki(new q(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new he(a.lineNumber,a.column),a.leftoverVisibleColumns)},n.moveToBeginningOfLine=function(e,t,r,i){var o=r.position.lineNumber,a=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||a,l,u=r.position.column;return u===s?l=a:l=s,r.move(i,o,l,0)},n.moveToEndOfLine=function(e,t,r,i){var o=r.position.lineNumber,a=t.getLineMaxColumn(o);return r.move(i,o,a,0)},n.moveToBeginningOfBuffer=function(e,t,r,i){return r.move(i,1,1,0)},n.moveToEndOfBuffer=function(e,t,r,i){var o=t.getLineCount(),a=t.getLineMaxColumn(o);return r.move(i,o,a,0)},n}(),SI=function(){function n(){}return n.deleteRight=function(e,t,r,i){for(var o=[],a=e!==3,s=0,l=i.length;s1){var f=r.getLineContent(d.lineNumber),h=eo(f),p=h===-1?f.length+1:h+1;if(d.column<=p){var v=gn.visibleColumnFromColumn2(t,r,d),m=gn.prevIndentTabStop(v,t.indentSize),g=gn.columnFromVisibleColumn2(t,r,d.lineNumber,m);c=new q(d.lineNumber,g,d.lineNumber,d.column)}else c=new q(d.lineNumber,d.column-1,d.lineNumber,d.column)}else{var _=hr.left(t,r,d.lineNumber,d.column);c=new q(_.lineNumber,_.column,d.lineNumber,d.column)}}if(c.isEmpty()){o[s]=null;continue}c.startLineNumber!==c.endLineNumber&&(a=!0),o[s]=new Ir(c,"")}return[a,o]},n.cut=function(e,t,r){for(var i=[],o=0,a=r.length;o1?(u=l.lineNumber-1,c=t.getLineMaxColumn(l.lineNumber-1),d=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber)):(u=l.lineNumber,c=1,d=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber));var h=new q(u,c,d,f);h.isEmpty()?i[o]=null:i[o]=new Ir(h,"")}else i[o]=null;else i[o]=new Ir(s,"")}return new gi(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},n}(),HIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Qr=function(){function n(){}return n._createWord=function(e,t,r,i,o){return{start:i,end:o,wordType:t,nextCharClass:r}},n._findPreviousWordOnLine=function(e,t,r){var i=t.getLineContent(r.lineNumber);return this._doFindPreviousWordOnLine(i,e,r)},n._doFindPreviousWordOnLine=function(e,t,r){for(var i=0,o=r.column-2;o>=0;o--){var a=e.charCodeAt(o),s=t.get(a);if(s===0){if(i===2)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(s===2){if(i===1)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(s===1&&i!==0)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return i!==0?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},n._findEndOfWord=function(e,t,r,i){for(var o=e.length,a=i;a=0;o--){var a=e.charCodeAt(o),s=t.get(a);if(s===1||r===1&&s===2||r===2&&s===0)return o+1}return 0},n.moveWordLeft=function(e,t,r,i){var o=r.lineNumber,a=r.column,s=!1;a===1&&o>1&&(s=!0,o=o-1,a=t.getLineMaxColumn(o));var l=n._findPreviousWordOnLine(e,t,new he(o,a));if(i===0){if(l&&!s){var u=t.getLineLastNonWhitespaceColumn(o);if(u1?new he(r-1,e.getLineMaxColumn(r-1)):t;for(var o=e.getLineContent(r),a=t.column-1;a>1;a--){var s=o.charCodeAt(a-2),l=o.charCodeAt(a-1);if(s!==95&&l===95)return new he(r,a);if(Nc(s)&&Vs(l))return new he(r,a);if(Vs(s)&&Vs(l)&&a+1=l.start+1&&(l=n._findNextWordOnLine(e,t,new he(o,l.end+1))),l?a=l.start+1:a=t.getLineMaxColumn(o)),new he(o,a)},n._moveWordPartRight=function(e,t){var r=t.lineNumber,i=e.getLineMaxColumn(r);if(t.column===i)return r1?l=1:(s--,l=t.getLineMaxColumn(s)):(c&&l<=c.end+1&&(c=n._findPreviousWordOnLine(e,t,new he(s,c.start+1))),c?l=c.end+1:l>1?l=1:(s--,l=t.getLineMaxColumn(s))),new q(s,l,a.lineNumber,a.column)},n._deleteWordPartLeft=function(e,t){if(!t.isEmpty())return t;var r=t.getPosition(),i=n._moveWordPartLeft(e,r);return new q(r.lineNumber,r.column,i.lineNumber,i.column)},n._findFirstNonWhitespaceChar=function(e,t){for(var r=e.length,i=t;i=f.start+1&&(f=n._findNextWordOnLine(e,t,new he(s,f.end+1))),f?l=f.start+1:ll&&(u=l,c=e.model.getLineMaxColumn(u)),Rt.fromModelState(new ki(new q(a.lineNumber,1,u,c),0,new he(u,c),0))}var d=t.modelState.selectionStart.getStartPosition().lineNumber;if(a.lineNumberd){var l=e.viewModel.getLineCount(),f=s.lineNumber+1,h=1;return f>l&&(f=l,h=e.viewModel.getLineMaxColumn(f)),Rt.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,h,0))}else{var p=t.modelState.selectionStart.getEndPosition();return Rt.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0))}},n.word=function(e,t,r,i){var o=e.model.validatePosition(i);return Rt.fromModelState(Qr.word(e.config,e.model,t.modelState,r,o))},n.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new Rt(t.modelState,t.viewState);var r=t.viewState.position.lineNumber,i=t.viewState.position.column;return Rt.fromViewState(new ki(new q(r,i,r,i),0,new he(r,i),0))},n.moveTo=function(e,t,r,i,o){var a=e.model.validatePosition(i),s=o?e.validateViewPosition(new he(o.lineNumber,o.column),a):e.convertModelPositionToViewPosition(a);return Rt.fromViewState(t.viewState.move(r,s.lineNumber,s.column,0))},n.move=function(e,t,r){var i=r.select,o=r.value;switch(r.direction){case 0:return r.unit===4?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return r.unit===4?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return r.unit===2?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return r.unit===2?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 11:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 10:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 12:{for(var c=e.getCompletelyVisibleViewRange(),d=[],f=0,h=t.length;fr.endLineNumber-1&&(o=r.endLineNumber-1),o0},e.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},e.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},e.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},e.prototype.isDisposed=function(){return this._isDisposed},e.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var t=0,r=0,i=this._buffer.getLineCount(),o=1;o<=i;o++){var a=this._buffer.getLineLength(o);a>=pTe?r+=a:t+=a}return r>t},Object.defineProperty(e.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),e.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},e.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},e.prototype.updateOptions=function(t){this._assertNotDisposed();var r=typeof t.tabSize<"u"?t.tabSize:this._options.tabSize,i=typeof t.indentSize<"u"?t.indentSize:this._options.indentSize,o=typeof t.insertSpaces<"u"?t.insertSpaces:this._options.insertSpaces,a=typeof t.trimAutoWhitespace<"u"?t.trimAutoWhitespace:this._options.trimAutoWhitespace,s=new B_({tabSize:r,indentSize:i,insertSpaces:o,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:a});if(!this._options.equals(s)){var l=this._options.createChangeEvent(s);this._options=s,this._onDidChangeOptions.fire(l)}},e.prototype.detectIndentation=function(t,r){this._assertNotDisposed();var i=t4(this._buffer,r,t);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})},e._normalizeIndentationFromWhitespace=function(t,r,i){for(var o=0,a=0;athis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(t)},e.prototype.getLineLength=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(t)},e.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},e.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},e.prototype.getLineMinColumn=function(t){return this._assertNotDisposed(),1},e.prototype.getLineMaxColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(t)+1},e.prototype.getLineFirstNonWhitespaceColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(t)},e.prototype.getLineLastNonWhitespaceColumn=function(t){if(this._assertNotDisposed(),t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(t)},e.prototype._validateRangeRelaxedNoAllocations=function(t){var r=this._buffer.getLineCount(),i=t.startLineNumber,o=t.startColumn,a,s;if(i<1)a=1,s=1;else if(i>r)a=r,s=this.getLineMaxColumn(a);else if(a=i|0,o<=1)s=1;else{var l=this.getLineMaxColumn(a);o>=l?s=l:s=o|0}var u=t.endLineNumber,c=t.endColumn,d,f;if(u<1)d=1,f=1;else if(u>r)d=r,f=this.getLineMaxColumn(d);else if(d=u|0,c<=1)f=1;else{var l=this.getLineMaxColumn(d);c>=l?f=l:f=c|0}return i===a&&o===s&&u===d&&c===f&&t instanceof q&&!(t instanceof Xe)?t:new q(a,s,d,f)},e.prototype._isValidPosition=function(t,r,i){if(typeof t!="number"||typeof r!="number"||isNaN(t)||isNaN(r)||t<1||r<1||(t|0)!==t||(r|0)!==r)return!1;var o=this._buffer.getLineCount();if(t>o)return!1;var a=this.getLineMaxColumn(t);if(r>a)return!1;if(i&&r>1){var s=this._buffer.getLineCharCode(t,r-2);if(Mi(s))return!1}return!0},e.prototype._validatePosition=function(t,r,i){var o=Math.floor(typeof t=="number"&&!isNaN(t)?t:1),a=Math.floor(typeof r=="number"&&!isNaN(r)?r:1),s=this._buffer.getLineCount();if(o<1)return new pe(1,1);if(o>s)return new pe(s,this.getLineMaxColumn(s));if(a<=1)return new pe(o,1);var l=this.getLineMaxColumn(o);if(a>=l)return new pe(o,l);if(i){var u=this._buffer.getLineCharCode(o,a-2);if(Mi(u))return new pe(o,a-1)}return new pe(o,a)},e.prototype.validatePosition=function(t){return this._assertNotDisposed(),t instanceof pe&&this._isValidPosition(t.lineNumber,t.column,!0)?t:this._validatePosition(t.lineNumber,t.column,!0)},e.prototype._isValidRange=function(t,r){var i=t.startLineNumber,o=t.startColumn,a=t.endLineNumber,s=t.endColumn;if(!this._isValidPosition(i,o,!1)||!this._isValidPosition(a,s,!1))return!1;if(r){var l=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,s-2):0,c=Mi(l),d=Mi(u);return!c&&!d}return!0},e.prototype.validateRange=function(t){if(this._assertNotDisposed(),t instanceof q&&!(t instanceof Xe)&&this._isValidRange(t,!0))return t;var r=this._validatePosition(t.startLineNumber,t.startColumn,!1),i=this._validatePosition(t.endLineNumber,t.endColumn,!1),o=r.lineNumber,a=r.column,s=i.lineNumber,l=i.column,u=a>1?this._buffer.getLineCharCode(o,a-2):0,c=l>1&&l<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,l-2):0,d=Mi(u),f=Mi(c);return!d&&!f?new q(o,a,s,l):o===s&&a===l?new q(o,a-1,s,l-1):d&&f?new q(o,a-1,s,l+1):d?new q(o,a-1,s,l):new q(o,a,s,l+1)},e.prototype.modifyPosition=function(t,r){this._assertNotDisposed();var i=this.getOffsetAt(t)+r;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))},e.prototype.getFullModelRange=function(){this._assertNotDisposed();var t=this.getLineCount();return new q(1,1,t,this.getLineMaxColumn(t))},e.prototype.findMatchesLineByLine=function(t,r,i,o){return this._buffer.findMatchesLineByLine(t,r,i,o)},e.prototype.findMatches=function(t,r,i,o,a,s,l){l===void 0&&(l=hTe),this._assertNotDisposed();var u;if(q.isIRange(r)?u=this.validateRange(r):u=this.getFullModelRange(),!i&&t.indexOf(` +`)<0){var c=new cc(t,i,o,a),d=c.parseSearchRequest();return d?this.findMatchesLineByLine(u,d,s,l):[]}return t_.findMatches(this,new cc(t,i,o,a),u,s,l)},e.prototype.findNextMatch=function(t,r,i,o,a,s){this._assertNotDisposed();var l=this.validatePosition(r);if(!i&&t.indexOf(` +`)<0){var u=new cc(t,i,o,a),c=u.parseSearchRequest();if(!c)return null;var d=this.getLineCount(),f=new q(l.lineNumber,l.column,d,this.getLineMaxColumn(d)),h=this.findMatchesLineByLine(f,c,s,1);return t_.findNextMatch(this,new cc(t,i,o,a),l,s),h.length>0||(f=new q(1,1,l.lineNumber,this.getLineMaxColumn(l.lineNumber)),h=this.findMatchesLineByLine(f,c,s,1),h.length>0)?h[0]:null}return t_.findNextMatch(this,new cc(t,i,o,a),l,s)},e.prototype.findPreviousMatch=function(t,r,i,o,a,s){this._assertNotDisposed();var l=this.validatePosition(r);return t_.findPreviousMatch(this,new cc(t,i,o,a),l,s)},e.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},e.prototype.pushEOL=function(t){var r=this.getEOL()===` +`?0:1;if(r!==t)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e.prototype.pushEditOperations=function(t,r,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(t,r,i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e.prototype._pushEditOperations=function(t,r,i){var o=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var a=r.map(function(w){return{range:o.validateRange(w.range),text:w.text}}),s=!0,l=0,u=t.length;lc.endLineNumber,m=c.startLineNumber>p.endLineNumber;if(!v&&!m){d=!0;break}}if(!d){s=!1;break}}if(s)for(var l=0,u=this._trimAutoWhitespaceLines.length;lp.endLineNumber)&&!(g===p.startLineNumber&&p.startColumn===_&&p.isEmpty()&&C&&C.length>0&&C.charAt(0)===` +`)&&!(g===p.startLineNumber&&p.startColumn===1&&p.isEmpty()&&C&&C.length>0&&C.charAt(C.length-1)===` +`)){y=!1;break}}y&&r.push({range:new q(g,1,g,_),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(t,r,i)},e.prototype.applyEdits=function(t){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},e._eolCount=function(t){for(var r=0,i=0,o=0,a=t.length;o=0;w--){var b=v+w,S=s-c-C+b;u.push(new iTe(b,this.getLineContent(S)))}if(ythis.getLineCount()?[]:this.getLinesDecorations(t,t,r,i)},e.prototype.getLinesDecorations=function(t,r,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var a=this.getLineCount(),s=Math.min(a,Math.max(1,t)),l=Math.min(a,Math.max(1,r)),u=this.getLineMaxColumn(l);return this._getDecorationsInRange(new q(s,1,l,u),i,o)},e.prototype.getDecorationsInRange=function(t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=this.validateRange(t);return this._getDecorationsInRange(o,r,i)},e.prototype.getOverviewRulerDecorations=function(t,r){t===void 0&&(t=0),r===void 0&&(r=!1);var i=this.getVersionId(),o=this._decorationsTree.search(t,r,!0,i);return this._ensureNodesHaveRanges(o)},e.prototype.getAllDecorations=function(t,r){t===void 0&&(t=0),r===void 0&&(r=!1);var i=this.getVersionId(),o=this._decorationsTree.search(t,r,!1,i);return this._ensureNodesHaveRanges(o)},e.prototype._getDecorationsInRange=function(t,r,i){var o=this._buffer.getOffsetAt(t.startLineNumber,t.startColumn),a=this._buffer.getOffsetAt(t.endLineNumber,t.endColumn),s=this.getVersionId(),l=this._decorationsTree.intervalSearch(o,a,r,i,s);return this._ensureNodesHaveRanges(l)},e.prototype._ensureNodesHaveRanges=function(t){for(var r=0,i=t.length;r0&&s>=1;s--){var l=this.getLineFirstNonWhitespaceColumn(s);if(l!==0&&l=0;s--){var c=this._tokens._tokenizeText(this._buffer,o[s],u);c?u=c.endState.clone():u=a.clone()}for(var d=new bS,s=t;s<=r;s++){var f=this.getLineContent(s),c=this._tokens._tokenizeText(this._buffer,f,u);c?(this._tokens._setTokens(this._tokens.languageIdentifier.id,s-1,f.length,c.tokens),this._tokens._setIsInvalid(s-1,!0),this._tokens._setState(s-1,u),u=c.endState.clone(),d.registerChangedTokens(s)):u=a.clone()}var h=d.build();h&&this._onDidChangeTokens.fire(h)}},e.prototype.flushTokens=function(){this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},e.prototype.forceTokenization=function(t){if(t<1||t>this.getLineCount())throw new Error("Illegal value for lineNumber");var r=new bS;this._tokens._updateTokensUntilLine(this._buffer,r,t);var i=r.build();i&&this._onDidChangeTokens.fire(i)},e.prototype.isCheapToTokenize=function(t){return this._tokens.isCheapToTokenize(t)?tthis.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(t)},e.prototype._getLineTokens=function(t){var r=this._buffer.getLineContent(t);return this._tokens.getTokens(this._languageIdentifier.id,t-1,r)},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e.prototype.getModeId=function(){return this._languageIdentifier.language},e.prototype.setMode=function(t){if(this._languageIdentifier.id!==t.id){var r={oldLanguage:this._languageIdentifier.language,newLanguage:t.language};this._languageIdentifier=t,this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(r),this._onDidChangeLanguageConfiguration.fire({})}},e.prototype.getLanguageIdAtPosition=function(t,r){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var i=this.validatePosition({lineNumber:t,column:r}),o=i.lineNumber,a=i.column,s=this._getLineTokens(o);return s.getLanguageId(s.findTokenIndexAtOffset(a-1))},e.prototype._beginBackgroundTokenization=function(){var t=this;this._shouldAutoTokenize()&&this._revalidateTokensTimeout===-1&&(this._revalidateTokensTimeout=setTimeout(function(){t._revalidateTokensTimeout=-1,t._revalidateTokensNow()},0))},e.prototype._warmUpTokens=function(){var t=Math.min(100,this.getLineCount());this._revalidateTokensNow(t),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},e.prototype._revalidateTokensNow=function(t){t===void 0&&(t=this._buffer.getLineCount());for(var r=20,i=new bS,o=VN.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(o.elapsed()>r);){var a=this._tokens._tokenizeOneLine(this._buffer,i);if(a>=t)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var s=i.build();s&&this._onDidChangeTokens.fire(s)},e.prototype.emitModelTokensChangedEvent=function(t){this._isDisposing||this._onDidChangeTokens.fire(t)},e.prototype.getWordAtPosition=function(t){this._assertNotDisposed();var r=this.validatePosition(t),i=this.getLineContent(r.lineNumber),o=this._getLineTokens(r.lineNumber),a=o.findTokenIndexAtOffset(r.column-1),s=e._findLanguageBoundaries(o,a),l=s[0],u=s[1],c=uL(r.column,Ut.getWordDefinition(o.getLanguageId(a)),i.substring(l,u),l);if(c&&c.startColumn<=t.column&&t.column<=c.endColumn)return c;if(a>0&&l===r.column-1){var d=e._findLanguageBoundaries(o,a-1),f=d[0],h=d[1],p=uL(r.column,Ut.getWordDefinition(o.getLanguageId(a-1)),i.substring(f,h),f);if(p&&p.startColumn<=t.column&&t.column<=p.endColumn)return p}return null},e._findLanguageBoundaries=function(t,r){for(var i=t.getLanguageId(r),o=0,a=r;a>=0&&t.getLanguageId(a)===i;a--)o=t.getStartOffset(a);for(var s=t.getLineContent().length,a=r,l=t.getCount();a0&&i.getStartOffset(a)===t.column-1){var u=i.getStartOffset(a);a--;var p=Ut.getBracketsSupport(i.getLanguageId(a));if(p&&!ac(i.getStandardTokenType(a))){var l=Math.max(i.getStartOffset(a),t.column-1-p.maxBracketLength),d=sc.findPrevBracketInToken(p.reversedRegex,r,o,l,u);if(d&&d.startColumn<=t.column&&t.column<=d.endColumn){var f=o.substring(d.startColumn-1,d.endColumn-1);f=f.toLowerCase();var h=this._matchFoundBracket(d,p.textIsBracket[f],p.textIsOpenBracket[f]);if(h)return h}}}return null},e.prototype._matchFoundBracket=function(t,r,i){if(!r)return null;if(i){var o=this._findMatchingBracketDown(r,t.getEndPosition());if(o)return[t,o]}else{var o=this._findMatchingBracketUp(r,t.getStartPosition());if(o)return[t,o]}return null},e.prototype._findMatchingBracketUp=function(t,r){for(var i=t.languageIdentifier.id,o=t.reversedRegex,a=-1,s=r.lineNumber;s>=1;s--){var l=this._getLineTokens(s),u=l.getCount(),c=this._buffer.getLineContent(s),d=u-1,f=-1;for(s===r.lineNumber&&(d=l.findTokenIndexAtOffset(r.column-1),f=r.column-1);d>=0;d--){var h=l.getLanguageId(d),p=l.getStandardTokenType(d),v=l.getStartOffset(d),m=l.getEndOffset(d);if(f===-1&&(f=m),h===i&&!ac(p))for(;;){var g=sc.findPrevBracketInToken(o,s,c,v,f);if(!g)break;var _=c.substring(g.startColumn-1,g.endColumn-1);if(_=_.toLowerCase(),_===t.open?a++:_===t.close&&a--,a===0)return g;f=g.startColumn-1}f=-1}}return null},e.prototype._findMatchingBracketDown=function(t,r){for(var i=t.languageIdentifier.id,o=t.forwardRegex,a=1,s=r.lineNumber,l=this.getLineCount();s<=l;s++){var u=this._getLineTokens(s),c=u.getCount(),d=this._buffer.getLineContent(s),f=0,h=0;for(s===r.lineNumber&&(f=u.findTokenIndexAtOffset(r.column-1),h=r.column-1);f=1;a--){var s=this._getLineTokens(a),l=s.getCount(),u=this._buffer.getLineContent(a),c=l-1,d=-1;for(a===r.lineNumber&&(c=s.findTokenIndexAtOffset(r.column-1),d=r.column-1);c>=0;c--){var f=s.getLanguageId(c),h=s.getStandardTokenType(c),p=s.getStartOffset(c),v=s.getEndOffset(c);if(d===-1&&(d=v),i!==f&&(i=f,o=Ut.getBracketsSupport(i)),o&&!ac(h)){var m=sc.findPrevBracketInToken(o.reversedRegex,a,u,p,d);if(m)return this._toFoundBracket(o,m)}d=-1}}return null},e.prototype.findNextBracket=function(t){for(var r=this.validatePosition(t),i=-1,o=null,a=r.lineNumber,s=this.getLineCount();a<=s;a++){var l=this._getLineTokens(a),u=l.getCount(),c=this._buffer.getLineContent(a),d=0,f=0;for(a===r.lineNumber&&(d=l.findTokenIndexAtOffset(r.column-1),f=r.column-1);da)throw new Error("Illegal value for lineNumber");for(var s=Ut.getFoldingRules(this._languageIdentifier.id),l=!!(s&&s.offSide),u=-2,c=-1,d=-2,f=-1,h=function(M){if(u!==-1&&(u===-2||u>M-1)){u=-1,c=-1;for(var H=M-2;H>=0;H--){var k=o._computeIndentLevel(H);if(k>=0){u=H,c=k;break}}}if(d===-2){d=-1,f=-1;for(var H=M;H=0){d=H,f=W;break}}}},p=-2,v=-1,m=-2,g=-1,_=function(M){if(p===-2){p=-1,v=-1;for(var H=M-2;H>=0;H--){var k=o._computeIndentLevel(H);if(k>=0){p=H,v=k;break}}}if(m!==-1&&(m===-2||m=0){m=H,g=W;break}}}},y=0,C=!0,w=0,b=!0,S=0,E=0;C||b;E++){var L=t-E,T=t+E;if(E!==0&&(L<1||La||T>i)&&(b=!1),E>5e4&&(C=!1,b=!1),C){var R=void 0,N=this._computeIndentLevel(L-1);if(N>=0?(d=L-1,f=N,R=Math.ceil(N/this._options.indentSize)):(h(L),R=this._getIndentLevelForWhitespaceLine(l,c,f)),E===0){if(y=L,w=T,S=R,S===0)return{startLineNumber:y,endLineNumber:w,indent:S};continue}R>=S?y=L:C=!1}if(b){var D=void 0,N=this._computeIndentLevel(T-1);N>=0?(p=T-1,v=N,D=Math.ceil(N/this._options.indentSize)):(_(T),D=this._getIndentLevelForWhitespaceLine(l,v,g)),D>=S?w=T:b=!1}}return{startLineNumber:y,endLineNumber:w,indent:S}},e.prototype.getLinesIndentGuides=function(t,r){this._assertNotDisposed();var i=this.getLineCount();if(t<1||t>i)throw new Error("Illegal value for startLineNumber");if(r<1||r>i)throw new Error("Illegal value for endLineNumber");for(var o=Ut.getFoldingRules(this._languageIdentifier.id),a=!!(o&&o.offSide),s=new Array(r-t+1),l=-2,u=-1,c=-2,d=-1,f=t;f<=r;f++){var h=f-t,p=this._computeIndentLevel(f-1);if(p>=0){l=f-1,u=p,s[h]=Math.ceil(p/this._options.indentSize);continue}if(l===-2){l=-1,u=-1;for(var v=f-2;v>=0;v--){var m=this._computeIndentLevel(v);if(m>=0){l=v,u=m;break}}}if(c!==-1&&(c===-2||c=0){c=v,d=m;break}}}s[h]=this._getIndentLevelForWhitespaceLine(a,u,d)}return s},e.prototype._getIndentLevelForWhitespaceLine=function(t,r,i){return r===-1||i===-1?0:r0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(t):this._deferredEvent=t;return}this._fastEmitter.fire(t),this._slowEmitter.fire(t)},e}(Ue),_Te=function(){return!0},m4=function(){return!1},yTe=function(n){return n===" "||n===" "},s$=function(){function n(e,t,r){this._languageIdentifier=e;var i=r.editor;this.readOnly=i.readOnly,this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:n._getShouldAutoClose(e,this.autoClosingQuotes),bracket:n._getShouldAutoClose(e,this.autoClosingBrackets)};var o=n._getAutoClosingPairs(e);if(o)for(var a=0,s=o;a=i.length?!1:EU(i.charCodeAt(r))},n.isHighSurrogate=function(e,t,r){var i=e.getLineContent(t);return r<0||r>=i.length?!1:Mi(i.charCodeAt(r))},n.isInsideSurrogatePair=function(e,t,r){return this.isHighSurrogate(e,t,r-2)},n.visibleColumnFromColumn=function(e,t,r){var i=e.length;i>t-1&&(i=t-1);for(var o=0,a=0;a=t){var u=t-o,c=l-t;return cs?s:o},n.nextRenderTabStop=function(e,t){return e+t-e%t},n.nextIndentTabStop=function(e,t){return e+t-e%t},n.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},n.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},n}();function Bl(n){return n==="'"||n==='"'||n==="`"}var mp=function(){function n(){}return n._columnSelect=function(e,t,r,i,o,a){for(var s=Math.abs(o-r)+1,l=r>o,u=i>a,c=ia||gi||m1&&o--,this.columnSelect(e,t,r.selection,i,o)},n.columnSelectRight=function(e,t,r,i,o){for(var a=0,s=Math.min(r.position.lineNumber,i),l=Math.max(r.position.lineNumber,i),u=s;u<=l;u++){var c=t.getLineMaxColumn(u),d=gn.visibleColumnFromColumn2(e,t,new pe(u,c));a=Math.max(a,d)}return ot.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,r.selection,o,a)},n}(),Lr=function(){function n(e,t,r){r===void 0&&(r=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=r}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Xe(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)},n}(),i_=function(){function n(e,t,r){r===void 0&&(r=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=r}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Xe(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)},n}(),_p=function(){function n(e,t,r,i,o){o===void 0&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=r,this.insertsAutoWhitespace=o}return n.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},n.prototype.computeCursorState=function(e,t){var r=t.getInverseEditOperations(),i=r[0].range;return new Xe(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)},n}(),eb=function(){function n(e,t,r){this._range=e,this._text=t,this._initialSelection=r}return n.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},n.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},n}(),o_=function(){function n(e,t,r){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=r}return n}(),pr=function(){function n(){}return n.left=function(e,t,r,i){return i>t.getLineMinColumn(r)?gn.isLowSurrogate(t,r,i-2)?i=i-2:i=i-1:r>1&&(r=r-1,i=t.getLineMaxColumn(r)),new o_(r,i,0)},n.moveLeft=function(e,t,r,i,o){var a,s;if(r.hasSelection()&&!i)a=r.selection.startLineNumber,s=r.selection.startColumn;else{var l=n.left(e,t,r.position.lineNumber,r.position.column-(o-1));a=l.lineNumber,s=l.column}return r.move(i,a,s,0)},n.right=function(e,t,r,i){return iu?(r=u,s?i=t.getLineMaxColumn(r):(i=Math.min(t.getLineMaxColumn(r),i),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1))):(i=gn.columnFromVisibleColumn2(e,t,r,l),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1)),o=l-gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize),new o_(r,i,o)},n.moveDown=function(e,t,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.endLineNumber,s=r.selection.endColumn):(a=r.position.lineNumber,s=r.position.column);var l=n.down(e,t,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,l.lineNumber,l.column,l.leftoverVisibleColumns)},n.translateDown=function(e,t,r){var i=r.selection,o=n.down(e,t,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),a=n.down(e,t,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new ki(new q(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new pe(a.lineNumber,a.column),a.leftoverVisibleColumns)},n.up=function(e,t,r,i,o,a,s){var l=gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize)+o;return r=r-a,r<1?(r=1,s?i=t.getLineMinColumn(r):(i=Math.min(t.getLineMaxColumn(r),i),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1))):(i=gn.columnFromVisibleColumn2(e,t,r,l),gn.isInsideSurrogatePair(t,r,i)&&(i=i-1)),o=l-gn.visibleColumnFromColumn(t.getLineContent(r),i,e.tabSize),new o_(r,i,o)},n.moveUp=function(e,t,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.startLineNumber,s=r.selection.startColumn):(a=r.position.lineNumber,s=r.position.column);var l=n.up(e,t,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,l.lineNumber,l.column,l.leftoverVisibleColumns)},n.translateUp=function(e,t,r){var i=r.selection,o=n.up(e,t,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),a=n.up(e,t,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new ki(new q(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new pe(a.lineNumber,a.column),a.leftoverVisibleColumns)},n.moveToBeginningOfLine=function(e,t,r,i){var o=r.position.lineNumber,a=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||a,l,u=r.position.column;return u===s?l=a:l=s,r.move(i,o,l,0)},n.moveToEndOfLine=function(e,t,r,i){var o=r.position.lineNumber,a=t.getLineMaxColumn(o);return r.move(i,o,a,0)},n.moveToBeginningOfBuffer=function(e,t,r,i){return r.move(i,1,1,0)},n.moveToEndOfBuffer=function(e,t,r,i){var o=t.getLineCount(),a=t.getLineMaxColumn(o);return r.move(i,o,a,0)},n}(),CI=function(){function n(){}return n.deleteRight=function(e,t,r,i){for(var o=[],a=e!==3,s=0,l=i.length;s1){var f=r.getLineContent(d.lineNumber),h=eo(f),p=h===-1?f.length+1:h+1;if(d.column<=p){var v=gn.visibleColumnFromColumn2(t,r,d),m=gn.prevIndentTabStop(v,t.indentSize),g=gn.columnFromVisibleColumn2(t,r,d.lineNumber,m);c=new q(d.lineNumber,g,d.lineNumber,d.column)}else c=new q(d.lineNumber,d.column-1,d.lineNumber,d.column)}else{var _=pr.left(t,r,d.lineNumber,d.column);c=new q(_.lineNumber,_.column,d.lineNumber,d.column)}}if(c.isEmpty()){o[s]=null;continue}c.startLineNumber!==c.endLineNumber&&(a=!0),o[s]=new Lr(c,"")}return[a,o]},n.cut=function(e,t,r){for(var i=[],o=0,a=r.length;o1?(u=l.lineNumber-1,c=t.getLineMaxColumn(l.lineNumber-1),d=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber)):(u=l.lineNumber,c=1,d=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber));var h=new q(u,c,d,f);h.isEmpty()?i[o]=null:i[o]=new Lr(h,"")}else i[o]=null;else i[o]=new Lr(s,"")}return new gi(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},n}(),wTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Qr=function(){function n(){}return n._createWord=function(e,t,r,i,o){return{start:i,end:o,wordType:t,nextCharClass:r}},n._findPreviousWordOnLine=function(e,t,r){var i=t.getLineContent(r.lineNumber);return this._doFindPreviousWordOnLine(i,e,r)},n._doFindPreviousWordOnLine=function(e,t,r){for(var i=0,o=r.column-2;o>=0;o--){var a=e.charCodeAt(o),s=t.get(a);if(s===0){if(i===2)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(s===2){if(i===1)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(s===1&&i!==0)return this._createWord(e,i,s,o+1,this._findEndOfWord(e,t,i,o+1))}return i!==0?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},n._findEndOfWord=function(e,t,r,i){for(var o=e.length,a=i;a=0;o--){var a=e.charCodeAt(o),s=t.get(a);if(s===1||r===1&&s===2||r===2&&s===0)return o+1}return 0},n.moveWordLeft=function(e,t,r,i){var o=r.lineNumber,a=r.column,s=!1;a===1&&o>1&&(s=!0,o=o-1,a=t.getLineMaxColumn(o));var l=n._findPreviousWordOnLine(e,t,new pe(o,a));if(i===0){if(l&&!s){var u=t.getLineLastNonWhitespaceColumn(o);if(u1?new pe(r-1,e.getLineMaxColumn(r-1)):t;for(var o=e.getLineContent(r),a=t.column-1;a>1;a--){var s=o.charCodeAt(a-2),l=o.charCodeAt(a-1);if(s!==95&&l===95)return new pe(r,a);if(Dc(s)&&Hs(l))return new pe(r,a);if(Hs(s)&&Hs(l)&&a+1=l.start+1&&(l=n._findNextWordOnLine(e,t,new pe(o,l.end+1))),l?a=l.start+1:a=t.getLineMaxColumn(o)),new pe(o,a)},n._moveWordPartRight=function(e,t){var r=t.lineNumber,i=e.getLineMaxColumn(r);if(t.column===i)return r1?l=1:(s--,l=t.getLineMaxColumn(s)):(c&&l<=c.end+1&&(c=n._findPreviousWordOnLine(e,t,new pe(s,c.start+1))),c?l=c.end+1:l>1?l=1:(s--,l=t.getLineMaxColumn(s))),new q(s,l,a.lineNumber,a.column)},n._deleteWordPartLeft=function(e,t){if(!t.isEmpty())return t;var r=t.getPosition(),i=n._moveWordPartLeft(e,r);return new q(r.lineNumber,r.column,i.lineNumber,i.column)},n._findFirstNonWhitespaceChar=function(e,t){for(var r=e.length,i=t;i=f.start+1&&(f=n._findNextWordOnLine(e,t,new pe(s,f.end+1))),f?l=f.start+1:ll&&(u=l,c=e.model.getLineMaxColumn(u)),Rt.fromModelState(new ki(new q(a.lineNumber,1,u,c),0,new pe(u,c),0))}var d=t.modelState.selectionStart.getStartPosition().lineNumber;if(a.lineNumberd){var l=e.viewModel.getLineCount(),f=s.lineNumber+1,h=1;return f>l&&(f=l,h=e.viewModel.getLineMaxColumn(f)),Rt.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,h,0))}else{var p=t.modelState.selectionStart.getEndPosition();return Rt.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0))}},n.word=function(e,t,r,i){var o=e.model.validatePosition(i);return Rt.fromModelState(Qr.word(e.config,e.model,t.modelState,r,o))},n.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new Rt(t.modelState,t.viewState);var r=t.viewState.position.lineNumber,i=t.viewState.position.column;return Rt.fromViewState(new ki(new q(r,i,r,i),0,new pe(r,i),0))},n.moveTo=function(e,t,r,i,o){var a=e.model.validatePosition(i),s=o?e.validateViewPosition(new pe(o.lineNumber,o.column),a):e.convertModelPositionToViewPosition(a);return Rt.fromViewState(t.viewState.move(r,s.lineNumber,s.column,0))},n.move=function(e,t,r){var i=r.select,o=r.value;switch(r.direction){case 0:return r.unit===4?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return r.unit===4?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return r.unit===2?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return r.unit===2?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 11:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 10:{var a=t[0],s=e.getCompletelyVisibleModelRange(),l=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(l);return[this._moveToModelPosition(e,a,i,l,u)]}case 12:{for(var c=e.getCompletelyVisibleViewRange(),d=[],f=0,h=t.length;fr.endLineNumber-1&&(o=r.endLineNumber-1),o1){var v=gn.visibleColumnFromColumn(h,p+1,a);if(v%s!==0&&e.isCheapToTokenize(f-1)){var m=Ut.getRawEnterActionAtPosition(e,f-1,e.getLineMaxColumn(f-1));if(m){if(d=c,m.appendText)for(var g=0,_=m.appendText.length;g<_&&d1){var s=void 0;for(s=r-1;s>=1;s--){var l=t.getLineContent(s),u=Au(l);if(u>=0)break}if(s<1)return null;var c=t.getLineMaxColumn(s),d=Ut.getEnterAction(t,new q(s,c,s,c));d&&(o=d.indentation,i=d.enterAction,i&&(o+=i.appendText))}return i&&(i===$n.Indent&&(o=n.shiftIndent(e,o)),i===$n.Outdent&&(o=n.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null},n._replaceJumpToNextIndent=function(e,t,r,i){var o="",a=r.getStartPosition();if(e.insertSpaces)for(var s=gn.visibleColumnFromColumn2(e,t,a),l=e.indentSize,u=l-s%l,c=0;c1){var v=gn.visibleColumnFromColumn(h,p+1,a);if(v%s!==0&&e.isCheapToTokenize(f-1)){var m=Ut.getRawEnterActionAtPosition(e,f-1,e.getLineMaxColumn(f-1));if(m){if(d=c,m.appendText)for(var g=0,_=m.appendText.length;g<_&&d1){var s=void 0;for(s=r-1;s>=1;s--){var l=t.getLineContent(s),u=Du(l);if(u>=0)break}if(s<1)return null;var c=t.getLineMaxColumn(s),d=Ut.getEnterAction(t,new q(s,c,s,c));d&&(o=d.indentation,i=d.enterAction,i&&(o+=i.appendText))}return i&&(i===$n.Indent&&(o=n.shiftIndent(e,o)),i===$n.Outdent&&(o=n.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null},n._replaceJumpToNextIndent=function(e,t,r,i){var o="",a=r.getStartPosition();if(e.insertSpaces)for(var s=gn.visibleColumnFromColumn2(e,t,a),l=e.indentSize,u=l-s%l,c=0;c=0?i=i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,S+1)):i=i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),r)return new t_(i,w+e.normalizeIndentation(m.afterEnter),!0);var L=0;return b<=S+1&&(e.insertSpaces||(y=Math.ceil(y/e.indentSize)),L=Math.min(y+1-e.normalizeIndentation(m.afterEnter).length-1,0)),new mp(i,w+e.normalizeIndentation(m.afterEnter),0,L,!0)}else return n._typeCommand(i,` -`+e.normalizeIndentation(_),r)},n._isAutoIndentType=function(e,t,r){if(!e.autoIndent)return!1;for(var i=0,o=r.length;i1&&a!=="always"){var h=sd(e.wordSeparators),p=f.charCodeAt(d.column-2),v=h.get(p);if(v===0)return!1}var m=f.charAt(d.column-1);if(m){var g=n._isBeforeClosingBrace(e,i,m);if(!g&&!s(m))return!1}if(!t.isCheapToTokenize(d.lineNumber))return!1;t.forceTokenization(d.lineNumber);var _=t.getLineTokens(d.lineNumber),y=!1;try{y=Ut.shouldAutoClosePair(i,_,d.column)}catch(b){et(b)}if(!y)return!1}return!0},n._runAutoClosingOpenCharType=function(e,t,r,i,o){for(var a=[],s=0,l=i.length;s2){var f=sd(t.wordSeparators),h=l.charCodeAt(s.column-3),p=f.get(h);if(p===0)continue}var v=l.charAt(s.column-1);if(v){var m=n._isBeforeClosingBrace(t,u,v),g=kl(u)?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket;if(m||!g(v))continue}if(!r.isCheapToTokenize(s.lineNumber))continue;r.forceTokenization(s.lineNumber);var _=r.getLineTokens(s.lineNumber),y=!1;try{y=Ut.shouldAutoClosePair(u,_,s.column-1)}catch(w){et(w)}if(y){var b=t.autoClosingPairsOpen[u];o[a]=new mp(i[a],b,0,-b.length)}}}return new gi(1,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},n.typeWithInterceptors=function(e,t,r,i,o){if(o===` -`){for(var a=[],s=0,l=i.length;s1)for(var C=b.modelState?b.modelState.position:null,S=b.viewState?b.viewState.position:null,L=0,E=w.length;Lw&&(b=w);var C=new q(b,1,b,g.context.model.getLineMaxColumn(b)),S=0;if(y.at)switch(y.at){case Sf.RawAtArgument.Top:S=3;break;case Sf.RawAtArgument.Center:S=1;break;case Sf.RawAtArgument.Bottom:S=4;break}var L=g.context.convertModelRangeToViewRange(C);g.revealRange(!1,L,S,0)},m}(Mn))),n.SelectAll=Me(new(function(v){Kt(m,v);function m(){return v.call(this,{id:"selectAll",precondition:null})||this}return m.prototype.runCoreEditorCommand=function(g,_){g.context.model.pushStackElement(),g.setStates(_.source,3,[Wr.selectAll(g.context,g.getPrimaryCursor())])},m}(Mn))),n.SetSelection=Me(new(function(v){Kt(m,v);function m(){return v.call(this,{id:"setSelection",precondition:null})||this}return m.prototype.runCoreEditorCommand=function(g,_){g.context.model.pushStackElement(),g.setStates(_.source,3,[Rt.fromModelSelection(_.selection)])},m}(Mn)))})(oi||(oi={}));var EI;(function(n){var e=function(t){Kt(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.runEditorCommand=function(i,o,a){var s=o._getCursors();s&&this.runCoreEditingCommand(o,s,a||{})},r}(ro);n.CoreEditingCommand=e,n.LineBreakInsert=Me(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"lineBreakInsert",precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:Q.textInputFocus,primary:0,mac:{primary:301}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.lineBreakInsert(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection})))},r}(e))),n.Outdent=Me(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"outdent",precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:dt.and(Q.editorTextFocus,Q.tabDoesNotMoveFocus),primary:1026}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.outdent(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection}))),i.pushUndoStop()},r}(e))),n.Tab=Me(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"tab",precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:dt.and(Q.editorTextFocus,Q.tabDoesNotMoveFocus),primary:2}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.tab(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection}))),i.pushUndoStop()},r}(e))),n.DeleteLeft=Me(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"deleteLeft",precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:Q.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){var s=SI.deleteLeft(o.getPrevEditOperationType(),o.context.config,o.context.model,o.getAll().map(function(c){return c.modelState.selection})),l=s[0],u=s[1];l&&i.pushUndoStop(),i.executeCommands(this.id,u),o.setPrevEditOperationType(2)},r}(e))),n.DeleteRight=Me(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"deleteRight",precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:Q.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){var s=SI.deleteRight(o.getPrevEditOperationType(),o.context.config,o.context.model,o.getAll().map(function(c){return c.modelState.selection})),l=s[0],u=s[1];l&&i.pushUndoStop(),i.executeCommands(this.id,u),o.setPrevEditOperationType(3)},r}(e)))})(EI||(EI={}));function ld(n){n.register()}var mA=function(n){Kt(e,n);function e(t){var r=n.call(this,t)||this;return r._editorHandler=t.editorHandler,r._inputHandler=t.inputHandler,r}return e.prototype.runCommand=function(t,r){var i=t.get(Pn).getFocusedCodeEditor();if(i&&i.hasTextFocus())return this._runEditorHandler(t,i,r);var o=document.activeElement;if(o&&["input","textarea"].indexOf(o.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var a=t.get(Pn).getActiveCodeEditor();if(a)return a.focus(),this._runEditorHandler(t,a,r)},e.prototype._runEditorHandler=function(t,r,i){var o=this._editorHandler;typeof o=="string"?r.trigger("keyboard",o,i):(i=i||{},i.source="keyboard",o.runEditorCommand(t,r,i))},e}(qN),ib=function(n){Kt(e,n);function e(t,r,i){var o=n.call(this,{id:t,precondition:null,description:i})||this;return o._handlerId=r,o}return e.prototype.runCommand=function(t,r){var i=t.get(Pn).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,r)},e}(qN);ld(new mA({editorHandler:oi.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:Q.textInputFocus,kbOpts:{weight:Ht,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:x({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}}));ld(new mA({editorHandler:hn.Undo,inputHandler:"undo",id:hn.Undo,precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:Q.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:x({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}}));ld(new ib("default:"+hn.Undo,hn.Undo));ld(new mA({editorHandler:hn.Redo,inputHandler:"redo",id:hn.Redo,precondition:Q.writable,kbOpts:{weight:Ht,kbExpr:Q.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:x({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}}));ld(new ib("default:"+hn.Redo,hn.Redo));function Hh(n,e){ld(new ib("default:"+n,n)),ld(new ib(n,n,e))}Hh(hn.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});Hh(hn.ReplacePreviousChar);Hh(hn.CompositionStart);Hh(hn.CompositionEnd);Hh(hn.Paste);Hh(hn.Cut);var $Ie=function(){function n(e,t,r,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=r,this.commandDelegate=i}return n.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},n.prototype.paste=function(e,t,r,i){this.commandDelegate.paste(e,t,r,i)},n.prototype.type=function(e,t){this.commandDelegate.type(e,t)},n.prototype.replacePreviousChar=function(e,t,r){this.commandDelegate.replacePreviousChar(e,t,r)},n.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},n.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},n.prototype.cut=function(e){this.commandDelegate.cut(e)},n.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(oi.SetSelection,{source:e,selection:t})},n.prototype._validateViewColumn=function(e){var 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?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):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn):this._moveToSelect(e.position):this.moveTo(e.position)},n.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},n.prototype.moveTo=function(e){this._execMouseCommand(oi.MoveTo,this._usualArgs(e))},n.prototype._moveToSelect=function(e){this._execMouseCommand(oi.MoveToSelect,this._usualArgs(e))},n.prototype._columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(oi.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},n.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(oi.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},n.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(oi.LastCursorMoveToSelect,this._usualArgs(e))},n.prototype._wordSelect=function(e){this._execMouseCommand(oi.WordSelect,this._usualArgs(e))},n.prototype._wordSelectDrag=function(e){this._execMouseCommand(oi.WordSelectDrag,this._usualArgs(e))},n.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(oi.LastCursorWordSelect,this._usualArgs(e))},n.prototype._lineSelect=function(e){this._execMouseCommand(oi.LineSelect,this._usualArgs(e))},n.prototype._lineSelectDrag=function(e){this._execMouseCommand(oi.LineSelectDrag,this._usualArgs(e))},n.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(oi.LastCursorLineSelect,this._usualArgs(e))},n.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(oi.LastCursorLineSelectDrag,this._usualArgs(e))},n.prototype._selectAll=function(){this._execMouseCommand(oi.SelectAll,{})},n.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},n.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},n.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},n.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},n.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},n.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},n.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},n.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},n.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},n.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},n.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},n}(),c$=function(){function n(e){this._createLine=e,this._set(1,[])}return n.prototype.flush=function(){this._set(1,[])},n.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},n.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},n.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},n.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},n.prototype.getCount=function(){return this._lines.length},n.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},n.prototype.onLinesDeleted=function(e,t){if(this.getCount()===0)return null;var r=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var a=0,s=0,l=r;l<=i;l++){var u=l-this._rendLineNumberStart;e<=l&&l<=t&&(s===0?(a=u,s=1):s++)}if(e=r&&a<=i&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),o=!0);return o},n.prototype.onLinesInserted=function(e,t){if(this.getCount()===0)return null;var r=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=r,null;if(e>o)return null;if(r+e>o){var a=this._lines.splice(e-this._rendLineNumberStart,o-e+1);return a}for(var s=[],l=0;lr))for(var l=Math.max(t,s.fromLineNumber),u=Math.min(r,s.toLineNumber),c=l;c<=u;c++){var d=c-this._rendLineNumberStart;this._lines[d].onTokensChanged(),i=!0}}return i},n}(),d$=function(){function n(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new c$(function(){return t._host.createVisibleLine()})}return n.prototype._createDomNode=function(){var e=Bt(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},n.prototype.onConfigurationChanged=function(e){return e.layoutInfo},n.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},n.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},n.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var r=0,i=t.length;rt){var s=t,l=Math.min(r,o.rendLineNumberStart-1);s<=l&&(this._insertLinesBefore(o,s,l,i,t),o.linesLength+=l-s+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,u),o.linesLength-=u)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1r){var s=Math.max(0,r-o.rendLineNumberStart+1),l=o.linesLength-1,u=l-s+1;u>0&&(this._removeLinesAfter(o,u),o.linesLength-=u)}return this._finishRendering(o,!1,i),o},n.prototype._renderUntouchedLines=function(e,t,r,i,o){for(var a=e.rendLineNumberStart,s=e.lines,l=t;l<=r;l++){var u=a+l;s[l].layoutLine(u,i[u-o])}},n.prototype._insertLinesBefore=function(e,t,r,i,o){for(var a=[],s=0,l=t;l<=r;l++)a[s++]=this.host.createVisibleLine();e.lines=a.concat(e.lines)},n.prototype._removeLinesBefore=function(e,t){for(var r=0;r=0;s--){var l=e.lines[s];i[s]&&(l.setDomNode(a),a=a.previousSibling)}},n.prototype._finishRenderingInvalidLines=function(e,t,r){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},n.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},n}(),KIe=function(n){_A(e,n);function e(t){var r=n.call(this,t)||this;return r._contentWidth=r._context.configuration.editor.layoutInfo.contentWidth,r.domNode.setHeight(0),r}return e.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),n.prototype.onConfigurationChanged.call(this,t)},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},e.prototype._viewOverlaysRender=function(t){n.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},e}(f$),GIe=function(n){_A(e,n);function e(t){var r=n.call(this,t)||this;return r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r.domNode.setClassName("margin-view-overlays"),r.domNode.setWidth(1),Oo.applyFontInfo(r.domNode,r._context.configuration.editor.fontInfo),r}return e.prototype.onConfigurationChanged=function(t){var r=!1;return t.fontInfo&&(Oo.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),r=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,r=!0),n.prototype.onConfigurationChanged.call(this,t)||r},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},e.prototype._viewOverlaysRender=function(t){n.prototype._viewOverlaysRender.call(this,t);var r=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(r),this.domNode.setWidth(this._contentLeft)},e}(f$),qIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),_p=function(){function n(e,t){this.top=e,this.left=t}return n}(),YIe=function(n){qIe(e,n);function e(t,r){var i=n.call(this,t)||this;return i._viewDomNode=r,i._widgets={},i.domNode=Bt(document.createElement("div")),ds.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=Bt(document.createElement("div")),ds.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._widgets={}},e.prototype.onConfigurationChanged=function(t){for(var r=Object.keys(this._widgets),i=0,o=r;i=i,f=l,h=u>=i,p=e.left,v=t.left;return p+r>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-r),v+r>o.scrollLeft+o.viewportWidth&&(v=o.scrollLeft+o.viewportWidth-r),pthis._contentWidth)return null;var l=e.top-i,u=t.top+this._lineHeight,c=a+this._contentLeft,d=s+this._contentLeft,f=ci(this._viewDomNode.domNode),h=f.top+l-ja.scrollY,p=f.top+u-ja.scrollY,v=f.left+c-ja.scrollX,m=f.left+d-ja.scrollX,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,_=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,y=22,b=22,w=h>=y,C=p+i<=_-b;if(v+r+20>g){var S=v-(g-r-20);v-=S,c-=S}if(m+r+20>g){var S=m-(g-r-20);m-=S,d-=S}if(v<0){var S=v;v-=S,c-=S}if(m<0){var S=m;m-=S,d-=S}return this._fixedOverflowWidgets&&(l=h,u=p,c=v,d=m),{fitsAbove:w,aboveTop:l,aboveLeft:c,fitsBelow:C,belowTop:u,belowLeft:d}},n.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new _p(e.top,e.left+this._contentLeft)},n.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var r=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,i=new _p(r,t.left),o=this._viewPosition.lineNumber,a=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var l=s.length-1;l>=0;l--){var u=s[l];if(u.lineNumber>=o){u.lineNumber>o&&(o=u.lineNumber,a=1073741824);for(var c=0,d=u.ranges.length;ce.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)},n.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},n.prototype.render=function(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},n}(),ZIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),QIe=function(n){ZIe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._renderLineHighlight=r._context.configuration.editor.viewInfo.renderLineHighlight,r._selectionIsEmpty=!0,r._primaryCursorLineNumber=1,r._scrollWidth=0,r._contentWidth=r._context.configuration.editor.layoutInfo.contentWidth,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},e.prototype.onCursorStateChanged=function(t){var r=!1,i=t.selections[0].positionLineNumber;this._primaryCursorLineNumber!==i&&(this._primaryCursorLineNumber=i,r=!0);var o=t.selections[0].isEmpty();return this._selectionIsEmpty!==o?(this._selectionIsEmpty=o,!0):r},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollWidthChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){this._scrollWidth=t.scrollWidth},e.prototype.render=function(t,r){if(r===this._primaryCursorLineNumber)if(this._shouldShowCurrentLine()){var i=this._willRenderMarginCurrentLine(),o="current-line"+(i?" current-line-both":"");return'
'}else return"";return""},e.prototype._shouldShowCurrentLine=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},e.prototype._willRenderMarginCurrentLine=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},e}(wd);Cn(function(n,e){var t=n.getColor(j9);if(t&&e.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),!t||t.isTransparent()||n.defines(_I)){var r=n.getColor(_I);r&&(e.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }"),n.type==="hc"&&e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}});var JIe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),eTe=function(n){JIe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._renderLineHighlight=r._context.configuration.editor.viewInfo.renderLineHighlight,r._selectionIsEmpty=!0,r._primaryCursorLineNumber=1,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},e.prototype.onCursorStateChanged=function(t){var r=!1,i=t.selections[0].positionLineNumber;this._primaryCursorLineNumber!==i&&(this._primaryCursorLineNumber=i,r=!0);var o=t.selections[0].isEmpty();return this._selectionIsEmpty!==o?(this._selectionIsEmpty=o,!0):r},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t,r){if(r===this._primaryCursorLineNumber){var i="current-line";if(this._shouldShowCurrentLine()){var o=this._willRenderContentCurrentLine();i="current-line current-line-margin"+(o?" current-line-margin-both":"")}return'
'}return""},e.prototype._shouldShowCurrentLine=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},e.prototype._willRenderContentCurrentLine=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},e}(wd);Cn(function(n,e){var t=n.getColor(j9);if(t)e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }");else{var r=n.getColor(_I);r&&e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }"),n.type==="hc"&&e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}});var tTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),nTe=function(n){tTe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){for(var r=t.getDecorationsInViewport(),i=[],o=0,a=0,s=r.length;av.options.zIndex)return 1;var m=p.options.className,g=v.options.className;return mg?1:q.compareRangesUsingStarts(p.range,v.range)});for(var u=t.visibleRange.startLineNumber,c=t.visibleRange.endLineNumber,d=[],f=u;f<=c;f++){var h=f-u;d[h]=""}this._renderWholeLineDecorations(t,i,d),this._renderNormalDecorations(t,i,d),this._renderResult=d},e.prototype._renderWholeLineDecorations=function(t,r,i){for(var o=String(this._lineHeight),a=t.visibleRange.startLineNumber,s=t.visibleRange.endLineNumber,l=0,u=r.length;l',f=Math.max(c.range.startLineNumber,a),h=Math.min(c.range.endLineNumber,s),p=f;p<=h;p++){var v=p-a;i[v]+=d}}},e.prototype._renderNormalDecorations=function(t,r,i){for(var o=String(this._lineHeight),a=t.visibleRange.startLineNumber,s=null,l=!1,u=null,c=0,d=r.length;c';l[h]+=_}}},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e}(wd),rTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),io=function(n){rTe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){this._register(We(t,mt.CLICK,function(i){return r(new jr(i))}))},e.prototype.onmousedown=function(t,r){this._register(We(t,mt.MOUSE_DOWN,function(i){return r(new jr(i))}))},e.prototype.onmouseover=function(t,r){this._register(We(t,mt.MOUSE_OVER,function(i){return r(new jr(i))}))},e.prototype.onnonbubblingmouseout=function(t,r){this._register(gN(t,function(i){return r(new jr(i))}))},e.prototype.onkeydown=function(t,r){this._register(We(t,mt.KEY_DOWN,function(i){return r(new zn(i))}))},e.prototype.onkeyup=function(t,r){this._register(We(t,mt.KEY_UP,function(i){return r(new zn(i))}))},e.prototype.oninput=function(t,r){this._register(We(t,mt.INPUT,r))},e.prototype.onblur=function(t,r){this._register(We(t,mt.BLUR,r))},e.prototype.onfocus=function(t,r){this._register(We(t,mt.FOCUS,r))},e.prototype.onchange=function(t,r){this._register(We(t,mt.CHANGE,r))},e}($e),iTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),mh=11,oTe=function(n){iTe(e,n);function e(t){var r=n.call(this)||this;return r._onActivate=t.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=t.bgWidth+"px",r.bgDomNode.style.height=t.bgHeight+"px",typeof t.top<"u"&&(r.bgDomNode.style.top="0px"),typeof t.left<"u"&&(r.bgDomNode.style.left="0px"),typeof t.bottom<"u"&&(r.bgDomNode.style.bottom="0px"),typeof t.right<"u"&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=t.className,r.domNode.style.position="absolute",r.domNode.style.width=mh+"px",r.domNode.style.height=mh+"px",typeof t.top<"u"&&(r.domNode.style.top=t.top+"px"),typeof t.left<"u"&&(r.domNode.style.left=t.left+"px"),typeof t.bottom<"u"&&(r.domNode.style.bottom=t.bottom+"px"),typeof t.right<"u"&&(r.domNode.style.right=t.right+"px"),r._mouseMoveMonitor=r._register(new Cd),r.onmousedown(r.bgDomNode,function(i){return r._arrowMouseDown(i)}),r.onmousedown(r.domNode,function(i){return r._arrowMouseDown(i)}),r._mousedownRepeatTimer=r._register(new Hg),r._mousedownScheduleRepeatTimer=r._register(new Ei),r}return e.prototype._arrowMouseDown=function(t){var r=this,i=function(){r._mousedownRepeatTimer.cancelAndSet(function(){return r._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(i,200),this._mouseMoveMonitor.startMonitoring(Wh,function(o){},function(){r._mousedownRepeatTimer.cancel(),r._mousedownScheduleRepeatTimer.cancel()}),t.preventDefault()},e}(io),aTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),sTe=function(n){aTe(e,n);function e(t,r,i){var o=n.call(this)||this;return o._visibility=t,o._visibleClassName=r,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new Ei),o}return e.prototype.applyVisibilitySetting=function(t){return this._visibility===2?!1:this._visibility===3?!0:t},e.prototype.setShouldBeVisible=function(t){var r=this.applyVisibilitySetting(t);this._shouldBeVisible!==r&&(this._shouldBeVisible=r,this.ensureVisibility())},e.prototype.setIsNeeded=function(t){this._isNeeded!==t&&(this._isNeeded=t,this.ensureVisibility())},e.prototype.setDomNode=function(t){this._domNode=t,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},e.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},e.prototype._reveal=function(){var t=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){t._domNode&&t._domNode.setClassName(t._visibleClassName)},0))},e.prototype._hide=function(t){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(t?" fade":"")))},e}($e),lTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),uTe=140,h$=function(n){lTe(e,n);function e(t){var r=n.call(this)||this;return r._lazyRender=t.lazyRender,r._host=t.host,r._scrollable=t.scrollable,r._scrollbarState=t.scrollbarState,r._visibilityController=r._register(new sTe(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),r._mouseMoveMonitor=r._register(new Cd),r._shouldRender=!0,r.domNode=Bt(document.createElement("div")),r.domNode.setAttribute("role","presentation"),r.domNode.setAttribute("aria-hidden","true"),r._visibilityController.setDomNode(r.domNode),r.domNode.setPosition("absolute"),r.onmousedown(r.domNode.domNode,function(i){return r._domNodeMouseDown(i)}),r}return e.prototype._createArrow=function(t){var r=this._register(new oTe(t));this.domNode.domNode.appendChild(r.bgDomNode),this.domNode.domNode.appendChild(r.domNode)},e.prototype._createSlider=function(t,r,i,o){var a=this;this.slider=Bt(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(t),this.slider.setLeft(r),typeof i=="number"&&this.slider.setWidth(i),typeof o=="number"&&this.slider.setHeight(o),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(s){s.leftButton&&(s.preventDefault(),a._sliderMouseDown(s,function(){}))})},e.prototype._onElementSize=function(t){return this._scrollbarState.setVisibleSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype._onElementScrollSize=function(t){return this._scrollbarState.setScrollSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype._onElementScrollPosition=function(t){return this._scrollbarState.setScrollPosition(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},e.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},e.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},e.prototype._domNodeMouseDown=function(t){t.target===this.domNode.domNode&&this._onMouseDown(t)},e.prototype.delegateMouseDown=function(t){var r=this.domNode.domNode.getClientRects()[0].top,i=r+this._scrollbarState.getSliderPosition(),o=r+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),a=this._sliderMousePosition(t);i<=a&&a<=o?t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,function(){})):this._onMouseDown(t)},e.prototype._onMouseDown=function(t){var r,i;if(t.target===this.domNode.domNode&&typeof t.browserEvent.offsetX=="number"&&typeof t.browserEvent.offsetY=="number")r=t.browserEvent.offsetX,i=t.browserEvent.offsetY;else{var o=ci(this.domNode.domNode);r=t.posx-o.left,i=t.posy-o.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(r,i))),t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,function(){}))},e.prototype._sliderMouseDown=function(t,r){var i=this,o=this._sliderMousePosition(t),a=this._sliderOrthogonalMousePosition(t),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(Wh,function(l){var u=i._sliderOrthogonalMousePosition(l),c=Math.abs(u-a);if(zi&&c>uTe){i._setDesiredScrollPositionNow(s.getScrollPosition());return}var d=i._sliderMousePosition(l),f=d-o;i._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(f))},function(){i.slider.toggleClassName("active",!1),i._host.onDragEnd(),r()}),this._host.onDragStart()},e.prototype._setDesiredScrollPositionNow=function(t){var r={};this.writeScrollPosition(r,t),this._scrollable.setScrollPositionNow(r)},e}(io),cTe=20,p$=function(){function n(e,t,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(r),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return n.prototype.clone=function(){var e=new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return e.setVisibleSize(this._visibleSize),e.setScrollSize(this._scrollSize),e.setScrollPosition(this._scrollPosition),e},n.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1},n.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1},n.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1},n._computeValues=function(e,t,r,i,o){var a=Math.max(0,r-e),s=Math.max(0,a-2*t),l=i>0&&i>r;if(!l)return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(cTe,Math.floor(r*s/i))),c=(s-u)/(i-r),d=o*c;return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(u),computedSliderRatio:c,computedSliderPosition:Math.round(d)}},n.prototype._refreshComputedValues=function(){var e=n._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},n.prototype.getArrowSize=function(){return this._arrowSize},n.prototype.getScrollPosition=function(){return this._scrollPosition},n.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},n.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},n.prototype.isNeeded=function(){return this._computedIsNeeded},n.prototype.getSliderSize=function(){return this._computedSliderSize},n.prototype.getSliderPosition=function(){return this._computedSliderPosition},n.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},n.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},n}(),dTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fTe=function(n){dTe(e,n);function e(t,r,i){var o=n.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new p$(r.horizontalHasArrows?r.arrowSize:0,r.horizontal===2?0:r.horizontalScrollbarSize,r.vertical===2?0:r.verticalScrollbarSize),visibility:r.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(r.horizontalHasArrows){var a=(r.arrowSize-mh)/2,s=(r.horizontalScrollbarSize-mh)/2;o._createArrow({className:"left-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:a,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,-1,0))}})}return o._createSlider(Math.floor((r.horizontalScrollbarSize-r.horizontalSliderSize)/2),0,void 0,r.horizontalSliderSize),o}return e.prototype._updateSlider=function(t,r){this.slider.setWidth(t),this.slider.setLeft(r)},e.prototype._renderDomNode=function(t,r){this.domNode.setWidth(t),this.domNode.setHeight(r),this.domNode.setLeft(0),this.domNode.setBottom(0)},e.prototype.onDidScroll=function(t){return this._shouldRender=this._onElementScrollSize(t.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(t.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(t.width)||this._shouldRender,this._shouldRender},e.prototype._mouseDownRelativePosition=function(t,r){return t},e.prototype._sliderMousePosition=function(t){return t.posx},e.prototype._sliderOrthogonalMousePosition=function(t){return t.posy},e.prototype.writeScrollPosition=function(t,r){t.scrollLeft=r},e}(h$),hTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),pTe=function(n){hTe(e,n);function e(t,r,i){var o=n.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new p$(r.verticalHasArrows?r.arrowSize:0,r.vertical===2?0:r.verticalScrollbarSize,0),visibility:r.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(r.verticalHasArrows){var a=(r.arrowSize-mh)/2,s=(r.verticalScrollbarSize-mh)/2;o._createArrow({className:"up-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:a,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,0,-1))}})}return o._createSlider(0,Math.floor((r.verticalScrollbarSize-r.verticalSliderSize)/2),r.verticalSliderSize,void 0),o}return e.prototype._updateSlider=function(t,r){this.slider.setHeight(t),this.slider.setTop(r)},e.prototype._renderDomNode=function(t,r){this.domNode.setWidth(r),this.domNode.setHeight(t),this.domNode.setRight(0),this.domNode.setTop(0)},e.prototype.onDidScroll=function(t){return this._shouldRender=this._onElementScrollSize(t.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(t.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(t.height)||this._shouldRender,this._shouldRender},e.prototype._mouseDownRelativePosition=function(t,r){return r},e.prototype._sliderMousePosition=function(t){return t.posy},e.prototype._sliderOrthogonalMousePosition=function(t){return t.posx},e.prototype.writeScrollPosition=function(t,r){t.scrollTop=r},e}(h$),vTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),gTe=function(){function n(e,t,r,i,o,a){e=e|0,t=t|0,r=r|0,i=i|0,o=o|0,a=a|0,e<0&&(e=0),r+e>t&&(r=t-e),r<0&&(r=0),i<0&&(i=0),a+i>o&&(a=o-i),a<0&&(a=0),this.width=e,this.scrollWidth=t,this.scrollLeft=r,this.height=i,this.scrollHeight=o,this.scrollTop=a}return n.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},n.prototype.withScrollDimensions=function(e){return new n(typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,this.scrollTop)},n.prototype.withScrollPosition=function(e){return new n(this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.scrollTop)},n.prototype.createScrollEvent=function(e){var t=this.width!==e.width,r=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:r,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:s}},n}(),v$=function(n){vTe(e,n);function e(t,r){var i=n.call(this)||this;return i._onScroll=i._register(new ae),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=r,i._state=new gTe(0,0,0,0,0,0),i._smoothScrolling=null,i}return e.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),n.prototype.dispose.call(this)},e.prototype.setSmoothScrollDuration=function(t){this._smoothScrollDuration=t},e.prototype.validateScrollPosition=function(t){return this._state.withScrollPosition(t)},e.prototype.getScrollDimensions=function(){return this._state},e.prototype.setScrollDimensions=function(t){var r=this._state.withScrollDimensions(t);this._setState(r),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},e.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},e.prototype.getCurrentScrollPosition=function(){return this._state},e.prototype.setScrollPositionNow=function(t){var r=this._state.withScrollPosition(t);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(r)},e.prototype.setScrollPositionSmooth=function(t){var r=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(t);if(this._smoothScrolling){t={scrollLeft:typeof t.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:t.scrollLeft,scrollTop:typeof t.scrollTop>"u"?this._smoothScrolling.to.scrollTop:t.scrollTop};var i=this._state.withScrollPosition(t);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var o=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=o}else{var i=this._state.withScrollPosition(t);this._smoothScrolling=_Te.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){r._smoothScrolling&&(r._smoothScrolling.animationFrameDisposable=null,r._performSmoothScrolling())})},e.prototype._performSmoothScrolling=function(){var t=this;if(this._smoothScrolling){var r=this._smoothScrolling.tick(),i=this._state.withScrollPosition(r);if(this._setState(i),r.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})}},e.prototype._setState=function(t){var r=this._state;r.equals(t)||(this._state=t,this._onScroll.fire(this._state.createScrollEvent(r)))},e}($e),y4=function(){function n(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}return n}();function TS(n,e){var t=e-n;return function(r){return n+t*bTe(r)}}function mTe(n,e,t){return function(r){return r2.5*r){var o=void 0,a=void 0;return e0&&Math.abs(e.deltaY)>0)return 1;var t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},n.INSTANCE=new n,n}(),g$=function(n){KC(e,n);function e(t,r,i){var o=n.call(this)||this;o._onScroll=o._register(new ae),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=C4(r),o._scrollable=i,o._register(o._scrollable.onScroll(function(s){o._onDidScroll(s),o._onScroll.fire(s)}));var a={onMouseWheel:function(s){return o._onMouseWheel(s)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new pTe(o._scrollable,o._options,a)),o._horizontalScrollbar=o._register(new fTe(o._scrollable,o._options,a)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=Bt(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Bt(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Bt(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(s){return o._onMouseOver(s)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(s){return o._onMouseOut(s)}),o._hideTimeout=o._register(new Ei),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return e.prototype.dispose=function(){this._mouseWheelToDispose=Ne(this._mouseWheelToDispose),n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},e.prototype.delegateVerticalScrollbarMouseDown=function(t){this._verticalScrollbar.delegateMouseDown(t)},e.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},e.prototype.setScrollDimensions=function(t){this._scrollable.setScrollDimensions(t)},e.prototype.updateClassName=function(t){this._options.className=t,Vt&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},e.prototype.updateOptions=function(t){var r=C4(t);this._options.handleMouseWheel=r.handleMouseWheel,this._options.mouseWheelScrollSensitivity=r.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=r.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},e.prototype._setListeningToMouseWheel=function(t){var r=this,i=this._mouseWheelToDispose.length>0;if(i!==t&&(this._mouseWheelToDispose=Ne(this._mouseWheelToDispose),t)){var o=function(a){r._onMouseWheel(new ch(a))};this._mouseWheelToDispose.push(We(this._listenOnDomNode,"mousewheel",o))}},e.prototype._onMouseWheel=function(t){var r,i=STe.INSTANCE;if(i.accept(Date.now(),t.deltaX,t.deltaY),t.deltaY||t.deltaX){var o=t.deltaY*this._options.mouseWheelScrollSensitivity,a=t.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=[a,o],o=r[0],a=r[1]);var s=!Vt&&t.browserEvent&&t.browserEvent.shiftKey;(this._options.scrollYToX||s)&&!a&&(a=o,o=0),t.browserEvent&&t.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);var l=this._scrollable.getFutureScrollPosition(),u={};if(o){var c=l.scrollTop-b4*o;this._verticalScrollbar.writeScrollPosition(u,c)}if(a){var d=l.scrollLeft-b4*a;this._horizontalScrollbar.writeScrollPosition(u,d)}if(u=this._scrollable.validateScrollPosition(u),l.scrollLeft!==u.scrollLeft||l.scrollTop!==u.scrollTop){var f=this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel();f?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(t.preventDefault(),t.stopPropagation())},e.prototype._onDidScroll=function(t){this._shouldRender=this._horizontalScrollbar.onDidScroll(t)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(t)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},e.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},e.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var t=this._scrollable.getCurrentScrollPosition(),r=t.scrollTop>0,i=t.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(i?" left":"")),this._topShadowDomNode.setClassName("shadow"+(r?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(r?" top":"")+(i?" left":""))}},e.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},e.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},e.prototype._onMouseOut=function(t){this._mouseIsOver=!1,this._hide()},e.prototype._onMouseOver=function(t){this._mouseIsOver=!0,this._reveal()},e.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},e.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},e.prototype._scheduleHide=function(){var t=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return t._hide()},CTe)},e}(io),GC=function(n){KC(e,n);function e(t,r){var i=this;r=r||{},r.mouseWheelSmoothScroll=!1;var o=new v$(0,function(a){return bu(a)});return i=n.call(this,t,r,o)||this,i._register(o),i}return e.prototype.setScrollPosition=function(t){this._scrollable.setScrollPositionNow(t)},e.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},e}(g$),ETe=function(n){KC(e,n);function e(t,r,i){return n.call(this,t,r,i)||this}return e}(g$),Kg=function(n){KC(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i._element=t,i.onScroll(function(o){o.scrollTopChanged&&(i._element.scrollTop=o.scrollTop),o.scrollLeftChanged&&(i._element.scrollLeft=o.scrollLeft)}),i.scanDomNode(),i}return e.prototype.scanDomNode=function(){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})},e}(GC);function C4(n){var e={lazyRender:typeof n.lazyRender<"u"?n.lazyRender:!1,className:typeof n.className<"u"?n.className:"",useShadows:typeof n.useShadows<"u"?n.useShadows:!0,handleMouseWheel:typeof n.handleMouseWheel<"u"?n.handleMouseWheel:!0,flipAxes:typeof n.flipAxes<"u"?n.flipAxes:!1,alwaysConsumeMouseWheel:typeof n.alwaysConsumeMouseWheel<"u"?n.alwaysConsumeMouseWheel:!1,scrollYToX:typeof n.scrollYToX<"u"?n.scrollYToX:!1,mouseWheelScrollSensitivity:typeof n.mouseWheelScrollSensitivity<"u"?n.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof n.fastScrollSensitivity<"u"?n.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof n.mouseWheelSmoothScroll<"u"?n.mouseWheelSmoothScroll:!0,arrowSize:typeof n.arrowSize<"u"?n.arrowSize:11,listenOnDomNode:typeof n.listenOnDomNode<"u"?n.listenOnDomNode:null,horizontal:typeof n.horizontal<"u"?n.horizontal:1,horizontalScrollbarSize:typeof n.horizontalScrollbarSize<"u"?n.horizontalScrollbarSize:10,horizontalSliderSize:typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:0,horizontalHasArrows:typeof n.horizontalHasArrows<"u"?n.horizontalHasArrows:!1,vertical:typeof n.vertical<"u"?n.vertical:1,verticalScrollbarSize:typeof n.verticalScrollbarSize<"u"?n.verticalScrollbarSize:10,verticalHasArrows:typeof n.verticalHasArrows<"u"?n.verticalHasArrows:!1,verticalSliderSize:typeof n.verticalSliderSize<"u"?n.verticalSliderSize:0};return e.horizontalSliderSize=typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof n.verticalSliderSize<"u"?n.verticalSliderSize:e.verticalScrollbarSize,Vt&&(e.className+=" mac"),e}var LTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ITe=function(n){LTe(e,n);function e(t,r,i,o){var a=n.call(this,t)||this,s=a._context.configuration.editor,l=s.viewInfo.scrollbar,u={listenOnDomNode:i.domNode,className:"editor-scrollable "+Qy(t.theme.type),useShadows:!1,lazyRender:!0,vertical:l.vertical,horizontal:l.horizontal,verticalHasArrows:l.verticalHasArrows,horizontalHasArrows:l.horizontalHasArrows,verticalScrollbarSize:l.verticalScrollbarSize,verticalSliderSize:l.verticalSliderSize,horizontalScrollbarSize:l.horizontalScrollbarSize,horizontalSliderSize:l.horizontalSliderSize,handleMouseWheel:l.handleMouseWheel,arrowSize:l.arrowSize,mouseWheelScrollSensitivity:l.mouseWheelScrollSensitivity,fastScrollSensitivity:l.fastScrollSensitivity};a.scrollbar=a._register(new ETe(r.domNode,u,a._context.viewLayout.scrollable)),ds.write(a.scrollbar.getDomNode(),5),a.scrollbarDomNode=Bt(a.scrollbar.getDomNode()),a.scrollbarDomNode.setPosition("absolute"),a._setLayout();var c=function(d,f,h){var p={};if(f){var v=d.scrollTop;v&&(p.scrollTop=a._context.viewLayout.getCurrentScrollTop()+v,d.scrollTop=0)}if(h){var m=d.scrollLeft;m&&(p.scrollLeft=a._context.viewLayout.getCurrentScrollLeft()+m,d.scrollLeft=0)}a._context.viewLayout.setScrollPositionNow(p)};return a._register(We(i.domNode,"scroll",function(d){return c(i.domNode,!0,!0)})),a._register(We(r.domNode,"scroll",function(d){return c(r.domNode,!0,!1)})),a._register(We(o.domNode,"scroll",function(d){return c(o.domNode,!0,!1)})),a._register(We(a.scrollbarDomNode.domNode,"scroll",function(d){return c(a.scrollbarDomNode.domNode,!0,!1)})),a}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._setLayout=function(){var t=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(t.contentLeft);var r=this._context.configuration.editor.viewInfo.minimap.side;r==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.contentHeight)},e.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},e.prototype.getDomNode=function(){return this.scrollbarDomNode},e.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},e.prototype.onConfigurationChanged=function(t){if(t.viewInfo){var r=this._context.configuration.editor,i={handleMouseWheel:r.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:r.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:r.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(i)}return t.layoutInfo&&this._setLayout(),!0},e.prototype.onScrollChanged=function(t){return!0},e.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Qy(this._context.theme.type)),!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this.scrollbar.renderNow()},e}(Ao),m$=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),yA=function(){function n(e,t,r){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(r)}return n}(),bA=function(n){m$(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._render=function(t,r,i){for(var o=[],a=t;a<=r;a++){var s=a-t;o[s]=[]}if(i.length===0)return o;i.sort(function(g,_){return g.className===_.className?g.startLineNumber===_.startLineNumber?g.endLineNumber-_.endLineNumber:g.startLineNumber-_.startLineNumber:g.className<_.className?-1:1});for(var l=null,u=0,c=0,d=i.length;c',c=[],d=r;d<=i;d++){var f=d-r,h=o[f];h.length===0?c[f]="":c[f]='
=this._renderResult.length?"":this._renderResult[i]},e}(bA),xTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),OTe=function(n){xTe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._primaryLineNumber=0,r._lineHeight=r._context.configuration.editor.lineHeight,r._spaceWidth=r._context.configuration.editor.fontInfo.spaceWidth,r._enabled=r._context.configuration.editor.viewInfo.renderIndentGuides,r._activeIndentEnabled=r._context.configuration.editor.viewInfo.highlightActiveIndentGuide,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),t.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0},e.prototype.onCursorStateChanged=function(t){var r=t.selections[0],i=r.isEmpty()?r.positionLineNumber:0;return this._primaryLineNumber!==i?(this._primaryLineNumber=i,!0):!1},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.onLanguageConfigurationChanged=function(t){return!0},e.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var r=t.visibleRange.startLineNumber,i=t.visibleRange.endLineNumber,o=this._context.model.getOptions().indentSize,a=o*this._spaceWidth,s=t.scrollWidth,l=this._lineHeight,u=this._context.model.getLinesIndentGuides(r,i),c=0,d=0,f=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var h=this._context.model.getActiveIndentGuide(this._primaryLineNumber,r,i);c=h.startLineNumber,d=h.endLineNumber,f=h.indent}for(var p=[],v=r;v<=i;v++){for(var m=c<=v&&v<=d,g=v-r,_=u[g],y="",b=t.visibleRangeForPosition(new he(v,1)),w=b?b.left:0,C=1;C<=_;C++){var S=m&&C===f?"cigra":"cigr";if(y+='
',w+=a,w>s)break}p[g]=y}this._renderResult=p},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e}(wd);Cn(function(n,e){var t=n.getColor($C);t&&e.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var r=n.getColor(jC)||t;r&&e.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")});var NTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ATe=function(){function n(){this._currentVisibleRange=new q(1,1,1,1)}return n.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},n.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},n}(),DTe=function(){function n(e,t,r,i,o,a){this.lineNumber=e,this.startColumn=t,this.endColumn=r,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=a}return n}(),RTe=function(n){NTe(e,n);function e(t,r){var i=n.call(this,t)||this;i._linesContent=r,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new d$(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new G3(o,i._context.theme.type),ds.write(i.domNode,7),i.domNode.setClassName("view-lines"),Oo.applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new Nr(function(){i._updateLineWidthsSlow()},200),i._lastRenderedData=new ATe,i._horizontalRevealRequest=null,i}return e.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this.domNode},e.prototype.createVisibleLine=function(){return new wf(this._viewLineOptions)},e.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.wrappingInfo&&(this._maxLineWidth=0);var r=this._context.configuration;return t.lineHeight&&(this._lineHeight=r.editor.lineHeight),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=r.editor.fontInfo.typicalHalfwidthCharacterWidth),t.wrappingInfo&&(this._isViewportWrapping=r.editor.wrappingInfo.isViewportWrapping),t.viewInfo&&(this._revealHorizontalRightPadding=r.editor.viewInfo.revealHorizontalRightPadding),t.canUseLayerHinting&&(this._canUseLayerHinting=r.editor.canUseLayerHinting),t.fontInfo&&Oo.applyFontInfo(this.domNode,r.editor.fontInfo),this._onOptionsMaybeChanged(),t.layoutInfo&&(this._maxLineWidth=0),!0},e.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,r=new G3(t,this._context.theme.type);if(!this._viewLineOptions.equals(r)){this._viewLineOptions=r;for(var i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),a=i;a<=o;a++){var s=this._visibleLines.getVisibleLine(a);s.onOptionsChanged(this._viewLineOptions)}return!0}return!1},e.prototype.onCursorStateChanged=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=!1,a=r;a<=i;a++)o=this._visibleLines.getVisibleLine(a).onSelectionChanged()||o;return o},e.prototype.onDecorationsChanged=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=r;o<=i;o++)this._visibleLines.getVisibleLine(o).onDecorationsChanged();return!0},e.prototype.onFlushed=function(t){var r=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,r},e.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},e.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},e.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},e.prototype.onRevealRangeRequest=function(t){var r=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.range,t.verticalType),i=this._context.viewLayout.validateScrollPosition({scrollTop:r});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new DTe(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop);return t.scrollType===0&&o>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(i):this._context.viewLayout.setScrollPositionNow(i),!0},e.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var r=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},e.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},e.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},e.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},e.prototype.getPositionFromDOMInfo=function(t,r){var i=this._getViewLineDomNode(t);if(i===null)return null;var o=this._getLineNumberFor(i);if(o===-1||o<1||o>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(o)===1)return new he(o,1);var a=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(os)return null;var l=this._visibleLines.getVisibleLine(o).getColumnOfNodeOffset(o,t,r),u=this._context.model.getLineMinColumn(o);return li?-1:this._visibleLines.getVisibleLine(t).getWidth()},e.prototype.linesVisibleRangesForRange=function(t,r){if(this.shouldRender())return null;var i=t.endLineNumber,o=q.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!o)return null;var a=[],s=0,l=new K3(this.domNode.domNode,this._textRangeRestingSpot),u=0;r&&(u=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new he(o.startLineNumber,1)).lineNumber);for(var c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),f=o.startLineNumber;f<=o.endLineNumber;f++)if(!(fd)){var h=f===o.startLineNumber?o.startColumn:1,p=f===o.endLineNumber?o.endColumn:this._context.model.getLineMaxColumn(f),v=this._visibleLines.getVisibleLine(f).getVisibleRangesForRange(h,p,l);if(!(!v||v.length===0)){if(r&&fs)){var u=l===r.startLineNumber?r.startColumn:1,c=l===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(l),d=this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(u,c,o);!d||d.length===0||(i=i.concat(d))}return i.length===0?null:i},e.prototype.visibleRangeForPosition=function(t){var r=this.visibleRangesForRange2(new q(t.lineNumber,t.column,t.lineNumber,t.column));return r?r[0]:null},e.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},e.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},e.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},e.prototype._updateLineWidths=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=1,a=!0,s=r;s<=i;s++){var l=this._visibleLines.getVisibleLine(s);if(t&&!l.getWidthIsFast()){a=!1;continue}o=Math.max(o,l.getWidth())}return a&&r===1&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(o),a},e.prototype.prepareRender=function(){throw new Error("Not supported")},e.prototype.render=function(){throw new Error("Not supported")},e.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var r=this._horizontalRevealRequest.lineNumber,i=this._horizontalRevealRequest.startColumn,o=this._horizontalRevealRequest.endColumn,a=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=r&&r<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var s=this._computeScrollLeftToRevealRange(r,i,o),l=this._isViewportWrapping;l||this._ensureMaxLineWidth(s.maxHorizontalOffset),a===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:s.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:s.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var u=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-u),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},e.prototype._ensureMaxLineWidth=function(t){var r=Math.ceil(t);this._maxLineWidthd&&(d=p.left+p.width)}o=d,c=Math.max(0,c-e.HORIZONTAL_EXTRA_PX),d+=this._revealHorizontalRightPadding;var v=this._computeMinimumScrolling(s,l,c,d);return{scrollLeft:v,maxHorizontalOffset:o}},e.prototype._computeMinimumScrolling=function(t,r,i,o,a,s){t=t|0,r=r|0,i=i|0,o=o|0,a=!!a,s=!!s;var l=r-t,u=o-i;if(ur)return Math.max(0,o-l)}else return i;return t},e.HORIZONTAL_EXTRA_PX=30,e}(Ao),PTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),MTe=function(n){PTe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._decorationsLeft=r._context.configuration.editor.layoutInfo.decorationsLeft,r._decorationsWidth=r._context.configuration.editor.layoutInfo.decorationsWidth,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype._getDecorations=function(t){for(var r=t.getDecorationsInViewport(),i=[],o=0,a=0,s=r.length;a
',u=[],c=r;c<=i;c++){for(var d=c-r,f=o[d],h="",p=0,v=f.length;p';a[l]=c}this._renderResult=a},e.prototype.render=function(t,r){return this._renderResult?this._renderResult[r-t]:""},e}(bA),xS=function(){function n(e,t,r,i){this.r=n._clamp(e),this.g=n._clamp(t),this.b=n._clamp(r),this.a=n._clamp(i)}return n._clamp=function(e){return e<0?0:e>255?255:e|0},n.Empty=new n(0,0,0,0),n}(),_$=function(){function n(){var e=this;this._onDidChange=new ae,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Dn.onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}return n.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new n),this._INSTANCE},n.prototype._updateColorMap=function(){var e=Dn.getColorMap();if(!e){this._colors=[xS.Empty],this._backgroundIsLight=!0;return}this._colors=[xS.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)},n.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},n.prototype.backgroundIsLight=function(){return this._backgroundIsLight},n._INSTANCE=null,n}(),BTe=function(){function n(e,t){var r=760;if(e.length!==r)throw new Error("Invalid x2CharData");var i=2*1*95;if(t.length!==i)throw new Error("Invalid x1CharData");this.x2charData=e,this.x1charData=t,this.x2charDataLight=n.soften(e,12/15),this.x1charDataLight=n.soften(t,50/60)}return n.soften=function(e,t){for(var r=new Uint8ClampedArray(e.length),i=0,o=e.length;ie.width||r+4>e.height){console.warn("bad render request outside image data");return}var l=s?this.x2charDataLight:this.x2charData,u=n._getChIndex(i),c=e.width*4,d=a.r,f=a.g,h=a.b,p=o.r-d,v=o.g-f,m=o.b-h,g=e.data,_=u*4*2,y=r*c+t*4;{var b=l[_]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}{var b=l[_+1]/255;g[y+4]=d+p*b,g[y+5]=f+v*b,g[y+6]=h+m*b}y+=c;{var b=l[_+2]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}{var b=l[_+3]/255;g[y+4]=d+p*b,g[y+5]=f+v*b,g[y+6]=h+m*b}y+=c;{var b=l[_+4]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}{var b=l[_+5]/255;g[y+4]=d+p*b,g[y+5]=f+v*b,g[y+6]=h+m*b}y+=c;{var b=l[_+6]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}{var b=l[_+7]/255;g[y+4]=d+p*b,g[y+5]=f+v*b,g[y+6]=h+m*b}},n.prototype.x1RenderChar=function(e,t,r,i,o,a,s){if(t+1>e.width||r+2>e.height){console.warn("bad render request outside image data");return}var l=s?this.x1charDataLight:this.x1charData,u=n._getChIndex(i),c=e.width*4,d=a.r,f=a.g,h=a.b,p=o.r-d,v=o.g-f,m=o.b-h,g=e.data,_=u*2*1,y=r*c+t*4;{var b=l[_]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}y+=c;{var b=l[_+1]/255;g[y+0]=d+p*b,g[y+1]=f+v*b,g[y+2]=h+m*b}},n.prototype.x2BlockRenderChar=function(e,t,r,i,o,a){if(t+2>e.width||r+4>e.height){console.warn("bad render request outside image data");return}var s=e.width*4,l=.5,u=o.r,c=o.g,d=o.b,f=i.r-u,h=i.g-c,p=i.b-d,v=u+f*l,m=c+h*l,g=d+p*l,_=e.data,y=r*s+t*4;_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g},n.prototype.x1BlockRenderChar=function(e,t,r,i,o,a){if(t+1>e.width||r+2>e.height){console.warn("bad render request outside image data");return}var s=e.width*4,l=.5,u=o.r,c=o.g,d=o.b,f=i.r-u,h=i.g-c,p=i.b-d,v=u+f*l,m=c+h*l,g=d+p*l,_=e.data,y=r*s+t*4;_[y+0]=v,_[y+1]=m,_[y+2]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g},n}();function w4(n){for(var e=new Uint8ClampedArray(n.length),t=0,r=n.length;t=a){var b=1,w=a;return new n(s,l,_,y,p,b,w)}else{var b=Math.max(1,Math.floor(t-y*c/d));u&&u.scrollHeight===l&&(u.scrollTop>s&&(b=Math.min(b,u.startLineNumber)),u.scrollTopHTe){r._context.viewLayout.setScrollPositionNow({scrollTop:s.scrollTop});return}var c=l.posy-o;r._context.viewLayout.setScrollPositionNow({scrollTop:s.getDesiredScrollTopFromDelta(c)})},function(){r._slider.toggleClassName("active",!1)})}}),r}return e.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),n.prototype.dispose.call(this)},e.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},e.prototype.getDomNode=function(){return this._domNode},e.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},e.prototype._getBuffer=function(){return this._buffers||(this._buffers=new $Te(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},e.prototype._onOptionsMaybeChanged=function(){var t=new I4(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},e.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},e.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},e.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},e.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},e.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},e.prototype.onScrollChanged=function(t){return!0},e.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},e.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},e.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){var r=this._options.renderMinimap;if(r===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var i=UTe.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight);var o=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,a=Math.min(this._options.minimapWidth,Math.round(o*L4(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(a),this._sliderHorizontal.setWidth(this._options.minimapWidth-a),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this._lastRenderData=this.renderLines(i)},e.prototype.renderLines=function(t){var r=this._options.renderMinimap,i=t.startLineNumber,o=t.endLineNumber,a=LI(r);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var s=this._lastRenderData._get();return new T4(t,s.imageData,s.lines)}for(var l=this._getBuffer(),u=e._renderUntouchedLines(l,i,o,a,this._lastRenderData),c=u[0],d=u[1],f=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,f),p=h.tabSize,v=this._tokensColorTracker.getColor(2),m=this._tokensColorTracker.backgroundIsLight(),g=0,_=[],y=0,b=o-i+1;y=0&&Pp)return;var S=d.charCodeAt(m);if(S===9){var L=u-(m+g)%u;g+=L-1,v+=L*h}else if(S===32)v+=h;else for(var E=Cu(S)?2:1,T=0;Tp)return}},e}(Ao);Cn(function(n,e){var t=n.getColor(PEe);if(t){var r=t.transparent(.5);e.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=n.getColor(MEe);if(i){var o=i.transparent(.5);e.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var a=n.getColor(kEe);if(a){var s=a.transparent(.5);e.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+s+"; }")}var l=n.getColor(UC);l&&e.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")});var zTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),KTe=function(n){zTe(e,n);function e(t){var r=n.call(this,t)||this;return r._widgets={},r._verticalScrollbarWidth=r._context.configuration.editor.layoutInfo.verticalScrollbarWidth,r._minimapWidth=r._context.configuration.editor.layoutInfo.minimapWidth,r._horizontalScrollbarHeight=r._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,r._editorHeight=r._context.configuration.editor.layoutInfo.height,r._editorWidth=r._context.configuration.editor.layoutInfo.width,r._domNode=Bt(document.createElement("div")),ds.write(r._domNode,4),r._domNode.setClassName("overlayWidgets"),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._widgets={}},e.prototype.getDomNode=function(){return this._domNode},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo?(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0):!1},e.prototype.addWidget=function(t){var r=Bt(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:r},r.setPosition("absolute"),r.setAttribute("widgetId",t.getId()),this._domNode.appendChild(r),this.setShouldRender()},e.prototype.setWidgetPosition=function(t,r){var i=this._widgets[t.getId()];return i.preference===r?!1:(i.preference=r,this.setShouldRender(),!0)},e.prototype.removeWidget=function(t){var r=t.getId();if(this._widgets.hasOwnProperty(r)){var i=this._widgets[r],o=i.domNode.domNode;delete this._widgets[r],o.parentNode.removeChild(o),this.setShouldRender()}},e.prototype._renderWidget=function(t){var r=t.domNode;if(t.preference===null){r.unsetTop();return}if(t.preference===0)r.setTop(0),r.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var i=r.domNode.clientHeight;r.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),r.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(r.setTop(0),r.domNode.style.right="50%")},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var r=Object.keys(this._widgets),i=0,o=r.length;i=3){var o=Math.floor(i/3),a=Math.floor(i/3),s=i-o-a,l=e,u=l+o,c=l+o+s;return[[0,l,u,l,c,l,u,l],[0,o,s,o+s,a,o+s+a,s+a,o+s+a]]}else if(r===2){var o=Math.floor(i/2),a=i-o,l=e,c=l+o;return[[0,l,l,l,c,l,l,l],[0,o,o,o,a,o+a,o+a,o+a]]}else{var d=e,f=i;return[[0,d,d,d,d,d,d,d],[0,f,f,f,f,f,f,f]]}},n.prototype.equals=function(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},n}(),YTe=function(n){GTe(e,n);function e(t){var r=n.call(this,t)||this;return r._domNode=Bt(document.createElement("canvas")),r._domNode.setClassName("decorationsOverviewRuler"),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._domNode.setAttribute("aria-hidden","true"),r._updateSettings(!1),r._tokensColorTrackerListener=Dn.onDidChange(function(i){i.changedColorMap&&r._updateSettings(!0)}),r._cursorPositions=[],r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},e.prototype._updateSettings=function(t){var r=new qTe(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(r)?!1:(this._settings=r,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,t&&this._render(),!0)},e.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},e.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var r=0,i=t.selections.length;rr&&(M=r-c),P=M-c,A=M+c}P>w+1||L!==y?(C!==0&&d.fillRect(f[y],b,h[y],w-b),y=L,b=P,w=A):A>w&&(w=A)}d.fillRect(f[y],b,h[y],w-b)}if(!this._settings.hideCursor&&this._settings.cursorColor){var H=2*this._settings.pixelRatio|0,k=H/2|0,B=this._settings.x[7],F=this._settings.w[7];d.fillStyle=this._settings.cursorColor;for(var b=-100,w=-100,C=0,S=this._cursorPositions.length;Cr&&(M=r-k);var P=M-k,A=P+H;P>w+1?(C!==0&&d.fillRect(B,b,F,w-b),b=P,w=A):A>w&&(w=A)}d.fillRect(B,b,F,w-b)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,r),d.stroke(),d.moveTo(0,0),d.lineTo(t,0),d.stroke())},e}(Ao),x4=function(){function n(e,t,r){this.from=e|0,this.to=t|0,this.colorId=r|0}return n.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},n}(),ug=function(){function n(e,t,r){this.startLineNumber=e,this.endLineNumber=t,this.color=r,this._colorZone=null}return n.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorr&&(p=r-v);var m=c.color,g=this._color2Id[m];g||(g=++this._lastAssignedId,this._color2Id[m]=g,this._id2Color[g]=m);var _=new x4(p-v,p+v,g);c.setColorZone(_),s.push(_)}return this._colorZonesInvalid=!1,s.sort(x4.compare),s},n}(),ZTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),QTe=function(n){ZTe(e,n);function e(t,r){var i=n.call(this)||this;return i._context=t,i._domNode=Bt(document.createElement("canvas")),i._domNode.setClassName(r),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new XTe(function(o){return i._context.viewLayout.getVerticalOffsetForLineNumber(o)}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),t.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),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},e.prototype.onFlushed=function(t){return this._render(),!0},e.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},e.prototype.onZonesChanged=function(t){return this._render(),!0},e.prototype.getDomNode=function(){return this._domNode.domNode},e.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var r=!1;r=this._zoneManager.setDOMWidth(t.width)||r,r=this._zoneManager.setDOMHeight(t.height)||r,r&&(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())},e.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},e.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),r=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),a=this._domNode.domNode.getContext("2d");return a.clearRect(0,0,t,r),i.length>0&&this._renderOneLane(a,i,o,t),!0},e.prototype._renderOneLane=function(t,r,i,o){for(var a=0,s=0,l=0,u=0,c=r;u=h?l=Math.max(l,p):(t.fillRect(0,s,o,l-s),s=h,l=p)}t.fillRect(0,s,o,l-s)},e}(zg),JTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),exe=function(n){JTe(e,n);function e(t){var r=n.call(this,t)||this;return r.domNode=Bt(document.createElement("div")),r.domNode.setAttribute("role","presentation"),r.domNode.setAttribute("aria-hidden","true"),r.domNode.setClassName("view-rulers"),r._renderedRulers=[],r._rulers=r._context.configuration.editor.viewInfo.rulers,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.viewInfo||t.layoutInfo||t.fontInfo?(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0):!1},e.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},e.prototype.prepareRender=function(t){},e.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,r=this._rulers.length;if(t!==r){if(t0;){var s=Bt(document.createElement("div"));s.setClassName("view-ruler"),s.setWidth(o),this.domNode.appendChild(s),this._renderedRulers.push(s),a--}return}for(var l=t-r;l>0;){var s=this._renderedRulers.pop();this.domNode.removeChild(s),l--}}},e.prototype.render=function(t){this._ensureRulersCount();for(var r=0,i=this._rulers.length;r0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},e.prototype.getDomNode=function(){return this._domNode},e.prototype._updateWidth=function(){var t=this._context.configuration.editor.layoutInfo,r=0;return t.renderMinimap===0||t.minimapWidth>0&&t.minimapLeft===0?r=t.width:r=t.width-t.minimapWidth-t.verticalScrollbarWidth,this._width!==r?(this._width=r,!0):!1},e.prototype.onConfigurationChanged=function(t){var r=!1;return t.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),t.layoutInfo&&(r=this._updateWidth()),this._updateShouldShow()||r},e.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},e}(Ao);Cn(function(n,e){var t=n.getColor(UC);t&&e.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var rxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ixe=function(){function n(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return n}(),oxe=function(){function n(e,t){this.lineNumber=e,this.ranges=t}return n}();function axe(n){return new ixe(n)}function sxe(n){return new oxe(n.lineNumber,n.ranges.map(axe))}var lxe=uu,uxe=function(n){rxe(e,n);function e(t){var r=n.call(this)||this;return r._previousFrameVisibleRangesWithStyle=[],r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._roundedSelection=r._context.configuration.editor.viewInfo.roundedSelection,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r._selections=[],r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},e.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype._visibleRangesHaveGaps=function(t){for(var r=0,i=t.length;r1)return!0}return!1},e.prototype._enrichVisibleRangesWithStyle=function(t,r,i){var o=this._typicalHalfwidthCharacterWidth/4,a=null,s=null;if(i&&i.length>0&&r.length>0){var l=r[0].lineNumber;if(l===t.startLineNumber)for(var u=0;!a&&u=0;u--)i[u].lineNumber===c&&(s=i[u].ranges[0]);a&&!a.startStyle&&(a=null),s&&!s.startStyle&&(s=null)}for(var u=0,d=r.length;u0){var g=r[u-1].ranges[0].left,_=r[u-1].ranges[0].left+r[u-1].ranges[0].width;i_(h-g)g&&(v.top=1),i_(p-_)'},e.prototype._actualRenderOneSelection=function(t,r,i,o){for(var a=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),l=(this._lineHeight-1).toString(),u=o.length>0?o[0].lineNumber:0,c=o.length>0?o[o.length-1].lineNumber:0,d=0,f=o.length;d1,f)}this._previousFrameVisibleRangesWithStyle=l,this._renderResult=r},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e.SELECTION_CLASS_NAME="selected-text",e.SELECTION_TOP_LEFT="top-left-radius",e.SELECTION_BOTTOM_LEFT="bottom-left-radius",e.SELECTION_TOP_RIGHT="top-right-radius",e.SELECTION_BOTTOM_RIGHT="bottom-right-radius",e.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",e.ROUNDED_PIECE_WIDTH=10,e}(wd);Cn(function(n,e){var t=n.getColor(Uf);t&&e.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var r=n.getColor(oA);r&&e.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=n.getColor(KEe);i&&e.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")});function i_(n){return n<0?-n:n}var O4=function(){function n(e,t,r,i,o,a){this.top=e,this.left=t,this.width=r,this.height=i,this.textContent=o,this.textContentClassName=a}return n}(),N4=function(){function n(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Bt(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Oo.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new he(1,1)),this._lastRenderedContent="",this._renderData=null}return n.prototype.getDomNode=function(){return this._domNode},n.prototype.getPosition=function(){return this._position},n.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},n.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},n.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(Oo.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},n.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},n.prototype._prepareRender=function(e){var t="",r="";if(this._cursorStyle===Nn.Line||this._cursorStyle===Nn.LineThin){var i=e.visibleRangeForPosition(this._position);if(!i)return null;var o;if(this._cursorStyle===Nn.Line){if(o=i3(this._lineCursorWidth>0?this._lineCursorWidth:2),o>2){var a=this._context.model.getLineContent(this._position.lineNumber);t=a.charAt(this._position.column-1)}}else o=i3(1);var s=i.left;o>=2&&s>=1&&(s-=1);var l=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new O4(l,s,o,this._lineHeight,t,r)}var u=e.linesVisibleRangesForRange(new q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!u||u.length===0||u[0].ranges.length===0)return null;var c=u[0].ranges[0],d=c.width<1?this._typicalHalfwidthCharacterWidth:c.width;if(this._cursorStyle===Nn.Block){var f=this._context.model.getViewLineData(this._position.lineNumber);t=f.content.charAt(this._position.column-1),Mi(f.content.charCodeAt(this._position.column-1))&&(t+=f.content.charAt(this._position.column));var h=f.tokens.findTokenIndexAtOffset(this._position.column-1);r=f.tokens.getClassName(h)}var p=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,v=this._lineHeight;return(this._cursorStyle===Nn.Underline||this._cursorStyle===Nn.UnderlineThin)&&(p+=this._lineHeight-2,v=2),new O4(p,c.left,d,v,t,r)},n.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},n.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+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)},n.prototype.updatePosition=function(e){this._position=e},n}(),cxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),dxe=function(n){cxe(e,n);function e(t){var r=n.call(this,t)||this;return r._readOnly=r._context.configuration.editor.readOnly,r._cursorBlinking=r._context.configuration.editor.viewInfo.cursorBlinking,r._cursorStyle=r._context.configuration.editor.viewInfo.cursorStyle,r._cursorSmoothCaretAnimation=r._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,r._selectionIsEmpty=!0,r._primaryCursor=new N4(r._context),r._secondaryCursors=[],r._renderData=[],r._domNode=Bt(document.createElement("div")),r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true"),r._updateDomClassName(),r._domNode.appendChild(r._primaryCursor.getDomNode()),r._startCursorBlinkAnimation=new Ei,r._cursorFlatBlinkInterval=new Hg,r._blinkingEnabled=!1,r._editorHasFocus=!1,r._updateBlinking(),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},e.prototype.getDomNode=function(){return this._domNode},e.prototype.onConfigurationChanged=function(t){t.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),t.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(t),this._updateBlinking(),t.viewInfo&&this._updateDomClassName();for(var r=0,i=this._secondaryCursors.length;rr.length)for(var s=this._secondaryCursors.length-r.length,o=0;or)for(var a=t-r,o=0;o=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},n.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,r=this.secondaryCursors.length;th&&E.index--}e.splice(h,1),t.splice(f,1),this._removeSecondaryCursor(h-1),o--}}}}},n}(),Sxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function Exe(n){for(var e=0,t=n.length;ee.MAX_CURSOR_COUNT&&(i=i.slice(0,e.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new AS(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(t,r,o)},e.prototype.setColumnSelectData=function(t){this._columnSelectData=t},e.prototype.reveal=function(t,r,i){this._revealRange(r,0,t,i)},e.prototype.revealRange=function(t,r,i,o){this.emitCursorRevealRange(r,i,t,o)},e.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},e.prototype.saveState=function(){for(var t=[],r=this._cursors.getSelections(),i=0,o=r.length;i1)return;var u=new q(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(u,r,i,o)},e.prototype.emitCursorRevealRange=function(t,r,i,o){try{var a=this._beginEmit();a.emit(new dA(t,r,i,o))}finally{this._endEmit()}},e.prototype.trigger=function(t,r,i){var o=hn;if(r===o.CompositionStart){this._isDoingComposition=!0;return}if(r===o.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var a=new AS(this._model,this),s=0;r!==o.Undo&&r!==o.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(r){case o.Type:this._type(t,i.text);break;case o.ReplacePreviousChar:this._replacePreviousChar(i.text,i.replaceCharCnt);break;case o.Paste:s=4,this._paste(i.text,i.pasteOnNewLine,i.multicursorText);break;case o.Cut:this._cut();break;case o.Undo:s=5,this._interpretCommandResult(this._model.undo());break;case o.Redo:s=6,this._interpretCommandResult(this._model.redo());break;case o.ExecuteCommand:this._externalExecuteCommand(i);break;case o.ExecuteCommands:this._externalExecuteCommands(i);break;case o.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(l){et(l)}this._isHandling=!1,r!==o.Undo&&r!==o.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(t,s,a)&&this._revealRange(0,0,!0,0)},e.prototype._interpretCompositionEnd=function(t){!this._isDoingComposition&&t==="keyboard"&&this._executeEditOperation(pa.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))},e.prototype._type=function(t,r){if(!this._isDoingComposition&&t==="keyboard")for(var i=0,o=r.length;i0&&(a[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,a,function(v){for(var m=[],g=0;g0?(m[L].sort(w),C[L]=t[L].computeCursorState(e.model,{getInverseEditOperations:function(){return m[L]},getTrackedSelection:function(E){var T=parseInt(E,10),P=e.model._getTrackedRange(e.trackedRanges[T]);return e.trackedRangesDirection[T]===0?new Ze(P.startLineNumber,P.startColumn,P.endLineNumber,P.endColumn):new Ze(P.endLineNumber,P.endColumn,P.startLineNumber,P.startColumn)}})):C[L]=e.selectionsBefore[L]},g=0;go.identifier.major?a=i.identifier.major:a=o.identifier.major,t[a.toString()]=!0;for(var s=0;s0&&r--}}return t},n}(),b$=function(){function n(e,t,r,i,o,a){this.id=e,this.label=t,this.alias=r,this._precondition=i,this._run=o,this._contextKeyService=a}return n.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},n.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},n}(),M4={getInitialState:function(){return $g},tokenize2:function(n,e,t){return Ky(0,n,e,t)}};function k4(n,e){return e===void 0&&(e=M4),xxe(n,e||M4)}function Txe(n,e,t,r,i,o){for(var a="
",s=r,l=0,u=0,c=e.getCount();u0;)f+=" ",p--;break;case 60:f+="<";break;case 62:f+=">";break;case 38:f+="&";break;case 0:f+="�";break;case 65279:case 8232:f+="�";break;case 13:f+="​";break;default:f+=String.fromCharCode(h)}}if(a+=''+f+"",d>i||s>=i)break}}return a+="
",a}function xxe(n,e){for(var t='
',r=n.split(/\r\n|\r|\n/),i=e.getInitialState(),o=0,a=r.length;o0&&(t+="
");var l=e.tokenize2(s,i,0);ba.convertToEndOffset(l.tokens,s.length);for(var u=new ba(l.tokens,s),c=u.inflate(),d=0,f=0,h=c.getCount();f'+wi(s.substring(d,v))+"",d=v}i=l.endState}return t+="
",t}var Oxe=function(){function n(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return n.findInsertionIndex=function(e,t,r,i){for(var o=0,a=e.length;o>>1;t===e[s]?i=t&&(this._whitespaceId2Index[c]=d+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},n.prototype.changeWhitespace=function(e,t,r){e=e|0,t=t|0,r=r|0;var i=!1;return i=this.changeWhitespaceHeight(e,r)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i,i},n.prototype.changeWhitespaceHeight=function(e,t){e=e|0,t=t|0;var r=e.toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._heights[i]!==t)return this._heights[i]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1),!0}return!1},n.prototype.changeWhitespaceAfterLineNumber=function(e,t){e=e|0,t=t|0;var r=e.toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._afterLineNumbers[i]!==t){var o=this._ordinals[i],a=this._heights[i],s=this._minWidths[i];this.removeWhitespace(e);var l=n.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,o);return this._insertWhitespaceAtIndex(e,l,t,o,a,s),!0}}return!1},n.prototype.removeWhitespace=function(e){e=e|0;var t=e.toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var r=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(r),this._minWidth=-1,!0}return!1},n.prototype._removeWhitespaceAtIndex=function(e){e=e|0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),r=0,i=t.length;r=e&&(this._whitespaceId2Index[o]=a-1)}},n.prototype.onLinesDeleted=function(e,t){e=e|0,t=t|0;for(var r=0,i=this._afterLineNumbers.length;rt&&(this._afterLineNumbers[r]-=t-e+1)}},n.prototype.onLinesInserted=function(e,t){e=e|0,t=t|0;for(var r=0,i=this._afterLineNumbers.length;r=t.length||t[s+1]>=e)return s;r=s+1|0}else i=s-1|0}return-1},n.prototype._findFirstWhitespaceAfterLineNumber=function(e){e=e|0;var t=this._findLastWhitespaceBeforeLineNumber(e),r=t+1;return r1?t=this._lineHeight*(e-1):t=0;var r=this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);return t+r},n.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},n.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},n.prototype.isAfterLines=function(e){var t=this.getLinesTotalHeight();return e>t},n.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(e=e|0,e<0)return 1;for(var t=this._lineCount|0,r=this._lineHeight,i=1,o=t;i=s+r)i=a+1;else{if(e>=s)return a;o=a}}return i>t?t:i},n.prototype.getLinesViewportData=function(e,t){e=e|0,t=t|0;var r=this._lineHeight,i=this.getLineNumberAtOrAfterVerticalOffset(e)|0,o=this.getVerticalOffsetForLineNumber(i)|0,a=this._lineCount|0,s=this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(i)|0,l=this._whitespaces.getCount()|0,u,c;s===-1?(s=l,c=a+1,u=0):(c=this._whitespaces.getAfterLineNumberForWhitespaceIndex(s)|0,u=this._whitespaces.getHeightForWhitespaceIndex(s)|0);var d=o,f=d,h=5e5,p=0;o>=h&&(p=Math.floor(o/h)*h,p=Math.floor(p/r)*r,f-=p);for(var v=[],m=e+(t-e)/2,g=-1,_=i;_<=a;_++){if(g===-1){var y=d,b=d+r;(y<=m&&mm)&&(g=_)}for(d+=r,v[_-i]=f,f+=r;c===_;)f+=u,d+=u,s++,s>=l?c=a+1:(c=this._whitespaces.getAfterLineNumberForWhitespaceIndex(s)|0,u=this._whitespaces.getHeightForWhitespaceIndex(s)|0);if(d>=t){a=_;break}}g===-1&&(g=a);var w=this.getVerticalOffsetForLineNumber(a)|0,C=i,S=a;return Ct&&S--,{bigNumbersDelta:p,startLineNumber:i,endLineNumber:a,relativeVerticalOffset:v,centeredLineNumber:g,completelyVisibleStartLineNumber:C,completelyVisibleEndLineNumber:S}},n.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e=e|0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e),r;t>=1?r=this._lineHeight*t:r=0;var i;return e>0?i=this._whitespaces.getAccumulatedHeight(e-1):i=0,r+i},n.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e=e|0;var t,r=0,i=this._whitespaces.getCount()-1,o,a;if(i<0)return-1;var s=this.getVerticalOffsetForWhitespaceIndex(i),l=this._whitespaces.getHeightForWhitespaceIndex(i);if(e>=s+l)return-1;for(;r=o+a)r=t+1;else{if(e>=o)return t;i=t}return r},n.prototype.getWhitespaceAtVerticalOffset=function(e){e=e|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this._whitespaces.getCount())return null;var r=this.getVerticalOffsetForWhitespaceIndex(t);if(r>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t),o=this._whitespaces.getIdForWhitespaceIndex(t),a=this._whitespaces.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:a,verticalOffset:r,height:i}},n.prototype.getWhitespaceViewportData=function(e,t){e=e|0,t=t|0;var r=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this._whitespaces.getCount()-1;if(r<0)return[];for(var o=[],a=r;a<=i;a++){var s=this.getVerticalOffsetForWhitespaceIndex(a),l=this._whitespaces.getHeightForWhitespaceIndex(a);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(a),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(a),verticalOffset:s,height:l})}return o},n.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},n}(),Axe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Dxe=125,Rxe=function(n){Axe(e,n);function e(t,r,i){var o=n.call(this)||this;return o._configuration=t,o._linesLayout=new Nxe(r,o._configuration.editor.lineHeight),o.scrollable=o._register(new v$(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onHeightMaybeChanged=function(){this._updateHeight()},e.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?Dxe:0)},e.prototype.onConfigurationChanged=function(t){t.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),t.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),t.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},e.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},e.prototype.onLinesDeleted=function(t,r){this._linesLayout.onLinesDeleted(t,r)},e.prototype.onLinesInserted=function(t,r){this._linesLayout.onLinesInserted(t,r)},e.prototype._getHorizontalScrollbarHeight=function(t){return this._configuration.editor.viewInfo.scrollbar.horizontal===2||t.width>=t.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},e.prototype._getTotalHeight=function(){var t=this.scrollable.getScrollDimensions(),r=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?r+=t.height-this._configuration.editor.lineHeight:r+=this._getHorizontalScrollbarHeight(t),Math.max(t.height,r)},e.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},e.prototype.getCurrentViewport=function(){var t=this.scrollable.getScrollDimensions(),r=this.scrollable.getCurrentScrollPosition();return new O3(r.scrollTop,r.scrollLeft,t.width,t.height)},e.prototype.getFutureViewport=function(){var t=this.scrollable.getScrollDimensions(),r=this.scrollable.getFutureScrollPosition();return new O3(r.scrollTop,r.scrollLeft,t.width,t.height)},e.prototype._computeScrollWidth=function(t,r){var i=this._configuration.editor.wrappingInfo.isViewportWrapping;if(!i){var o=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+o,r,a)}return Math.max(t,r)},e.prototype.onMaxLineWidthChanged=function(t){var r=this._computeScrollWidth(t,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:r}),this._updateHeight()},e.prototype.saveState=function(){var t=this.scrollable.getFutureScrollPosition(),r=t.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(r),o=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:r,scrollTopWithoutViewZones:r-o,scrollLeft:t.scrollLeft}},e.prototype.addWhitespace=function(t,r,i,o){return this._linesLayout.insertWhitespace(t,r,i,o)},e.prototype.changeWhitespace=function(t,r,i){return this._linesLayout.changeWhitespace(t,r,i)},e.prototype.removeWhitespace=function(t){return this._linesLayout.removeWhitespace(t)},e.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},e.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},e.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},e.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},e.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},e.prototype.getLinesViewportDataAtScrollTop=function(t){var r=this.scrollable.getScrollDimensions();return t+r.height>r.scrollHeight&&(t=r.scrollHeight-r.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+r.height)},e.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},e.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},e.prototype.getScrollWidth=function(){var t=this.scrollable.getScrollDimensions();return t.scrollWidth},e.prototype.getScrollHeight=function(){var t=this.scrollable.getScrollDimensions();return t.scrollHeight},e.prototype.getCurrentScrollLeft=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollLeft},e.prototype.getCurrentScrollTop=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollTop},e.prototype.validateScrollPosition=function(t){return this.scrollable.validateScrollPosition(t)},e.prototype.setScrollPositionNow=function(t){this.scrollable.setScrollPositionNow(t)},e.prototype.setScrollPositionSmooth=function(t){this.scrollable.setScrollPositionSmooth(t)},e.prototype.deltaScrollNow=function(t,r){var i=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+t,scrollTop:i.scrollTop+r})},e}($e),Pxe=function(){function n(e,t){this.outputLineIndex=e,this.outputOffset=t}return n}(),Mxe=function(){function n(e){this._lines=e}return n.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},n.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q(t.lineNumber,t.column,r.lineNumber,r.column)},n.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},n.prototype.validateViewRange=function(e,t){var r=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q(r.lineNumber,r.column,i.lineNumber,i.column)},n.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},n.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),r=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new q(t.lineNumber,t.column,r.lineNumber,r.column)},n.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},n}(),kxe=function(){function n(e,t,r,i,o,a){this.model=e,this._validModelVersionId=-1,this.tabSize=r,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=a,this.linePositionMapperFactory=t,this._constructLines(!0)}return n.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},n.prototype.createCoordinatesConverter=function(){return new Mxe(this)},n.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},n.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var r=this.model.getLinesContent(),i=r.length,o=new Uint32Array(i),a=this.hiddenAreasIds.map(function(v){return t.model.getDecorationRange(v)}).sort(q.compareRangesUsingStarts),s=1,l=0,u=-1,c=u+1=s&&f<=l,p=DS(this.linePositionMapperFactory,r[d],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);o[d]=p.getViewLineCount(),this.lines[d]=p}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Fwe(o)},n.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},n.prototype._reduceRanges=function(e){var t=this;if(e.length===0)return[];for(var r=e.map(function(c){return t.model.validateRange(c)}).sort(q.compareRangesUsingStarts),i=[],o=r[0].startLineNumber,a=r[0].endLineNumber,s=1,l=r.length;sa+1?(i.push(new q(o,1,a,1)),o=u.startLineNumber,a=u.endLineNumber):u.endLineNumber>a&&(a=u.endLineNumber)}return i.push(new q(o,1,a,1)),i},n.prototype.setHiddenAreas=function(e){var t=this,r=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(b){return t.model.getDecorationRange(b)}).sort(q.compareRangesUsingStarts);if(r.length===i.length){for(var o=!1,a=0;a=f&&g<=h?this.lines[a].isVisible()&&(this.lines[a]=this.lines[a].setVisible(!1),_=!0):(m=!0,this.lines[a].isVisible()||(this.lines[a]=this.lines[a].setVisible(!0),_=!0)),_){var y=this.lines[a].getViewLineCount();this.prefixSumComputer.changeValue(a,y)}}return m||this.setHiddenAreas([]),!0},n.prototype.modelPositionIsVisible=function(e,t){return e<1||e>this.lines.length?!1:this.lines[e-1].isVisible()},n.prototype.setTabSize=function(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1),!0)},n.prototype.setWrappingSettings=function(e,t,r){return this.wrappingIndent===e&&this.wrappingColumn===t&&this.columnsForFullWidthChar===r?!1:(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=r,this._constructLines(!1),!0)},n.prototype.onModelFlushed=function(){this._constructLines(!0)},n.prototype.onModelLinesDeleted=function(e,t,r){if(e<=this._validModelVersionId)return null;var i=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(r-1);return this.lines.splice(t-1,r-t+1),this.prefixSumComputer.removeValues(t-1,r-t+1),new yI(i,o)},n.prototype.onModelLinesInserted=function(e,t,r,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),a=!1,s=new he(t,1),l=0,u=o;ll?(c=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,d=c+l-1,p=d+1,v=p+(o-l)-1,u=!0):ot?t:e},n.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},n.prototype.getActiveIndentGuide=function(e,t,r){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),r=this._toValidViewLineNumber(r);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),a=this.convertViewPositionToModelPosition(r,this.getViewLineMinColumn(r)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,a.lineNumber),l=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},n.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],a=[],s=[],l=r.lineNumber-1,u=i.lineNumber-1,c=null,d=l;d<=u;d++){var f=this.lines[d];if(f.isVisible()){var h=f.getViewLineNumberOfModelPosition(0,d===l?r.column:1),p=f.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(d+1)),v=p-h+1,m=0;v>1&&f.getViewLineMinColumn(this.model,d+1,p)===1&&(m=h===0?1:2),a.push(v),s.push(m),c===null&&(c=new he(d+1,0))}else c!==null&&(o=o.concat(this.model.getLinesIndentGuides(c.lineNumber,d)),c=null)}c!==null&&(o=o.concat(this.model.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);for(var g=t-e+1,_=new Array(g),y=0,b=0,w=o.length;bt&&(p=!0,h=t-o+1);var v=f+h;if(d.getViewLinesData(this.model,u+1,f,v,o-e,r,l),o+=h,p)break}}return l},n.prototype.validateViewPosition=function(e,t,r){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,a=i.remainder,s=this.lines[o],l=s.getViewLineMinColumn(this.model,o+1,a),u=s.getViewLineMaxColumn(this.model,o+1,a);tu&&(t=u);var c=s.getModelColumnOfViewPosition(a,t),d=this.model.validatePosition(new he(o+1,c));return d.equals(r)?new he(e,t):this.convertModelPositionToViewPosition(r.lineNumber,r.column)},n.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1),i=r.index,o=r.remainder,a=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new he(i+1,a))},n.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var r=this.model.validatePosition(new he(e,t)),i=r.lineNumber,o=r.column,a=i-1,s=!1;a>0&&!this.lines[a].isVisible();)a--,s=!0;if(a===0&&!this.lines[a].isVisible())return new he(1,1);var l=1+(a===0?0:this.prefixSumComputer.getAccumulatedValue(a-1)),u;return s?u=this.lines[a].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(a+1)):u=this.lines[i-1].getViewPositionOfModelPosition(l,o),u},n.prototype._getViewLineNumberForModelPosition=function(e,t){var r=e-1;if(this.lines[r].isVisible()){var i=1+(r===0?0:this.prefixSumComputer.getAccumulatedValue(r-1));return this.lines[r].getViewLineNumberOfModelPosition(i,t)}for(;r>0&&!this.lines[r].isVisible();)r--;if(r===0&&!this.lines[r].isVisible())return 1;var o=1+(r===0?0:this.prefixSumComputer.getAccumulatedValue(r-1));return this.lines[r].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(r+1))},n.prototype.getAllOverviewRulerDecorations=function(e,t,r){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new S$,a=0,s=i;aw.id?1:0:C});for(var h=[],p=0,v=null,m=0,g=a;m0&&(a=this.wrappedIndent+a),a},n.prototype.getViewLineLength=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(r),o=this.getInputEndOffsetOfOutputLineIndex(e,t,r),a=o-i;return r>0&&(a=this.wrappedIndent.length+a),a},n.prototype.getViewLineMinColumn=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");return r>0?this.wrappedIndentLength+1:1},n.prototype.getViewLineMaxColumn=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,r).length+1},n.prototype.getViewLineData=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(r),o=this.getInputEndOffsetOfOutputLineIndex(e,t,r),a=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});r>0&&(a=this.wrappedIndent+a);var s=r>0?this.wrappedIndentLength+1:1,l=a.length+1,u=r+10&&(c=this.wrappedIndentLength);var d=e.getLineTokens(t);return new UN(a,u,s,l,d.sliceAndInflate(i,o,c))},n.prototype.getViewLinesData=function(e,t,r,i,o,a,s){if(!this._isVisible)throw new Error("Not supported");for(var l=r;l0&&(r0&&(o+=this.wrappedIndentLength),new he(e+i,o)},n.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var r=this.positionMapper.getOutputPositionOfInputOffset(t-1);return e+r.outputLineIndex},n}();function DS(n,e,t,r,i,o,a){var s=n.createLineMapping(e,t,r,i,o);return s===null?a?C$.INSTANCE:w$.INSTANCE:new Fxe(s,a)}var Bxe=function(){function n(e){this._lines=e}return n.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},n.prototype._validRange=function(e){return this._lines.model.validateRange(e)},n.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},n.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},n.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},n.prototype.validateViewRange=function(e,t){return this._validRange(t)},n.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},n.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},n.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},n}(),Wxe=function(){function n(e){this.model=e}return n.prototype.dispose=function(){},n.prototype.createCoordinatesConverter=function(){return new Bxe(this)},n.prototype.getHiddenAreas=function(){return[]},n.prototype.setHiddenAreas=function(e){return!1},n.prototype.setTabSize=function(e){return!1},n.prototype.setWrappingSettings=function(e,t,r){return!1},n.prototype.onModelFlushed=function(){},n.prototype.onModelLinesDeleted=function(e,t,r){return new yI(t,r)},n.prototype.onModelLinesInserted=function(e,t,r,i){return new bI(t,r)},n.prototype.onModelLineChanged=function(e,t,r){return[!1,new n$(t,t),null,null]},n.prototype.acceptVersionId=function(e){},n.prototype.getViewLineCount=function(){return this.model.getLineCount()},n.prototype.warmUpLookupCache=function(e,t){},n.prototype.getActiveIndentGuide=function(e,t,r){return{startLineNumber:e,endLineNumber:e,indent:0}},n.prototype.getViewLinesIndentGuides=function(e,t){for(var r=t-e+1,i=new Array(r),o=0;o=t){r>s&&(o[o.length-1]=r);return}o.push(i,t,r)}else this.result[e]=[i,t,r]},n}(),Vxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hxe=function(n){Vxe(e,n);function e(t,r,i){for(var o=n.call(this,0)||this,a=0;a=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:n.prototype.get.call(this,t)},e}(kC),Uxe=function(){function n(e,t,r){this.classifier=new Hxe(e,t,r)}return n.nextVisibleColumn=function(e,t,r,i){return e=+e,t=+t,i=+i,r?e+(t-e%t):e+i},n.prototype.createLineMapping=function(e,t,r,i,o){if(r===-1)return null;t=+t,r=+r,i=+i,o=+o;var a=0,s="",l=-1;if(o!==0&&(l=eo(e),l!==-1)){s=e.substring(0,l);for(var u=0;ur&&(s="",a=0)}for(var d=this.classifier,f=0,h=[],p=0,v=0,m=-1,g=0,_=-1,y=0,b=e.length,u=0;u0){var L=e.charCodeAt(u-1),E=d.get(L);E!==1&&(m=u,g=a)}var T=1;if(Cu(w)&&(T=i),v=n.nextVisibleColumn(v,t,C,T),v>r&&u!==0){var P=void 0,A=void 0;m!==-1&&g<=r?(P=m,A=g):_!==-1&&y<=r?(P=_,A=y):(P=u,A=a),h[p++]=P-f,f=P,v=n.nextVisibleColumn(A,t,C,T),m=-1,g=0,_=-1,y=0}if(m!==-1&&(g=n.nextVisibleColumn(g,t,C,T)),_!==-1&&(y=n.nextVisibleColumn(y,t,C,T)),S===2&&(o===0||u>=l)&&(m=u+1,g=a),S===4&&u=2&&t.viewportStartLineTrackedRange){var g=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(g){var _=t.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),y=t.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:y+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(r){for(var i=[],o=0,a=r.ranges.length;ou||(s"u")return this._reduceRestoreStateCompatibility(t);var r=this.model.validatePosition(t.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(r),o=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:o}},e.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},e.prototype.getTabSize=function(){return this.model.getOptions().tabSize},e.prototype.getOptions=function(){return this.model.getOptions()},e.prototype.getLineCount=function(){return this.lines.getViewLineCount()},e.prototype.setViewport=function(t,r,i){this.lines.warmUpLookupCache(t,r),this.viewportStartLine=t;var o=this.coordinatesConverter.convertViewPositionToModelPosition(new he(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new q(o.lineNumber,o.column,o.lineNumber,o.column),1);var a=this.viewLayout.getVerticalOffsetForLineNumber(t),s=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=s-a},e.prototype.getActiveIndentGuide=function(t,r,i){return this.lines.getActiveIndentGuide(t,r,i)},e.prototype.getLinesIndentGuides=function(t,r){return this.lines.getViewLinesIndentGuides(t,r)},e.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},e.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},e.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},e.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},e.prototype.getLineFirstNonWhitespaceColumn=function(t){var r=eo(this.getLineContent(t));return r===-1?0:r+1},e.prototype.getLineLastNonWhitespaceColumn=function(t){var r=Au(this.getLineContent(t));return r===-1?0:r+2},e.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},e.prototype.getViewLineRenderingData=function(t,r){var i=this.model.mightContainRTL(),o=this.model.mightContainNonBasicASCII(),a=this.getTabSize(),s=this.lines.getViewLineData(r),l=this.decorations.getDecorationsViewportData(t).inlineDecorations,u=l[r-t.startLineNumber];return new Ea(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,o,s.tokens,u,a)},e.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},e.prototype.getMinimapLinesRenderingData=function(t,r,i){var o=this.lines.getViewLinesData(t,r,i);return new gSe(this.getTabSize(),o)},e.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,t)},e.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),r=0,i=t;r0&&l[c-1]===l[c]||(u+=this.model.getLineContent(l[c])+a);return u}for(var d=[],f=0,h=s;f'+this._getHTMLToCopy(i,s)+""},e.prototype._getHTMLToCopy=function(t,r){for(var i=t.startLineNumber,o=t.startColumn,a=t.endLineNumber,s=t.endColumn,l=this.getTabSize(),u="",c=i;c<=a;c++){var d=this.model.getLineTokens(c),f=d.getLineContent(),h=c===i?o-1:0,p=c===a?s-1:f.length;f===""?u+="
":u+=Txe(f,d.inflate(),r,h,p,l)}return u},e.prototype._getColorMap=function(){var t=Dn.getColorMap(),r=["#000000"];if(t)for(var i=1,o=t.length;i=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Xu=function(n,e){return function(t,r){e(t,r,n)}},qxe=0,ob="showUnused",Yxe=function(){function n(e,t,r,i,o,a){this.model=e,this.viewModel=t,this.cursor=r,this.view=i,this.hasRealView=o,this.listenersToRemove=a}return n.prototype.dispose=function(){Ne(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},n}(),CA=function(n){Gg(e,n);function e(t,r,i,o,a,s,l,u,c,d){var f=n.call(this)||this;f._onDidDispose=f._register(new ae),f.onDidDispose=f._onDidDispose.event,f._onDidChangeModelContent=f._register(new ae),f.onDidChangeModelContent=f._onDidChangeModelContent.event,f._onDidChangeModelLanguage=f._register(new ae),f.onDidChangeModelLanguage=f._onDidChangeModelLanguage.event,f._onDidChangeModelLanguageConfiguration=f._register(new ae),f.onDidChangeModelLanguageConfiguration=f._onDidChangeModelLanguageConfiguration.event,f._onDidChangeModelOptions=f._register(new ae),f.onDidChangeModelOptions=f._onDidChangeModelOptions.event,f._onDidChangeModelDecorations=f._register(new ae),f.onDidChangeModelDecorations=f._onDidChangeModelDecorations.event,f._onDidChangeConfiguration=f._register(new ae),f.onDidChangeConfiguration=f._onDidChangeConfiguration.event,f._onDidChangeModel=f._register(new ae),f.onDidChangeModel=f._onDidChangeModel.event,f._onDidChangeCursorPosition=f._register(new ae),f.onDidChangeCursorPosition=f._onDidChangeCursorPosition.event,f._onDidChangeCursorSelection=f._register(new ae),f.onDidChangeCursorSelection=f._onDidChangeCursorSelection.event,f._onDidAttemptReadOnlyEdit=f._register(new ae),f.onDidAttemptReadOnlyEdit=f._onDidAttemptReadOnlyEdit.event,f._onDidLayoutChange=f._register(new ae),f.onDidLayoutChange=f._onDidLayoutChange.event,f._editorTextFocus=f._register(new F4),f.onDidFocusEditorText=f._editorTextFocus.onDidChangeToTrue,f.onDidBlurEditorText=f._editorTextFocus.onDidChangeToFalse,f._editorWidgetFocus=f._register(new F4),f.onDidFocusEditorWidget=f._editorWidgetFocus.onDidChangeToTrue,f.onDidBlurEditorWidget=f._editorWidgetFocus.onDidChangeToFalse,f._onWillType=f._register(new ae),f.onWillType=f._onWillType.event,f._onDidType=f._register(new ae),f.onDidType=f._onDidType.event,f._onCompositionStart=f._register(new ae),f.onCompositionStart=f._onCompositionStart.event,f._onCompositionEnd=f._register(new ae),f.onCompositionEnd=f._onCompositionEnd.event,f._onDidPaste=f._register(new ae),f.onDidPaste=f._onDidPaste.event,f._onMouseUp=f._register(new ae),f.onMouseUp=f._onMouseUp.event,f._onMouseDown=f._register(new ae),f.onMouseDown=f._onMouseDown.event,f._onMouseDrag=f._register(new ae),f.onMouseDrag=f._onMouseDrag.event,f._onMouseDrop=f._register(new ae),f.onMouseDrop=f._onMouseDrop.event,f._onContextMenu=f._register(new ae),f.onContextMenu=f._onContextMenu.event,f._onMouseMove=f._register(new ae),f.onMouseMove=f._onMouseMove.event,f._onMouseLeave=f._register(new ae),f.onMouseLeave=f._onMouseLeave.event,f._onMouseWheel=f._register(new ae),f.onMouseWheel=f._onMouseWheel.event,f._onKeyUp=f._register(new ae),f.onKeyUp=f._onKeyUp.event,f._onKeyDown=f._register(new ae),f.onKeyDown=f._onKeyDown.event,f._onDidScrollChange=f._register(new ae),f.onDidScrollChange=f._onDidScrollChange.event,f._onDidChangeViewZones=f._register(new ae),f.onDidChangeViewZones=f._onDidChangeViewZones.event,f._domElement=t,f._id=++qxe,f._decorationTypeKeysToIds={},f._decorationTypeSubtypes={},f.isSimpleWidget=i.isSimpleWidget||!1,f._telemetryData=i.telemetryData,r=r||{},f._configuration=f._register(f._createConfiguration(r,d)),f._register(f._configuration.onDidChange(function(_){f._onDidChangeConfiguration.fire(_),_.layoutInfo&&f._onDidLayoutChange.fire(f._configuration.editor.layoutInfo),f._configuration.editor.showUnused?f._domElement.classList.add(ob):f._domElement.classList.remove(ob)})),f._contextKeyService=f._register(l.createScoped(f._domElement)),f._notificationService=c,f._codeEditorService=a,f._commandService=s,f._themeService=u,f._register(new Xxe(f,f._contextKeyService)),f._register(new Zxe(f,f._contextKeyService)),f._instantiationService=o.createChild(new _h([jt,f._contextKeyService])),f._attachModel(null),f._contributions={},f._actions={},f._focusTracker=new Qxe(t),f._focusTracker.onChange(function(){f._editorWidgetFocus.setValue(f._focusTracker.hasFocus())}),f._contentWidgets={},f._overlayWidgets={};var h;Array.isArray(i.contributions)?h=i.contributions:h=vv.getEditorContributions();for(var p=0,v=h.length;p=0?i=i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,S+1)):i=i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),r)return new i_(i,w+e.normalizeIndentation(m.afterEnter),!0);var E=0;return C<=S+1&&(e.insertSpaces||(y=Math.ceil(y/e.indentSize)),E=Math.min(y+1-e.normalizeIndentation(m.afterEnter).length-1,0)),new _p(i,w+e.normalizeIndentation(m.afterEnter),0,E,!0)}else return n._typeCommand(i,` +`+e.normalizeIndentation(_),r)},n._isAutoIndentType=function(e,t,r){if(!e.autoIndent)return!1;for(var i=0,o=r.length;i1&&a!=="always"){var h=ud(e.wordSeparators),p=f.charCodeAt(d.column-2),v=h.get(p);if(v===0)return!1}var m=f.charAt(d.column-1);if(m){var g=n._isBeforeClosingBrace(e,i,m);if(!g&&!s(m))return!1}if(!t.isCheapToTokenize(d.lineNumber))return!1;t.forceTokenization(d.lineNumber);var _=t.getLineTokens(d.lineNumber),y=!1;try{y=Ut.shouldAutoClosePair(i,_,d.column)}catch(C){Je(C)}if(!y)return!1}return!0},n._runAutoClosingOpenCharType=function(e,t,r,i,o){for(var a=[],s=0,l=i.length;s2){var f=ud(t.wordSeparators),h=l.charCodeAt(s.column-3),p=f.get(h);if(p===0)continue}var v=l.charAt(s.column-1);if(v){var m=n._isBeforeClosingBrace(t,u,v),g=Bl(u)?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket;if(m||!g(v))continue}if(!r.isCheapToTokenize(s.lineNumber))continue;r.forceTokenization(s.lineNumber);var _=r.getLineTokens(s.lineNumber),y=!1;try{y=Ut.shouldAutoClosePair(u,_,s.column-1)}catch(w){Je(w)}if(y){var C=t.autoClosingPairsOpen[u];o[a]=new _p(i[a],C,0,-C.length)}}}return new gi(1,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},n.typeWithInterceptors=function(e,t,r,i,o){if(o===` +`){for(var a=[],s=0,l=i.length;s1)for(var b=C.modelState?C.modelState.position:null,S=C.viewState?C.viewState.position:null,E=0,L=w.length;Ew&&(C=w);var b=new q(C,1,C,g.context.model.getLineMaxColumn(C)),S=0;if(y.at)switch(y.at){case Ef.RawAtArgument.Top:S=3;break;case Ef.RawAtArgument.Center:S=1;break;case Ef.RawAtArgument.Bottom:S=4;break}var E=g.context.convertModelRangeToViewRange(b);g.revealRange(!1,E,S,0)},m}(Mn))),n.SelectAll=Ae(new(function(v){Kt(m,v);function m(){return v.call(this,{id:"selectAll",precondition:null})||this}return m.prototype.runCoreEditorCommand=function(g,_){g.context.model.pushStackElement(),g.setStates(_.source,3,[Br.selectAll(g.context,g.getPrimaryCursor())])},m}(Mn))),n.SetSelection=Ae(new(function(v){Kt(m,v);function m(){return v.call(this,{id:"setSelection",precondition:null})||this}return m.prototype.runCoreEditorCommand=function(g,_){g.context.model.pushStackElement(),g.setStates(_.source,3,[Rt.fromModelSelection(_.selection)])},m}(Mn)))})(oi||(oi={}));var wI;(function(n){var e=function(t){Kt(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.runEditorCommand=function(i,o,a){var s=o._getCursors();s&&this.runCoreEditingCommand(o,s,a||{})},r}(ro);n.CoreEditingCommand=e,n.LineBreakInsert=Ae(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"lineBreakInsert",precondition:J.writable,kbOpts:{weight:Ht,kbExpr:J.textInputFocus,primary:0,mac:{primary:301}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.lineBreakInsert(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection})))},r}(e))),n.Outdent=Ae(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"outdent",precondition:J.writable,kbOpts:{weight:Ht,kbExpr:dt.and(J.editorTextFocus,J.tabDoesNotMoveFocus),primary:1026}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.outdent(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection}))),i.pushUndoStop()},r}(e))),n.Tab=Ae(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"tab",precondition:J.writable,kbOpts:{weight:Ht,kbExpr:dt.and(J.editorTextFocus,J.tabDoesNotMoveFocus),primary:2}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){i.pushUndoStop(),i.executeCommands(this.id,pa.tab(o.context.config,o.context.model,o.getAll().map(function(s){return s.modelState.selection}))),i.pushUndoStop()},r}(e))),n.DeleteLeft=Ae(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"deleteLeft",precondition:J.writable,kbOpts:{weight:Ht,kbExpr:J.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){var s=CI.deleteLeft(o.getPrevEditOperationType(),o.context.config,o.context.model,o.getAll().map(function(c){return c.modelState.selection})),l=s[0],u=s[1];l&&i.pushUndoStop(),i.executeCommands(this.id,u),o.setPrevEditOperationType(2)},r}(e))),n.DeleteRight=Ae(new(function(t){Kt(r,t);function r(){return t.call(this,{id:"deleteRight",precondition:J.writable,kbOpts:{weight:Ht,kbExpr:J.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return r.prototype.runCoreEditingCommand=function(i,o,a){var s=CI.deleteRight(o.getPrevEditOperationType(),o.context.config,o.context.model,o.getAll().map(function(c){return c.modelState.selection})),l=s[0],u=s[1];l&&i.pushUndoStop(),i.executeCommands(this.id,u),o.setPrevEditOperationType(3)},r}(e)))})(wI||(wI={}));function cd(n){n.register()}var mD=function(n){Kt(e,n);function e(t){var r=n.call(this,t)||this;return r._editorHandler=t.editorHandler,r._inputHandler=t.inputHandler,r}return e.prototype.runCommand=function(t,r){var i=t.get(Pn).getFocusedCodeEditor();if(i&&i.hasTextFocus())return this._runEditorHandler(t,i,r);var o=document.activeElement;if(o&&["input","textarea"].indexOf(o.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var a=t.get(Pn).getActiveCodeEditor();if(a)return a.focus(),this._runEditorHandler(t,a,r)},e.prototype._runEditorHandler=function(t,r,i){var o=this._editorHandler;typeof o=="string"?r.trigger("keyboard",o,i):(i=i||{},i.source="keyboard",o.runEditorCommand(t,r,i))},e}(qN),rb=function(n){Kt(e,n);function e(t,r,i){var o=n.call(this,{id:t,precondition:null,description:i})||this;return o._handlerId=r,o}return e.prototype.runCommand=function(t,r){var i=t.get(Pn).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,r)},e}(qN);cd(new mD({editorHandler:oi.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:J.textInputFocus,kbOpts:{weight:Ht,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:x({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}}));cd(new mD({editorHandler:hn.Undo,inputHandler:"undo",id:hn.Undo,precondition:J.writable,kbOpts:{weight:Ht,kbExpr:J.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:x({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}}));cd(new rb("default:"+hn.Undo,hn.Undo));cd(new mD({editorHandler:hn.Redo,inputHandler:"redo",id:hn.Redo,precondition:J.writable,kbOpts:{weight:Ht,kbExpr:J.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:x({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}}));cd(new rb("default:"+hn.Redo,hn.Redo));function $h(n,e){cd(new rb("default:"+n,n)),cd(new rb(n,n,e))}$h(hn.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]});$h(hn.ReplacePreviousChar);$h(hn.CompositionStart);$h(hn.CompositionEnd);$h(hn.Paste);$h(hn.Cut);var ETe=function(){function n(e,t,r,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=r,this.commandDelegate=i}return n.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},n.prototype.paste=function(e,t,r,i){this.commandDelegate.paste(e,t,r,i)},n.prototype.type=function(e,t){this.commandDelegate.type(e,t)},n.prototype.replacePreviousChar=function(e,t,r){this.commandDelegate.replacePreviousChar(e,t,r)},n.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},n.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},n.prototype.cut=function(e){this.commandDelegate.cut(e)},n.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(oi.SetSelection,{source:e,selection:t})},n.prototype._validateViewColumn=function(e){var 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?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):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn):this._moveToSelect(e.position):this.moveTo(e.position)},n.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},n.prototype.moveTo=function(e){this._execMouseCommand(oi.MoveTo,this._usualArgs(e))},n.prototype._moveToSelect=function(e){this._execMouseCommand(oi.MoveToSelect,this._usualArgs(e))},n.prototype._columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(oi.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},n.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(oi.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},n.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(oi.LastCursorMoveToSelect,this._usualArgs(e))},n.prototype._wordSelect=function(e){this._execMouseCommand(oi.WordSelect,this._usualArgs(e))},n.prototype._wordSelectDrag=function(e){this._execMouseCommand(oi.WordSelectDrag,this._usualArgs(e))},n.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(oi.LastCursorWordSelect,this._usualArgs(e))},n.prototype._lineSelect=function(e){this._execMouseCommand(oi.LineSelect,this._usualArgs(e))},n.prototype._lineSelectDrag=function(e){this._execMouseCommand(oi.LineSelectDrag,this._usualArgs(e))},n.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(oi.LastCursorLineSelect,this._usualArgs(e))},n.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(oi.LastCursorLineSelectDrag,this._usualArgs(e))},n.prototype._selectAll=function(){this._execMouseCommand(oi.SelectAll,{})},n.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},n.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},n.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},n.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},n.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},n.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},n.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},n.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},n.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},n.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},n.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},n}(),l$=function(){function n(e){this._createLine=e,this._set(1,[])}return n.prototype.flush=function(){this._set(1,[])},n.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},n.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},n.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},n.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},n.prototype.getCount=function(){return this._lines.length},n.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},n.prototype.onLinesDeleted=function(e,t){if(this.getCount()===0)return null;var r=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var a=0,s=0,l=r;l<=i;l++){var u=l-this._rendLineNumberStart;e<=l&&l<=t&&(s===0?(a=u,s=1):s++)}if(e=r&&a<=i&&(this._lines[a-this._rendLineNumberStart].onContentChanged(),o=!0);return o},n.prototype.onLinesInserted=function(e,t){if(this.getCount()===0)return null;var r=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=r,null;if(e>o)return null;if(r+e>o){var a=this._lines.splice(e-this._rendLineNumberStart,o-e+1);return a}for(var s=[],l=0;lr))for(var l=Math.max(t,s.fromLineNumber),u=Math.min(r,s.toLineNumber),c=l;c<=u;c++){var d=c-this._rendLineNumberStart;this._lines[d].onTokensChanged(),i=!0}}return i},n}(),u$=function(){function n(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new l$(function(){return t._host.createVisibleLine()})}return n.prototype._createDomNode=function(){var e=Bt(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},n.prototype.onConfigurationChanged=function(e){return e.layoutInfo},n.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},n.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},n.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var r=0,i=t.length;rt){var s=t,l=Math.min(r,o.rendLineNumberStart-1);s<=l&&(this._insertLinesBefore(o,s,l,i,t),o.linesLength+=l-s+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,u),o.linesLength-=u)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1r){var s=Math.max(0,r-o.rendLineNumberStart+1),l=o.linesLength-1,u=l-s+1;u>0&&(this._removeLinesAfter(o,u),o.linesLength-=u)}return this._finishRendering(o,!1,i),o},n.prototype._renderUntouchedLines=function(e,t,r,i,o){for(var a=e.rendLineNumberStart,s=e.lines,l=t;l<=r;l++){var u=a+l;s[l].layoutLine(u,i[u-o])}},n.prototype._insertLinesBefore=function(e,t,r,i,o){for(var a=[],s=0,l=t;l<=r;l++)a[s++]=this.host.createVisibleLine();e.lines=a.concat(e.lines)},n.prototype._removeLinesBefore=function(e,t){for(var r=0;r=0;s--){var l=e.lines[s];i[s]&&(l.setDomNode(a),a=a.previousSibling)}},n.prototype._finishRenderingInvalidLines=function(e,t,r){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},n.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},n}(),TTe=function(n){_D(e,n);function e(t){var r=n.call(this,t)||this;return r._contentWidth=r._context.configuration.editor.layoutInfo.contentWidth,r.domNode.setHeight(0),r}return e.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),n.prototype.onConfigurationChanged.call(this,t)},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},e.prototype._viewOverlaysRender=function(t){n.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},e}(c$),xTe=function(n){_D(e,n);function e(t){var r=n.call(this,t)||this;return r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r.domNode.setClassName("margin-view-overlays"),r.domNode.setWidth(1),Oo.applyFontInfo(r.domNode,r._context.configuration.editor.fontInfo),r}return e.prototype.onConfigurationChanged=function(t){var r=!1;return t.fontInfo&&(Oo.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),r=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,r=!0),n.prototype.onConfigurationChanged.call(this,t)||r},e.prototype.onScrollChanged=function(t){return n.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},e.prototype._viewOverlaysRender=function(t){n.prototype._viewOverlaysRender.call(this,t);var r=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(r),this.domNode.setWidth(this._contentLeft)},e}(c$),OTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),yp=function(){function n(e,t){this.top=e,this.left=t}return n}(),NTe=function(n){OTe(e,n);function e(t,r){var i=n.call(this,t)||this;return i._viewDomNode=r,i._widgets={},i.domNode=Bt(document.createElement("div")),fs.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=Bt(document.createElement("div")),fs.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._widgets={}},e.prototype.onConfigurationChanged=function(t){for(var r=Object.keys(this._widgets),i=0,o=r;i=i,f=l,h=u>=i,p=e.left,v=t.left;return p+r>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-r),v+r>o.scrollLeft+o.viewportWidth&&(v=o.scrollLeft+o.viewportWidth-r),pthis._contentWidth)return null;var l=e.top-i,u=t.top+this._lineHeight,c=a+this._contentLeft,d=s+this._contentLeft,f=ci(this._viewDomNode.domNode),h=f.top+l-ja.scrollY,p=f.top+u-ja.scrollY,v=f.left+c-ja.scrollX,m=f.left+d-ja.scrollX,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,_=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,y=22,C=22,w=h>=y,b=p+i<=_-C;if(v+r+20>g){var S=v-(g-r-20);v-=S,c-=S}if(m+r+20>g){var S=m-(g-r-20);m-=S,d-=S}if(v<0){var S=v;v-=S,c-=S}if(m<0){var S=m;m-=S,d-=S}return this._fixedOverflowWidgets&&(l=h,u=p,c=v,d=m),{fitsAbove:w,aboveTop:l,aboveLeft:c,fitsBelow:b,belowTop:u,belowLeft:d}},n.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new yp(e.top,e.left+this._contentLeft)},n.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var r=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,i=new yp(r,t.left),o=this._viewPosition.lineNumber,a=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var l=s.length-1;l>=0;l--){var u=s[l];if(u.lineNumber>=o){u.lineNumber>o&&(o=u.lineNumber,a=1073741824);for(var c=0,d=u.ranges.length;ce.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)},n.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},n.prototype.render=function(e){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},n}(),ATe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),RTe=function(n){ATe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._renderLineHighlight=r._context.configuration.editor.viewInfo.renderLineHighlight,r._selectionIsEmpty=!0,r._primaryCursorLineNumber=1,r._scrollWidth=0,r._contentWidth=r._context.configuration.editor.layoutInfo.contentWidth,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},e.prototype.onCursorStateChanged=function(t){var r=!1,i=t.selections[0].positionLineNumber;this._primaryCursorLineNumber!==i&&(this._primaryCursorLineNumber=i,r=!0);var o=t.selections[0].isEmpty();return this._selectionIsEmpty!==o?(this._selectionIsEmpty=o,!0):r},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollWidthChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){this._scrollWidth=t.scrollWidth},e.prototype.render=function(t,r){if(r===this._primaryCursorLineNumber)if(this._shouldShowCurrentLine()){var i=this._willRenderMarginCurrentLine(),o="current-line"+(i?" current-line-both":"");return'
'}else return"";return""},e.prototype._shouldShowCurrentLine=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},e.prototype._willRenderMarginCurrentLine=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},e}(wd);Cn(function(n,e){var t=n.getColor(U9);if(t&&e.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),!t||t.isTransparent()||n.defines(gI)){var r=n.getColor(gI);r&&(e.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }"),n.type==="hc"&&e.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}});var PTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),MTe=function(n){PTe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._renderLineHighlight=r._context.configuration.editor.viewInfo.renderLineHighlight,r._selectionIsEmpty=!0,r._primaryCursorLineNumber=1,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},e.prototype.onCursorStateChanged=function(t){var r=!1,i=t.selections[0].positionLineNumber;this._primaryCursorLineNumber!==i&&(this._primaryCursorLineNumber=i,r=!0);var o=t.selections[0].isEmpty();return this._selectionIsEmpty!==o?(this._selectionIsEmpty=o,!0):r},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t,r){if(r===this._primaryCursorLineNumber){var i="current-line";if(this._shouldShowCurrentLine()){var o=this._willRenderContentCurrentLine();i="current-line current-line-margin"+(o?" current-line-margin-both":"")}return'
'}return""},e.prototype._shouldShowCurrentLine=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},e.prototype._willRenderContentCurrentLine=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},e}(wd);Cn(function(n,e){var t=n.getColor(U9);if(t)e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }");else{var r=n.getColor(gI);r&&e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }"),n.type==="hc"&&e.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}});var kTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),FTe=function(n){kTe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.prepareRender=function(t){for(var r=t.getDecorationsInViewport(),i=[],o=0,a=0,s=r.length;av.options.zIndex)return 1;var m=p.options.className,g=v.options.className;return mg?1:q.compareRangesUsingStarts(p.range,v.range)});for(var u=t.visibleRange.startLineNumber,c=t.visibleRange.endLineNumber,d=[],f=u;f<=c;f++){var h=f-u;d[h]=""}this._renderWholeLineDecorations(t,i,d),this._renderNormalDecorations(t,i,d),this._renderResult=d},e.prototype._renderWholeLineDecorations=function(t,r,i){for(var o=String(this._lineHeight),a=t.visibleRange.startLineNumber,s=t.visibleRange.endLineNumber,l=0,u=r.length;l',f=Math.max(c.range.startLineNumber,a),h=Math.min(c.range.endLineNumber,s),p=f;p<=h;p++){var v=p-a;i[v]+=d}}},e.prototype._renderNormalDecorations=function(t,r,i){for(var o=String(this._lineHeight),a=t.visibleRange.startLineNumber,s=null,l=!1,u=null,c=0,d=r.length;c';l[h]+=_}}},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e}(wd),BTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),io=function(n){BTe(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){this._register(Be(t,mt.CLICK,function(i){return r(new jr(i))}))},e.prototype.onmousedown=function(t,r){this._register(Be(t,mt.MOUSE_DOWN,function(i){return r(new jr(i))}))},e.prototype.onmouseover=function(t,r){this._register(Be(t,mt.MOUSE_OVER,function(i){return r(new jr(i))}))},e.prototype.onnonbubblingmouseout=function(t,r){this._register(gN(t,function(i){return r(new jr(i))}))},e.prototype.onkeydown=function(t,r){this._register(Be(t,mt.KEY_DOWN,function(i){return r(new zn(i))}))},e.prototype.onkeyup=function(t,r){this._register(Be(t,mt.KEY_UP,function(i){return r(new zn(i))}))},e.prototype.oninput=function(t,r){this._register(Be(t,mt.INPUT,r))},e.prototype.onblur=function(t,r){this._register(Be(t,mt.BLUR,r))},e.prototype.onfocus=function(t,r){this._register(Be(t,mt.FOCUS,r))},e.prototype.onchange=function(t,r){this._register(Be(t,mt.CHANGE,r))},e}(Ue),WTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),mh=11,VTe=function(n){WTe(e,n);function e(t){var r=n.call(this)||this;return r._onActivate=t.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=t.bgWidth+"px",r.bgDomNode.style.height=t.bgHeight+"px",typeof t.top<"u"&&(r.bgDomNode.style.top="0px"),typeof t.left<"u"&&(r.bgDomNode.style.left="0px"),typeof t.bottom<"u"&&(r.bgDomNode.style.bottom="0px"),typeof t.right<"u"&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=t.className,r.domNode.style.position="absolute",r.domNode.style.width=mh+"px",r.domNode.style.height=mh+"px",typeof t.top<"u"&&(r.domNode.style.top=t.top+"px"),typeof t.left<"u"&&(r.domNode.style.left=t.left+"px"),typeof t.bottom<"u"&&(r.domNode.style.bottom=t.bottom+"px"),typeof t.right<"u"&&(r.domNode.style.right=t.right+"px"),r._mouseMoveMonitor=r._register(new Cd),r.onmousedown(r.bgDomNode,function(i){return r._arrowMouseDown(i)}),r.onmousedown(r.domNode,function(i){return r._arrowMouseDown(i)}),r._mousedownRepeatTimer=r._register(new jg),r._mousedownScheduleRepeatTimer=r._register(new Ei),r}return e.prototype._arrowMouseDown=function(t){var r=this,i=function(){r._mousedownRepeatTimer.cancelAndSet(function(){return r._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(i,200),this._mouseMoveMonitor.startMonitoring(Hh,function(o){},function(){r._mousedownRepeatTimer.cancel(),r._mousedownScheduleRepeatTimer.cancel()}),t.preventDefault()},e}(io),HTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),UTe=function(n){HTe(e,n);function e(t,r,i){var o=n.call(this)||this;return o._visibility=t,o._visibleClassName=r,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new Ei),o}return e.prototype.applyVisibilitySetting=function(t){return this._visibility===2?!1:this._visibility===3?!0:t},e.prototype.setShouldBeVisible=function(t){var r=this.applyVisibilitySetting(t);this._shouldBeVisible!==r&&(this._shouldBeVisible=r,this.ensureVisibility())},e.prototype.setIsNeeded=function(t){this._isNeeded!==t&&(this._isNeeded=t,this.ensureVisibility())},e.prototype.setDomNode=function(t){this._domNode=t,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},e.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},e.prototype._reveal=function(){var t=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){t._domNode&&t._domNode.setClassName(t._visibleClassName)},0))},e.prototype._hide=function(t){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(t?" fade":"")))},e}(Ue),$Te=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jTe=140,d$=function(n){$Te(e,n);function e(t){var r=n.call(this)||this;return r._lazyRender=t.lazyRender,r._host=t.host,r._scrollable=t.scrollable,r._scrollbarState=t.scrollbarState,r._visibilityController=r._register(new UTe(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),r._mouseMoveMonitor=r._register(new Cd),r._shouldRender=!0,r.domNode=Bt(document.createElement("div")),r.domNode.setAttribute("role","presentation"),r.domNode.setAttribute("aria-hidden","true"),r._visibilityController.setDomNode(r.domNode),r.domNode.setPosition("absolute"),r.onmousedown(r.domNode.domNode,function(i){return r._domNodeMouseDown(i)}),r}return e.prototype._createArrow=function(t){var r=this._register(new VTe(t));this.domNode.domNode.appendChild(r.bgDomNode),this.domNode.domNode.appendChild(r.domNode)},e.prototype._createSlider=function(t,r,i,o){var a=this;this.slider=Bt(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(t),this.slider.setLeft(r),typeof i=="number"&&this.slider.setWidth(i),typeof o=="number"&&this.slider.setHeight(o),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(s){s.leftButton&&(s.preventDefault(),a._sliderMouseDown(s,function(){}))})},e.prototype._onElementSize=function(t){return this._scrollbarState.setVisibleSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype._onElementScrollSize=function(t){return this._scrollbarState.setScrollSize(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype._onElementScrollPosition=function(t){return this._scrollbarState.setScrollPosition(t)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},e.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},e.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},e.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},e.prototype._domNodeMouseDown=function(t){t.target===this.domNode.domNode&&this._onMouseDown(t)},e.prototype.delegateMouseDown=function(t){var r=this.domNode.domNode.getClientRects()[0].top,i=r+this._scrollbarState.getSliderPosition(),o=r+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),a=this._sliderMousePosition(t);i<=a&&a<=o?t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,function(){})):this._onMouseDown(t)},e.prototype._onMouseDown=function(t){var r,i;if(t.target===this.domNode.domNode&&typeof t.browserEvent.offsetX=="number"&&typeof t.browserEvent.offsetY=="number")r=t.browserEvent.offsetX,i=t.browserEvent.offsetY;else{var o=ci(this.domNode.domNode);r=t.posx-o.left,i=t.posy-o.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(r,i))),t.leftButton&&(t.preventDefault(),this._sliderMouseDown(t,function(){}))},e.prototype._sliderMouseDown=function(t,r){var i=this,o=this._sliderMousePosition(t),a=this._sliderOrthogonalMousePosition(t),s=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(Hh,function(l){var u=i._sliderOrthogonalMousePosition(l),c=Math.abs(u-a);if(zi&&c>jTe){i._setDesiredScrollPositionNow(s.getScrollPosition());return}var d=i._sliderMousePosition(l),f=d-o;i._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(f))},function(){i.slider.toggleClassName("active",!1),i._host.onDragEnd(),r()}),this._host.onDragStart()},e.prototype._setDesiredScrollPositionNow=function(t){var r={};this.writeScrollPosition(r,t),this._scrollable.setScrollPositionNow(r)},e}(io),zTe=20,f$=function(){function n(e,t,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(r),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return n.prototype.clone=function(){var e=new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return e.setVisibleSize(this._visibleSize),e.setScrollSize(this._scrollSize),e.setScrollPosition(this._scrollPosition),e},n.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t?(this._visibleSize=t,this._refreshComputedValues(),!0):!1},n.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t?(this._scrollSize=t,this._refreshComputedValues(),!0):!1},n.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t?(this._scrollPosition=t,this._refreshComputedValues(),!0):!1},n._computeValues=function(e,t,r,i,o){var a=Math.max(0,r-e),s=Math.max(0,a-2*t),l=i>0&&i>r;if(!l)return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(zTe,Math.floor(r*s/i))),c=(s-u)/(i-r),d=o*c;return{computedAvailableSize:Math.round(a),computedIsNeeded:l,computedSliderSize:Math.round(u),computedSliderRatio:c,computedSliderPosition:Math.round(d)}},n.prototype._refreshComputedValues=function(){var e=n._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},n.prototype.getArrowSize=function(){return this._arrowSize},n.prototype.getScrollPosition=function(){return this._scrollPosition},n.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},n.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},n.prototype.isNeeded=function(){return this._computedIsNeeded},n.prototype.getSliderSize=function(){return this._computedSliderSize},n.prototype.getSliderPosition=function(){return this._computedSliderPosition},n.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},n.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},n}(),KTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),GTe=function(n){KTe(e,n);function e(t,r,i){var o=n.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new f$(r.horizontalHasArrows?r.arrowSize:0,r.horizontal===2?0:r.horizontalScrollbarSize,r.vertical===2?0:r.verticalScrollbarSize),visibility:r.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(r.horizontalHasArrows){var a=(r.arrowSize-mh)/2,s=(r.horizontalScrollbarSize-mh)/2;o._createArrow({className:"left-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:a,bgWidth:r.arrowSize,bgHeight:r.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,-1,0))}})}return o._createSlider(Math.floor((r.horizontalScrollbarSize-r.horizontalSliderSize)/2),0,void 0,r.horizontalSliderSize),o}return e.prototype._updateSlider=function(t,r){this.slider.setWidth(t),this.slider.setLeft(r)},e.prototype._renderDomNode=function(t,r){this.domNode.setWidth(t),this.domNode.setHeight(r),this.domNode.setLeft(0),this.domNode.setBottom(0)},e.prototype.onDidScroll=function(t){return this._shouldRender=this._onElementScrollSize(t.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(t.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(t.width)||this._shouldRender,this._shouldRender},e.prototype._mouseDownRelativePosition=function(t,r){return t},e.prototype._sliderMousePosition=function(t){return t.posx},e.prototype._sliderOrthogonalMousePosition=function(t){return t.posy},e.prototype.writeScrollPosition=function(t,r){t.scrollLeft=r},e}(d$),qTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),YTe=function(n){qTe(e,n);function e(t,r,i){var o=n.call(this,{lazyRender:r.lazyRender,host:i,scrollbarState:new f$(r.verticalHasArrows?r.arrowSize:0,r.vertical===2?0:r.verticalScrollbarSize,0),visibility:r.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(r.verticalHasArrows){var a=(r.arrowSize-mh)/2,s=(r.verticalScrollbarSize-mh)/2;o._createArrow({className:"up-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:a,right:void 0,bgWidth:r.verticalScrollbarSize,bgHeight:r.arrowSize,onActivate:function(){return o._host.onMouseWheel(new ch(null,0,-1))}})}return o._createSlider(0,Math.floor((r.verticalScrollbarSize-r.verticalSliderSize)/2),r.verticalSliderSize,void 0),o}return e.prototype._updateSlider=function(t,r){this.slider.setHeight(t),this.slider.setTop(r)},e.prototype._renderDomNode=function(t,r){this.domNode.setWidth(r),this.domNode.setHeight(t),this.domNode.setRight(0),this.domNode.setTop(0)},e.prototype.onDidScroll=function(t){return this._shouldRender=this._onElementScrollSize(t.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(t.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(t.height)||this._shouldRender,this._shouldRender},e.prototype._mouseDownRelativePosition=function(t,r){return r},e.prototype._sliderMousePosition=function(t){return t.posy},e.prototype._sliderOrthogonalMousePosition=function(t){return t.posx},e.prototype.writeScrollPosition=function(t,r){t.scrollTop=r},e}(d$),XTe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ZTe=function(){function n(e,t,r,i,o,a){e=e|0,t=t|0,r=r|0,i=i|0,o=o|0,a=a|0,e<0&&(e=0),r+e>t&&(r=t-e),r<0&&(r=0),i<0&&(i=0),a+i>o&&(a=o-i),a<0&&(a=0),this.width=e,this.scrollWidth=t,this.scrollLeft=r,this.height=i,this.scrollHeight=o,this.scrollTop=a}return n.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},n.prototype.withScrollDimensions=function(e){return new n(typeof e.width<"u"?e.width:this.width,typeof e.scrollWidth<"u"?e.scrollWidth:this.scrollWidth,this.scrollLeft,typeof e.height<"u"?e.height:this.height,typeof e.scrollHeight<"u"?e.scrollHeight:this.scrollHeight,this.scrollTop)},n.prototype.withScrollPosition=function(e){return new n(this.width,this.scrollWidth,typeof e.scrollLeft<"u"?e.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof e.scrollTop<"u"?e.scrollTop:this.scrollTop)},n.prototype.createScrollEvent=function(e){var t=this.width!==e.width,r=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,a=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:r,scrollLeftChanged:i,heightChanged:o,scrollHeightChanged:a,scrollTopChanged:s}},n}(),h$=function(n){XTe(e,n);function e(t,r){var i=n.call(this)||this;return i._onScroll=i._register(new se),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=r,i._state=new ZTe(0,0,0,0,0,0),i._smoothScrolling=null,i}return e.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),n.prototype.dispose.call(this)},e.prototype.setSmoothScrollDuration=function(t){this._smoothScrollDuration=t},e.prototype.validateScrollPosition=function(t){return this._state.withScrollPosition(t)},e.prototype.getScrollDimensions=function(){return this._state},e.prototype.setScrollDimensions=function(t){var r=this._state.withScrollDimensions(t);this._setState(r),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},e.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},e.prototype.getCurrentScrollPosition=function(){return this._state},e.prototype.setScrollPositionNow=function(t){var r=this._state.withScrollPosition(t);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(r)},e.prototype.setScrollPositionSmooth=function(t){var r=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(t);if(this._smoothScrolling){t={scrollLeft:typeof t.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:t.scrollLeft,scrollTop:typeof t.scrollTop>"u"?this._smoothScrolling.to.scrollTop:t.scrollTop};var i=this._state.withScrollPosition(t);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var o=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=o}else{var i=this._state.withScrollPosition(t);this._smoothScrolling=JTe.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){r._smoothScrolling&&(r._smoothScrolling.animationFrameDisposable=null,r._performSmoothScrolling())})},e.prototype._performSmoothScrolling=function(){var t=this;if(this._smoothScrolling){var r=this._smoothScrolling.tick(),i=this._state.withScrollPosition(r);if(this._setState(i),r.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})}},e.prototype._setState=function(t){var r=this._state;r.equals(t)||(this._state=t,this._onScroll.fire(this._state.createScrollEvent(r)))},e}(Ue),y4=function(){function n(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}return n}();function wS(n,e){var t=e-n;return function(r){return n+t*txe(r)}}function QTe(n,e,t){return function(r){return r2.5*r){var o=void 0,a=void 0;return e0&&Math.abs(e.deltaY)>0)return 1;var t=.5;return this._front===-1&&this._rear===-1||this._memory[this._rear],(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},n.INSTANCE=new n,n}(),p$=function(n){$C(e,n);function e(t,r,i){var o=n.call(this)||this;o._onScroll=o._register(new se),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=C4(r),o._scrollable=i,o._register(o._scrollable.onScroll(function(s){o._onDidScroll(s),o._onScroll.fire(s)}));var a={onMouseWheel:function(s){return o._onMouseWheel(s)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new YTe(o._scrollable,o._options,a)),o._horizontalScrollbar=o._register(new GTe(o._scrollable,o._options,a)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=Bt(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=Bt(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=Bt(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(s){return o._onMouseOver(s)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(s){return o._onMouseOut(s)}),o._hideTimeout=o._register(new Ei),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o._revealOnScroll=!0,o}return e.prototype.dispose=function(){this._mouseWheelToDispose=Oe(this._mouseWheelToDispose),n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},e.prototype.delegateVerticalScrollbarMouseDown=function(t){this._verticalScrollbar.delegateMouseDown(t)},e.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},e.prototype.setScrollDimensions=function(t){this._scrollable.setScrollDimensions(t)},e.prototype.updateClassName=function(t){this._options.className=t,Vt&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},e.prototype.updateOptions=function(t){var r=C4(t);this._options.handleMouseWheel=r.handleMouseWheel,this._options.mouseWheelScrollSensitivity=r.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=r.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},e.prototype._setListeningToMouseWheel=function(t){var r=this,i=this._mouseWheelToDispose.length>0;if(i!==t&&(this._mouseWheelToDispose=Oe(this._mouseWheelToDispose),t)){var o=function(a){r._onMouseWheel(new ch(a))};this._mouseWheelToDispose.push(Be(this._listenOnDomNode,"mousewheel",o))}},e.prototype._onMouseWheel=function(t){var r,i=ixe.INSTANCE;if(i.accept(Date.now(),t.deltaX,t.deltaY),t.deltaY||t.deltaX){var o=t.deltaY*this._options.mouseWheelScrollSensitivity,a=t.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=[a,o],o=r[0],a=r[1]);var s=!Vt&&t.browserEvent&&t.browserEvent.shiftKey;(this._options.scrollYToX||s)&&!a&&(a=o,o=0),t.browserEvent&&t.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);var l=this._scrollable.getFutureScrollPosition(),u={};if(o){var c=l.scrollTop-b4*o;this._verticalScrollbar.writeScrollPosition(u,c)}if(a){var d=l.scrollLeft-b4*a;this._horizontalScrollbar.writeScrollPosition(u,d)}if(u=this._scrollable.validateScrollPosition(u),l.scrollLeft!==u.scrollLeft||l.scrollTop!==u.scrollTop){var f=this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel();f?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(t.preventDefault(),t.stopPropagation())},e.prototype._onDidScroll=function(t){this._shouldRender=this._horizontalScrollbar.onDidScroll(t)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(t)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},e.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},e.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var t=this._scrollable.getCurrentScrollPosition(),r=t.scrollTop>0,i=t.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(i?" left":"")),this._topShadowDomNode.setClassName("shadow"+(r?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(r?" top":"")+(i?" left":""))}},e.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},e.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},e.prototype._onMouseOut=function(t){this._mouseIsOver=!1,this._hide()},e.prototype._onMouseOver=function(t){this._mouseIsOver=!0,this._reveal()},e.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},e.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},e.prototype._scheduleHide=function(){var t=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return t._hide()},nxe)},e}(io),jC=function(n){$C(e,n);function e(t,r){var i=this;r=r||{},r.mouseWheelSmoothScroll=!1;var o=new h$(0,function(a){return bu(a)});return i=n.call(this,t,r,o)||this,i._register(o),i}return e.prototype.setScrollPosition=function(t){this._scrollable.setScrollPositionNow(t)},e.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},e}(p$),oxe=function(n){$C(e,n);function e(t,r,i){return n.call(this,t,r,i)||this}return e}(p$),Yg=function(n){$C(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i._element=t,i.onScroll(function(o){o.scrollTopChanged&&(i._element.scrollTop=o.scrollTop),o.scrollLeftChanged&&(i._element.scrollLeft=o.scrollLeft)}),i.scanDomNode(),i}return e.prototype.scanDomNode=function(){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})},e}(jC);function C4(n){var e={lazyRender:typeof n.lazyRender<"u"?n.lazyRender:!1,className:typeof n.className<"u"?n.className:"",useShadows:typeof n.useShadows<"u"?n.useShadows:!0,handleMouseWheel:typeof n.handleMouseWheel<"u"?n.handleMouseWheel:!0,flipAxes:typeof n.flipAxes<"u"?n.flipAxes:!1,alwaysConsumeMouseWheel:typeof n.alwaysConsumeMouseWheel<"u"?n.alwaysConsumeMouseWheel:!1,scrollYToX:typeof n.scrollYToX<"u"?n.scrollYToX:!1,mouseWheelScrollSensitivity:typeof n.mouseWheelScrollSensitivity<"u"?n.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof n.fastScrollSensitivity<"u"?n.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof n.mouseWheelSmoothScroll<"u"?n.mouseWheelSmoothScroll:!0,arrowSize:typeof n.arrowSize<"u"?n.arrowSize:11,listenOnDomNode:typeof n.listenOnDomNode<"u"?n.listenOnDomNode:null,horizontal:typeof n.horizontal<"u"?n.horizontal:1,horizontalScrollbarSize:typeof n.horizontalScrollbarSize<"u"?n.horizontalScrollbarSize:10,horizontalSliderSize:typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:0,horizontalHasArrows:typeof n.horizontalHasArrows<"u"?n.horizontalHasArrows:!1,vertical:typeof n.vertical<"u"?n.vertical:1,verticalScrollbarSize:typeof n.verticalScrollbarSize<"u"?n.verticalScrollbarSize:10,verticalHasArrows:typeof n.verticalHasArrows<"u"?n.verticalHasArrows:!1,verticalSliderSize:typeof n.verticalSliderSize<"u"?n.verticalSliderSize:0};return e.horizontalSliderSize=typeof n.horizontalSliderSize<"u"?n.horizontalSliderSize:e.horizontalScrollbarSize,e.verticalSliderSize=typeof n.verticalSliderSize<"u"?n.verticalSliderSize:e.verticalScrollbarSize,Vt&&(e.className+=" mac"),e}var axe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),sxe=function(n){axe(e,n);function e(t,r,i,o){var a=n.call(this,t)||this,s=a._context.configuration.editor,l=s.viewInfo.scrollbar,u={listenOnDomNode:i.domNode,className:"editor-scrollable "+Zy(t.theme.type),useShadows:!1,lazyRender:!0,vertical:l.vertical,horizontal:l.horizontal,verticalHasArrows:l.verticalHasArrows,horizontalHasArrows:l.horizontalHasArrows,verticalScrollbarSize:l.verticalScrollbarSize,verticalSliderSize:l.verticalSliderSize,horizontalScrollbarSize:l.horizontalScrollbarSize,horizontalSliderSize:l.horizontalSliderSize,handleMouseWheel:l.handleMouseWheel,arrowSize:l.arrowSize,mouseWheelScrollSensitivity:l.mouseWheelScrollSensitivity,fastScrollSensitivity:l.fastScrollSensitivity};a.scrollbar=a._register(new oxe(r.domNode,u,a._context.viewLayout.scrollable)),fs.write(a.scrollbar.getDomNode(),5),a.scrollbarDomNode=Bt(a.scrollbar.getDomNode()),a.scrollbarDomNode.setPosition("absolute"),a._setLayout();var c=function(d,f,h){var p={};if(f){var v=d.scrollTop;v&&(p.scrollTop=a._context.viewLayout.getCurrentScrollTop()+v,d.scrollTop=0)}if(h){var m=d.scrollLeft;m&&(p.scrollLeft=a._context.viewLayout.getCurrentScrollLeft()+m,d.scrollLeft=0)}a._context.viewLayout.setScrollPositionNow(p)};return a._register(Be(i.domNode,"scroll",function(d){return c(i.domNode,!0,!0)})),a._register(Be(r.domNode,"scroll",function(d){return c(r.domNode,!0,!1)})),a._register(Be(o.domNode,"scroll",function(d){return c(o.domNode,!0,!1)})),a._register(Be(a.scrollbarDomNode.domNode,"scroll",function(d){return c(a.scrollbarDomNode.domNode,!0,!1)})),a}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype._setLayout=function(){var t=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(t.contentLeft);var r=this._context.configuration.editor.viewInfo.minimap.side;r==="right"?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.contentHeight)},e.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},e.prototype.getDomNode=function(){return this.scrollbarDomNode},e.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},e.prototype.onConfigurationChanged=function(t){if(t.viewInfo){var r=this._context.configuration.editor,i={handleMouseWheel:r.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:r.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:r.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(i)}return t.layoutInfo&&this._setLayout(),!0},e.prototype.onScrollChanged=function(t){return!0},e.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Zy(this._context.theme.type)),!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this.scrollbar.renderNow()},e}(Do),v$=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),yD=function(){function n(e,t,r){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(r)}return n}(),bD=function(n){v$(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._render=function(t,r,i){for(var o=[],a=t;a<=r;a++){var s=a-t;o[s]=[]}if(i.length===0)return o;i.sort(function(g,_){return g.className===_.className?g.startLineNumber===_.startLineNumber?g.endLineNumber-_.endLineNumber:g.startLineNumber-_.startLineNumber:g.className<_.className?-1:1});for(var l=null,u=0,c=0,d=i.length;c',c=[],d=r;d<=i;d++){var f=d-r,h=o[f];h.length===0?c[f]="":c[f]='
=this._renderResult.length?"":this._renderResult[i]},e}(bD),uxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cxe=function(n){uxe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._primaryLineNumber=0,r._lineHeight=r._context.configuration.editor.lineHeight,r._spaceWidth=r._context.configuration.editor.fontInfo.spaceWidth,r._enabled=r._context.configuration.editor.viewInfo.renderIndentGuides,r._activeIndentEnabled=r._context.configuration.editor.viewInfo.highlightActiveIndentGuide,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),t.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0},e.prototype.onCursorStateChanged=function(t){var r=t.selections[0],i=r.isEmpty()?r.positionLineNumber:0;return this._primaryLineNumber!==i?(this._primaryLineNumber=i,!0):!1},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype.onLanguageConfigurationChanged=function(t){return!0},e.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var r=t.visibleRange.startLineNumber,i=t.visibleRange.endLineNumber,o=this._context.model.getOptions().indentSize,a=o*this._spaceWidth,s=t.scrollWidth,l=this._lineHeight,u=this._context.model.getLinesIndentGuides(r,i),c=0,d=0,f=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var h=this._context.model.getActiveIndentGuide(this._primaryLineNumber,r,i);c=h.startLineNumber,d=h.endLineNumber,f=h.indent}for(var p=[],v=r;v<=i;v++){for(var m=c<=v&&v<=d,g=v-r,_=u[g],y="",C=t.visibleRangeForPosition(new pe(v,1)),w=C?C.left:0,b=1;b<=_;b++){var S=m&&b===f?"cigra":"cigr";if(y+='
',w+=a,w>s)break}p[g]=y}this._renderResult=p},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e}(wd);Cn(function(n,e){var t=n.getColor(VC);t&&e.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var r=n.getColor(HC)||t;r&&e.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")});var dxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fxe=function(){function n(){this._currentVisibleRange=new q(1,1,1,1)}return n.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},n.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},n}(),hxe=function(){function n(e,t,r,i,o,a){this.lineNumber=e,this.startColumn=t,this.endColumn=r,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=a}return n}(),pxe=function(n){dxe(e,n);function e(t,r){var i=n.call(this,t)||this;i._linesContent=r,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new u$(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new G3(o,i._context.theme.type),fs.write(i.domNode,7),i.domNode.setClassName("view-lines"),Oo.applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new xr(function(){i._updateLineWidthsSlow()},200),i._lastRenderedData=new fxe,i._horizontalRevealRequest=null,i}return e.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),n.prototype.dispose.call(this)},e.prototype.getDomNode=function(){return this.domNode},e.prototype.createVisibleLine=function(){return new Sf(this._viewLineOptions)},e.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.wrappingInfo&&(this._maxLineWidth=0);var r=this._context.configuration;return t.lineHeight&&(this._lineHeight=r.editor.lineHeight),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=r.editor.fontInfo.typicalHalfwidthCharacterWidth),t.wrappingInfo&&(this._isViewportWrapping=r.editor.wrappingInfo.isViewportWrapping),t.viewInfo&&(this._revealHorizontalRightPadding=r.editor.viewInfo.revealHorizontalRightPadding),t.canUseLayerHinting&&(this._canUseLayerHinting=r.editor.canUseLayerHinting),t.fontInfo&&Oo.applyFontInfo(this.domNode,r.editor.fontInfo),this._onOptionsMaybeChanged(),t.layoutInfo&&(this._maxLineWidth=0),!0},e.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,r=new G3(t,this._context.theme.type);if(!this._viewLineOptions.equals(r)){this._viewLineOptions=r;for(var i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),a=i;a<=o;a++){var s=this._visibleLines.getVisibleLine(a);s.onOptionsChanged(this._viewLineOptions)}return!0}return!1},e.prototype.onCursorStateChanged=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=!1,a=r;a<=i;a++)o=this._visibleLines.getVisibleLine(a).onSelectionChanged()||o;return o},e.prototype.onDecorationsChanged=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=r;o<=i;o++)this._visibleLines.getVisibleLine(o).onDecorationsChanged();return!0},e.prototype.onFlushed=function(t){var r=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,r},e.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},e.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},e.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},e.prototype.onRevealRangeRequest=function(t){var r=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.range,t.verticalType),i=this._context.viewLayout.validateScrollPosition({scrollTop:r});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new hxe(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var o=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop);return t.scrollType===0&&o>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(i):this._context.viewLayout.setScrollPositionNow(i),!0},e.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var r=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},e.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},e.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},e.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},e.prototype.getPositionFromDOMInfo=function(t,r){var i=this._getViewLineDomNode(t);if(i===null)return null;var o=this._getLineNumberFor(i);if(o===-1||o<1||o>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(o)===1)return new pe(o,1);var a=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(os)return null;var l=this._visibleLines.getVisibleLine(o).getColumnOfNodeOffset(o,t,r),u=this._context.model.getLineMinColumn(o);return li?-1:this._visibleLines.getVisibleLine(t).getWidth()},e.prototype.linesVisibleRangesForRange=function(t,r){if(this.shouldRender())return null;var i=t.endLineNumber,o=q.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!o)return null;var a=[],s=0,l=new K3(this.domNode.domNode,this._textRangeRestingSpot),u=0;r&&(u=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new pe(o.startLineNumber,1)).lineNumber);for(var c=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),f=o.startLineNumber;f<=o.endLineNumber;f++)if(!(fd)){var h=f===o.startLineNumber?o.startColumn:1,p=f===o.endLineNumber?o.endColumn:this._context.model.getLineMaxColumn(f),v=this._visibleLines.getVisibleLine(f).getVisibleRangesForRange(h,p,l);if(!(!v||v.length===0)){if(r&&fs)){var u=l===r.startLineNumber?r.startColumn:1,c=l===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(l),d=this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(u,c,o);!d||d.length===0||(i=i.concat(d))}return i.length===0?null:i},e.prototype.visibleRangeForPosition=function(t){var r=this.visibleRangesForRange2(new q(t.lineNumber,t.column,t.lineNumber,t.column));return r?r[0]:null},e.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},e.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},e.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},e.prototype._updateLineWidths=function(t){for(var r=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=1,a=!0,s=r;s<=i;s++){var l=this._visibleLines.getVisibleLine(s);if(t&&!l.getWidthIsFast()){a=!1;continue}o=Math.max(o,l.getWidth())}return a&&r===1&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(o),a},e.prototype.prepareRender=function(){throw new Error("Not supported")},e.prototype.render=function(){throw new Error("Not supported")},e.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var r=this._horizontalRevealRequest.lineNumber,i=this._horizontalRevealRequest.startColumn,o=this._horizontalRevealRequest.endColumn,a=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=r&&r<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var s=this._computeScrollLeftToRevealRange(r,i,o),l=this._isViewportWrapping;l||this._ensureMaxLineWidth(s.maxHorizontalOffset),a===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:s.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:s.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var u=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-u),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},e.prototype._ensureMaxLineWidth=function(t){var r=Math.ceil(t);this._maxLineWidthd&&(d=p.left+p.width)}o=d,c=Math.max(0,c-e.HORIZONTAL_EXTRA_PX),d+=this._revealHorizontalRightPadding;var v=this._computeMinimumScrolling(s,l,c,d);return{scrollLeft:v,maxHorizontalOffset:o}},e.prototype._computeMinimumScrolling=function(t,r,i,o,a,s){t=t|0,r=r|0,i=i|0,o=o|0,a=!!a,s=!!s;var l=r-t,u=o-i;if(ur)return Math.max(0,o-l)}else return i;return t},e.HORIZONTAL_EXTRA_PX=30,e}(Do),vxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),gxe=function(n){vxe(e,n);function e(t){var r=n.call(this)||this;return r._context=t,r._decorationsLeft=r._context.configuration.editor.layoutInfo.decorationsLeft,r._decorationsWidth=r._context.configuration.editor.layoutInfo.decorationsWidth,r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype._getDecorations=function(t){for(var r=t.getDecorationsInViewport(),i=[],o=0,a=0,s=r.length;a
',u=[],c=r;c<=i;c++){for(var d=c-r,f=o[d],h="",p=0,v=f.length;p';a[l]=c}this._renderResult=a},e.prototype.render=function(t,r){return this._renderResult?this._renderResult[r-t]:""},e}(bD),SS=function(){function n(e,t,r,i){this.r=n._clamp(e),this.g=n._clamp(t),this.b=n._clamp(r),this.a=n._clamp(i)}return n._clamp=function(e){return e<0?0:e>255?255:e|0},n.Empty=new n(0,0,0,0),n}(),g$=function(){function n(){var e=this;this._onDidChange=new se,this.onDidChange=this._onDidChange.event,this._updateColorMap(),An.onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}return n.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new n),this._INSTANCE},n.prototype._updateColorMap=function(){var e=An.getColorMap();if(!e){this._colors=[SS.Empty],this._backgroundIsLight=!0;return}this._colors=[SS.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)},n.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},n.prototype.backgroundIsLight=function(){return this._backgroundIsLight},n._INSTANCE=null,n}(),yxe=function(){function n(e,t){var r=760;if(e.length!==r)throw new Error("Invalid x2CharData");var i=2*1*95;if(t.length!==i)throw new Error("Invalid x1CharData");this.x2charData=e,this.x1charData=t,this.x2charDataLight=n.soften(e,12/15),this.x1charDataLight=n.soften(t,50/60)}return n.soften=function(e,t){for(var r=new Uint8ClampedArray(e.length),i=0,o=e.length;ie.width||r+4>e.height){console.warn("bad render request outside image data");return}var l=s?this.x2charDataLight:this.x2charData,u=n._getChIndex(i),c=e.width*4,d=a.r,f=a.g,h=a.b,p=o.r-d,v=o.g-f,m=o.b-h,g=e.data,_=u*4*2,y=r*c+t*4;{var C=l[_]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}{var C=l[_+1]/255;g[y+4]=d+p*C,g[y+5]=f+v*C,g[y+6]=h+m*C}y+=c;{var C=l[_+2]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}{var C=l[_+3]/255;g[y+4]=d+p*C,g[y+5]=f+v*C,g[y+6]=h+m*C}y+=c;{var C=l[_+4]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}{var C=l[_+5]/255;g[y+4]=d+p*C,g[y+5]=f+v*C,g[y+6]=h+m*C}y+=c;{var C=l[_+6]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}{var C=l[_+7]/255;g[y+4]=d+p*C,g[y+5]=f+v*C,g[y+6]=h+m*C}},n.prototype.x1RenderChar=function(e,t,r,i,o,a,s){if(t+1>e.width||r+2>e.height){console.warn("bad render request outside image data");return}var l=s?this.x1charDataLight:this.x1charData,u=n._getChIndex(i),c=e.width*4,d=a.r,f=a.g,h=a.b,p=o.r-d,v=o.g-f,m=o.b-h,g=e.data,_=u*2*1,y=r*c+t*4;{var C=l[_]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}y+=c;{var C=l[_+1]/255;g[y+0]=d+p*C,g[y+1]=f+v*C,g[y+2]=h+m*C}},n.prototype.x2BlockRenderChar=function(e,t,r,i,o,a){if(t+2>e.width||r+4>e.height){console.warn("bad render request outside image data");return}var s=e.width*4,l=.5,u=o.r,c=o.g,d=o.b,f=i.r-u,h=i.g-c,p=i.b-d,v=u+f*l,m=c+h*l,g=d+p*l,_=e.data,y=r*s+t*4;_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g,_[y+4]=v,_[y+5]=m,_[y+6]=g},n.prototype.x1BlockRenderChar=function(e,t,r,i,o,a){if(t+1>e.width||r+2>e.height){console.warn("bad render request outside image data");return}var s=e.width*4,l=.5,u=o.r,c=o.g,d=o.b,f=i.r-u,h=i.g-c,p=i.b-d,v=u+f*l,m=c+h*l,g=d+p*l,_=e.data,y=r*s+t*4;_[y+0]=v,_[y+1]=m,_[y+2]=g,y+=s,_[y+0]=v,_[y+1]=m,_[y+2]=g},n}();function w4(n){for(var e=new Uint8ClampedArray(n.length),t=0,r=n.length;t=a){var C=1,w=a;return new n(s,l,_,y,p,C,w)}else{var C=Math.max(1,Math.floor(t-y*c/d));u&&u.scrollHeight===l&&(u.scrollTop>s&&(C=Math.min(C,u.startLineNumber)),u.scrollTopwxe){r._context.viewLayout.setScrollPositionNow({scrollTop:s.scrollTop});return}var c=l.posy-o;r._context.viewLayout.setScrollPositionNow({scrollTop:s.getDesiredScrollTopFromDelta(c)})},function(){r._slider.toggleClassName("active",!1)})}}),r}return e.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),n.prototype.dispose.call(this)},e.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},e.prototype.getDomNode=function(){return this._domNode},e.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},e.prototype._getBuffer=function(){return this._buffers||(this._buffers=new Exe(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},e.prototype._onOptionsMaybeChanged=function(){var t=new I4(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},e.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},e.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},e.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},e.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},e.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},e.prototype.onScrollChanged=function(t){return!0},e.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},e.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},e.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){var r=this._options.renderMinimap;if(r===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var i=Sxe.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(i.sliderTop),this._slider.setHeight(i.sliderHeight);var o=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,a=Math.min(this._options.minimapWidth,Math.round(o*L4(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(a),this._sliderHorizontal.setWidth(this._options.minimapWidth-a),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(i.sliderHeight),this._lastRenderData=this.renderLines(i)},e.prototype.renderLines=function(t){var r=this._options.renderMinimap,i=t.startLineNumber,o=t.endLineNumber,a=SI(r);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var s=this._lastRenderData._get();return new T4(t,s.imageData,s.lines)}for(var l=this._getBuffer(),u=e._renderUntouchedLines(l,i,o,a,this._lastRenderData),c=u[0],d=u[1],f=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,f),p=h.tabSize,v=this._tokensColorTracker.getColor(2),m=this._tokensColorTracker.backgroundIsLight(),g=0,_=[],y=0,C=o-i+1;y=0&&Rp)return;var S=d.charCodeAt(m);if(S===9){var E=u-(m+g)%u;g+=E-1,v+=E*h}else if(S===32)v+=h;else for(var L=Cu(S)?2:1,T=0;Tp)return}},e}(Do);Cn(function(n,e){var t=n.getColor(vLe);if(t){var r=t.transparent(.5);e.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=n.getColor(gLe);if(i){var o=i.transparent(.5);e.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var a=n.getColor(mLe);if(a){var s=a.transparent(.5);e.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+s+"; }")}var l=n.getColor(WC);l&&e.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+l+" -6px 0 6px -6px inset; }")});var Ixe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Txe=function(n){Ixe(e,n);function e(t){var r=n.call(this,t)||this;return r._widgets={},r._verticalScrollbarWidth=r._context.configuration.editor.layoutInfo.verticalScrollbarWidth,r._minimapWidth=r._context.configuration.editor.layoutInfo.minimapWidth,r._horizontalScrollbarHeight=r._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,r._editorHeight=r._context.configuration.editor.layoutInfo.height,r._editorWidth=r._context.configuration.editor.layoutInfo.width,r._domNode=Bt(document.createElement("div")),fs.write(r._domNode,4),r._domNode.setClassName("overlayWidgets"),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._widgets={}},e.prototype.getDomNode=function(){return this._domNode},e.prototype.onConfigurationChanged=function(t){return t.layoutInfo?(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0):!1},e.prototype.addWidget=function(t){var r=Bt(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:r},r.setPosition("absolute"),r.setAttribute("widgetId",t.getId()),this._domNode.appendChild(r),this.setShouldRender()},e.prototype.setWidgetPosition=function(t,r){var i=this._widgets[t.getId()];return i.preference===r?!1:(i.preference=r,this.setShouldRender(),!0)},e.prototype.removeWidget=function(t){var r=t.getId();if(this._widgets.hasOwnProperty(r)){var i=this._widgets[r],o=i.domNode.domNode;delete this._widgets[r],o.parentNode.removeChild(o),this.setShouldRender()}},e.prototype._renderWidget=function(t){var r=t.domNode;if(t.preference===null){r.unsetTop();return}if(t.preference===0)r.setTop(0),r.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var i=r.domNode.clientHeight;r.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),r.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(r.setTop(0),r.domNode.style.right="50%")},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var r=Object.keys(this._widgets),i=0,o=r.length;i=3){var o=Math.floor(i/3),a=Math.floor(i/3),s=i-o-a,l=e,u=l+o,c=l+o+s;return[[0,l,u,l,c,l,u,l],[0,o,s,o+s,a,o+s+a,s+a,o+s+a]]}else if(r===2){var o=Math.floor(i/2),a=i-o,l=e,c=l+o;return[[0,l,l,l,c,l,l,l],[0,o,o,o,a,o+a,o+a,o+a]]}else{var d=e,f=i;return[[0,d,d,d,d,d,d,d],[0,f,f,f,f,f,f,f]]}},n.prototype.equals=function(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},n}(),Nxe=function(n){xxe(e,n);function e(t){var r=n.call(this,t)||this;return r._domNode=Bt(document.createElement("canvas")),r._domNode.setClassName("decorationsOverviewRuler"),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._domNode.setAttribute("aria-hidden","true"),r._updateSettings(!1),r._tokensColorTrackerListener=An.onDidChange(function(i){i.changedColorMap&&r._updateSettings(!0)}),r._cursorPositions=[],r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},e.prototype._updateSettings=function(t){var r=new Oxe(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(r)?!1:(this._settings=r,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,t&&this._render(),!0)},e.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},e.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var r=0,i=t.selections.length;rr&&(M=r-c),R=M-c,N=M+c}R>w+1||E!==y?(b!==0&&d.fillRect(f[y],C,h[y],w-C),y=E,C=R,w=N):N>w&&(w=N)}d.fillRect(f[y],C,h[y],w-C)}if(!this._settings.hideCursor&&this._settings.cursorColor){var H=2*this._settings.pixelRatio|0,k=H/2|0,W=this._settings.x[7],F=this._settings.w[7];d.fillStyle=this._settings.cursorColor;for(var C=-100,w=-100,b=0,S=this._cursorPositions.length;br&&(M=r-k);var R=M-k,N=R+H;R>w+1?(b!==0&&d.fillRect(W,C,F,w-C),C=R,w=N):N>w&&(w=N)}d.fillRect(W,C,F,w-C)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,r),d.stroke(),d.moveTo(0,0),d.lineTo(t,0),d.stroke())},e}(Do),x4=function(){function n(e,t,r){this.from=e|0,this.to=t|0,this.colorId=r|0}return n.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},n}(),hg=function(){function n(e,t,r){this.startLineNumber=e,this.endLineNumber=t,this.color=r,this._colorZone=null}return n.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorr&&(p=r-v);var m=c.color,g=this._color2Id[m];g||(g=++this._lastAssignedId,this._color2Id[m]=g,this._id2Color[g]=m);var _=new x4(p-v,p+v,g);c.setColorZone(_),s.push(_)}return this._colorZonesInvalid=!1,s.sort(x4.compare),s},n}(),Axe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Rxe=function(n){Axe(e,n);function e(t,r){var i=n.call(this)||this;return i._context=t,i._domNode=Bt(document.createElement("canvas")),i._domNode.setClassName(r),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new Dxe(function(o){return i._context.viewLayout.getVerticalOffsetForLineNumber(o)}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i}return e.prototype.dispose=function(){this._context.removeEventHandler(this),n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),t.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),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},e.prototype.onFlushed=function(t){return this._render(),!0},e.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},e.prototype.onZonesChanged=function(t){return this._render(),!0},e.prototype.getDomNode=function(){return this._domNode.domNode},e.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var r=!1;r=this._zoneManager.setDOMWidth(t.width)||r,r=this._zoneManager.setDOMHeight(t.height)||r,r&&(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())},e.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},e.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),r=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),a=this._domNode.domNode.getContext("2d");return a.clearRect(0,0,t,r),i.length>0&&this._renderOneLane(a,i,o,t),!0},e.prototype._renderOneLane=function(t,r,i,o){for(var a=0,s=0,l=0,u=0,c=r;u=h?l=Math.max(l,p):(t.fillRect(0,s,o,l-s),s=h,l=p)}t.fillRect(0,s,o,l-s)},e}(qg),Pxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Mxe=function(n){Pxe(e,n);function e(t){var r=n.call(this,t)||this;return r.domNode=Bt(document.createElement("div")),r.domNode.setAttribute("role","presentation"),r.domNode.setAttribute("aria-hidden","true"),r.domNode.setClassName("view-rulers"),r._renderedRulers=[],r._rulers=r._context.configuration.editor.viewInfo.rulers,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.viewInfo||t.layoutInfo||t.fontInfo?(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0):!1},e.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},e.prototype.prepareRender=function(t){},e.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,r=this._rulers.length;if(t!==r){if(t0;){var s=Bt(document.createElement("div"));s.setClassName("view-ruler"),s.setWidth(o),this.domNode.appendChild(s),this._renderedRulers.push(s),a--}return}for(var l=t-r;l>0;){var s=this._renderedRulers.pop();this.domNode.removeChild(s),l--}}},e.prototype.render=function(t){this._ensureRulersCount();for(var r=0,i=this._rulers.length;r0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},e.prototype.getDomNode=function(){return this._domNode},e.prototype._updateWidth=function(){var t=this._context.configuration.editor.layoutInfo,r=0;return t.renderMinimap===0||t.minimapWidth>0&&t.minimapLeft===0?r=t.width:r=t.width-t.minimapWidth-t.verticalScrollbarWidth,this._width!==r?(this._width=r,!0):!1},e.prototype.onConfigurationChanged=function(t){var r=!1;return t.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),t.layoutInfo&&(r=this._updateWidth()),this._updateShouldShow()||r},e.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},e.prototype.prepareRender=function(t){},e.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},e}(Do);Cn(function(n,e){var t=n.getColor(WC);t&&e.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var Bxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Wxe=function(){function n(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return n}(),Vxe=function(){function n(e,t){this.lineNumber=e,this.ranges=t}return n}();function Hxe(n){return new Wxe(n)}function Uxe(n){return new Vxe(n.lineNumber,n.ranges.map(Hxe))}var $xe=uu,jxe=function(n){Bxe(e,n);function e(t){var r=n.call(this)||this;return r._previousFrameVisibleRangesWithStyle=[],r._context=t,r._lineHeight=r._context.configuration.editor.lineHeight,r._roundedSelection=r._context.configuration.editor.viewInfo.roundedSelection,r._typicalHalfwidthCharacterWidth=r._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r._selections=[],r._renderResult=null,r._context.addEventHandler(r),r}return e.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,n.prototype.dispose.call(this)},e.prototype.onConfigurationChanged=function(t){return t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),t.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},e.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},e.prototype.onDecorationsChanged=function(t){return!0},e.prototype.onFlushed=function(t){return!0},e.prototype.onLinesChanged=function(t){return!0},e.prototype.onLinesDeleted=function(t){return!0},e.prototype.onLinesInserted=function(t){return!0},e.prototype.onScrollChanged=function(t){return t.scrollTopChanged},e.prototype.onZonesChanged=function(t){return!0},e.prototype._visibleRangesHaveGaps=function(t){for(var r=0,i=t.length;r1)return!0}return!1},e.prototype._enrichVisibleRangesWithStyle=function(t,r,i){var o=this._typicalHalfwidthCharacterWidth/4,a=null,s=null;if(i&&i.length>0&&r.length>0){var l=r[0].lineNumber;if(l===t.startLineNumber)for(var u=0;!a&&u=0;u--)i[u].lineNumber===c&&(s=i[u].ranges[0]);a&&!a.startStyle&&(a=null),s&&!s.startStyle&&(s=null)}for(var u=0,d=r.length;u0){var g=r[u-1].ranges[0].left,_=r[u-1].ranges[0].left+r[u-1].ranges[0].width;s_(h-g)g&&(v.top=1),s_(p-_)'},e.prototype._actualRenderOneSelection=function(t,r,i,o){for(var a=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),l=(this._lineHeight-1).toString(),u=o.length>0?o[0].lineNumber:0,c=o.length>0?o[o.length-1].lineNumber:0,d=0,f=o.length;d1,f)}this._previousFrameVisibleRangesWithStyle=l,this._renderResult=r},e.prototype.render=function(t,r){if(!this._renderResult)return"";var i=r-t;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},e.SELECTION_CLASS_NAME="selected-text",e.SELECTION_TOP_LEFT="top-left-radius",e.SELECTION_BOTTOM_LEFT="bottom-left-radius",e.SELECTION_TOP_RIGHT="top-right-radius",e.SELECTION_BOTTOM_RIGHT="bottom-right-radius",e.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",e.ROUNDED_PIECE_WIDTH=10,e}(wd);Cn(function(n,e){var t=n.getColor(Uf);t&&e.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var r=n.getColor(oD);r&&e.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=n.getColor(TLe);i&&e.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")});function s_(n){return n<0?-n:n}var O4=function(){function n(e,t,r,i,o,a){this.top=e,this.left=t,this.width=r,this.height=i,this.textContent=o,this.textContentClassName=a}return n}(),N4=function(){function n(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Bt(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Oo.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new pe(1,1)),this._lastRenderedContent="",this._renderData=null}return n.prototype.getDomNode=function(){return this._domNode},n.prototype.getPosition=function(){return this._position},n.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},n.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},n.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(Oo.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},n.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},n.prototype._prepareRender=function(e){var t="",r="";if(this._cursorStyle===Nn.Line||this._cursorStyle===Nn.LineThin){var i=e.visibleRangeForPosition(this._position);if(!i)return null;var o;if(this._cursorStyle===Nn.Line){if(o=i3(this._lineCursorWidth>0?this._lineCursorWidth:2),o>2){var a=this._context.model.getLineContent(this._position.lineNumber);t=a.charAt(this._position.column-1)}}else o=i3(1);var s=i.left;o>=2&&s>=1&&(s-=1);var l=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new O4(l,s,o,this._lineHeight,t,r)}var u=e.linesVisibleRangesForRange(new q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!u||u.length===0||u[0].ranges.length===0)return null;var c=u[0].ranges[0],d=c.width<1?this._typicalHalfwidthCharacterWidth:c.width;if(this._cursorStyle===Nn.Block){var f=this._context.model.getViewLineData(this._position.lineNumber);t=f.content.charAt(this._position.column-1),Mi(f.content.charCodeAt(this._position.column-1))&&(t+=f.content.charAt(this._position.column));var h=f.tokens.findTokenIndexAtOffset(this._position.column-1);r=f.tokens.getClassName(h)}var p=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,v=this._lineHeight;return(this._cursorStyle===Nn.Underline||this._cursorStyle===Nn.UnderlineThin)&&(p+=this._lineHeight-2,v=2),new O4(p,c.left,d,v,t,r)},n.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},n.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+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)},n.prototype.updatePosition=function(e){this._position=e},n}(),zxe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Kxe=function(n){zxe(e,n);function e(t){var r=n.call(this,t)||this;return r._readOnly=r._context.configuration.editor.readOnly,r._cursorBlinking=r._context.configuration.editor.viewInfo.cursorBlinking,r._cursorStyle=r._context.configuration.editor.viewInfo.cursorStyle,r._cursorSmoothCaretAnimation=r._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,r._selectionIsEmpty=!0,r._primaryCursor=new N4(r._context),r._secondaryCursors=[],r._renderData=[],r._domNode=Bt(document.createElement("div")),r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true"),r._updateDomClassName(),r._domNode.appendChild(r._primaryCursor.getDomNode()),r._startCursorBlinkAnimation=new Ei,r._cursorFlatBlinkInterval=new jg,r._blinkingEnabled=!1,r._editorHasFocus=!1,r._updateBlinking(),r}return e.prototype.dispose=function(){n.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},e.prototype.getDomNode=function(){return this._domNode},e.prototype.onConfigurationChanged=function(t){t.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),t.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(t),this._updateBlinking(),t.viewInfo&&this._updateDomClassName();for(var r=0,i=this._secondaryCursors.length;rr.length)for(var s=this._secondaryCursors.length-r.length,o=0;or)for(var a=t-r,o=0;o=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},n.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,r=this.secondaryCursors.length;th&&L.index--}e.splice(h,1),t.splice(f,1),this._removeSecondaryCursor(h-1),o--}}}}},n}(),iOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function oOe(n){for(var e=0,t=n.length;ee.MAX_CURSOR_COUNT&&(i=i.slice(0,e.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var o=new IS(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(t,r,o)},e.prototype.setColumnSelectData=function(t){this._columnSelectData=t},e.prototype.reveal=function(t,r,i){this._revealRange(r,0,t,i)},e.prototype.revealRange=function(t,r,i,o){this.emitCursorRevealRange(r,i,t,o)},e.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},e.prototype.saveState=function(){for(var t=[],r=this._cursors.getSelections(),i=0,o=r.length;i1)return;var u=new q(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(u,r,i,o)},e.prototype.emitCursorRevealRange=function(t,r,i,o){try{var a=this._beginEmit();a.emit(new dD(t,r,i,o))}finally{this._endEmit()}},e.prototype.trigger=function(t,r,i){var o=hn;if(r===o.CompositionStart){this._isDoingComposition=!0;return}if(r===o.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var a=new IS(this._model,this),s=0;r!==o.Undo&&r!==o.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(r){case o.Type:this._type(t,i.text);break;case o.ReplacePreviousChar:this._replacePreviousChar(i.text,i.replaceCharCnt);break;case o.Paste:s=4,this._paste(i.text,i.pasteOnNewLine,i.multicursorText);break;case o.Cut:this._cut();break;case o.Undo:s=5,this._interpretCommandResult(this._model.undo());break;case o.Redo:s=6,this._interpretCommandResult(this._model.redo());break;case o.ExecuteCommand:this._externalExecuteCommand(i);break;case o.ExecuteCommands:this._externalExecuteCommands(i);break;case o.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(l){Je(l)}this._isHandling=!1,r!==o.Undo&&r!==o.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(t,s,a)&&this._revealRange(0,0,!0,0)},e.prototype._interpretCompositionEnd=function(t){!this._isDoingComposition&&t==="keyboard"&&this._executeEditOperation(pa.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))},e.prototype._type=function(t,r){if(!this._isDoingComposition&&t==="keyboard")for(var i=0,o=r.length;i0&&(a[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,a,function(v){for(var m=[],g=0;g0?(m[E].sort(w),b[E]=t[E].computeCursorState(e.model,{getInverseEditOperations:function(){return m[E]},getTrackedSelection:function(L){var T=parseInt(L,10),R=e.model._getTrackedRange(e.trackedRanges[T]);return e.trackedRangesDirection[T]===0?new Xe(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn):new Xe(R.endLineNumber,R.endColumn,R.startLineNumber,R.startColumn)}})):b[E]=e.selectionsBefore[E]},g=0;go.identifier.major?a=i.identifier.major:a=o.identifier.major,t[a.toString()]=!0;for(var s=0;s0&&r--}}return t},n}(),_$=function(){function n(e,t,r,i,o,a){this.id=e,this.label=t,this.alias=r,this._precondition=i,this._run=o,this._contextKeyService=a}return n.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},n.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},n}(),M4={getInitialState:function(){return Kg},tokenize2:function(n,e,t){return zy(0,n,e,t)}};function k4(n,e){return e===void 0&&(e=M4),uOe(n,e||M4)}function lOe(n,e,t,r,i,o){for(var a="
",s=r,l=0,u=0,c=e.getCount();u0;)f+=" ",p--;break;case 60:f+="<";break;case 62:f+=">";break;case 38:f+="&";break;case 0:f+="�";break;case 65279:case 8232:f+="�";break;case 13:f+="​";break;default:f+=String.fromCharCode(h)}}if(a+=''+f+"",d>i||s>=i)break}}return a+="
",a}function uOe(n,e){for(var t='
',r=n.split(/\r\n|\r|\n/),i=e.getInitialState(),o=0,a=r.length;o0&&(t+="
");var l=e.tokenize2(s,i,0);ba.convertToEndOffset(l.tokens,s.length);for(var u=new ba(l.tokens,s),c=u.inflate(),d=0,f=0,h=c.getCount();f'+wi(s.substring(d,v))+"",d=v}i=l.endState}return t+="
",t}var cOe=function(){function n(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return n.findInsertionIndex=function(e,t,r,i){for(var o=0,a=e.length;o>>1;t===e[s]?i=t&&(this._whitespaceId2Index[c]=d+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},n.prototype.changeWhitespace=function(e,t,r){e=e|0,t=t|0,r=r|0;var i=!1;return i=this.changeWhitespaceHeight(e,r)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i,i},n.prototype.changeWhitespaceHeight=function(e,t){e=e|0,t=t|0;var r=e.toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._heights[i]!==t)return this._heights[i]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1),!0}return!1},n.prototype.changeWhitespaceAfterLineNumber=function(e,t){e=e|0,t=t|0;var r=e.toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._afterLineNumbers[i]!==t){var o=this._ordinals[i],a=this._heights[i],s=this._minWidths[i];this.removeWhitespace(e);var l=n.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,o);return this._insertWhitespaceAtIndex(e,l,t,o,a,s),!0}}return!1},n.prototype.removeWhitespace=function(e){e=e|0;var t=e.toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var r=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(r),this._minWidth=-1,!0}return!1},n.prototype._removeWhitespaceAtIndex=function(e){e=e|0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),r=0,i=t.length;r=e&&(this._whitespaceId2Index[o]=a-1)}},n.prototype.onLinesDeleted=function(e,t){e=e|0,t=t|0;for(var r=0,i=this._afterLineNumbers.length;rt&&(this._afterLineNumbers[r]-=t-e+1)}},n.prototype.onLinesInserted=function(e,t){e=e|0,t=t|0;for(var r=0,i=this._afterLineNumbers.length;r=t.length||t[s+1]>=e)return s;r=s+1|0}else i=s-1|0}return-1},n.prototype._findFirstWhitespaceAfterLineNumber=function(e){e=e|0;var t=this._findLastWhitespaceBeforeLineNumber(e),r=t+1;return r1?t=this._lineHeight*(e-1):t=0;var r=this._whitespaces.getAccumulatedHeightBeforeLineNumber(e);return t+r},n.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},n.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},n.prototype.isAfterLines=function(e){var t=this.getLinesTotalHeight();return e>t},n.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(e=e|0,e<0)return 1;for(var t=this._lineCount|0,r=this._lineHeight,i=1,o=t;i=s+r)i=a+1;else{if(e>=s)return a;o=a}}return i>t?t:i},n.prototype.getLinesViewportData=function(e,t){e=e|0,t=t|0;var r=this._lineHeight,i=this.getLineNumberAtOrAfterVerticalOffset(e)|0,o=this.getVerticalOffsetForLineNumber(i)|0,a=this._lineCount|0,s=this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(i)|0,l=this._whitespaces.getCount()|0,u,c;s===-1?(s=l,c=a+1,u=0):(c=this._whitespaces.getAfterLineNumberForWhitespaceIndex(s)|0,u=this._whitespaces.getHeightForWhitespaceIndex(s)|0);var d=o,f=d,h=5e5,p=0;o>=h&&(p=Math.floor(o/h)*h,p=Math.floor(p/r)*r,f-=p);for(var v=[],m=e+(t-e)/2,g=-1,_=i;_<=a;_++){if(g===-1){var y=d,C=d+r;(y<=m&&mm)&&(g=_)}for(d+=r,v[_-i]=f,f+=r;c===_;)f+=u,d+=u,s++,s>=l?c=a+1:(c=this._whitespaces.getAfterLineNumberForWhitespaceIndex(s)|0,u=this._whitespaces.getHeightForWhitespaceIndex(s)|0);if(d>=t){a=_;break}}g===-1&&(g=a);var w=this.getVerticalOffsetForLineNumber(a)|0,b=i,S=a;return bt&&S--,{bigNumbersDelta:p,startLineNumber:i,endLineNumber:a,relativeVerticalOffset:v,centeredLineNumber:g,completelyVisibleStartLineNumber:b,completelyVisibleEndLineNumber:S}},n.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e=e|0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e),r;t>=1?r=this._lineHeight*t:r=0;var i;return e>0?i=this._whitespaces.getAccumulatedHeight(e-1):i=0,r+i},n.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e=e|0;var t,r=0,i=this._whitespaces.getCount()-1,o,a;if(i<0)return-1;var s=this.getVerticalOffsetForWhitespaceIndex(i),l=this._whitespaces.getHeightForWhitespaceIndex(i);if(e>=s+l)return-1;for(;r=o+a)r=t+1;else{if(e>=o)return t;i=t}return r},n.prototype.getWhitespaceAtVerticalOffset=function(e){e=e|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this._whitespaces.getCount())return null;var r=this.getVerticalOffsetForWhitespaceIndex(t);if(r>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t),o=this._whitespaces.getIdForWhitespaceIndex(t),a=this._whitespaces.getAfterLineNumberForWhitespaceIndex(t);return{id:o,afterLineNumber:a,verticalOffset:r,height:i}},n.prototype.getWhitespaceViewportData=function(e,t){e=e|0,t=t|0;var r=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this._whitespaces.getCount()-1;if(r<0)return[];for(var o=[],a=r;a<=i;a++){var s=this.getVerticalOffsetForWhitespaceIndex(a),l=this._whitespaces.getHeightForWhitespaceIndex(a);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(a),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(a),verticalOffset:s,height:l})}return o},n.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},n}(),fOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),hOe=125,pOe=function(n){fOe(e,n);function e(t,r,i){var o=n.call(this)||this;return o._configuration=t,o._linesLayout=new dOe(r,o._configuration.editor.lineHeight),o.scrollable=o._register(new h$(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.onHeightMaybeChanged=function(){this._updateHeight()},e.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?hOe:0)},e.prototype.onConfigurationChanged=function(t){t.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),t.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),t.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},e.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},e.prototype.onLinesDeleted=function(t,r){this._linesLayout.onLinesDeleted(t,r)},e.prototype.onLinesInserted=function(t,r){this._linesLayout.onLinesInserted(t,r)},e.prototype._getHorizontalScrollbarHeight=function(t){return this._configuration.editor.viewInfo.scrollbar.horizontal===2||t.width>=t.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},e.prototype._getTotalHeight=function(){var t=this.scrollable.getScrollDimensions(),r=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?r+=t.height-this._configuration.editor.lineHeight:r+=this._getHorizontalScrollbarHeight(t),Math.max(t.height,r)},e.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},e.prototype.getCurrentViewport=function(){var t=this.scrollable.getScrollDimensions(),r=this.scrollable.getCurrentScrollPosition();return new O3(r.scrollTop,r.scrollLeft,t.width,t.height)},e.prototype.getFutureViewport=function(){var t=this.scrollable.getScrollDimensions(),r=this.scrollable.getFutureScrollPosition();return new O3(r.scrollTop,r.scrollLeft,t.width,t.height)},e.prototype._computeScrollWidth=function(t,r){var i=this._configuration.editor.wrappingInfo.isViewportWrapping;if(!i){var o=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+o,r,a)}return Math.max(t,r)},e.prototype.onMaxLineWidthChanged=function(t){var r=this._computeScrollWidth(t,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:r}),this._updateHeight()},e.prototype.saveState=function(){var t=this.scrollable.getFutureScrollPosition(),r=t.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(r),o=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i);return{scrollTop:r,scrollTopWithoutViewZones:r-o,scrollLeft:t.scrollLeft}},e.prototype.addWhitespace=function(t,r,i,o){return this._linesLayout.insertWhitespace(t,r,i,o)},e.prototype.changeWhitespace=function(t,r,i){return this._linesLayout.changeWhitespace(t,r,i)},e.prototype.removeWhitespace=function(t){return this._linesLayout.removeWhitespace(t)},e.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},e.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},e.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},e.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},e.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},e.prototype.getLinesViewportDataAtScrollTop=function(t){var r=this.scrollable.getScrollDimensions();return t+r.height>r.scrollHeight&&(t=r.scrollHeight-r.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+r.height)},e.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},e.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},e.prototype.getScrollWidth=function(){var t=this.scrollable.getScrollDimensions();return t.scrollWidth},e.prototype.getScrollHeight=function(){var t=this.scrollable.getScrollDimensions();return t.scrollHeight},e.prototype.getCurrentScrollLeft=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollLeft},e.prototype.getCurrentScrollTop=function(){var t=this.scrollable.getCurrentScrollPosition();return t.scrollTop},e.prototype.validateScrollPosition=function(t){return this.scrollable.validateScrollPosition(t)},e.prototype.setScrollPositionNow=function(t){this.scrollable.setScrollPositionNow(t)},e.prototype.setScrollPositionSmooth=function(t){this.scrollable.setScrollPositionSmooth(t)},e.prototype.deltaScrollNow=function(t,r){var i=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+t,scrollTop:i.scrollTop+r})},e}(Ue),vOe=function(){function n(e,t){this.outputLineIndex=e,this.outputOffset=t}return n}(),gOe=function(){function n(e){this._lines=e}return n.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},n.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new q(t.lineNumber,t.column,r.lineNumber,r.column)},n.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},n.prototype.validateViewRange=function(e,t){var r=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new q(r.lineNumber,r.column,i.lineNumber,i.column)},n.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},n.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),r=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new q(t.lineNumber,t.column,r.lineNumber,r.column)},n.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},n}(),mOe=function(){function n(e,t,r,i,o,a){this.model=e,this._validModelVersionId=-1,this.tabSize=r,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=a,this.linePositionMapperFactory=t,this._constructLines(!0)}return n.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},n.prototype.createCoordinatesConverter=function(){return new gOe(this)},n.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},n.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var r=this.model.getLinesContent(),i=r.length,o=new Uint32Array(i),a=this.hiddenAreasIds.map(function(v){return t.model.getDecorationRange(v)}).sort(q.compareRangesUsingStarts),s=1,l=0,u=-1,c=u+1=s&&f<=l,p=TS(this.linePositionMapperFactory,r[d],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);o[d]=p.getViewLineCount(),this.lines[d]=p}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new _Se(o)},n.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},n.prototype._reduceRanges=function(e){var t=this;if(e.length===0)return[];for(var r=e.map(function(c){return t.model.validateRange(c)}).sort(q.compareRangesUsingStarts),i=[],o=r[0].startLineNumber,a=r[0].endLineNumber,s=1,l=r.length;sa+1?(i.push(new q(o,1,a,1)),o=u.startLineNumber,a=u.endLineNumber):u.endLineNumber>a&&(a=u.endLineNumber)}return i.push(new q(o,1,a,1)),i},n.prototype.setHiddenAreas=function(e){var t=this,r=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(C){return t.model.getDecorationRange(C)}).sort(q.compareRangesUsingStarts);if(r.length===i.length){for(var o=!1,a=0;a=f&&g<=h?this.lines[a].isVisible()&&(this.lines[a]=this.lines[a].setVisible(!1),_=!0):(m=!0,this.lines[a].isVisible()||(this.lines[a]=this.lines[a].setVisible(!0),_=!0)),_){var y=this.lines[a].getViewLineCount();this.prefixSumComputer.changeValue(a,y)}}return m||this.setHiddenAreas([]),!0},n.prototype.modelPositionIsVisible=function(e,t){return e<1||e>this.lines.length?!1:this.lines[e-1].isVisible()},n.prototype.setTabSize=function(e){return this.tabSize===e?!1:(this.tabSize=e,this._constructLines(!1),!0)},n.prototype.setWrappingSettings=function(e,t,r){return this.wrappingIndent===e&&this.wrappingColumn===t&&this.columnsForFullWidthChar===r?!1:(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=r,this._constructLines(!1),!0)},n.prototype.onModelFlushed=function(){this._constructLines(!0)},n.prototype.onModelLinesDeleted=function(e,t,r){if(e<=this._validModelVersionId)return null;var i=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(r-1);return this.lines.splice(t-1,r-t+1),this.prefixSumComputer.removeValues(t-1,r-t+1),new mI(i,o)},n.prototype.onModelLinesInserted=function(e,t,r,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),a=!1,s=new pe(t,1),l=0,u=o;ll?(c=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,d=c+l-1,p=d+1,v=p+(o-l)-1,u=!0):ot?t:e},n.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},n.prototype.getActiveIndentGuide=function(e,t,r){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),r=this._toValidViewLineNumber(r);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),a=this.convertViewPositionToModelPosition(r,this.getViewLineMinColumn(r)),s=this.model.getActiveIndentGuide(i.lineNumber,o.lineNumber,a.lineNumber),l=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:l.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},n.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],a=[],s=[],l=r.lineNumber-1,u=i.lineNumber-1,c=null,d=l;d<=u;d++){var f=this.lines[d];if(f.isVisible()){var h=f.getViewLineNumberOfModelPosition(0,d===l?r.column:1),p=f.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(d+1)),v=p-h+1,m=0;v>1&&f.getViewLineMinColumn(this.model,d+1,p)===1&&(m=h===0?1:2),a.push(v),s.push(m),c===null&&(c=new pe(d+1,0))}else c!==null&&(o=o.concat(this.model.getLinesIndentGuides(c.lineNumber,d)),c=null)}c!==null&&(o=o.concat(this.model.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);for(var g=t-e+1,_=new Array(g),y=0,C=0,w=o.length;Ct&&(p=!0,h=t-o+1);var v=f+h;if(d.getViewLinesData(this.model,u+1,f,v,o-e,r,l),o+=h,p)break}}return l},n.prototype.validateViewPosition=function(e,t,r){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,a=i.remainder,s=this.lines[o],l=s.getViewLineMinColumn(this.model,o+1,a),u=s.getViewLineMaxColumn(this.model,o+1,a);tu&&(t=u);var c=s.getModelColumnOfViewPosition(a,t),d=this.model.validatePosition(new pe(o+1,c));return d.equals(r)?new pe(e,t):this.convertModelPositionToViewPosition(r.lineNumber,r.column)},n.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1),i=r.index,o=r.remainder,a=this.lines[i].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new pe(i+1,a))},n.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var r=this.model.validatePosition(new pe(e,t)),i=r.lineNumber,o=r.column,a=i-1,s=!1;a>0&&!this.lines[a].isVisible();)a--,s=!0;if(a===0&&!this.lines[a].isVisible())return new pe(1,1);var l=1+(a===0?0:this.prefixSumComputer.getAccumulatedValue(a-1)),u;return s?u=this.lines[a].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(a+1)):u=this.lines[i-1].getViewPositionOfModelPosition(l,o),u},n.prototype._getViewLineNumberForModelPosition=function(e,t){var r=e-1;if(this.lines[r].isVisible()){var i=1+(r===0?0:this.prefixSumComputer.getAccumulatedValue(r-1));return this.lines[r].getViewLineNumberOfModelPosition(i,t)}for(;r>0&&!this.lines[r].isVisible();)r--;if(r===0&&!this.lines[r].isVisible())return 1;var o=1+(r===0?0:this.prefixSumComputer.getAccumulatedValue(r-1));return this.lines[r].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(r+1))},n.prototype.getAllOverviewRulerDecorations=function(e,t,r){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new C$,a=0,s=i;aw.id?1:0:b});for(var h=[],p=0,v=null,m=0,g=a;m0&&(a=this.wrappedIndent+a),a},n.prototype.getViewLineLength=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(r),o=this.getInputEndOffsetOfOutputLineIndex(e,t,r),a=o-i;return r>0&&(a=this.wrappedIndent.length+a),a},n.prototype.getViewLineMinColumn=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");return r>0?this.wrappedIndentLength+1:1},n.prototype.getViewLineMaxColumn=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,r).length+1},n.prototype.getViewLineData=function(e,t,r){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(r),o=this.getInputEndOffsetOfOutputLineIndex(e,t,r),a=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});r>0&&(a=this.wrappedIndent+a);var s=r>0?this.wrappedIndentLength+1:1,l=a.length+1,u=r+10&&(c=this.wrappedIndentLength);var d=e.getLineTokens(t);return new UN(a,u,s,l,d.sliceAndInflate(i,o,c))},n.prototype.getViewLinesData=function(e,t,r,i,o,a,s){if(!this._isVisible)throw new Error("Not supported");for(var l=r;l0&&(r0&&(o+=this.wrappedIndentLength),new pe(e+i,o)},n.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var r=this.positionMapper.getOutputPositionOfInputOffset(t-1);return e+r.outputLineIndex},n}();function TS(n,e,t,r,i,o,a){var s=n.createLineMapping(e,t,r,i,o);return s===null?a?y$.INSTANCE:b$.INSTANCE:new _Oe(s,a)}var yOe=function(){function n(e){this._lines=e}return n.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},n.prototype._validRange=function(e){return this._lines.model.validateRange(e)},n.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},n.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},n.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},n.prototype.validateViewRange=function(e,t){return this._validRange(t)},n.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},n.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},n.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},n}(),bOe=function(){function n(e){this.model=e}return n.prototype.dispose=function(){},n.prototype.createCoordinatesConverter=function(){return new yOe(this)},n.prototype.getHiddenAreas=function(){return[]},n.prototype.setHiddenAreas=function(e){return!1},n.prototype.setTabSize=function(e){return!1},n.prototype.setWrappingSettings=function(e,t,r){return!1},n.prototype.onModelFlushed=function(){},n.prototype.onModelLinesDeleted=function(e,t,r){return new mI(t,r)},n.prototype.onModelLinesInserted=function(e,t,r,i){return new _I(t,r)},n.prototype.onModelLineChanged=function(e,t,r){return[!1,new e$(t,t),null,null]},n.prototype.acceptVersionId=function(e){},n.prototype.getViewLineCount=function(){return this.model.getLineCount()},n.prototype.warmUpLookupCache=function(e,t){},n.prototype.getActiveIndentGuide=function(e,t,r){return{startLineNumber:e,endLineNumber:e,indent:0}},n.prototype.getViewLinesIndentGuides=function(e,t){for(var r=t-e+1,i=new Array(r),o=0;o=t){r>s&&(o[o.length-1]=r);return}o.push(i,t,r)}else this.result[e]=[i,t,r]},n}(),COe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wOe=function(n){COe(e,n);function e(t,r,i){for(var o=n.call(this,0)||this,a=0;a=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:n.prototype.get.call(this,t)},e}(RC),SOe=function(){function n(e,t,r){this.classifier=new wOe(e,t,r)}return n.nextVisibleColumn=function(e,t,r,i){return e=+e,t=+t,i=+i,r?e+(t-e%t):e+i},n.prototype.createLineMapping=function(e,t,r,i,o){if(r===-1)return null;t=+t,r=+r,i=+i,o=+o;var a=0,s="",l=-1;if(o!==0&&(l=eo(e),l!==-1)){s=e.substring(0,l);for(var u=0;ur&&(s="",a=0)}for(var d=this.classifier,f=0,h=[],p=0,v=0,m=-1,g=0,_=-1,y=0,C=e.length,u=0;u0){var E=e.charCodeAt(u-1),L=d.get(E);L!==1&&(m=u,g=a)}var T=1;if(Cu(w)&&(T=i),v=n.nextVisibleColumn(v,t,b,T),v>r&&u!==0){var R=void 0,N=void 0;m!==-1&&g<=r?(R=m,N=g):_!==-1&&y<=r?(R=_,N=y):(R=u,N=a),h[p++]=R-f,f=R,v=n.nextVisibleColumn(N,t,b,T),m=-1,g=0,_=-1,y=0}if(m!==-1&&(g=n.nextVisibleColumn(g,t,b,T)),_!==-1&&(y=n.nextVisibleColumn(y,t,b,T)),S===2&&(o===0||u>=l)&&(m=u+1,g=a),S===4&&u=2&&t.viewportStartLineTrackedRange){var g=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(g){var _=t.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),y=t.viewLayout.getVerticalOffsetForLineNumber(_.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:y+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(r){for(var i=[],o=0,a=r.ranges.length;ou||(s"u")return this._reduceRestoreStateCompatibility(t);var r=this.model.validatePosition(t.firstPosition),i=this.coordinatesConverter.convertModelPositionToViewPosition(r),o=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:o}},e.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},e.prototype.getTabSize=function(){return this.model.getOptions().tabSize},e.prototype.getOptions=function(){return this.model.getOptions()},e.prototype.getLineCount=function(){return this.lines.getViewLineCount()},e.prototype.setViewport=function(t,r,i){this.lines.warmUpLookupCache(t,r),this.viewportStartLine=t;var o=this.coordinatesConverter.convertViewPositionToModelPosition(new pe(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new q(o.lineNumber,o.column,o.lineNumber,o.column),1);var a=this.viewLayout.getVerticalOffsetForLineNumber(t),s=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=s-a},e.prototype.getActiveIndentGuide=function(t,r,i){return this.lines.getActiveIndentGuide(t,r,i)},e.prototype.getLinesIndentGuides=function(t,r){return this.lines.getViewLinesIndentGuides(t,r)},e.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},e.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},e.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},e.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},e.prototype.getLineFirstNonWhitespaceColumn=function(t){var r=eo(this.getLineContent(t));return r===-1?0:r+1},e.prototype.getLineLastNonWhitespaceColumn=function(t){var r=Du(this.getLineContent(t));return r===-1?0:r+2},e.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},e.prototype.getViewLineRenderingData=function(t,r){var i=this.model.mightContainRTL(),o=this.model.mightContainNonBasicASCII(),a=this.getTabSize(),s=this.lines.getViewLineData(r),l=this.decorations.getDecorationsViewportData(t).inlineDecorations,u=l[r-t.startLineNumber];return new Ea(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,o,s.tokens,u,a)},e.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},e.prototype.getMinimapLinesRenderingData=function(t,r,i){var o=this.lines.getViewLinesData(t,r,i);return new ZSe(this.getTabSize(),o)},e.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,t)},e.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),r=0,i=t;r0&&l[c-1]===l[c]||(u+=this.model.getLineContent(l[c])+a);return u}for(var d=[],f=0,h=s;f'+this._getHTMLToCopy(i,s)+""},e.prototype._getHTMLToCopy=function(t,r){for(var i=t.startLineNumber,o=t.startColumn,a=t.endLineNumber,s=t.endColumn,l=this.getTabSize(),u="",c=i;c<=a;c++){var d=this.model.getLineTokens(c),f=d.getLineContent(),h=c===i?o-1:0,p=c===a?s-1:f.length;f===""?u+="
":u+=lOe(f,d.inflate(),r,h,p,l)}return u},e.prototype._getColorMap=function(){var t=An.getColorMap(),r=["#000000"];if(t)for(var i=1,o=t.length;i=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Xu=function(n,e){return function(t,r){e(t,r,n)}},OOe=0,ib="showUnused",NOe=function(){function n(e,t,r,i,o,a){this.model=e,this.viewModel=t,this.cursor=r,this.view=i,this.hasRealView=o,this.listenersToRemove=a}return n.prototype.dispose=function(){Oe(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},n}(),CD=function(n){Xg(e,n);function e(t,r,i,o,a,s,l,u,c,d){var f=n.call(this)||this;f._onDidDispose=f._register(new se),f.onDidDispose=f._onDidDispose.event,f._onDidChangeModelContent=f._register(new se),f.onDidChangeModelContent=f._onDidChangeModelContent.event,f._onDidChangeModelLanguage=f._register(new se),f.onDidChangeModelLanguage=f._onDidChangeModelLanguage.event,f._onDidChangeModelLanguageConfiguration=f._register(new se),f.onDidChangeModelLanguageConfiguration=f._onDidChangeModelLanguageConfiguration.event,f._onDidChangeModelOptions=f._register(new se),f.onDidChangeModelOptions=f._onDidChangeModelOptions.event,f._onDidChangeModelDecorations=f._register(new se),f.onDidChangeModelDecorations=f._onDidChangeModelDecorations.event,f._onDidChangeConfiguration=f._register(new se),f.onDidChangeConfiguration=f._onDidChangeConfiguration.event,f._onDidChangeModel=f._register(new se),f.onDidChangeModel=f._onDidChangeModel.event,f._onDidChangeCursorPosition=f._register(new se),f.onDidChangeCursorPosition=f._onDidChangeCursorPosition.event,f._onDidChangeCursorSelection=f._register(new se),f.onDidChangeCursorSelection=f._onDidChangeCursorSelection.event,f._onDidAttemptReadOnlyEdit=f._register(new se),f.onDidAttemptReadOnlyEdit=f._onDidAttemptReadOnlyEdit.event,f._onDidLayoutChange=f._register(new se),f.onDidLayoutChange=f._onDidLayoutChange.event,f._editorTextFocus=f._register(new F4),f.onDidFocusEditorText=f._editorTextFocus.onDidChangeToTrue,f.onDidBlurEditorText=f._editorTextFocus.onDidChangeToFalse,f._editorWidgetFocus=f._register(new F4),f.onDidFocusEditorWidget=f._editorWidgetFocus.onDidChangeToTrue,f.onDidBlurEditorWidget=f._editorWidgetFocus.onDidChangeToFalse,f._onWillType=f._register(new se),f.onWillType=f._onWillType.event,f._onDidType=f._register(new se),f.onDidType=f._onDidType.event,f._onCompositionStart=f._register(new se),f.onCompositionStart=f._onCompositionStart.event,f._onCompositionEnd=f._register(new se),f.onCompositionEnd=f._onCompositionEnd.event,f._onDidPaste=f._register(new se),f.onDidPaste=f._onDidPaste.event,f._onMouseUp=f._register(new se),f.onMouseUp=f._onMouseUp.event,f._onMouseDown=f._register(new se),f.onMouseDown=f._onMouseDown.event,f._onMouseDrag=f._register(new se),f.onMouseDrag=f._onMouseDrag.event,f._onMouseDrop=f._register(new se),f.onMouseDrop=f._onMouseDrop.event,f._onContextMenu=f._register(new se),f.onContextMenu=f._onContextMenu.event,f._onMouseMove=f._register(new se),f.onMouseMove=f._onMouseMove.event,f._onMouseLeave=f._register(new se),f.onMouseLeave=f._onMouseLeave.event,f._onMouseWheel=f._register(new se),f.onMouseWheel=f._onMouseWheel.event,f._onKeyUp=f._register(new se),f.onKeyUp=f._onKeyUp.event,f._onKeyDown=f._register(new se),f.onKeyDown=f._onKeyDown.event,f._onDidScrollChange=f._register(new se),f.onDidScrollChange=f._onDidScrollChange.event,f._onDidChangeViewZones=f._register(new se),f.onDidChangeViewZones=f._onDidChangeViewZones.event,f._domElement=t,f._id=++OOe,f._decorationTypeKeysToIds={},f._decorationTypeSubtypes={},f.isSimpleWidget=i.isSimpleWidget||!1,f._telemetryData=i.telemetryData,r=r||{},f._configuration=f._register(f._createConfiguration(r,d)),f._register(f._configuration.onDidChange(function(_){f._onDidChangeConfiguration.fire(_),_.layoutInfo&&f._onDidLayoutChange.fire(f._configuration.editor.layoutInfo),f._configuration.editor.showUnused?f._domElement.classList.add(ib):f._domElement.classList.remove(ib)})),f._contextKeyService=f._register(l.createScoped(f._domElement)),f._notificationService=c,f._codeEditorService=a,f._commandService=s,f._themeService=u,f._register(new DOe(f,f._contextKeyService)),f._register(new AOe(f,f._contextKeyService)),f._instantiationService=o.createChild(new _h([jt,f._contextKeyService])),f._attachModel(null),f._contributions={},f._actions={},f._focusTracker=new ROe(t),f._focusTracker.onChange(function(){f._editorWidgetFocus.setValue(f._focusTracker.hasFocus())}),f._contentWidgets={},f._overlayWidgets={};var h;Array.isArray(i.contributions)?h=i.contributions:h=mv.getEditorContributions();for(var p=0,v=h.length;p1),this._hasNonEmptySelection.set(t.some(function(r){return!r.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},e.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},e.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(!!(t&&t.canUndo())),this._canRedo.set(!!(t&&t.canRedo()))},e}($e),Zxe=function(n){Gg(e,n);function e(t,r){var i=n.call(this)||this;i._editor=t,i._contextKeyService=r,i._langId=Q.languageId.bindTo(r),i._hasCompletionItemProvider=Q.hasCompletionItemProvider.bindTo(r),i._hasCodeActionsProvider=Q.hasCodeActionsProvider.bindTo(r),i._hasCodeLensProvider=Q.hasCodeLensProvider.bindTo(r),i._hasDefinitionProvider=Q.hasDefinitionProvider.bindTo(r),i._hasDeclarationProvider=Q.hasDeclarationProvider.bindTo(r),i._hasImplementationProvider=Q.hasImplementationProvider.bindTo(r),i._hasTypeDefinitionProvider=Q.hasTypeDefinitionProvider.bindTo(r),i._hasHoverProvider=Q.hasHoverProvider.bindTo(r),i._hasDocumentHighlightProvider=Q.hasDocumentHighlightProvider.bindTo(r),i._hasDocumentSymbolProvider=Q.hasDocumentSymbolProvider.bindTo(r),i._hasReferenceProvider=Q.hasReferenceProvider.bindTo(r),i._hasRenameProvider=Q.hasRenameProvider.bindTo(r),i._hasSignatureHelpProvider=Q.hasSignatureHelpProvider.bindTo(r),i._hasDocumentFormattingProvider=Q.hasDocumentFormattingProvider.bindTo(r),i._hasDocumentSelectionFormattingProvider=Q.hasDocumentSelectionFormattingProvider.bindTo(r),i._hasMultipleDocumentFormattingProvider=Q.hasMultipleDocumentFormattingProvider.bindTo(r),i._hasMultipleDocumentSelectionFormattingProvider=Q.hasMultipleDocumentSelectionFormattingProvider.bindTo(r),i._isInWalkThrough=Q.isInEmbeddedEditor.bindTo(r);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(Ka.onDidChange(o)),i._register(Js.onDidChange(o)),i._register(Wc.onDidChange(o)),i._register(ng.onDidChange(o)),i._register(nI.onDidChange(o)),i._register(Uy.onDidChange(o)),i._register($y.onDidChange(o)),i._register(eg.onDidChange(o)),i._register(fh.onDidChange(o)),i._register(tg.onDidChange(o)),i._register(Vy.onDidChange(o)),i._register(Hy.onDidChange(o)),i._register(hv.onDidChange(o)),i._register(ha.onDidChange(o)),i._register(Bc.onDidChange(o)),o(),i}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},e.prototype._update=function(){var t=this,r=this._editor.getModel();if(!r){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(r.getLanguageIdentifier().language),t._hasCompletionItemProvider.set(Ka.has(r)),t._hasCodeActionsProvider.set(Js.has(r)),t._hasCodeLensProvider.set(Wc.has(r)),t._hasDefinitionProvider.set(ng.has(r)),t._hasDeclarationProvider.set(nI.has(r)),t._hasImplementationProvider.set(Uy.has(r)),t._hasTypeDefinitionProvider.set($y.has(r)),t._hasHoverProvider.set(eg.has(r)),t._hasDocumentHighlightProvider.set(fh.has(r)),t._hasDocumentSymbolProvider.set(tg.has(r)),t._hasReferenceProvider.set(Vy.has(r)),t._hasRenameProvider.set(Hy.has(r)),t._hasSignatureHelpProvider.set(Bc.has(r)),t._hasDocumentFormattingProvider.set(hv.has(r)||ha.has(r)),t._hasDocumentSelectionFormattingProvider.set(ha.has(r)),t._hasMultipleDocumentFormattingProvider.set(hv.all(r).length+ha.all(r).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set(ha.all(r).length>1),t._isInWalkThrough.set(r.uri.scheme===An.walkThroughSnippet)})},e}($e),Qxe=function(n){Gg(e,n);function e(t){var r=n.call(this)||this;return r._onChange=r._register(new ae),r.onChange=r._onChange.event,r._hasFocus=!1,r._domFocusTracker=r._register(Xv(t)),r._register(r._domFocusTracker.onDidFocus(function(){r._hasFocus=!0,r._onChange.fire(void 0)})),r._register(r._domFocusTracker.onDidBlur(function(){r._hasFocus=!1,r._onChange.fire(void 0)})),r}return e.prototype.hasFocus=function(){return this._hasFocus},e}($e),Jxe=encodeURIComponent("");function RS(n){return Jxe+encodeURIComponent(n.toString())+eOe}var tOe=encodeURIComponent('');function rOe(n){return tOe+encodeURIComponent(n.toString())+nOe}Cn(function(n,e){var t=n.getColor(Y9);t&&e.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var r=n.getColor(q9);r&&e.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+RS(r)+'") repeat-x bottom left; }');var i=n.getColor(Z9);i&&e.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=n.getColor(X9);o&&e.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+RS(o)+'") repeat-x bottom left; }');var a=n.getColor(J9);a&&e.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+a+"; }");var s=n.getColor(Q9);s&&e.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+RS(s)+'") repeat-x bottom left; }');var l=n.getColor(bLe);l&&e.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=n.getColor(yLe);u&&e.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+rOe(u)+'") no-repeat bottom left; }');var c=n.getColor(wLe);c&&e.addRule("."+ob+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=n.getColor(CLe);d&&e.addRule("."+ob+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }")});var iOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),oOe=!1,qC=function(n){iOe(e,n);function e(t,r,i){i===void 0&&(i={});var o=n.call(this)||this;return o._state=3,o._onDidEnablementChange=o._register(new ae),o.onDidEnablementChange=o._onDidEnablementChange.event,o._onDidStart=o._register(new ae),o.onDidStart=o._onDidStart.event,o._onDidChange=o._register(new ae),o.onDidChange=o._onDidChange.event,o._onDidReset=o._register(new ae),o.onDidReset=o._onDidReset.event,o._onDidEnd=o._register(new ae),o.onDidEnd=o._onDidEnd.event,o.linkedSash=void 0,o.orthogonalStartSashDisposables=[],o.orthogonalEndSashDisposables=[],o.el=Ue(t,ot(".monaco-sash")),Vt&&Ke(o.el,"mac"),o._register(Gt(o.el,"mousedown")(o.onMouseDown,o)),o._register(Gt(o.el,"dblclick")(o.onMouseDoubleClick,o)),Bh.addTarget(o.el),o._register(Gt(o.el,Ur.Start)(o.onTouchStart,o)),Py&&Ke(o.el,"touch"),o.setOrientation(i.orientation||0),o.hidden=!1,o.layoutProvider=r,o.orthogonalStartSash=i.orthogonalStartSash,o.orthogonalEndSash=i.orthogonalEndSash,rn(o.el,"debug",oOe),o}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(t){this._state!==t&&(rn(this.el,"disabled",t===0),rn(this.el,"minimum",t===1),rn(this.el,"maximum",t===2),this._state=t,this._onDidEnablementChange.fire(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(t){this.orthogonalStartSashDisposables=Ne(this.orthogonalStartSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(t.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(t){this.orthogonalEndSashDisposables=Ne(this.orthogonalEndSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(t.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=t},enumerable:!0,configurable:!0}),e.prototype.setOrientation=function(t){this.orientation=t,this.orientation===1?(Ke(this.el,"horizontal"),Ct(this.el,"vertical")):(Ct(this.el,"horizontal"),Ke(this.el,"vertical")),this.layoutProvider&&this.layout()},e.prototype.onMouseDown=function(t){var r=this;xn.stop(t,!1);var i=!1;if(this.linkedSash&&!t.__linkedSashEvent&&(t.__linkedSashEvent=!0,this.linkedSash.onMouseDown(t)),!t.__orthogonalSashEvent){var o=void 0;this.orientation===0?t.offsetY<=4?o=this.orthogonalStartSash:t.offsetY>=this.el.clientHeight-4&&(o=this.orthogonalEndSash):t.offsetX<=4?o=this.orthogonalStartSash:t.offsetX>=this.el.clientWidth-4&&(o=this.orthogonalEndSash),o&&(i=!0,t.__orthogonalSashEvent=!0,o.onMouseDown(t))}if(this.state){for(var a=r3("iframe"),s=0,l=a;s0){t=i[0].getStartPosition();var o=e.getTopForPosition(t.lineNumber,t.column);r=e.getScrollTop()-o}}return new n(t,r)},n.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},n}(),XC=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wA=function(n){XC(e,n);function e(t,r,i){var o=n.call(this)||this;return o.options=i,o._context=t||o,o._action=r,r instanceof Xo&&o._register(r.onDidChange(function(a){o.element&&o.handleActionChangeEvent(a)})),o}return e.prototype.handleActionChangeEvent=function(t){t.enabled!==void 0&&this.updateEnabled(),t.checked!==void 0&&this.updateChecked(),t.class!==void 0&&this.updateClass(),t.label!==void 0&&(this.updateLabel(),this.updateTooltip()),t.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(e.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(t){this._actionRunner=t},enumerable:!0,configurable:!0}),e.prototype.getAction=function(){return this._action},e.prototype.isEnabled=function(){return this._action.enabled},e.prototype.setActionContext=function(t){this._context=t},e.prototype.render=function(t){var r=this;this.element=t,Bh.addTarget(t);var i=this.options&&this.options.draggable;i&&(t.draggable=!0),this._register(We(this.element,Ur.Tap,function(o){return r.onClick(o)})),this._register(We(this.element,mt.MOUSE_DOWN,function(o){i||xn.stop(o,!0),r._action.enabled&&o.button===0&&r.element&&Ke(r.element,"active")})),this._register(We(this.element,mt.CLICK,function(o){xn.stop(o,!0),r.options&&r.options.isMenu?r.onClick(o):tU(function(){return r.onClick(o)})})),this._register(We(this.element,mt.DBLCLICK,function(o){xn.stop(o,!0)})),[mt.MOUSE_UP,mt.MOUSE_OUT].forEach(function(o){r._register(We(r.element,o,function(a){xn.stop(a),Ct(r.element,"active")}))})},e.prototype.onClick=function(t){xn.stop(t,!0);var r;au(this._context)?r=t:(r=this._context,si(r)&&(r.event=t)),this._actionRunner.run(this._action,r)},e.prototype.focus=function(){this.element&&(this.element.focus(),Ke(this.element,"focused"))},e.prototype.blur=function(){this.element&&(this.element.blur(),Ct(this.element,"focused"))},e.prototype.updateEnabled=function(){},e.prototype.updateLabel=function(){},e.prototype.updateTooltip=function(){},e.prototype.updateClass=function(){},e.prototype.updateChecked=function(){},e.prototype.dispose=function(){this.element&&(pN(this.element),this.element=void 0),n.prototype.dispose.call(this)},e}($e),ZC=function(n){XC(e,n);function e(t){var r=n.call(this,e.ID,t,t?"separator text":"separator")||this;return r.checked=!1,r.radio=!1,r.enabled=!1,r}return e.ID="vs.actions.separator",e}(Xo),ab=function(n){XC(e,n);function e(t,r,i){i===void 0&&(i={});var o=n.call(this,t,r,i)||this;return o.options=i,o.options.icon=i.icon!==void 0?i.icon:!1,o.options.label=i.label!==void 0?i.label:!0,o.cssClass="",o}return e.prototype.render=function(t){n.prototype.render.call(this,t),this.element&&(this.label=Ue(this.element,ot("a.action-label"))),this._action.id===ZC.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&&(Ue(this.element,ot("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},e.prototype.focus=function(){n.prototype.focus.call(this),this.label.focus()},e.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},e.prototype.updateTooltip=function(){var t=null;this.getAction().tooltip?t=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(t=this.getAction().label,this.options.keybinding&&(t=x({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",t,this.options.keybinding))),t&&(this.label.title=t)},e.prototype.updateClass=function(){this.cssClass&&NC(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Ke(this.label,"icon"),this.cssClass&&vN(this.label,this.cssClass),this.updateEnabled()):Ct(this.label,"icon")},e.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&Ct(this.element,"disabled"),Ct(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&Ke(this.element,"disabled"),Ke(this.label,"disabled"),yN(this.label))},e.prototype.updateChecked=function(){this.getAction().checked?Ke(this.label,"checked"):Ct(this.label,"checked")},e}(wA),B4={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},qg=function(n){XC(e,n);function e(t,r){r===void 0&&(r=B4);var i=n.call(this)||this;i._onDidBlur=i._register(new ae),i._onDidCancel=i._register(new ae),i._onDidRun=i._register(new ae),i._onDidBeforeRun=i._register(new ae),i.options=r,i._context=r.context,i.options.triggerKeys||(i.options.triggerKeys=B4.triggerKeys),i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new d9,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun(function(s){return i._onDidRun.fire(s)})),i._register(i._actionRunner.onDidBeforeRun(function(s){return i._onDidBeforeRun.fire(s)})),i.items=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",r.animated!==!1&&Ke(i.domNode,"animated");var o,a;switch(i.options.orientation){case 0:o=15,a=17;break;case 1:o=17,a=15,i.domNode.className+=" reverse";break;case 2:o=16,a=18,i.domNode.className+=" vertical";break;case 3:o=18,a=16,i.domNode.className+=" vertical reverse";break}return i._register(We(i.domNode,mt.KEY_DOWN,function(s){var l=new zn(s),u=!0;l.equals(o)?i.focusPrevious():l.equals(a)?i.focusNext():l.equals(9)?i.cancel():i.isTriggerKeyEvent(l)?i.options.triggerKeys&&i.options.triggerKeys.keyDown&&i.doTrigger(l):u=!1,u&&(l.preventDefault(),l.stopPropagation())})),i._register(We(i.domNode,mt.KEY_UP,function(s){var l=new zn(s);i.isTriggerKeyEvent(l)?(i.options.triggerKeys&&!i.options.triggerKeys.keyDown&&i.doTrigger(l),l.preventDefault(),l.stopPropagation()):(l.equals(2)||l.equals(1026))&&i.updateFocusedItem()})),i.focusTracker=i._register(Xv(i.domNode)),i._register(i.focusTracker.onDidBlur(function(){(document.activeElement===i.domNode||!ls(document.activeElement,i.domNode))&&(i._onDidBlur.fire(),i.focusedItem=void 0)})),i._register(i.focusTracker.onDidFocus(function(){return i.updateFocusedItem()})),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),t.appendChild(i.domNode),i}return Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.isTriggerKeyEvent=function(t){var r=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(i){r=r||t.equals(i)}),r},e.prototype.updateFocusedItem=function(){for(var t=0;t=i.actionsList.children.length?(i.actionsList.appendChild(l),i.items.push(u)):(i.actionsList.insertBefore(l,i.actionsList.children[a]),i.items.splice(a,0,u),a++)})},e.prototype.clear=function(){this.items=Ne(this.items),qo(this.actionsList)},e.prototype.isEmpty=function(){return this.items.length===0},e.prototype.focus=function(t){var r=!1,i=void 0;t===void 0?r=!0:typeof t=="number"?i=t:typeof t=="boolean"&&(r=t),r&&typeof this.focusedItem>"u"?(this.focusedItem=this.items.length-1,this.focusNext()):(i!==void 0&&(this.focusedItem=i),this.updateFocus())},e.prototype.focusNext=function(){typeof this.focusedItem>"u"&&(this.focusedItem=this.items.length-1);var t=this.focusedItem,r;do this.focusedItem=(this.focusedItem+1)%this.items.length,r=this.items[this.focusedItem];while(this.focusedItem!==t&&!r.isEnabled());this.focusedItem===t&&!r.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},e.prototype.focusPrevious=function(){typeof this.focusedItem>"u"&&(this.focusedItem=0);var t=this.focusedItem,r;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),r=this.items[this.focusedItem];while(this.focusedItem!==t&&!r.isEnabled());this.focusedItem===t&&!r.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},e.prototype.updateFocus=function(t){typeof this.focusedItem>"u"&&this.actionsList.focus();for(var r=0;r"u")){var r=this.items[this.focusedItem];if(r instanceof wA){var i=r._context===null||r._context===void 0?t:r._context;this.run(r._action,i)}}},e.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},e.prototype.run=function(t,r){return this._actionRunner.run(t,r)},e.prototype.dispose=function(){Ne(this.items),this.items=[],pN(this.getContainer()),n.prototype.dispose.call(this)},e}($e),SA=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),o_=3,yp=function(){function n(e,t,r,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=r,this.modifiedLineEnd=i}return n.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},n}(),PS=function(){function n(e){this.entries=e}return n}(),aOe=function(n){SA(e,n);function e(t){var r=n.call(this)||this;return r._width=0,r._diffEditor=t,r._isVisible=!1,r.shadow=Bt(document.createElement("div")),r.shadow.setClassName("diff-review-shadow"),r.actionBarContainer=Bt(document.createElement("div")),r.actionBarContainer.setClassName("diff-review-actions"),r._actionBar=r._register(new qg(r.actionBarContainer.domNode)),r._actionBar.push(new Xo("diffreview.close",x("label.close","Close"),"close-diff-review",!0,function(){return r.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),r.domNode=Bt(document.createElement("div")),r.domNode.setClassName("diff-review monaco-editor-background"),r._content=Bt(document.createElement("div")),r._content.setClassName("diff-review-content"),r.scrollbar=r._register(new Kg(r._content.domNode,{})),r.domNode.domNode.appendChild(r.scrollbar.getDomNode()),r._register(t.onDidUpdateDiff(function(){r._isVisible&&(r._diffs=r._compute(),r._render())})),r._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){r._isVisible&&r._render()})),r._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){r._isVisible&&r.hide()})),r._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){r._isVisible&&r.hide()})),r._register(qr(r.domNode.domNode,"click",function(i){i.preventDefault();var o=XL(i.target,"diff-review-row");o&&r._goToRow(o)})),r._register(qr(r.domNode.domNode,"keydown",function(i){(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),r._goToRow(r._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),r._goToRow(r._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),r.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),r.accept())})),r._diffs=[],r._currentDiff=null,r}return e.prototype.prev=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var r=-1,i=0,o=this._diffs.length;i0){var b=t[s-1];b.originalEndLineNumber===0?_=b.originalStartLineNumber+1:_=b.originalEndLineNumber+1,b.modifiedEndLineNumber===0?y=b.modifiedStartLineNumber+1:y=b.modifiedEndLineNumber+1}var w=m-o_+1,C=g-o_+1;if(w<_){var S=_-w;w=w+S,C=C+S}if(CT){var S=T-D;D=D+S,M=M+S}if(M>P){var S=P-M;D=D+S,M=M+S}p[v++]=new yp(L,D,E,M)}o[a++]=new PS(p)}for(var H=o[0].entries,k=[],B=0,s=1,l=o.length;sf)&&(f=y),b!==0&&(h===0||bp)&&(p=w)}var C=document.createElement("div");C.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var L=f-d+1,E=p-h+1;S.appendChild(document.createTextNode(l+1+"/"+this._diffs.length+": @@ -"+d+","+L+" +"+h+","+E+" @@")),C.setAttribute("data-line",String(h));var T=function(M){return M===0?x("no_lines","no lines"):M===1?x("one_line","1 line"):x("more_lines","{0} lines",M)},P=T(L),A=T(E);C.setAttribute("aria-label",x({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", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",l+1,this._diffs.length,d,P,h,A)),C.appendChild(S),C.setAttribute("role","listitem"),c.appendChild(C);for(var D=h,v=0,m=u.length;v>>0,l=new Uint32Array(2);l[0]=a.length,l[1]=s;var u=new ba(l,a),c=Ea.isBasicASCII(a,t.mightContainNonBasicASCII()),d=Ea.containsRTL(a,c,t.mightContainRTL()),f=BC(new kh(r.fontInfo.isMonospace&&!r.viewInfo.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,a,!1,c,d,0,u,[],i,r.fontInfo.spaceWidth,r.viewInfo.stopRenderingLineAfter,r.viewInfo.renderWhitespace,r.viewInfo.renderControlCharacters,r.viewInfo.fontLigatures));return f.html},e}($e);Cn(function(n,e){var t=n.getColor(K9);t&&e.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var r=n.getColor(UC);r&&e.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+r+" 0 -6px 6px -6px inset; }")});var sOe=function(n){SA(e,n);function e(){return n.call(this,{id:"editor.action.diffReview.next",label:x("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:dt.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return e.prototype.run=function(t,r){var i=T$(t);i&&i.diffReviewNext()},e}(st),lOe=function(n){SA(e,n);function e(){return n.call(this,{id:"editor.action.diffReview.prev",label:x("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:dt.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return e.prototype.run=function(t,r){var i=T$(t);i&&i.diffReviewPrev()},e}(st);function T$(n){for(var e=n.get(Pn),t=e.listDiffEditors(),r=0,i=t.length;r=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Yd=function(n,e){return function(t,r){e(t,r,n)}},W4=function(){function n(){this._zones=[],this._zonesMap={},this._decorations=[]}return n.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(r){return!t._zonesMap[String(r.id)]})},n.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(r){for(var i=0,o=t._zones.length;i0?a/i:0,l=Math.max(0,Math.floor(t.contentHeight*s)),u=Math.floor(r*s);return{height:l,top:u}},e.prototype._createDataSource=function(){var t=this;return{getWidth:function(){return t._width},getHeight:function(){return t._height-t._reviewHeight},getContainerDomNode:function(){return t._containerDomElement},relayoutEditors:function(){t._doLayout()},getOriginalEditor:function(){return t.originalEditor},getModifiedEditor:function(){return t.modifiedEditor}}},e.prototype._setStrategy=function(t){this._strategy&&this._strategy.dispose(),this._strategy=t,t.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},e.prototype._getLineChangeAtOrBeforeLineNumber=function(t,r){var i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||t=u?o=s+1:(o=s,a=s)}return i[o]},e.prototype._getEquivalentLineForOriginalLineNumber=function(t){var r=this._getLineChangeAtOrBeforeLineNumber(t,function(u){return u.originalStartLineNumber});if(!r)return t;var i=r.originalStartLineNumber+(r.originalEndLineNumber>0?-1:0),o=r.modifiedStartLineNumber+(r.modifiedEndLineNumber>0?-1:0),a=r.originalEndLineNumber>0?r.originalEndLineNumber-r.originalStartLineNumber+1:0,s=r.modifiedEndLineNumber>0?r.modifiedEndLineNumber-r.modifiedStartLineNumber+1:0,l=t-i;return l<=a?o+Math.min(l,s):o+s-a+l},e.prototype._getEquivalentLineForModifiedLineNumber=function(t){var r=this._getLineChangeAtOrBeforeLineNumber(t,function(u){return u.modifiedStartLineNumber});if(!r)return t;var i=r.originalStartLineNumber+(r.originalEndLineNumber>0?-1:0),o=r.modifiedStartLineNumber+(r.modifiedEndLineNumber>0?-1:0),a=r.originalEndLineNumber>0?r.originalEndLineNumber-r.originalStartLineNumber+1:0,s=r.modifiedEndLineNumber>0?r.modifiedEndLineNumber-r.modifiedStartLineNumber+1:0,l=t-o;return l<=s?i+Math.min(l,a):i+a-s+l},e.prototype.getDiffLineInformationForOriginal=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(t)}:null},e.prototype.getDiffLineInformationForModified=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(t)}:null},e.ONE_OVERVIEW_WIDTH=15,e.ENTIRE_DIFF_OVERVIEW_WIDTH=30,e.UPDATE_DIFF_DECORATIONS_DELAY=200,e=uOe([Yd(2,Jo),Yd(3,jt),Yd(4,ur),Yd(5,Pn),Yd(6,Fr),Yd(7,fi)],e),e}($e),x$=function(n){Uh(e,n);function e(t){var r=n.call(this)||this;return r._dataSource=t,r}return e.prototype.applyColors=function(t){var r=(t.getColor(W9)||gI).transparent(2),i=(t.getColor(V9)||mI).transparent(2),o=!r.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=r,this._removeColor=i,o},e.prototype.getEditorsDiffDecorations=function(t,r,i,o,a,s,l){a=a.sort(function(f,h){return f.afterLineNumber-h.afterLineNumber}),o=o.sort(function(f,h){return f.afterLineNumber-h.afterLineNumber});var u=this._getViewZones(t,o,a,s,l,i),c=this._getOriginalEditorDecorations(t,r,i,s,l),d=this._getModifiedEditorDecorations(t,r,i,s,l);return{original:{decorations:c.decorations,overviewZones:c.overviewZones,zones:u.original},modified:{decorations:d.decorations,overviewZones:d.overviewZones,zones:u.modified}}},e}($e),V4=function(){function n(e){this._source=e,this._index=-1,this.advance()}return n.prototype.advance=function(){this._index++,this._index0){var A=T[T.length-1];if(A.afterLineNumber===P.afterLineNumber&&A.domNode===null){A.heightInLines+=P.heightInLines;return}}T.push(P)},c=new V4(this.modifiedForeignVZ),d=new V4(this.originalForeignVZ),f=0,h=this.lineChanges.length;f<=h;f++){var p=f0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),r=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,t=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,a=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),s=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(i+=1e7+r,o+=1e7+t,a=i,s=o);for(var v=[],m=[];c.current&&c.current.afterLineNumber<=s;){var g=void 0;c.current.afterLineNumber<=o?g=i-o+c.current.afterLineNumber:g=a;var _=null;p&&p.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=p.modifiedEndLineNumber&&(_=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),v.push({afterLineNumber:g,heightInLines:c.current.heightInLines,domNode:null,marginDomNode:_}),c.advance()}for(;d.current&&d.current.afterLineNumber<=a;){var g=void 0;d.current.afterLineNumber<=i?g=o-i+d.current.afterLineNumber:g=s,m.push({afterLineNumber:g,heightInLines:d.current.heightInLines,domNode:null}),d.advance()}if(p!==null&&jf(p)){var y=this._produceOriginalFromDiff(p,r,t);y&&v.push(y)}if(p!==null&&zf(p)){var y=this._produceModifiedFromDiff(p,r,t);y&&m.push(y)}var b=0,w=0;for(v=v.sort(l),m=m.sort(l);b=S.heightInLines?(C.heightInLines-=S.heightInLines,w++):(S.heightInLines-=C.heightInLines,b++)}for(;be.MINIMUM_EDITOR_WIDTH*2?(oi-e.MINIMUM_EDITOR_WIDTH&&(o=i-e.MINIMUM_EDITOR_WIDTH)):o=a,this._sashPosition!==o&&(this._sashPosition=o,this._sash.layout()),this._sashPosition},e.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},e.prototype.onSashDrag=function(t){var r=this._dataSource.getWidth(),i=r-TI.ENTIRE_DIFF_OVERVIEW_WIDTH,o=this.layout((this._startSashPosition+(t.currentX-t.startX))/i);this._sashRatio=o/i,this._dataSource.relayoutEditors()},e.prototype.onSashDragEnd=function(){this._sash.layout()},e.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},e.prototype.getVerticalSashTop=function(t){return 0},e.prototype.getVerticalSashLeft=function(t){return this._sashPosition},e.prototype.getVerticalSashHeight=function(t){return this._dataSource.getHeight()},e.prototype._getViewZones=function(t,r,i,o,a){var s=new dOe(t,r,i);return s.getViewZones()},e.prototype._getOriginalEditorDecorations=function(t,r,i,o,a){for(var s=this._removeColor.toString(),l={decorations:[],overviewZones:[]},u=o.getModel(),c=0,d=t.length;cr?{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:i-r,domNode:null}:null},e.prototype._produceModifiedFromDiff=function(t,r,i){return r>i?{afterLineNumber:Math.max(t.modifiedStartLineNumber,t.modifiedEndLineNumber),heightInLines:r-i,domNode:null}:null},e}(O$),U4=function(n){Uh(e,n);function e(t,r){var i=n.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(o){i.decorationsLeft!==o.decorationsLeft&&(i.decorationsLeft=o.decorationsLeft,t.relayoutEditors())})),i}return e.prototype.setEnableSplitViewResizing=function(t){},e.prototype._getViewZones=function(t,r,i,o,a,s){var l=new fOe(t,r,i,o,a,s);return l.getViewZones()},e.prototype._getOriginalEditorDecorations=function(t,r,i,o,a){for(var s=this._removeColor.toString(),l={decorations:[],overviewZones:[]},u=0,c=t.length;u'])}p+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var g=document.createElement("div");g.className="view-lines line-delete",g.innerHTML=u.build(),Oo.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=c.join(""),Oo.applyFontInfoSlow(_,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:t.modifiedEndLineNumber===0?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1,heightInLines:r,minWidthInPx:p*h,domNode:g,marginDomNode:_}},e.prototype._renderOriginalLine=function(t,r,i,o,a,s,l){var u=r.getLineTokens(a),c=u.getLineContent(),d=ag.filter(s,a,1,c.length+1);l.appendASCIIString('
');var f=Ea.isBasicASCII(c,r.mightContainNonBasicASCII()),h=Ea.containsRTL(c,f,r.mightContainRTL()),p=HN(new kh(i.fontInfo.isMonospace&&!i.viewInfo.disableMonospaceOptimizations,i.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,f,h,0,u,d,o,i.fontInfo.spaceWidth,i.viewInfo.stopRenderingLineAfter,i.viewInfo.renderWhitespace,i.viewInfo.renderControlCharacters,i.viewInfo.fontLigatures),l);l.appendASCIIString("
");var v=p.characterMapping.getAbsoluteOffsets();return v.length>0?v[v.length-1]:0},e}(O$);function jf(n){return n.modifiedEndLineNumber>0}function zf(n){return n.originalEndLineNumber>0}function hOe(){var n=document.createElement("div");return n.className="diagonal-fill",n}Cn(function(n,e){var t=n.getColor(W9);t&&(e.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+t+"; }"),e.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+t+"; }"),e.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+t+"; }"));var r=n.getColor(V9);r&&(e.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+r+"; }"),e.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+r+"; }"),e.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+r+"; }"));var i=n.getColor(nLe);i&&e.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(n.type==="hc"?"dashed":"solid")+" "+i+"; }");var o=n.getColor(rLe);o&&e.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(n.type==="hc"?"dashed":"solid")+" "+o+"; }");var a=n.getColor(UC);a&&e.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+a+"; }");var s=n.getColor(iLe);s&&e.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+s+"; }")});var Ed=nn("themeService"),Du=nn("contextViewService"),QC=nn("contextMenuService"),Xr=nn("keybindingService"),EA=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),LA=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},kn=function(n,e){return function(t,r){e(t,r,n)}},pOe=0,$4=!1;function vOe(){$4||($4=!0,A1e(document.body))}var N$=function(n){EA(e,n);function e(t,r,i,o,a,s,l,u,c,d){var f=this;return r=r||{},r.ariaLabel=r.ariaLabel||pv.editorViewAccessibleLabel,r.ariaLabel=r.ariaLabel+";"+(Ji?pv.accessibilityHelpMessageIE:pv.accessibilityHelpMessage),f=n.call(this,t,r,{},i,o,a,s,u,c,d)||this,l instanceof s9&&(f._standaloneKeybindingService=l),vOe(),f}return e.prototype.addCommand=function(t,r,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var o="DYNAMIC_"+ ++pOe,a=dt.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(o,t,r,a),o},e.prototype.createContextKey=function(t,r){return this._contextKeyService.createKey(t,r)},e.prototype.addAction=function(t){var r=this;if(typeof t.id!="string"||typeof t.label!="string"||typeof t.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"),$e.None;var i=t.id,o=t.label,a=dt.and(dt.equals("editorId",this.getId()),dt.deserialize(t.precondition)),s=t.keybindings,l=dt.and(a,dt.deserialize(t.keybindingContext)),u=t.contextMenuGroupId||null,c=t.contextMenuOrder||0,d=function(){return Promise.resolve(t.run(r))},f=[],h=this.getId()+":"+i;if(f.push(ii.registerCommand(h,d)),u){var p={command:{id:h,title:o},when:a,group:u,order:c};f.push(La.appendMenuItem(7,p))}Array.isArray(s)&&(f=f.concat(s.map(function(m){return r._standaloneKeybindingService.addDynamicKeybinding(h,m,d,l)})));var v=new b$(h,o,o,a,d,this._contextKeyService);return this._actions[i]=v,f.push(Bn(function(){delete r._actions[i]})),Eo(f)},e=LA([kn(2,ur),kn(3,Pn),kn(4,ri),kn(5,jt),kn(6,Xr),kn(7,Fr),kn(8,fi),kn(9,gs)],e),e}(CA),gOe=function(n){EA(e,n);function e(t,r,i,o,a,s,l,u,c,d,f,h,p){var v=this;Zy(h,r,!1),r=r||{},typeof r.theme=="string"&&d.setTheme(r.theme);var m=r.model;delete r.model,v=n.call(this,t,r,o,a,s,l,u,d,f,p)||this,v._contextViewService=c,v._configurationService=h,v._register(i);var g;if(typeof m>"u"?(g=self.monaco.editor.createModel(r.value||"",r.language||"text/plain"),v._ownsModel=!0):(g=m,v._ownsModel=!1),v._attachModel(g),g){var _={oldModelUrl:null,newModelUrl:g.uri};v._onDidChangeModel.fire(_)}return v}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.updateOptions=function(t){Zy(this._configurationService,t,!1),n.prototype.updateOptions.call(this,t)},e.prototype._attachModel=function(t){n.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},e.prototype._postDetachModelCleanup=function(t){n.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},e=LA([kn(3,ur),kn(4,Pn),kn(5,ri),kn(6,jt),kn(7,Xr),kn(8,Du),kn(9,Ed),kn(10,fi),kn(11,di),kn(12,gs)],e),e}(N$),mOe=function(n){EA(e,n);function e(t,r,i,o,a,s,l,u,c,d,f,h){var p=this;return Zy(h,r,!0),r=r||{},typeof r.theme=="string"&&(r.theme=d.setTheme(r.theme)),p=n.call(this,t,r,u,a,o,c,d,f)||this,p._contextViewService=l,p._configurationService=h,p._register(i),p._contextViewService.setContainer(p._containerDomElement),p}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.updateOptions=function(t){Zy(this._configurationService,t,!0),n.prototype.updateOptions.call(this,t)},e.prototype._createInnerEditor=function(t,r,i){return t.createInstance(N$,r,i)},e.prototype.getOriginalEditor=function(){return n.prototype.getOriginalEditor.call(this)},e.prototype.getModifiedEditor=function(){return n.prototype.getModifiedEditor.call(this)},e.prototype.addCommand=function(t,r,i){return this.getModifiedEditor().addCommand(t,r,i)},e.prototype.createContextKey=function(t,r){return this.getModifiedEditor().createContextKey(t,r)},e.prototype.addAction=function(t){return this.getModifiedEditor().addAction(t)},e=LA([kn(3,ur),kn(4,jt),kn(5,Xr),kn(6,Du),kn(7,Jo),kn(8,Pn),kn(9,Ed),kn(10,fi),kn(11,di)],e),e}(TI),JC=nn("IWorkspaceEditService"),Ru=nn("modeService"),_Oe=function(){function n(e){this._languageIdentifier=e}return n.prototype.getId=function(){return this._languageIdentifier.language},n}(),MS="text/plain",j4="application/unknown",xI=[],A$=[],D$=[];function a_(n,e){e===void 0&&(e=!1);var t=yOe(n);xI.push(t),t.userConfigured?D$.push(t):A$.push(t),e&&!t.userConfigured&&xI.forEach(function(r){r.mime===t.mime||r.userConfigured||(t.extension&&r.extension===t.extension&&console.warn("Overwriting extension <<"+t.extension+">> to now point to mime <<"+t.mime+">>"),t.filename&&r.filename===t.filename&&console.warn("Overwriting filename <<"+t.filename+">> to now point to mime <<"+t.mime+">>"),t.filepattern&&r.filepattern===t.filepattern&&console.warn("Overwriting filepattern <<"+t.filepattern+">> to now point to mime <<"+t.mime+">>"),t.firstline&&r.firstline===t.firstline&&console.warn("Overwriting firstline <<"+t.firstline+">> to now point to mime <<"+t.mime+">>"))})}function yOe(n){return{id:n.id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:n.userConfigured,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?n.filepattern.toLowerCase():void 0,filepatternOnPath:n.filepattern?n.filepattern.indexOf(lr.sep)>=0:!1}}function bOe(n,e){if(!n)return[j4];n=n.toLowerCase();var t=nd(n),r=z4(n,t,D$);if(r)return[r,MS];var i=z4(n,t,A$);if(i)return[i,MS];if(e){var o=COe(e);if(o)return[o,MS]}return[j4]}function z4(n,e,t){for(var r=null,i=null,o=null,a=t.length-1;a>=0;a--){var s=t[a];if(e===s.filenameLowercase){r=s;break}if(s.filepattern&&(!i||s.filepattern.length>i.filepattern.length)){var l=s.filepatternOnPath?n:e;kU(s.filepatternLowercase,l)&&(i=s)}s.extension&&(!o||s.extension.length>o.extension.length)&&ol(e,s.extensionLowercase)&&(o=s)}return r?r.mime:i?i.mime:o?o.mime:null}function COe(n){if(EN(n)&&(n=n.substr(1)),n.length>0)for(var e=0,t=xI;e0)return r.mime}}return null}var wOe={ModesRegistry:"editor.modesRegistry"},SOe=function(){function n(){this._onDidChangeLanguages=new ae,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return n.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},n.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},n}(),Kc=new SOe;Ti.add(wOe.ModesRegistry,Kc);var IA="plaintext",R$=new RN(IA,1);Kc.registerLanguage({id:IA,extensions:[".txt",".gitignore"],aliases:[x("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]});Ut.register(R$,{brackets:[["(",")"],["[","]"],["{","}"]]});var EOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Zu=Object.prototype.hasOwnProperty,LOe=function(n){EOe(e,n);function e(t,r){t===void 0&&(t=!0),r===void 0&&(r=!1);var i=n.call(this)||this;return i._onDidChange=i._register(new ae),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=r,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(Kc.onDidChangeLanguages(function(o){return i._initializeFromRegistry()}))),i}return e.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var t=Kc.getLanguages();this._registerLanguages(t)},e.prototype._registerLanguages=function(t){for(var r=this,i=0,o=t;i0&&((i=t.mimetypes).push.apply(i,r.mimetypes),a=r.mimetypes[0]),a||(a="text/x-"+o,t.mimetypes.push(a)),Array.isArray(r.extensions))for(var s=0,l=r.extensions;s0){var m=r.firstLine;m.charAt(0)!=="^"&&(m="^"+m);try{var g=new RegExp(m);YCe(g)||a_({id:o,mime:a,firstline:g},this._warnOnOverwrite)}catch(L){et(L)}}t.aliases.push(o);var _=null;if(typeof r.aliases<"u"&&Array.isArray(r.aliases)&&(r.aliases.length===0?_=[null]:_=r.aliases),_!==null)for(var y=0,b=_;y0;if(!(C&&_[0]===null)){var S=(C?_[0]:null)||o;(C||!t.name)&&(t.name=S)}r.configuration&&t.configurationFiles.push(r.configuration)},e.prototype.isRegisteredMode=function(t){return Zu.call(this._mimeTypesMap,t)?!0:Zu.call(this._languages,t)},e.prototype.getModeIdForLanguageNameLowercase=function(t){return Zu.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t].language:null},e.prototype.extractModeIds=function(t){var r=this;return t?t.split(",").map(function(i){return i.trim()}).map(function(i){return Zu.call(r._mimeTypesMap,i)?r._mimeTypesMap[i].language:i}).filter(function(i){return Zu.call(r._languages,i)}):[]},e.prototype.getLanguageIdentifier=function(t){if(t===kN||t===0)return zy;var r;if(typeof t=="string")r=t;else if(r=this._languageIdToLanguage[t],!r)return null;return Zu.call(this._languages,r)?this._languages[r].identifier:null},e.prototype.getModeIdsFromFilepathOrFirstLine=function(t,r){if(!t&&!r)return[];var i=bOe(t,r);return this.extractModeIds(i.join(","))},e}($e),IOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),K4=function(n){IOe(e,n);function e(t,r){var i=n.call(this)||this;return i._onDidChange=i._register(new ae),i.onDidChange=i._onDidChange.event,i._selector=r,i.languageIdentifier=i._selector(),i._register(t(function(){return i._evaluate()})),i}return e.prototype._evaluate=function(){var t=this._selector();t.id!==this.languageIdentifier.id&&(this.languageIdentifier=t,this._onDidChange.fire(this.languageIdentifier))},e}($e),TOe=function(){function n(e){var t=this;e===void 0&&(e=!1),this._onDidCreateMode=new ae,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new ae,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new LOe(!0,e),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return n.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},n.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},n.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var r=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return r.length>0?r[0]:null},n.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},n.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},n.prototype.create=function(e){var t=this;return new K4(this.onLanguagesMaybeChanged,function(){var r=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(r)})},n.prototype.createByFilepathOrFirstLine=function(e,t){var r=this;return new K4(this.onLanguagesMaybeChanged,function(){var i=r.getModeIdByFilepathOrFirstLine(e,t);return r._createModeAndGetLanguageIdentifier(i)})},n.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||zy;return this._getOrCreateMode(t.language),t},n.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},n.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||zy;this._instantiatedModes[e]=new _Oe(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},n}(),xOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),OOe=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},G4=function(n,e){return function(t,r){e(t,r,n)}};function s_(n){return n.toString()}var NOe=function(){function n(e,t,r){this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(i){return r(e,i)}))}return n.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},n.prototype.dispose=function(){this._modelEventListeners=Ne(this._modelEventListeners),this._disposeLanguageSelection()},n.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(e.languageIdentifier)}),this.model.setMode(e.languageIdentifier)},n}(),AOe=vs||Vt?1:2,DOe=function(n){xOe(e,n);function e(t,r){var i=n.call(this)||this;return i._onModelAdded=i._register(new ae),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new ae),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new ae),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=t,i._resourcePropertiesService=r,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration(function(o){return i._updateModelOptions()}),i._updateModelOptions(),i}return e._readModelOptions=function(t,r){var i=da.tabSize;if(t.editor&&typeof t.editor.tabSize<"u"){var o=parseInt(t.editor.tabSize,10);isNaN(o)||(i=o),i<1&&(i=1)}var a=i;if(t.editor&&typeof t.editor.indentSize<"u"&&t.editor.indentSize!=="tabSize"){var s=parseInt(t.editor.indentSize,10);isNaN(s)||(a=s),a<1&&(a=1)}var l=da.insertSpaces;t.editor&&typeof t.editor.insertSpaces<"u"&&(l=t.editor.insertSpaces==="false"?!1:!!t.editor.insertSpaces);var u=AOe,c=t.eol;c===`\r +`&&(i=2),this._modelData.model.getValue(i,r)},e.prototype.setValue=function(t){this._modelData&&this._modelData.model.setValue(t)},e.prototype.getModel=function(){return this._modelData?this._modelData.model:null},e.prototype.setModel=function(t){t===void 0&&(t=null);var r=t;if(!(this._modelData===null&&r===null)&&!(this._modelData&&this._modelData.model===r)){var i=this._detachModel();this._attachModel(r);var o={oldModelUrl:i?i.uri:null,newModelUrl:r?r.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(o),this._postDetachModelCleanup(i)}},e.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var t in this._decorationTypeSubtypes){var r=this._decorationTypeSubtypes[t];for(var i in r)this._removeDecorationType(t+"-"+i)}this._decorationTypeSubtypes={}}},e.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},e.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},e._getVerticalOffsetForPosition=function(t,r,i){var o=t.model.validatePosition({lineNumber:r,column:i}),a=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(a.lineNumber)},e.prototype.getTopForLineNumber=function(t){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1):-1},e.prototype.getTopForPosition=function(t,r){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,r):-1},e.prototype.setHiddenAreas=function(t){this._modelData&&this._modelData.viewModel.setHiddenAreas(t.map(function(r){return q.lift(r)}))},e.prototype.getVisibleColumnFromPosition=function(t){if(!this._modelData)return t.column;var r=this._modelData.model.validatePosition(t),i=this._modelData.model.getOptions().tabSize;return gn.visibleColumnFromColumn(this._modelData.model.getLineContent(r.lineNumber),r.column,i)+1},e.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},e.prototype.setPosition=function(t){if(this._modelData){if(!pe.isIPosition(t))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])}},e.prototype._sendRevealRange=function(t,r,i,o){if(this._modelData){if(!q.isIRange(t))throw new Error("Invalid arguments");var a=this._modelData.model.validateRange(t),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(a);this._modelData.cursor.emitCursorRevealRange(s,r,i,o)}},e.prototype.revealLine=function(t,r){r===void 0&&(r=0),this._revealLine(t,0,r)},e.prototype.revealLineInCenter=function(t,r){r===void 0&&(r=0),this._revealLine(t,1,r)},e.prototype.revealLineInCenterIfOutsideViewport=function(t,r){r===void 0&&(r=0),this._revealLine(t,2,r)},e.prototype._revealLine=function(t,r,i){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new q(t,1,t,1),r,!1,i)},e.prototype.revealPosition=function(t,r){r===void 0&&(r=0),this._revealPosition(t,0,!0,r)},e.prototype.revealPositionInCenter=function(t,r){r===void 0&&(r=0),this._revealPosition(t,1,!0,r)},e.prototype.revealPositionInCenterIfOutsideViewport=function(t,r){r===void 0&&(r=0),this._revealPosition(t,2,!0,r)},e.prototype._revealPosition=function(t,r,i,o){if(!pe.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new q(t.lineNumber,t.column,t.lineNumber,t.column),r,i,o)},e.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},e.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},e.prototype.setSelection=function(t){var r=Xe.isISelection(t),i=q.isIRange(t);if(!r&&!i)throw new Error("Invalid arguments");if(r)this._setSelectionImpl(t);else if(i){var o={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(o)}},e.prototype._setSelectionImpl=function(t){if(this._modelData){var r=new Xe(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn);this._modelData.cursor.setSelections("api",[r])}},e.prototype.revealLines=function(t,r,i){i===void 0&&(i=0),this._revealLines(t,r,0,i)},e.prototype.revealLinesInCenter=function(t,r,i){i===void 0&&(i=0),this._revealLines(t,r,1,i)},e.prototype.revealLinesInCenterIfOutsideViewport=function(t,r,i){i===void 0&&(i=0),this._revealLines(t,r,2,i)},e.prototype._revealLines=function(t,r,i,o){if(typeof t!="number"||typeof r!="number")throw new Error("Invalid arguments");this._sendRevealRange(new q(t,1,r,1),i,!1,o)},e.prototype.revealRange=function(t,r,i,o){r===void 0&&(r=0),i===void 0&&(i=!1),o===void 0&&(o=!0),this._revealRange(t,i?1:0,o,r)},e.prototype.revealRangeInCenter=function(t,r){r===void 0&&(r=0),this._revealRange(t,1,!0,r)},e.prototype.revealRangeInCenterIfOutsideViewport=function(t,r){r===void 0&&(r=0),this._revealRange(t,2,!0,r)},e.prototype.revealRangeAtTop=function(t,r){r===void 0&&(r=0),this._revealRange(t,3,!0,r)},e.prototype._revealRange=function(t,r,i,o){if(!q.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(q.lift(t),r,i,o)},e.prototype.setSelections=function(t,r){if(r===void 0&&(r="api"),!!this._modelData){if(!t||t.length===0)throw new Error("Invalid arguments");for(var i=0,o=t.length;i1),this._hasNonEmptySelection.set(t.some(function(r){return!r.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},e.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},e.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(!!(t&&t.canUndo())),this._canRedo.set(!!(t&&t.canRedo()))},e}(Ue),AOe=function(n){Xg(e,n);function e(t,r){var i=n.call(this)||this;i._editor=t,i._contextKeyService=r,i._langId=J.languageId.bindTo(r),i._hasCompletionItemProvider=J.hasCompletionItemProvider.bindTo(r),i._hasCodeActionsProvider=J.hasCodeActionsProvider.bindTo(r),i._hasCodeLensProvider=J.hasCodeLensProvider.bindTo(r),i._hasDefinitionProvider=J.hasDefinitionProvider.bindTo(r),i._hasDeclarationProvider=J.hasDeclarationProvider.bindTo(r),i._hasImplementationProvider=J.hasImplementationProvider.bindTo(r),i._hasTypeDefinitionProvider=J.hasTypeDefinitionProvider.bindTo(r),i._hasHoverProvider=J.hasHoverProvider.bindTo(r),i._hasDocumentHighlightProvider=J.hasDocumentHighlightProvider.bindTo(r),i._hasDocumentSymbolProvider=J.hasDocumentSymbolProvider.bindTo(r),i._hasReferenceProvider=J.hasReferenceProvider.bindTo(r),i._hasRenameProvider=J.hasRenameProvider.bindTo(r),i._hasSignatureHelpProvider=J.hasSignatureHelpProvider.bindTo(r),i._hasDocumentFormattingProvider=J.hasDocumentFormattingProvider.bindTo(r),i._hasDocumentSelectionFormattingProvider=J.hasDocumentSelectionFormattingProvider.bindTo(r),i._hasMultipleDocumentFormattingProvider=J.hasMultipleDocumentFormattingProvider.bindTo(r),i._hasMultipleDocumentSelectionFormattingProvider=J.hasMultipleDocumentSelectionFormattingProvider.bindTo(r),i._isInWalkThrough=J.isInEmbeddedEditor.bindTo(r);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(Ka.onDidChange(o)),i._register(el.onDidChange(o)),i._register(Vc.onDidChange(o)),i._register(ag.onDidChange(o)),i._register(eI.onDidChange(o)),i._register(Hy.onDidChange(o)),i._register(Uy.onDidChange(o)),i._register(ig.onDidChange(o)),i._register(fh.onDidChange(o)),i._register(og.onDidChange(o)),i._register(Wy.onDidChange(o)),i._register(Vy.onDidChange(o)),i._register(vv.onDidChange(o)),i._register(ha.onDidChange(o)),i._register(Wc.onDidChange(o)),o(),i}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},e.prototype._update=function(){var t=this,r=this._editor.getModel();if(!r){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(r.getLanguageIdentifier().language),t._hasCompletionItemProvider.set(Ka.has(r)),t._hasCodeActionsProvider.set(el.has(r)),t._hasCodeLensProvider.set(Vc.has(r)),t._hasDefinitionProvider.set(ag.has(r)),t._hasDeclarationProvider.set(eI.has(r)),t._hasImplementationProvider.set(Hy.has(r)),t._hasTypeDefinitionProvider.set(Uy.has(r)),t._hasHoverProvider.set(ig.has(r)),t._hasDocumentHighlightProvider.set(fh.has(r)),t._hasDocumentSymbolProvider.set(og.has(r)),t._hasReferenceProvider.set(Wy.has(r)),t._hasRenameProvider.set(Vy.has(r)),t._hasSignatureHelpProvider.set(Wc.has(r)),t._hasDocumentFormattingProvider.set(vv.has(r)||ha.has(r)),t._hasDocumentSelectionFormattingProvider.set(ha.has(r)),t._hasMultipleDocumentFormattingProvider.set(vv.all(r).length+ha.all(r).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set(ha.all(r).length>1),t._isInWalkThrough.set(r.uri.scheme===Dn.walkThroughSnippet)})},e}(Ue),ROe=function(n){Xg(e,n);function e(t){var r=n.call(this)||this;return r._onChange=r._register(new se),r.onChange=r._onChange.event,r._hasFocus=!1,r._domFocusTracker=r._register(eg(t)),r._register(r._domFocusTracker.onDidFocus(function(){r._hasFocus=!0,r._onChange.fire(void 0)})),r._register(r._domFocusTracker.onDidBlur(function(){r._hasFocus=!1,r._onChange.fire(void 0)})),r}return e.prototype.hasFocus=function(){return this._hasFocus},e}(Ue),POe=encodeURIComponent("");function xS(n){return POe+encodeURIComponent(n.toString())+MOe}var kOe=encodeURIComponent('');function BOe(n){return kOe+encodeURIComponent(n.toString())+FOe}Cn(function(n,e){var t=n.getColor(G9);t&&e.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var r=n.getColor(K9);r&&e.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+xS(r)+'") repeat-x bottom left; }');var i=n.getColor(Y9);i&&e.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=n.getColor(q9);o&&e.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+xS(o)+'") repeat-x bottom left; }');var a=n.getColor(Z9);a&&e.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+a+"; }");var s=n.getColor(X9);s&&e.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+xS(s)+'") repeat-x bottom left; }');var l=n.getColor(tIe);l&&e.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=n.getColor(eIe);u&&e.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+BOe(u)+'") no-repeat bottom left; }');var c=n.getColor(rIe);c&&e.addRule("."+ib+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=n.getColor(nIe);d&&e.addRule("."+ib+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }")});var WOe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),VOe=!1,zC=function(n){WOe(e,n);function e(t,r,i){i===void 0&&(i={});var o=n.call(this)||this;return o._state=3,o._onDidEnablementChange=o._register(new se),o.onDidEnablementChange=o._onDidEnablementChange.event,o._onDidStart=o._register(new se),o.onDidStart=o._onDidStart.event,o._onDidChange=o._register(new se),o.onDidChange=o._onDidChange.event,o._onDidReset=o._register(new se),o.onDidReset=o._onDidReset.event,o._onDidEnd=o._register(new se),o.onDidEnd=o._onDidEnd.event,o.linkedSash=void 0,o.orthogonalStartSashDisposables=[],o.orthogonalEndSashDisposables=[],o.el=He(t,ot(".monaco-sash")),Vt&&Ke(o.el,"mac"),o._register(Gt(o.el,"mousedown")(o.onMouseDown,o)),o._register(Gt(o.el,"dblclick")(o.onMouseDoubleClick,o)),Vh.addTarget(o.el),o._register(Gt(o.el,Hr.Start)(o.onTouchStart,o)),Ry&&Ke(o.el,"touch"),o.setOrientation(i.orientation||0),o.hidden=!1,o.layoutProvider=r,o.orthogonalStartSash=i.orthogonalStartSash,o.orthogonalEndSash=i.orthogonalEndSash,rn(o.el,"debug",VOe),o}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(t){this._state!==t&&(rn(this.el,"disabled",t===0),rn(this.el,"minimum",t===1),rn(this.el,"maximum",t===2),this._state=t,this._onDidEnablementChange.fire(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(t){this.orthogonalStartSashDisposables=Oe(this.orthogonalStartSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(t.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(t){this.orthogonalEndSashDisposables=Oe(this.orthogonalEndSashDisposables),t?(t.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(t.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=t},enumerable:!0,configurable:!0}),e.prototype.setOrientation=function(t){this.orientation=t,this.orientation===1?(Ke(this.el,"horizontal"),Ct(this.el,"vertical")):(Ct(this.el,"horizontal"),Ke(this.el,"vertical")),this.layoutProvider&&this.layout()},e.prototype.onMouseDown=function(t){var r=this;xn.stop(t,!1);var i=!1;if(this.linkedSash&&!t.__linkedSashEvent&&(t.__linkedSashEvent=!0,this.linkedSash.onMouseDown(t)),!t.__orthogonalSashEvent){var o=void 0;this.orientation===0?t.offsetY<=4?o=this.orthogonalStartSash:t.offsetY>=this.el.clientHeight-4&&(o=this.orthogonalEndSash):t.offsetX<=4?o=this.orthogonalStartSash:t.offsetX>=this.el.clientWidth-4&&(o=this.orthogonalEndSash),o&&(i=!0,t.__orthogonalSashEvent=!0,o.onMouseDown(t))}if(this.state){for(var a=r3("iframe"),s=0,l=a;s0){t=i[0].getStartPosition();var o=e.getTopForPosition(t.lineNumber,t.column);r=e.getScrollTop()-o}}return new n(t,r)},n.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},n}(),GC=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wD=function(n){GC(e,n);function e(t,r,i){var o=n.call(this)||this;return o.options=i,o._context=t||o,o._action=r,r instanceof Yo&&o._register(r.onDidChange(function(a){o.element&&o.handleActionChangeEvent(a)})),o}return e.prototype.handleActionChangeEvent=function(t){t.enabled!==void 0&&this.updateEnabled(),t.checked!==void 0&&this.updateChecked(),t.class!==void 0&&this.updateClass(),t.label!==void 0&&(this.updateLabel(),this.updateTooltip()),t.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(e.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(t){this._actionRunner=t},enumerable:!0,configurable:!0}),e.prototype.getAction=function(){return this._action},e.prototype.isEnabled=function(){return this._action.enabled},e.prototype.setActionContext=function(t){this._context=t},e.prototype.render=function(t){var r=this;this.element=t,Vh.addTarget(t);var i=this.options&&this.options.draggable;i&&(t.draggable=!0),this._register(Be(this.element,Hr.Tap,function(o){return r.onClick(o)})),this._register(Be(this.element,mt.MOUSE_DOWN,function(o){i||xn.stop(o,!0),r._action.enabled&&o.button===0&&r.element&&Ke(r.element,"active")})),this._register(Be(this.element,mt.CLICK,function(o){xn.stop(o,!0),r.options&&r.options.isMenu?r.onClick(o):J7(function(){return r.onClick(o)})})),this._register(Be(this.element,mt.DBLCLICK,function(o){xn.stop(o,!0)})),[mt.MOUSE_UP,mt.MOUSE_OUT].forEach(function(o){r._register(Be(r.element,o,function(a){xn.stop(a),Ct(r.element,"active")}))})},e.prototype.onClick=function(t){xn.stop(t,!0);var r;au(this._context)?r=t:(r=this._context,si(r)&&(r.event=t)),this._actionRunner.run(this._action,r)},e.prototype.focus=function(){this.element&&(this.element.focus(),Ke(this.element,"focused"))},e.prototype.blur=function(){this.element&&(this.element.blur(),Ct(this.element,"focused"))},e.prototype.updateEnabled=function(){},e.prototype.updateLabel=function(){},e.prototype.updateTooltip=function(){},e.prototype.updateClass=function(){},e.prototype.updateChecked=function(){},e.prototype.dispose=function(){this.element&&(pN(this.element),this.element=void 0),n.prototype.dispose.call(this)},e}(Ue),qC=function(n){GC(e,n);function e(t){var r=n.call(this,e.ID,t,t?"separator text":"separator")||this;return r.checked=!1,r.radio=!1,r.enabled=!1,r}return e.ID="vs.actions.separator",e}(Yo),ob=function(n){GC(e,n);function e(t,r,i){i===void 0&&(i={});var o=n.call(this,t,r,i)||this;return o.options=i,o.options.icon=i.icon!==void 0?i.icon:!1,o.options.label=i.label!==void 0?i.label:!0,o.cssClass="",o}return e.prototype.render=function(t){n.prototype.render.call(this,t),this.element&&(this.label=He(this.element,ot("a.action-label"))),this._action.id===qC.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&&(He(this.element,ot("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},e.prototype.focus=function(){n.prototype.focus.call(this),this.label.focus()},e.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},e.prototype.updateTooltip=function(){var t=null;this.getAction().tooltip?t=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(t=this.getAction().label,this.options.keybinding&&(t=x({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",t,this.options.keybinding))),t&&(this.label.title=t)},e.prototype.updateClass=function(){this.cssClass&&TC(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Ke(this.label,"icon"),this.cssClass&&vN(this.label,this.cssClass),this.updateEnabled()):Ct(this.label,"icon")},e.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&Ct(this.element,"disabled"),Ct(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&Ke(this.element,"disabled"),Ke(this.label,"disabled"),yN(this.label))},e.prototype.updateChecked=function(){this.getAction().checked?Ke(this.label,"checked"):Ct(this.label,"checked")},e}(wD),B4={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},Zg=function(n){GC(e,n);function e(t,r){r===void 0&&(r=B4);var i=n.call(this)||this;i._onDidBlur=i._register(new se),i._onDidCancel=i._register(new se),i._onDidRun=i._register(new se),i._onDidBeforeRun=i._register(new se),i.options=r,i._context=r.context,i.options.triggerKeys||(i.options.triggerKeys=B4.triggerKeys),i.options.actionRunner?i._actionRunner=i.options.actionRunner:(i._actionRunner=new u9,i._register(i._actionRunner)),i._register(i._actionRunner.onDidRun(function(s){return i._onDidRun.fire(s)})),i._register(i._actionRunner.onDidBeforeRun(function(s){return i._onDidBeforeRun.fire(s)})),i.items=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",r.animated!==!1&&Ke(i.domNode,"animated");var o,a;switch(i.options.orientation){case 0:o=15,a=17;break;case 1:o=17,a=15,i.domNode.className+=" reverse";break;case 2:o=16,a=18,i.domNode.className+=" vertical";break;case 3:o=18,a=16,i.domNode.className+=" vertical reverse";break}return i._register(Be(i.domNode,mt.KEY_DOWN,function(s){var l=new zn(s),u=!0;l.equals(o)?i.focusPrevious():l.equals(a)?i.focusNext():l.equals(9)?i.cancel():i.isTriggerKeyEvent(l)?i.options.triggerKeys&&i.options.triggerKeys.keyDown&&i.doTrigger(l):u=!1,u&&(l.preventDefault(),l.stopPropagation())})),i._register(Be(i.domNode,mt.KEY_UP,function(s){var l=new zn(s);i.isTriggerKeyEvent(l)?(i.options.triggerKeys&&!i.options.triggerKeys.keyDown&&i.doTrigger(l),l.preventDefault(),l.stopPropagation()):(l.equals(2)||l.equals(1026))&&i.updateFocusedItem()})),i.focusTracker=i._register(eg(i.domNode)),i._register(i.focusTracker.onDidBlur(function(){(document.activeElement===i.domNode||!us(document.activeElement,i.domNode))&&(i._onDidBlur.fire(),i.focusedItem=void 0)})),i._register(i.focusTracker.onDidFocus(function(){return i.updateFocusedItem()})),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),t.appendChild(i.domNode),i}return Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.isTriggerKeyEvent=function(t){var r=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(i){r=r||t.equals(i)}),r},e.prototype.updateFocusedItem=function(){for(var t=0;t=i.actionsList.children.length?(i.actionsList.appendChild(l),i.items.push(u)):(i.actionsList.insertBefore(l,i.actionsList.children[a]),i.items.splice(a,0,u),a++)})},e.prototype.clear=function(){this.items=Oe(this.items),Go(this.actionsList)},e.prototype.isEmpty=function(){return this.items.length===0},e.prototype.focus=function(t){var r=!1,i=void 0;t===void 0?r=!0:typeof t=="number"?i=t:typeof t=="boolean"&&(r=t),r&&typeof this.focusedItem>"u"?(this.focusedItem=this.items.length-1,this.focusNext()):(i!==void 0&&(this.focusedItem=i),this.updateFocus())},e.prototype.focusNext=function(){typeof this.focusedItem>"u"&&(this.focusedItem=this.items.length-1);var t=this.focusedItem,r;do this.focusedItem=(this.focusedItem+1)%this.items.length,r=this.items[this.focusedItem];while(this.focusedItem!==t&&!r.isEnabled());this.focusedItem===t&&!r.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},e.prototype.focusPrevious=function(){typeof this.focusedItem>"u"&&(this.focusedItem=0);var t=this.focusedItem,r;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),r=this.items[this.focusedItem];while(this.focusedItem!==t&&!r.isEnabled());this.focusedItem===t&&!r.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},e.prototype.updateFocus=function(t){typeof this.focusedItem>"u"&&this.actionsList.focus();for(var r=0;r"u")){var r=this.items[this.focusedItem];if(r instanceof wD){var i=r._context===null||r._context===void 0?t:r._context;this.run(r._action,i)}}},e.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},e.prototype.run=function(t,r){return this._actionRunner.run(t,r)},e.prototype.dispose=function(){Oe(this.items),this.items=[],pN(this.getContainer()),n.prototype.dispose.call(this)},e}(Ue),SD=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),l_=3,bp=function(){function n(e,t,r,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=r,this.modifiedLineEnd=i}return n.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},n}(),OS=function(){function n(e){this.entries=e}return n}(),HOe=function(n){SD(e,n);function e(t){var r=n.call(this)||this;return r._width=0,r._diffEditor=t,r._isVisible=!1,r.shadow=Bt(document.createElement("div")),r.shadow.setClassName("diff-review-shadow"),r.actionBarContainer=Bt(document.createElement("div")),r.actionBarContainer.setClassName("diff-review-actions"),r._actionBar=r._register(new Zg(r.actionBarContainer.domNode)),r._actionBar.push(new Yo("diffreview.close",x("label.close","Close"),"close-diff-review",!0,function(){return r.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),r.domNode=Bt(document.createElement("div")),r.domNode.setClassName("diff-review monaco-editor-background"),r._content=Bt(document.createElement("div")),r._content.setClassName("diff-review-content"),r.scrollbar=r._register(new Yg(r._content.domNode,{})),r.domNode.domNode.appendChild(r.scrollbar.getDomNode()),r._register(t.onDidUpdateDiff(function(){r._isVisible&&(r._diffs=r._compute(),r._render())})),r._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){r._isVisible&&r._render()})),r._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){r._isVisible&&r.hide()})),r._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){r._isVisible&&r.hide()})),r._register(qr(r.domNode.domNode,"click",function(i){i.preventDefault();var o=qL(i.target,"diff-review-row");o&&r._goToRow(o)})),r._register(qr(r.domNode.domNode,"keydown",function(i){(i.equals(18)||i.equals(2066)||i.equals(530))&&(i.preventDefault(),r._goToRow(r._getNextRow())),(i.equals(16)||i.equals(2064)||i.equals(528))&&(i.preventDefault(),r._goToRow(r._getPrevRow())),(i.equals(9)||i.equals(2057)||i.equals(521)||i.equals(1033))&&(i.preventDefault(),r.hide()),(i.equals(10)||i.equals(3))&&(i.preventDefault(),r.accept())})),r._diffs=[],r._currentDiff=null,r}return e.prototype.prev=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var r=-1,i=0,o=this._diffs.length;i0){var C=t[s-1];C.originalEndLineNumber===0?_=C.originalStartLineNumber+1:_=C.originalEndLineNumber+1,C.modifiedEndLineNumber===0?y=C.modifiedStartLineNumber+1:y=C.modifiedEndLineNumber+1}var w=m-l_+1,b=g-l_+1;if(w<_){var S=_-w;w=w+S,b=b+S}if(bT){var S=T-D;D=D+S,M=M+S}if(M>R){var S=R-M;D=D+S,M=M+S}p[v++]=new bp(E,D,L,M)}o[a++]=new OS(p)}for(var H=o[0].entries,k=[],W=0,s=1,l=o.length;sf)&&(f=y),C!==0&&(h===0||Cp)&&(p=w)}var b=document.createElement("div");b.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var E=f-d+1,L=p-h+1;S.appendChild(document.createTextNode(l+1+"/"+this._diffs.length+": @@ -"+d+","+E+" +"+h+","+L+" @@")),b.setAttribute("data-line",String(h));var T=function(M){return M===0?x("no_lines","no lines"):M===1?x("one_line","1 line"):x("more_lines","{0} lines",M)},R=T(E),N=T(L);b.setAttribute("aria-label",x({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", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",l+1,this._diffs.length,d,R,h,N)),b.appendChild(S),b.setAttribute("role","listitem"),c.appendChild(b);for(var D=h,v=0,m=u.length;v>>0,l=new Uint32Array(2);l[0]=a.length,l[1]=s;var u=new ba(l,a),c=Ea.isBasicASCII(a,t.mightContainNonBasicASCII()),d=Ea.containsRTL(a,c,t.mightContainRTL()),f=MC(new Bh(r.fontInfo.isMonospace&&!r.viewInfo.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,a,!1,c,d,0,u,[],i,r.fontInfo.spaceWidth,r.viewInfo.stopRenderingLineAfter,r.viewInfo.renderWhitespace,r.viewInfo.renderControlCharacters,r.viewInfo.fontLigatures));return f.html},e}(Ue);Cn(function(n,e){var t=n.getColor(j9);t&&e.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var r=n.getColor(WC);r&&e.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+r+" 0 -6px 6px -6px inset; }")});var UOe=function(n){SD(e,n);function e(){return n.call(this,{id:"editor.action.diffReview.next",label:x("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:dt.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return e.prototype.run=function(t,r){var i=L$(t);i&&i.diffReviewNext()},e}(st),$Oe=function(n){SD(e,n);function e(){return n.call(this,{id:"editor.action.diffReview.prev",label:x("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:dt.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return e.prototype.run=function(t,r){var i=L$(t);i&&i.diffReviewPrev()},e}(st);function L$(n){for(var e=n.get(Pn),t=e.listDiffEditors(),r=0,i=t.length;r=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},Xd=function(n,e){return function(t,r){e(t,r,n)}},W4=function(){function n(){this._zones=[],this._zonesMap={},this._decorations=[]}return n.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(r){return!t._zonesMap[String(r.id)]})},n.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(r){for(var i=0,o=t._zones.length;i0?a/i:0,l=Math.max(0,Math.floor(t.contentHeight*s)),u=Math.floor(r*s);return{height:l,top:u}},e.prototype._createDataSource=function(){var t=this;return{getWidth:function(){return t._width},getHeight:function(){return t._height-t._reviewHeight},getContainerDomNode:function(){return t._containerDomElement},relayoutEditors:function(){t._doLayout()},getOriginalEditor:function(){return t.originalEditor},getModifiedEditor:function(){return t.modifiedEditor}}},e.prototype._setStrategy=function(t){this._strategy&&this._strategy.dispose(),this._strategy=t,t.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},e.prototype._getLineChangeAtOrBeforeLineNumber=function(t,r){var i=this._diffComputationResult?this._diffComputationResult.changes:[];if(i.length===0||t=u?o=s+1:(o=s,a=s)}return i[o]},e.prototype._getEquivalentLineForOriginalLineNumber=function(t){var r=this._getLineChangeAtOrBeforeLineNumber(t,function(u){return u.originalStartLineNumber});if(!r)return t;var i=r.originalStartLineNumber+(r.originalEndLineNumber>0?-1:0),o=r.modifiedStartLineNumber+(r.modifiedEndLineNumber>0?-1:0),a=r.originalEndLineNumber>0?r.originalEndLineNumber-r.originalStartLineNumber+1:0,s=r.modifiedEndLineNumber>0?r.modifiedEndLineNumber-r.modifiedStartLineNumber+1:0,l=t-i;return l<=a?o+Math.min(l,s):o+s-a+l},e.prototype._getEquivalentLineForModifiedLineNumber=function(t){var r=this._getLineChangeAtOrBeforeLineNumber(t,function(u){return u.modifiedStartLineNumber});if(!r)return t;var i=r.originalStartLineNumber+(r.originalEndLineNumber>0?-1:0),o=r.modifiedStartLineNumber+(r.modifiedEndLineNumber>0?-1:0),a=r.originalEndLineNumber>0?r.originalEndLineNumber-r.originalStartLineNumber+1:0,s=r.modifiedEndLineNumber>0?r.modifiedEndLineNumber-r.modifiedStartLineNumber+1:0,l=t-o;return l<=s?i+Math.min(l,a):i+a-s+l},e.prototype.getDiffLineInformationForOriginal=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(t)}:null},e.prototype.getDiffLineInformationForModified=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(t)}:null},e.ONE_OVERVIEW_WIDTH=15,e.ENTIRE_DIFF_OVERVIEW_WIDTH=30,e.UPDATE_DIFF_DECORATIONS_DELAY=200,e=jOe([Xd(2,Qo),Xd(3,jt),Xd(4,cr),Xd(5,Pn),Xd(6,kr),Xd(7,fi)],e),e}(Ue),I$=function(n){jh(e,n);function e(t){var r=n.call(this)||this;return r._dataSource=t,r}return e.prototype.applyColors=function(t){var r=(t.getColor(F9)||pI).transparent(2),i=(t.getColor(B9)||vI).transparent(2),o=!r.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=r,this._removeColor=i,o},e.prototype.getEditorsDiffDecorations=function(t,r,i,o,a,s,l){a=a.sort(function(f,h){return f.afterLineNumber-h.afterLineNumber}),o=o.sort(function(f,h){return f.afterLineNumber-h.afterLineNumber});var u=this._getViewZones(t,o,a,s,l,i),c=this._getOriginalEditorDecorations(t,r,i,s,l),d=this._getModifiedEditorDecorations(t,r,i,s,l);return{original:{decorations:c.decorations,overviewZones:c.overviewZones,zones:u.original},modified:{decorations:d.decorations,overviewZones:d.overviewZones,zones:u.modified}}},e}(Ue),V4=function(){function n(e){this._source=e,this._index=-1,this.advance()}return n.prototype.advance=function(){this._index++,this._index0){var N=T[T.length-1];if(N.afterLineNumber===R.afterLineNumber&&N.domNode===null){N.heightInLines+=R.heightInLines;return}}T.push(R)},c=new V4(this.modifiedForeignVZ),d=new V4(this.originalForeignVZ),f=0,h=this.lineChanges.length;f<=h;f++){var p=f0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),r=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,t=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,a=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),s=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(i+=1e7+r,o+=1e7+t,a=i,s=o);for(var v=[],m=[];c.current&&c.current.afterLineNumber<=s;){var g=void 0;c.current.afterLineNumber<=o?g=i-o+c.current.afterLineNumber:g=a;var _=null;p&&p.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=p.modifiedEndLineNumber&&(_=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),v.push({afterLineNumber:g,heightInLines:c.current.heightInLines,domNode:null,marginDomNode:_}),c.advance()}for(;d.current&&d.current.afterLineNumber<=a;){var g=void 0;d.current.afterLineNumber<=i?g=o-i+d.current.afterLineNumber:g=s,m.push({afterLineNumber:g,heightInLines:d.current.heightInLines,domNode:null}),d.advance()}if(p!==null&&jf(p)){var y=this._produceOriginalFromDiff(p,r,t);y&&v.push(y)}if(p!==null&&zf(p)){var y=this._produceModifiedFromDiff(p,r,t);y&&m.push(y)}var C=0,w=0;for(v=v.sort(l),m=m.sort(l);C=S.heightInLines?(b.heightInLines-=S.heightInLines,w++):(S.heightInLines-=b.heightInLines,C++)}for(;Ce.MINIMUM_EDITOR_WIDTH*2?(oi-e.MINIMUM_EDITOR_WIDTH&&(o=i-e.MINIMUM_EDITOR_WIDTH)):o=a,this._sashPosition!==o&&(this._sashPosition=o,this._sash.layout()),this._sashPosition},e.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},e.prototype.onSashDrag=function(t){var r=this._dataSource.getWidth(),i=r-LI.ENTIRE_DIFF_OVERVIEW_WIDTH,o=this.layout((this._startSashPosition+(t.currentX-t.startX))/i);this._sashRatio=o/i,this._dataSource.relayoutEditors()},e.prototype.onSashDragEnd=function(){this._sash.layout()},e.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},e.prototype.getVerticalSashTop=function(t){return 0},e.prototype.getVerticalSashLeft=function(t){return this._sashPosition},e.prototype.getVerticalSashHeight=function(t){return this._dataSource.getHeight()},e.prototype._getViewZones=function(t,r,i,o,a){var s=new KOe(t,r,i);return s.getViewZones()},e.prototype._getOriginalEditorDecorations=function(t,r,i,o,a){for(var s=this._removeColor.toString(),l={decorations:[],overviewZones:[]},u=o.getModel(),c=0,d=t.length;cr?{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:i-r,domNode:null}:null},e.prototype._produceModifiedFromDiff=function(t,r,i){return r>i?{afterLineNumber:Math.max(t.modifiedStartLineNumber,t.modifiedEndLineNumber),heightInLines:r-i,domNode:null}:null},e}(T$),U4=function(n){jh(e,n);function e(t,r){var i=n.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(o){i.decorationsLeft!==o.decorationsLeft&&(i.decorationsLeft=o.decorationsLeft,t.relayoutEditors())})),i}return e.prototype.setEnableSplitViewResizing=function(t){},e.prototype._getViewZones=function(t,r,i,o,a,s){var l=new GOe(t,r,i,o,a,s);return l.getViewZones()},e.prototype._getOriginalEditorDecorations=function(t,r,i,o,a){for(var s=this._removeColor.toString(),l={decorations:[],overviewZones:[]},u=0,c=t.length;u'])}p+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var g=document.createElement("div");g.className="view-lines line-delete",g.innerHTML=u.build(),Oo.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=c.join(""),Oo.applyFontInfoSlow(_,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:t.modifiedEndLineNumber===0?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1,heightInLines:r,minWidthInPx:p*h,domNode:g,marginDomNode:_}},e.prototype._renderOriginalLine=function(t,r,i,o,a,s,l){var u=r.getLineTokens(a),c=u.getLineContent(),d=cg.filter(s,a,1,c.length+1);l.appendASCIIString('
');var f=Ea.isBasicASCII(c,r.mightContainNonBasicASCII()),h=Ea.containsRTL(c,f,r.mightContainRTL()),p=HN(new Bh(i.fontInfo.isMonospace&&!i.viewInfo.disableMonospaceOptimizations,i.fontInfo.canUseHalfwidthRightwardsArrow,c,!1,f,h,0,u,d,o,i.fontInfo.spaceWidth,i.viewInfo.stopRenderingLineAfter,i.viewInfo.renderWhitespace,i.viewInfo.renderControlCharacters,i.viewInfo.fontLigatures),l);l.appendASCIIString("
");var v=p.characterMapping.getAbsoluteOffsets();return v.length>0?v[v.length-1]:0},e}(T$);function jf(n){return n.modifiedEndLineNumber>0}function zf(n){return n.originalEndLineNumber>0}function qOe(){var n=document.createElement("div");return n.className="diagonal-fill",n}Cn(function(n,e){var t=n.getColor(F9);t&&(e.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+t+"; }"),e.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+t+"; }"),e.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+t+"; }"));var r=n.getColor(B9);r&&(e.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+r+"; }"),e.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+r+"; }"),e.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+r+"; }"));var i=n.getColor(FLe);i&&e.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(n.type==="hc"?"dashed":"solid")+" "+i+"; }");var o=n.getColor(BLe);o&&e.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(n.type==="hc"?"dashed":"solid")+" "+o+"; }");var a=n.getColor(WC);a&&e.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+a+"; }");var s=n.getColor(WLe);s&&e.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+s+"; }")});var Ed=nn("themeService"),Au=nn("contextViewService"),YC=nn("contextMenuService"),Xr=nn("keybindingService"),ED=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),LD=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},kn=function(n,e){return function(t,r){e(t,r,n)}},YOe=0,$4=!1;function XOe(){$4||($4=!0,fEe(document.body))}var x$=function(n){ED(e,n);function e(t,r,i,o,a,s,l,u,c,d){var f=this;return r=r||{},r.ariaLabel=r.ariaLabel||gv.editorViewAccessibleLabel,r.ariaLabel=r.ariaLabel+";"+(Ji?gv.accessibilityHelpMessageIE:gv.accessibilityHelpMessage),f=n.call(this,t,r,{},i,o,a,s,u,c,d)||this,l instanceof o9&&(f._standaloneKeybindingService=l),XOe(),f}return e.prototype.addCommand=function(t,r,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var o="DYNAMIC_"+ ++YOe,a=dt.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(o,t,r,a),o},e.prototype.createContextKey=function(t,r){return this._contextKeyService.createKey(t,r)},e.prototype.addAction=function(t){var r=this;if(typeof t.id!="string"||typeof t.label!="string"||typeof t.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"),Ue.None;var i=t.id,o=t.label,a=dt.and(dt.equals("editorId",this.getId()),dt.deserialize(t.precondition)),s=t.keybindings,l=dt.and(a,dt.deserialize(t.keybindingContext)),u=t.contextMenuGroupId||null,c=t.contextMenuOrder||0,d=function(){return Promise.resolve(t.run(r))},f=[],h=this.getId()+":"+i;if(f.push(ii.registerCommand(h,d)),u){var p={command:{id:h,title:o},when:a,group:u,order:c};f.push(La.appendMenuItem(7,p))}Array.isArray(s)&&(f=f.concat(s.map(function(m){return r._standaloneKeybindingService.addDynamicKeybinding(h,m,d,l)})));var v=new _$(h,o,o,a,d,this._contextKeyService);return this._actions[i]=v,f.push(Bn(function(){delete r._actions[i]})),Eo(f)},e=LD([kn(2,cr),kn(3,Pn),kn(4,ri),kn(5,jt),kn(6,Xr),kn(7,kr),kn(8,fi),kn(9,ms)],e),e}(CD),ZOe=function(n){ED(e,n);function e(t,r,i,o,a,s,l,u,c,d,f,h,p){var v=this;Xy(h,r,!1),r=r||{},typeof r.theme=="string"&&d.setTheme(r.theme);var m=r.model;delete r.model,v=n.call(this,t,r,o,a,s,l,u,d,f,p)||this,v._contextViewService=c,v._configurationService=h,v._register(i);var g;if(typeof m>"u"?(g=self.monaco.editor.createModel(r.value||"",r.language||"text/plain"),v._ownsModel=!0):(g=m,v._ownsModel=!1),v._attachModel(g),g){var _={oldModelUrl:null,newModelUrl:g.uri};v._onDidChangeModel.fire(_)}return v}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.updateOptions=function(t){Xy(this._configurationService,t,!1),n.prototype.updateOptions.call(this,t)},e.prototype._attachModel=function(t){n.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},e.prototype._postDetachModelCleanup=function(t){n.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},e=LD([kn(3,cr),kn(4,Pn),kn(5,ri),kn(6,jt),kn(7,Xr),kn(8,Au),kn(9,Ed),kn(10,fi),kn(11,di),kn(12,ms)],e),e}(x$),QOe=function(n){ED(e,n);function e(t,r,i,o,a,s,l,u,c,d,f,h){var p=this;return Xy(h,r,!0),r=r||{},typeof r.theme=="string"&&(r.theme=d.setTheme(r.theme)),p=n.call(this,t,r,u,a,o,c,d,f)||this,p._contextViewService=l,p._configurationService=h,p._register(i),p._contextViewService.setContainer(p._containerDomElement),p}return e.prototype.dispose=function(){n.prototype.dispose.call(this)},e.prototype.updateOptions=function(t){Xy(this._configurationService,t,!0),n.prototype.updateOptions.call(this,t)},e.prototype._createInnerEditor=function(t,r,i){return t.createInstance(x$,r,i)},e.prototype.getOriginalEditor=function(){return n.prototype.getOriginalEditor.call(this)},e.prototype.getModifiedEditor=function(){return n.prototype.getModifiedEditor.call(this)},e.prototype.addCommand=function(t,r,i){return this.getModifiedEditor().addCommand(t,r,i)},e.prototype.createContextKey=function(t,r){return this.getModifiedEditor().createContextKey(t,r)},e.prototype.addAction=function(t){return this.getModifiedEditor().addAction(t)},e=LD([kn(3,cr),kn(4,jt),kn(5,Xr),kn(6,Au),kn(7,Qo),kn(8,Pn),kn(9,Ed),kn(10,fi),kn(11,di)],e),e}(LI),XC=nn("IWorkspaceEditService"),Ru=nn("modeService"),JOe=function(){function n(e){this._languageIdentifier=e}return n.prototype.getId=function(){return this._languageIdentifier.language},n}(),NS="text/plain",j4="application/unknown",II=[],O$=[],N$=[];function u_(n,e){e===void 0&&(e=!1);var t=eNe(n);II.push(t),t.userConfigured?N$.push(t):O$.push(t),e&&!t.userConfigured&&II.forEach(function(r){r.mime===t.mime||r.userConfigured||(t.extension&&r.extension===t.extension&&console.warn("Overwriting extension <<"+t.extension+">> to now point to mime <<"+t.mime+">>"),t.filename&&r.filename===t.filename&&console.warn("Overwriting filename <<"+t.filename+">> to now point to mime <<"+t.mime+">>"),t.filepattern&&r.filepattern===t.filepattern&&console.warn("Overwriting filepattern <<"+t.filepattern+">> to now point to mime <<"+t.mime+">>"),t.firstline&&r.firstline===t.firstline&&console.warn("Overwriting firstline <<"+t.firstline+">> to now point to mime <<"+t.mime+">>"))})}function eNe(n){return{id:n.id,mime:n.mime,filename:n.filename,extension:n.extension,filepattern:n.filepattern,firstline:n.firstline,userConfigured:n.userConfigured,filenameLowercase:n.filename?n.filename.toLowerCase():void 0,extensionLowercase:n.extension?n.extension.toLowerCase():void 0,filepatternLowercase:n.filepattern?n.filepattern.toLowerCase():void 0,filepatternOnPath:n.filepattern?n.filepattern.indexOf(ur.sep)>=0:!1}}function tNe(n,e){if(!n)return[j4];n=n.toLowerCase();var t=id(n),r=z4(n,t,N$);if(r)return[r,NS];var i=z4(n,t,O$);if(i)return[i,NS];if(e){var o=nNe(e);if(o)return[o,NS]}return[j4]}function z4(n,e,t){for(var r=null,i=null,o=null,a=t.length-1;a>=0;a--){var s=t[a];if(e===s.filenameLowercase){r=s;break}if(s.filepattern&&(!i||s.filepattern.length>i.filepattern.length)){var l=s.filepatternOnPath?n:e;PU(s.filepatternLowercase,l)&&(i=s)}s.extension&&(!o||s.extension.length>o.extension.length)&&al(e,s.extensionLowercase)&&(o=s)}return r?r.mime:i?i.mime:o?o.mime:null}function nNe(n){if(EN(n)&&(n=n.substr(1)),n.length>0)for(var e=0,t=II;e0)return r.mime}}return null}var rNe={ModesRegistry:"editor.modesRegistry"},iNe=function(){function n(){this._onDidChangeLanguages=new se,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return n.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},n.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},n}(),Gc=new iNe;Ti.add(rNe.ModesRegistry,Gc);var ID="plaintext",D$=new RN(ID,1);Gc.registerLanguage({id:ID,extensions:[".txt",".gitignore"],aliases:[x("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]});Ut.register(D$,{brackets:[["(",")"],["[","]"],["{","}"]]});var oNe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Zu=Object.prototype.hasOwnProperty,aNe=function(n){oNe(e,n);function e(t,r){t===void 0&&(t=!0),r===void 0&&(r=!1);var i=n.call(this)||this;return i._onDidChange=i._register(new se),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=r,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(Gc.onDidChangeLanguages(function(o){return i._initializeFromRegistry()}))),i}return e.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var t=Gc.getLanguages();this._registerLanguages(t)},e.prototype._registerLanguages=function(t){for(var r=this,i=0,o=t;i0&&((i=t.mimetypes).push.apply(i,r.mimetypes),a=r.mimetypes[0]),a||(a="text/x-"+o,t.mimetypes.push(a)),Array.isArray(r.extensions))for(var s=0,l=r.extensions;s0){var m=r.firstLine;m.charAt(0)!=="^"&&(m="^"+m);try{var g=new RegExp(m);N0e(g)||u_({id:o,mime:a,firstline:g},this._warnOnOverwrite)}catch(E){Je(E)}}t.aliases.push(o);var _=null;if(typeof r.aliases<"u"&&Array.isArray(r.aliases)&&(r.aliases.length===0?_=[null]:_=r.aliases),_!==null)for(var y=0,C=_;y0;if(!(b&&_[0]===null)){var S=(b?_[0]:null)||o;(b||!t.name)&&(t.name=S)}r.configuration&&t.configurationFiles.push(r.configuration)},e.prototype.isRegisteredMode=function(t){return Zu.call(this._mimeTypesMap,t)?!0:Zu.call(this._languages,t)},e.prototype.getModeIdForLanguageNameLowercase=function(t){return Zu.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t].language:null},e.prototype.extractModeIds=function(t){var r=this;return t?t.split(",").map(function(i){return i.trim()}).map(function(i){return Zu.call(r._mimeTypesMap,i)?r._mimeTypesMap[i].language:i}).filter(function(i){return Zu.call(r._languages,i)}):[]},e.prototype.getLanguageIdentifier=function(t){if(t===kN||t===0)return jy;var r;if(typeof t=="string")r=t;else if(r=this._languageIdToLanguage[t],!r)return null;return Zu.call(this._languages,r)?this._languages[r].identifier:null},e.prototype.getModeIdsFromFilepathOrFirstLine=function(t,r){if(!t&&!r)return[];var i=tNe(t,r);return this.extractModeIds(i.join(","))},e}(Ue),sNe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),K4=function(n){sNe(e,n);function e(t,r){var i=n.call(this)||this;return i._onDidChange=i._register(new se),i.onDidChange=i._onDidChange.event,i._selector=r,i.languageIdentifier=i._selector(),i._register(t(function(){return i._evaluate()})),i}return e.prototype._evaluate=function(){var t=this._selector();t.id!==this.languageIdentifier.id&&(this.languageIdentifier=t,this._onDidChange.fire(this.languageIdentifier))},e}(Ue),lNe=function(){function n(e){var t=this;e===void 0&&(e=!1),this._onDidCreateMode=new se,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new se,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new aNe(!0,e),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return n.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},n.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},n.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var r=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return r.length>0?r[0]:null},n.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},n.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},n.prototype.create=function(e){var t=this;return new K4(this.onLanguagesMaybeChanged,function(){var r=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(r)})},n.prototype.createByFilepathOrFirstLine=function(e,t){var r=this;return new K4(this.onLanguagesMaybeChanged,function(){var i=r.getModeIdByFilepathOrFirstLine(e,t);return r._createModeAndGetLanguageIdentifier(i)})},n.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||jy;return this._getOrCreateMode(t.language),t},n.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},n.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||jy;this._instantiatedModes[e]=new JOe(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},n}(),uNe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cNe=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},G4=function(n,e){return function(t,r){e(t,r,n)}};function c_(n){return n.toString()}var dNe=function(){function n(e,t,r){this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(i){return r(e,i)}))}return n.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},n.prototype.dispose=function(){this._modelEventListeners=Oe(this._modelEventListeners),this._disposeLanguageSelection()},n.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(e.languageIdentifier)}),this.model.setMode(e.languageIdentifier)},n}(),fNe=gs||Vt?1:2,hNe=function(n){uNe(e,n);function e(t,r){var i=n.call(this)||this;return i._onModelAdded=i._register(new se),i.onModelAdded=i._onModelAdded.event,i._onModelRemoved=i._register(new se),i.onModelRemoved=i._onModelRemoved.event,i._onModelModeChanged=i._register(new se),i.onModelModeChanged=i._onModelModeChanged.event,i._configurationService=t,i._resourcePropertiesService=r,i._models={},i._modelCreationOptionsByLanguageAndResource=Object.create(null),i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration(function(o){return i._updateModelOptions()}),i._updateModelOptions(),i}return e._readModelOptions=function(t,r){var i=da.tabSize;if(t.editor&&typeof t.editor.tabSize<"u"){var o=parseInt(t.editor.tabSize,10);isNaN(o)||(i=o),i<1&&(i=1)}var a=i;if(t.editor&&typeof t.editor.indentSize<"u"&&t.editor.indentSize!=="tabSize"){var s=parseInt(t.editor.indentSize,10);isNaN(s)||(a=s),a<1&&(a=1)}var l=da.insertSpaces;t.editor&&typeof t.editor.insertSpaces<"u"&&(l=t.editor.insertSpaces==="false"?!1:!!t.editor.insertSpaces);var u=fNe,c=t.eol;c===`\r `?u=2:c===` -`&&(u=1);var d=da.trimAutoWhitespace;t.editor&&typeof t.editor.trimAutoWhitespace<"u"&&(d=t.editor.trimAutoWhitespace==="false"?!1:!!t.editor.trimAutoWhitespace);var f=da.detectIndentation;t.editor&&typeof t.editor.detectIndentation<"u"&&(f=t.editor.detectIndentation==="false"?!1:!!t.editor.detectIndentation);var h=da.largeFileOptimizations;return t.editor&&typeof t.editor.largeFileOptimizations<"u"&&(h=t.editor.largeFileOptimizations==="false"?!1:!!t.editor.largeFileOptimizations),{isForSimpleWidget:r,tabSize:i,indentSize:a,insertSpaces:l,detectIndentation:f,defaultEOL:u,trimAutoWhitespace:d,largeFileOptimizations:h}},e.prototype.getCreationOptions=function(t,r,i){var o=this._modelCreationOptionsByLanguageAndResource[t+r];if(!o){var a=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:r}),s=this._resourcePropertiesService.getEOL(r,t);o=e._readModelOptions({editor:a,eol:s},i),this._modelCreationOptionsByLanguageAndResource[t+r]=o}return o},e.prototype._updateModelOptions=function(){var t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var r=Object.keys(this._models),i=0,o=r.length;i=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},FOe=function(n,e){return function(t,r){e(t,r,n)}},BOe=function(n){MOe(e,n);function e(t,r){r===void 0&&(r=yd());var i=n.call(this)||this;return i._styleSheet=r,i._decorationOptionProviders=Object.create(null),i._themeService=t,i}return e.prototype.registerDecorationType=function(t,r,i){var o=this._decorationOptionProviders[t];if(!o){var a={styleSheet:this._styleSheet,key:t,parentTypeKey:i,options:r||Object.create(null)};i?o=new WOe(this._themeService,a):o=new VOe(this._themeService,a),this._decorationOptionProviders[t]=o}o.refCount++},e.prototype.removeDecorationType=function(t){var r=this._decorationOptionProviders[t];r&&(r.refCount--,r.refCount<=0&&(delete this._decorationOptionProviders[t],r.dispose(),this.listCodeEditors().forEach(function(i){return i.removeDecorations(t)})))},e.prototype.resolveDecorationOptions=function(t,r){var i=this._decorationOptionProviders[t];if(!i)throw new Error("Unknown decoration type key: "+t);return i.getOptions(this,r)},e=kOe([FOe(0,Fr)],e),e}(POe),WOe=function(){function n(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new sb(3,t,e),this._afterContentRules=new sb(4,t,e)}return n.prototype.getOptions=function(e,t){var r=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(r.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(r.afterContentClassName=this._afterContentRules.className),r},n.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},n}(),VOe=function(){function n(e,t){var r=this;this.refCount=0,this._disposables=[];var i=function(c){var d=new sb(c,t,e);if(r._disposables.push(d),d.hasContent)return d.className},o=function(c){var d=new sb(c,t,e);return r._disposables.push(d),d.hasContent?{className:d.className,hasLetterSpacing:d.hasLetterSpacing}:null};this.className=i(0);var a=o(1);a&&(this.inlineClassName=a.className,this.inlineClassNameAffectsLetterSpacing=a.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);var s=t.options;this.isWholeLine=!!s.isWholeLine,this.stickiness=s.rangeBehavior;var l=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;(typeof l<"u"||typeof u<"u")&&(this.overviewRuler={color:l||u,darkColor:u||l,position:s.overviewRulerLane||Lo.Center})}return n.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},n.prototype.dispose=function(){this._disposables=Ne(this._disposables)},n}(),bp={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:url('{0}') center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:url('{0}');",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},sb=function(){function n(e,t,r){var i=this;this._theme=r.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var o=kS.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(o=o+" "+kS.getClassName(this._providerArgs.parentTypeKey,e)),this._className=o,this._unThemedSelector=kS.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=r.onThemeChange(function(a){i._theme=r.getTheme(),i._removeCSS(),i._buildCSS()}):this._themeListener=null}return n.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(n.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),n.prototype._buildCSS=function(){var e=this._providerArgs.options,t,r,i;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),r=this.getCSSTextForModelDecorationClassName(e.light),i=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),r=this.getCSSTextForModelDecorationInlineClassName(e.light),i=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),r=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),r=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),r=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var o=this._providerArgs.styleSheet.sheet,a=!1;t.length>0&&(o.insertRule(this._unThemedSelector+" {"+t+"}",0),a=!0),r.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+r+"}",0),a=!0),i.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+i+"}",0),a=!0),this._hasContent=a},n.prototype._removeCSS=function(){ZL(this._unThemedSelector,this._providerArgs.styleSheet)},n.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},n.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},n.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(typeof e<"u"){if(this.collectBorderSettingsCSSText(e,t),typeof e.contentIconPath<"u"&&t.push(tn(bp.contentIconPath,Xt.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))),typeof e.contentText=="string"){var r=e.contentText.match(/^.*$/m)[0],i=r.replace(/['\\]/g,"\\$&");t.push(tn(bp.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},n.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return typeof e.gutterIconPath<"u"&&(t.push(tn(bp.gutterIconPath,Xt.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),typeof e.gutterIconSize<"u"&&t.push(tn(bp.gutterIconSize,e.gutterIconSize))),t.join("")},n.prototype.collectBorderSettingsCSSText=function(e,t){return this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)?(t.push(tn("box-sizing: border-box;")),!0):!1},n.prototype.collectCSSText=function(e,t,r){for(var i=r.length,o=0,a=t;o=1&&n[0].token==="";){var o=n.shift();o.fontStyle!==-1&&(t=o.fontStyle),o.foreground!==null&&(r=o.foreground),o.background!==null&&(i=o.background)}for(var a=new GOe,s=0,l=e;s"u"){var i=this._match(t),o=YOe(t);r=(i.metadata|o<<8)>>>0,this._cache.set(t,r)}return(r|e<<0)>>>0},n}(),qOe=/\b(comment|string|regex|regexp)\b/;function YOe(n){var e=n.match(qOe);if(!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function XOe(n,e){return ne?1:0}var ZOe=function(){function n(e,t,r){this._fontStyle=e,this._foreground=t,this._background=r,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return n.prototype.clone=function(){return new n(this._fontStyle,this._foreground,this._background)},n.prototype.acceptOverwrite=function(e,t,r){e!==-1&&(this._fontStyle=e),t!==0&&(this._foreground=t),r!==0&&(this._background=r),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},n}(),QOe=function(){function n(e){this._mainRule=e,this._children=new Map}return n.prototype.match=function(e){if(e==="")return this._mainRule;var t=e.indexOf("."),r,i;t===-1?(r=e,i=""):(r=e.substring(0,t),i=e.substring(t+1));var o=this._children.get(r);return typeof o<"u"?o.match(i):this._mainRule},n.prototype.insert=function(e,t,r,i){if(e===""){this._mainRule.acceptOverwrite(t,r,i);return}var o=e.indexOf("."),a,s;o===-1?(a=e,s=""):(a=e.substring(0,o),s=e.substring(o+1));var l=this._children.get(a);typeof l>"u"&&(l=new n(this._mainRule.clone()),this._children.set(a,l)),l.insert(s,t,r,i)},n}();function JOe(n){for(var e=[],t=1,r=n.length;t0?(this.id=r+" "+e,this.themeName=e):(this.id=r,this.themeName=r),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(n.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),n.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},n.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=Oe.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var r=OI(this.themeData.base);for(var t in r.colors)e[t]||(e[t]=Oe.fromHex(r.colors[t]))}this.colors=e}return this.colors},n.prototype.getColor=function(e,t){var r=this.getColors()[e];if(r)return r;if(t!==!1)return this.getDefault(e)},n.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=rNe.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},n.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(n.prototype,"type",{get:function(){switch(this.base){case Ac:return"light";case cg:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var r=OI(this.themeData.base);e=r.rules,r.encodedTokensColors&&(t=r.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=P$.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),n}();function FS(n){return n===Ac||n===lb||n===cg}function OI(n){switch(n){case Ac:return eNe;case lb:return tNe;case cg:return nNe}}function BS(n){var e=OI(n);return new M$(n,e)}var oNe=function(){function n(){this.environment=Object.create(null),this._onThemeChange=new ae,this._onIconThemeChange=new ae,this._knownThemes=new Map,this._knownThemes.set(Ac,BS(Ac)),this._knownThemes.set(lb,BS(lb)),this._knownThemes.set(cg,BS(cg)),this._styleElement=yd(),this._styleElement.className="monaco-colors",this.setTheme(Ac)}return Object.defineProperty(n.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),n.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!FS(t.base)&&!FS(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new M$(e,t)),FS(e)&&this._knownThemes.forEach(function(r){r.base===e&&r.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)},n.prototype.getTheme=function(){return this._theme},n.prototype.setTheme=function(e){var t=this,r;if(this._knownThemes.has(e)?r=this._knownThemes.get(e):r=this._knownThemes.get(Ac),this._theme===r)return r.id;this._theme=r;var i=[],o={},a={addRule:function(u){o[u]||(i.push(u),o[u]=!0)}};iNe.getThemingParticipants().forEach(function(u){return u(r,a,t.environment)});var s=r.tokenTheme,l=s.getColorMap();return a.addRule(JOe(l)),this._styleElement.innerHTML=i.join(` -`),Dn.setColorMap(l),this._onThemeChange.fire(r),r.id},n.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},n}(),e0=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},n(e,t)};return function(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),aNe=function(n,e,t,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,r);else for(var s=n.length-1;s>=0;s--)(a=n[s])&&(o=(i<3?a(o):i>3?a(e,t,o):a(e,t))||o);return i>3&&o&&Object.defineProperty(e,t,o),o},sNe=function(n,e){return function(t,r){e(t,r,n)}},ub="data-keybinding-context",TA=function(){function n(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}return n.prototype.setValue=function(e,t){return this._value[e]!==t?(this._value[e]=t,!0):!1},n.prototype.removeValue=function(e){return e in this._value?(delete this._value[e],!0):!1},n.prototype.getValue=function(e){var t=this._value[e];return typeof t>"u"&&this._parent?this._parent.getValue(e):t},n}(),cb=function(n){e0(e,n);function e(){return n.call(this,-1,null)||this}return e.prototype.setValue=function(t,r){return!1},e.prototype.removeValue=function(t){return!1},e.prototype.getValue=function(t){},e.INSTANCE=new e,e}(TA),lNe=function(n){e0(e,n);function e(t,r,i){var o=n.call(this,t,null)||this;return o._configurationService=r,o._values=new Map,o._listener=o._configurationService.onDidChangeConfiguration(function(a){if(a.source===6){var s=Wy(o._values);o._values.clear(),i.fire(new Y4(s))}else{for(var l=[],u=0,c=a.affectedKeys;u"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},n.prototype.get=function(){return this._service.getContextKeyValue(this._key)},n}(),q4=function(){function n(e){this.key=e}return n.prototype.affectsSome=function(e){return e.has(this.key)},n}(),Y4=function(){function n(e){this.keys=e}return n.prototype.affectsSome=function(e){for(var t=0,r=this.keys;t1){var f=d.shift();f&&(o.focusItemByElement(f.container),d.push(f)),o.mnemonics.set(c,d)}}})),vs&&o._register(We(a,mt.KEY_DOWN,function(u){var c=new zn(u);c.equals(14)||c.equals(11)?(o.focusedItem=o.items.length-1,o.focusNext(),xn.stop(u,!0)):(c.equals(13)||c.equals(12))&&(o.focusedItem=0,o.focusPrevious(),xn.stop(u,!0))})),o._register(We(o.domNode,mt.MOUSE_OUT,function(u){var c=u.relatedTarget;ls(c,o.domNode)||(o.focusedItem=void 0,o.scrollTopHold=o.menuElement.scrollTop,o.updateFocus(),u.stopPropagation())})),o._register(We(o.domNode,mt.MOUSE_UP,function(u){xn.stop(u,!0)})),o._register(We(o.actionsList,mt.MOUSE_OVER,function(u){var c=u.target;if(!(!c||!ls(c,o.actionsList)||c===o.actionsList)){for(;c.parentElement!==o.actionsList&&c.parentElement!==null;)c=c.parentElement;if(il(c,"action-item")){var d=o.focusedItem;o.scrollTopHold=o.menuElement.scrollTop,o.setFocusedItem(c),d!==o.focusedItem&&o.updateFocus()}}}));var s={parent:o};o.mnemonics=new Map,o.push(r,{icon:!0,label:!0,isMenu:!0}),o.scrollableElement=o._register(new Kg(a,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var l=o.scrollableElement.getDomNode();return l.style.position=null,a.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",o.scrollableElement.onScroll(function(){o._onScroll.fire()},o,o.menuDisposables),o._register(We(o.menuElement,mt.SCROLL,function(u){o.scrollTopHold!==void 0&&(o.menuElement.scrollTop=o.scrollTopHold,o.scrollTopHold=void 0),o.scrollableElement.scanDomNode()})),t.appendChild(o.scrollableElement.getDomNode()),o.scrollableElement.scanDomNode(),o.items.filter(function(u){return!(u instanceof WS)}).forEach(function(u,c,d){u.updatePositionInSet(c+1,d.length)}),o}return e.prototype.style=function(t){var r=this.getContainer(),i=t.foregroundColor?""+t.foregroundColor:null,o=t.backgroundColor?""+t.backgroundColor:null,a=t.borderColor?"2px solid "+t.borderColor:null,s=t.shadowColor?"0 2px 4px "+t.shadowColor:null;r.style.border=a,this.domNode.style.color=i,this.domNode.style.backgroundColor=o,r.style.boxShadow=s,this.items&&this.items.forEach(function(l){(l instanceof AI||l instanceof WS)&&l.style(t)})},e.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),e.prototype.focusItemByElement=function(t){var r=this.focusedItem;this.setFocusedItem(t),r!==this.focusedItem&&this.updateFocus()},e.prototype.setFocusedItem=function(t){for(var r=0;r