@vcmap/ui 5.0.0-rc.7 → 5.0.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{cesium.2a963a.js → cesium.6b5bb6.js} +0 -0
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.ba64c8.js → core.98f9bb.js} +1 -1
- package/dist/assets/core.js +1 -1
- package/dist/assets/{index.83d29643.js → index.0be2842f.js} +1 -1
- package/dist/assets/{ol.5c9201.js → ol.0561aa.js} +0 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.c4abb7.css → ui.b7c1e3.css} +1 -1
- package/dist/assets/ui.b7c1e3.js +39 -0
- package/dist/assets/ui.js +1 -1
- package/dist/assets/{uicomponents.5e36c1.css → uicomponents.682c5f.css} +0 -0
- package/dist/assets/{uicomponents.5e36c1.js → uicomponents.682c5f.js} +1 -1
- package/dist/assets/uicomponents.js +1 -1
- package/dist/assets/{vue-composition-api.ff8a0e.js → vue-composition-api.f926fa.js} +1 -1
- package/dist/assets/vue-composition-api.js +2 -2
- package/dist/assets/{vue.f0d3bf.js → vue.ddcb6b.js} +0 -0
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.69b350.css → vuetify.d21163.css} +0 -0
- package/dist/assets/{vuetify.69b350.js → vuetify.d21163.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/index.js +58 -6
- package/package.json +1 -1
- package/dist/assets/ui.c4abb7.js +0 -39
@@ -1 +1 @@
|
|
1
|
-
export * from "./uicomponents.
|
1
|
+
export * from "./uicomponents.682c5f.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import un from"./vue.
|
1
|
+
import un from"./vue.ddcb6b.js";var on=function(e){return Object.prototype.toString.call(e)};function Se(e){return typeof e=="function"&&/native code/.test(e.toString())}var be=typeof Symbol!="undefined"&&Se(Symbol)&&typeof Reflect!="undefined"&&Se(Reflect.ownKeys),I=function(e){return e};function y(e,n,r){var t=r.get,i=r.set;Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:t||I,set:i||I})}function J(e,n,r,t){Object.defineProperty(e,n,{value:r,enumerable:!!t,writable:!0,configurable:!0})}function C(e,n){return Object.hasOwnProperty.call(e,n)}function an(e,n){if(!e)throw new Error("[vue-composition-api] ".concat(n))}function S(e){return Array.isArray(e)}var fn=Object.prototype.toString,$e=function(e){return fn.call(e)},cn=function(e){return $e(e)==="[object Map]"},sn=function(e){return $e(e)==="[object Set]"},ln=4294967295;function me(e){var n=parseFloat(String(e));return n>=0&&Math.floor(n)===n&&isFinite(e)&&n<=ln}function F(e){return e!==null&&typeof e=="object"}function O(e){return on(e)==="[object Object]"}function $(e){return typeof e=="function"}function vn(e,n){un.util.warn(e,n)}function dn(e,n,r){if(typeof window!="undefined"&&typeof console!="undefined")console.error(e);else throw e}/*! *****************************************************************************
|
2
2
|
Copyright (c) Microsoft Corporation.
|
3
3
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./vue-composition-api.
|
2
|
-
export { default } from "./vue-composition-api.
|
1
|
+
export * from "./vue-composition-api.f926fa.js";
|
2
|
+
export { default } from "./vue-composition-api.f926fa.js";
|
File without changes
|
package/dist/assets/vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { default } from "./vue.
|
1
|
+
export { default } from "./vue.ddcb6b.js";
|
File without changes
|
@@ -10,7 +10,7 @@ function loadCss(href) {
|
|
10
10
|
elem.onerror = reject;
|
11
11
|
document.head.appendChild(elem);
|
12
12
|
});
|
13
|
-
} await loadCss('./assets/vuetify.
|
13
|
+
} await loadCss('./assets/vuetify.d21163.css');var Qr=Object.defineProperty,Jr=Object.defineProperties;var ta=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Xi=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable;var Ui=(t,e,i)=>e in t?Qr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e)=>{for(var i in e||(e={}))Xi.call(e,i)&&Ui(t,i,e[i]);if(ae)for(var i of ae(e))Ki.call(e,i)&&Ui(t,i,e[i]);return t},p=(t,e)=>Jr(t,ta(e));var Z=(t,e)=>{var i={};for(var s in t)Xi.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&ae)for(var s of ae(t))e.indexOf(s)<0&&Ki.call(t,s)&&(i[s]=t[s]);return i};import $ from"./vue.ddcb6b.js";var qu="";const Ye=$.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return this.dark===!0?!0:this.light===!0?!1:this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return this.dark===!0?!0:this.light===!0?!1:this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(t,e){t!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});var S=Ye;function qi(t){const e=l(l({},t.props),t.injections),i=Ye.options.computed.isDark.call(e);return Ye.options.computed.themeClasses.call({isDark:i})}function f(...t){return $.extend({mixins:t})}var ea=f(S).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark(){return this.$vuetify.theme.dark}},beforeCreate(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render(t){const e=t("div",{staticClass:"v-application--wrap"},this.$slots.default);return t("div",{staticClass:"v-application",class:l({"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl},this.themeClasses),attrs:{"data-app":!0},domProps:{id:this.id}},[e])}}),Zu="",Qu="",Ju="";function Zi(t){return function(e,i){for(const s in i)Object.prototype.hasOwnProperty.call(e,s)||this.$delete(this.$data[t],s);for(const s in e)this.$set(this.$data[t],s,e[s])}}var wt=$.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",Zi("attrs$"),{immediate:!0}),this.$watch("$listeners",Zi("listeners$"),{immediate:!0})}});function je(t,e={}){if(je.installed)return;je.installed=!0,$!==t&&X(`Multiple instances of Vue detected
|
14
14
|
See https://github.com/vuetifyjs/vuetify/issues/4068
|
15
15
|
|
16
16
|
If you're seeing "$attrs is readonly", it's caused by this`);const i=e.components||{},s=e.directives||{};for(const n in s){const r=s[n];t.directive(n,r)}(function n(r){if(r){for(const a in r){const o=r[a];o&&!n(o.$_vuetify_subcomponents)&&t.component(a,o)}return!0}return!1})(i),!t.$_vuetify_installed&&(t.$_vuetify_installed=!0,t.mixin({beforeCreate(){const n=this.$options;n.vuetify?(n.vuetify.init(this,this.$ssrContext),this.$vuetify=t.observable(n.vuetify.framework)):this.$vuetify=n.parent&&n.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}class mt{constructor(){this.framework={}}init(e,i){}}class Qi extends mt{constructor(){super(...arguments);this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,i,s){this.application[i][e]=s,this.update(i)}unregister(e,i){this.application[i][e]!=null&&(delete this.application[i][e],this.update(i))}update(e){this[e]=Object.values(this.application[e]).reduce((i,s)=>i+s,0)}}Qi.property="application";class Ne extends mt{constructor(e){super();this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:i,scrollBarWidth:s,thresholds:n}=e[Ne.property];this.mobileBreakpoint=i,this.scrollBarWidth=s,this.thresholds=n}init(){this.update(),typeof window!="undefined"&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(e=!1){const i=e?0:this.getClientHeight(),s=e?0:this.getClientWidth(),n=s<this.thresholds.xs,r=s<this.thresholds.sm&&!n,a=s<this.thresholds.md-this.scrollBarWidth&&!(r||n),o=s<this.thresholds.lg-this.scrollBarWidth&&!(a||r||n),h=s>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=i,this.width=s,this.xs=n,this.sm=r,this.md=a,this.lg=o,this.xl=h,this.xsOnly=n,this.smOnly=r,this.smAndDown=(n||r)&&!(a||o||h),this.smAndUp=!n&&(r||a||o||h),this.mdOnly=a,this.mdAndDown=(n||r||a)&&!(o||h),this.mdAndUp=!(n||r)&&(a||o||h),this.lgOnly=o,this.lgAndDown=(n||r||a||o)&&!h,this.lgAndUp=!(n||r||a)&&(o||h),this.xlOnly=h,!0){case n:this.name="xs";break;case r:this.name="sm";break;case a:this.name="md";break;case o:this.name="lg";break;default:this.name="xl";break}if(typeof this.mobileBreakpoint=="number"){this.mobile=s<parseInt(this.mobileBreakpoint,10);return}const c={xs:0,sm:1,md:2,lg:3,xl:4},u=c[this.name],d=c[this.mobileBreakpoint];this.mobile=u<=d}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return typeof document=="undefined"?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return typeof document=="undefined"?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}Ne.property="breakpoint";const ia=t=>t,sa=t=>t**2,na=t=>t*(2-t),ra=t=>t<.5?2*t**2:-1+(4-2*t)*t,aa=t=>t**3,oa=t=>--t**3+1,Ji=t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,la=t=>t**4,ha=t=>1- --t**4,ca=t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,ua=t=>t**5,da=t=>1+--t**5,pa=t=>t<.5?16*t**5:1+16*--t**5;var fa=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",linear:ia,easeInQuad:sa,easeOutQuad:na,easeInOutQuad:ra,easeInCubic:aa,easeOutCubic:oa,easeInOutCubic:Ji,easeInQuart:la,easeOutQuart:ha,easeInOutQuart:ca,easeInQuint:ua,easeOutQuint:da,easeInOutQuint:pa});function Ge(t){if(typeof t=="number")return t;let e=es(t);if(!e)throw typeof t=="string"?new Error(`Target element "${t}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${ts(t)} instead.`);let i=0;for(;e;)i+=e.offsetTop,e=e.offsetParent;return i}function ma(t){const e=es(t);if(e)return e;throw typeof t=="string"?new Error(`Container element "${t}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${ts(t)} instead.`)}function ts(t){return t==null?t:t.constructor.name}function es(t){return typeof t=="string"?document.querySelector(t):t&&t._isVue?t.$el:t instanceof HTMLElement?t:null}function gt(t,e={}){const i=l({container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0},e),s=ma(i.container);if(i.appOffset&>.framework.application){const h=s.classList.contains("v-navigation-drawer"),c=s.classList.contains("v-navigation-drawer--clipped"),{bar:u,top:d}=gt.framework.application;i.offset+=u,(!h||c)&&(i.offset+=d)}const n=performance.now();let r;typeof t=="number"?r=Ge(t)-i.offset:r=Ge(t)-Ge(s)-i.offset;const a=s.scrollTop;if(r===a)return Promise.resolve(r);const o=typeof i.easing=="function"?i.easing:fa[i.easing];if(!o)throw new TypeError(`Easing function "${i.easing}" not found.`);return new Promise(h=>requestAnimationFrame(function c(u){const d=u-n,g=Math.abs(i.duration?Math.min(d/i.duration,1):1);s.scrollTop=Math.floor(a+(r-a)*o(g));const b=(s===document.body?document.documentElement.clientHeight:s.clientHeight)+s.scrollTop>=s.scrollHeight;if(g===1||r>s.scrollTop&&b)return h(r);requestAnimationFrame(c)}))}gt.framework={},gt.init=()=>{};class is extends mt{constructor(){super();return gt}}is.property="goTo";function N(t,e="div",i){return $.extend({name:i||t.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:e}},render(s,{data:n,props:r,children:a}){return n.staticClass=`${t} ${n.staticClass||""}`.trim(),s(r.tag,n,a)}})}function Ue(t,e,i,s=!1){const n=r=>{i(r),t.removeEventListener(e,n,s)};t.addEventListener(e,n,s)}let vt=!1;try{if(typeof window!="undefined"){const t=Object.defineProperty({},"passive",{get:()=>{vt=!0}});window.addEventListener("testListener",t,t),window.removeEventListener("testListener",t,t)}}catch(t){console.warn(t)}function ga(t,e,i,s){t.addEventListener(e,i,vt?s:!1)}function Xe(t,e,i){const s=e.length-1;if(s<0)return t===void 0?i:t;for(let n=0;n<s;n++){if(t==null)return i;t=t[e[n]]}return t==null||t[e[s]]===void 0?i:t[e[s]]}function A(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime()||t!==Object(t)||e!==Object(e))return!1;const i=Object.keys(t);return i.length!==Object.keys(e).length?!1:i.every(s=>A(t[s],e[s]))}function y(t,e,i){return t==null||!e||typeof e!="string"?i:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),Xe(t,e.split("."),i))}function ot(t,e,i){if(e==null)return t===void 0?i:t;if(t!==Object(t))return i===void 0?t:i;if(typeof e=="string")return y(t,e,i);if(Array.isArray(e))return Xe(t,e,i);if(typeof e!="function")return i;const s=e(t,i);return typeof s=="undefined"?i:s}function et(t){return Array.from({length:t},(e,i)=>i)}function Ht(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return 0;const e=+window.getComputedStyle(t).getPropertyValue("z-index");return e||Ht(t.parentNode)}const va={"&":"&","<":"<",">":">"};function Ft(t){return t.replace(/[&<>]/g,e=>va[e]||e)}function ya(t,e){const i={};for(let s=0;s<e.length;s++){const n=e[s];typeof t[n]!="undefined"&&(i[n]=t[n])}return i}function m(t,e="px"){if(!(t==null||t===""))return isNaN(+t)?String(t):`${Number(t)}${e}`}function oe(t){return(t||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ss(t){return t!==null&&typeof t=="object"}const v=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function ba(t,e){const i=t.$vuetify.icons.component;if(e.startsWith("$")){const s=`$vuetify.icons.values.${e.split("$").pop().split(".").pop()}`,n=y(t,s,e);if(typeof n=="string")e=n;else return n}return i==null?e:{component:i,props:{icon:e}}}function le(t){return Object.keys(t)}const $a=/-(\w)/g,ns=t=>t.replace($a,(e,i)=>i?i.toUpperCase():"");function Sa(t,e){const i=[];for(let s=0;s<e.length;s++)t.indexOf(e[s])<0&&i.push(e[s]);return i}function he(t){return t.charAt(0).toUpperCase()+t.slice(1)}function xa(t,e,i){const s=e[0],n=[];let r;for(let a=0;a<t.length;a++){const o=t[a],h=y(o,s,null);r!==h&&(r=h,n.push({name:h!=null?h:"",items:[]})),n[n.length-1].items.push(o)}return n}function O(t){return t!=null?Array.isArray(t)?t:[t]:[]}function Ca(t,e,i,s,n){if(e===null||!e.length)return t;const r=new Intl.Collator(s,{sensitivity:"accent",usage:"sort"});return t.sort((a,o)=>{for(let h=0;h<e.length;h++){const c=e[h];let u=y(a,c),d=y(o,c);if(i[h]&&([u,d]=[d,u]),n&&n[c]){const g=n[c](u,d);if(!g)continue;return g}if(!(u===null&&d===null)){if(u instanceof Date&&d instanceof Date)return u.getTime()-d.getTime();if([u,d]=[u,d].map(g=>(g||"").toString().toLocaleLowerCase()),u!==d)return!isNaN(u)&&!isNaN(d)?Number(u)-Number(d):r.compare(u,d)}}return 0})}function Ke(t,e,i){return t!=null&&e!=null&&typeof t!="boolean"&&t.toString().toLocaleLowerCase().indexOf(e.toLocaleLowerCase())!==-1}function wa(t,e){return!e||(e=e.toString().toLowerCase(),e.trim()==="")?t:t.filter(i=>Object.keys(i).some(s=>Ke(y(i,s),e)))}function rs(t,e,i){if(t.$slots.hasOwnProperty(e)&&t.$scopedSlots.hasOwnProperty(e)&&t.$scopedSlots[e].name)return i?"v-slot":"scoped";if(t.$slots.hasOwnProperty(e))return"normal";if(t.$scopedSlots.hasOwnProperty(e))return"scoped"}function ka(t,e){let i=0;return(...s)=>{clearTimeout(i),i=setTimeout(()=>t(...s),e)}}function Ia(t,e){let i=!1;return(...s)=>{if(!i)return i=!0,setTimeout(()=>i=!1,e),t(...s)}}function ce(t,e){return Object.keys(e).filter(i=>i.startsWith(t)).reduce((i,s)=>(i[s.replace(t,"")]=e[s],i),{})}function x(t,e="default",i,s=!1){if(t.$scopedSlots.hasOwnProperty(e))return t.$scopedSlots[e](i instanceof Function?i():i);if(t.$slots.hasOwnProperty(e)&&(!i||s))return t.$slots[e]}function qe(t,e=0,i=1){return Math.max(e,Math.min(i,t))}function Ze(t,e,i="0"){return t+i.repeat(Math.max(0,e-t.length))}function Ta(t,e=1){const i=[];let s=0;for(;s<t.length;)i.push(t.substr(s,e)),s+=e;return i}function as(t,e=!1){const i=e?1024:1e3;if(t<i)return`${t} B`;const s=e?["Ki","Mi","Gi"]:["k","M","G"];let n=-1;for(;Math.abs(t)>=i&&n<s.length-1;)t/=i,++n;return`${t.toFixed(1)} ${s[n]}B`}function os(t){return t?Object.keys(t).reduce((e,i)=>(e[ns(i)]=t[i],e),{}):{}}function Nt(t={},e={}){for(const i in e){const s=t[i],n=e[i];if(ss(s)&&ss(n)){t[i]=Nt(s,n);continue}t[i]=n}return t}function ls(t,e){return Array(t).fill(e)}function hs(t){if(t.composedPath)return t.composedPath();const e=[];let i=t.target;for(;i;){if(e.push(i),i.tagName==="HTML")return e.push(document),e.push(window),e;i=i.parentElement}return e}const _a={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",success:"M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",warning:"M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z",error:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"};var Aa=_a;const Da={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"};var Ba=Da;const Ea={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"};var Ma=Ea;const Va={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"};var cs=Va;const La={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};var Oa=La;function Pa(t,e){const i={};for(const s in e)i[s]={component:t,props:{icon:e[s].split(" fa-")}};return i}var Ha=Pa("font-awesome-icon",cs),Fa=Object.freeze({mdiSvg:Aa,md:Ba,mdi:Ma,fa:cs,fa4:Oa,faSvg:Ha});class We extends mt{constructor(e){super();const{iconfont:i,values:s,component:n}=e[We.property];this.component=n,this.iconfont=i,this.values=Nt(Fa[i],s)}}We.property="icons";const us="$vuetify.",ds=Symbol("Lang fallback");function ps(t,e,i=!1,s){const n=e.replace(us,"");let r=y(t,n,ds);return r===ds&&(i?(X(`Translation key "${n}" not found in fallback`),r=e):(V(`Translation key "${n}" not found, falling back to default`),r=ps(s,e,!0,s))),r}class ze extends mt{constructor(e){super();this.defaultLocale="en";const{current:i,locales:s,t:n}=e[ze.property];this.current=i,this.locales=s,this.translator=n||this.defaultTranslator}currentLocale(e){const i=this.locales[this.current],s=this.locales[this.defaultLocale];return ps(i,e,!1,s)}t(e,...i){return e.startsWith(us)?this.translator(e,...i):this.replace(e,i)}defaultTranslator(e,...i){return this.replace(this.currentLocale(e),i)}replace(e,i){return e.replace(/\{(\d+)\}/g,(s,n)=>String(i[+n]))}}ze.property="lang";var td="",Na={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}}};const Wa={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:Na},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class fs extends mt{constructor(e,i){super();const s=Nt({},Wa),{userPreset:n}=i,o=n,{preset:r={}}=o,a=Z(o,["preset"]);r.preset!=null&&V("Global presets do not support the **preset** option, it can be safely omitted"),i.preset=Nt(Nt(s,r),a)}}fs.property="presets";const za=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Ra=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,Ya=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ja=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function ms(t){const e=Array(3),i=Ra,s=za;for(let n=0;n<3;++n)e[n]=Math.round(qe(i(s[n][0]*t[0]+s[n][1]*t[1]+s[n][2]*t[2]))*255);return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function ue(t){const e=[0,0,0],i=ja,s=Ya,n=i((t>>16&255)/255),r=i((t>>8&255)/255),a=i((t>>0&255)/255);for(let o=0;o<3;++o)e[o]=s[o][0]*n+s[o][1]*r+s[o][2]*a;return e}function gs(t){return!!t&&!!t.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function Qe(t){let e;if(typeof t=="number")e=t;else if(typeof t=="string"){let i=t[0]==="#"?t.substring(1):t;i.length===3&&(i=i.split("").map(s=>s+s).join("")),i.length!==6&&V(`'${t}' is not a valid rgb color`),e=parseInt(i,16)}else throw new TypeError(`Colors can only be numbers or strings, recieved ${t==null?t:t.constructor.name} instead`);return e<0?(V(`Colors cannot be negative: '${t}'`),e=0):(e>16777215||isNaN(e))&&(V(`'${t}' is not a valid rgb color`),e=16777215),e}function Wt(t){let e=t.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function Ga(t){return Wt(Qe(t))}function de(t){const{h:e,s:i,v:s,a:n}=t,r=o=>{const h=(o+e/60)%6;return s-s*i*Math.max(Math.min(h,4-h,1),0)},a=[r(5),r(3),r(1)].map(o=>Math.round(o*255));return{r:a[0],g:a[1],b:a[2],a:n}}function vs(t){if(!t)return{h:0,s:1,v:1,a:1};const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),r=Math.min(e,i,s);let a=0;n!==r&&(n===e?a=60*(0+(i-s)/(n-r)):n===i?a=60*(2+(s-e)/(n-r)):n===s&&(a=60*(4+(e-i)/(n-r)))),a<0&&(a=a+360);const o=n===0?0:(n-r)/n,h=[a,o,n];return{h:h[0],s:h[1],v:h[2],a:t.a}}function Je(t){const{h:e,s:i,v:s,a:n}=t,r=s-s*i/2,a=r===1||r===0?0:(s-r)/Math.min(r,1-r);return{h:e,s:a,l:r,a:n}}function Ua(t){const{h:e,s:i,l:s,a:n}=t,r=s+i*Math.min(s,1-s),a=r===0?0:2-2*s/r;return{h:e,s:a,v:r,a:n}}function ys(t){return`rgba(${t.r}, ${t.g}, ${t.b}, ${t.a})`}function Xa(t){return ys(p(l({},t),{a:1}))}function bs(t){const e=i=>{const s=Math.round(i).toString(16);return("00".substr(0,2-s.length)+s).toUpperCase()};return`#${[e(t.r),e(t.g),e(t.b),e(Math.round(t.a*255))].join("")}`}function Ka(t){const e=Ta(t.slice(1),2).map(i=>parseInt(i,16));return{r:e[0],g:e[1],b:e[2],a:Math.round(e[3]/255*100)/100}}function qa(t){const e=Ka(t);return vs(e)}function $s(t){return bs(de(t))}function ti(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length===6?t=Ze(t,8,"F"):t=Ze(Ze(t,6),8,"F"),`#${t}`.toUpperCase().substr(0,9)}function Ss(t){return(t.r<<16)+(t.g<<8)+t.b}function xs(t,e){const[,i]=ue(Ss(t)),[,s]=ue(Ss(e));return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}const pe=.20689655172413793,Za=t=>t>pe**3?Math.cbrt(t):t/(3*pe**2)+4/29,Qa=t=>t>pe?t**3:3*pe**2*(t-4/29);function Cs(t){const e=Za,i=e(t[1]);return[116*i-16,500*(e(t[0]/.95047)-i),200*(i-e(t[2]/1.08883))]}function ws(t){const e=Qa,i=(t[0]+16)/116;return[e(i+t[1]/500)*.95047,e(i),e(i-t[2]/200)*1.08883]}function ks(t,e=!1,i=!0){const o=t,{anchor:s}=o,n=Z(o,["anchor"]),r=Object.keys(n),a={};for(let h=0;h<r.length;++h){const c=r[h],u=t[c];u!=null&&(i?e?(c==="base"||c.startsWith("lighten")||c.startsWith("darken"))&&(a[c]=Ga(u)):typeof u=="object"?a[c]=ks(u,!0,i):a[c]=io(c,Qe(u)):a[c]={base:Wt(Qe(u))})}return e||(a.anchor=s||a.base||a.primary.base),a}const Ja=(t,e)=>`
|
package/dist/assets/vuetify.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./vuetify.
|
2
|
-
export { default } from "./vuetify.
|
1
|
+
export * from "./vuetify.d21163.js";
|
2
|
+
export { default } from "./vuetify.d21163.js";
|
package/dist/index.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
rel="stylesheet"
|
8
8
|
href="https://fonts.googleapis.com/css?family=Titillium+Web"
|
9
9
|
/>
|
10
|
-
<script type="module" crossorigin src="./assets/index.
|
10
|
+
<script type="module" crossorigin src="./assets/index.0be2842f.js"></script>
|
11
11
|
<link rel="stylesheet" href="./assets/index.60dea538.css">
|
12
12
|
</head>
|
13
13
|
<body style="height: 100vH;">
|
package/index.js
CHANGED
@@ -1,18 +1,70 @@
|
|
1
1
|
import './src/setup.js';
|
2
2
|
import './src/styles/main.scss';
|
3
3
|
|
4
|
-
export {
|
5
|
-
export {
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
export { default as StyleSelector } from './src/actions/styleSelector.vue';
|
5
|
+
export {
|
6
|
+
createMapButtonAction,
|
7
|
+
createToggleAction,
|
8
|
+
createOverviewMapAction,
|
9
|
+
createModalAction,
|
10
|
+
createLinkAction,
|
11
|
+
createGoToViewpointAction,
|
12
|
+
} from './src/actions/actionHelper.js';
|
13
|
+
export {
|
14
|
+
createStateRefAction,
|
15
|
+
} from './src/actions/stateRefAction.js';
|
16
|
+
|
9
17
|
export { default as EmptyCmpt } from './src/application/empty-cmp.vue';
|
18
|
+
export { default as Navbar } from './src/application/Navbar.vue';
|
19
|
+
export { default as VcsApp } from './src/application/VcsApp.vue';
|
20
|
+
export { default as VcsMap } from './src/application/VcsMap.vue';
|
21
|
+
|
22
|
+
export {
|
23
|
+
default as ContentTreeCollection,
|
24
|
+
createContentTreeCollection,
|
25
|
+
} from './src/contentTree/contentTreeCollection.js';
|
10
26
|
export { default as ContentTreeItem } from './src/contentTree/contentTreeItem.js';
|
11
27
|
export { default as GroupContentTreeItem } from './src/contentTree/groupContentTreeItem.js';
|
12
|
-
export {
|
28
|
+
export {
|
29
|
+
default as LayerContentTreeItem,
|
30
|
+
setViewpointAction,
|
31
|
+
getStateFromLayer,
|
32
|
+
} from './src/contentTree/layerContentTreeItem.js';
|
13
33
|
export { default as LayerGroupContentTreeItem } from './src/contentTree/layerGroupContentTreeItem.js';
|
34
|
+
export { default as LayerTree } from './src/contentTree/LayerTree.vue';
|
14
35
|
export { default as NodeContentTreeItem } from './src/contentTree/nodeContentTreeItem.js';
|
15
36
|
export { default as ObliqueCollectionContentTreeItem } from './src/contentTree/obliqueCollectionContentTreeItem.js';
|
16
37
|
export { default as SubContentTreeItem } from './src/contentTree/subContentTreeItem.js';
|
17
38
|
export { default as VcsObjectContentTreeItem } from './src/contentTree/vcsObjectContentTreeItem.js';
|
18
39
|
export { default as ViewPointContentTreeItem } from './src/contentTree/viewPointContentTreeItem.js';
|
40
|
+
|
41
|
+
export { default as WindowComponent } from './src/manager/window/WindowComponent.vue';
|
42
|
+
export { default as WindowComponentHeader } from './src/manager/window/WindowComponentHeader.vue';
|
43
|
+
export { default as VcsWindowManager } from './src/manager/window/WindowManager.vue';
|
44
|
+
export { WindowManager, WindowSlot, WindowPositions } from './src/manager/window/windowManager.js';
|
45
|
+
|
46
|
+
export { default as ButtonManager, ButtonLocation, getActionsByLocation } from './src/manager/buttonManager.js';
|
47
|
+
|
48
|
+
export { default as MapNavCompass } from './src/navigation/mapNavCompass.vue';
|
49
|
+
export { default as MapNavigation } from './src/navigation/mapNavigation.vue';
|
50
|
+
export { default as ObliqueRotation } from './src/navigation/obliqueRotation.vue';
|
51
|
+
export { default as OrientationToolsButton } from './src/navigation/orientationToolsButton.vue';
|
52
|
+
export { getWindowComponentOptions, default as OverviewMap } from './src/navigation/overviewMap.js';
|
53
|
+
export { default as OverviewMapClickedInteraction } from './src/navigation/overviewMapClickedInteraction.js';
|
54
|
+
export { default as TiltSlider } from './src/navigation/tiltSlider.vue';
|
55
|
+
export { default as VcsCompass } from './src/navigation/vcsCompass.vue';
|
56
|
+
export { default as VcsZoomButton } from './src/navigation/vcsZoomButton.vue';
|
57
|
+
|
58
|
+
export { i18n } from './src/vuePlugins/i18n.js';
|
59
|
+
export { vuetify } from './src/vuePlugins/vuetify.js';
|
60
|
+
export { default as initApp } from './src/init.js';
|
61
|
+
export {
|
62
|
+
vcsAppSymbol,
|
63
|
+
pluginFactorySymbol,
|
64
|
+
isValidPackageName,
|
65
|
+
loadPlugin,
|
66
|
+
serializePlugin,
|
67
|
+
deserializePlugin,
|
68
|
+
} from './src/pluginHelper.js';
|
69
|
+
export { default as VcsUiApp } from './src/vcsUiApp.js';
|
70
|
+
|
package/package.json
CHANGED
package/dist/assets/ui.c4abb7.js
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
|
2
|
-
function loadCss(href) {
|
3
|
-
return new Promise((resolve, reject) => {
|
4
|
-
const elem = document.createElement('link');
|
5
|
-
elem.rel = 'stylesheet';
|
6
|
-
elem.href = href;
|
7
|
-
elem.defer = false;
|
8
|
-
elem.async = false;
|
9
|
-
elem.onload = resolve;
|
10
|
-
elem.onerror = reject;
|
11
|
-
document.head.appendChild(elem);
|
12
|
-
});
|
13
|
-
} await loadCss('./assets/ui.c4abb7.css');var Mr=Object.defineProperty,$r=Object.defineProperties;var Or=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var Nr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable;var ze=(n,t,e)=>t in n?Mr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,E=(n,t)=>{for(var e in t||(t={}))Nr.call(t,e)&&ze(n,e,t[e]);if(qe)for(var e of qe(t))Fr.call(t,e)&&ze(n,e,t[e]);return n},F=(n,t)=>$r(n,Or(t));import L from"./vue.f0d3bf.js";import kr,{reactive as Q,ref as y,computed as $,onMounted as Ye,nextTick as Pr,onUnmounted as vt,inject as ct,provide as Vr,watch as Zt}from"./vue-composition-api.ff8a0e.js";import{VcsEvent as K,MapCollection as Je,ViewPoint as Qt,Collection as Ze,AbstractInteraction as Rr,EventType as Dr,ModificationKeyType as jr,OpenlayersMap as Kt,VectorStyleItem as gt,deserializeLayer as Wr,EventHandler as Br,CesiumMap as Xt,ObliqueMap as yt,Extent as Ur,mercatorProjection as bt,DataState as Hr,emptyStyle as Qe,VectorLayer as $t,Projection as Ke,getVcsAppById as Gr,ClassRegistry as qr,makeOverrideCollection as Xe,getObjectFromClassRegistry as zr,IndexedCollection as Yr,VcsApp as Jr,OverrideClassRegistry as Zr,contextIdSymbol as Qr,destroyCollection as tn,Context as Kr,DefaultObliqueCollection as Xr}from"./core.ba64c8.js";import en,{VSheet as wt,VDivider as Ot,VIcon as rt,VBtn as te,VCard as ee,VList as nn,VListItemGroup as ti,VListItem as rn,VListItemAction as ei,VListItemContent as sn,VListItemTitle as ni,VToolbar as ri,VToolbarItems as ne,VAppBar as ii,VContainer as on,VRow as lt,VCol as re,VMenu as si,VSlider as oi,VApp as ai,VMain as ci,VFooter as li,VListItemIcon as ui,VChip as hi}from"./vuetify.69b350.js";import{VcsButton as ie,VcsActionButtonList as fi,VcsActionList as pi,Icons as di,VcsTooltip as an,VcsTreeview as _i,VcsSelect as mi}from"./uicomponents.5e36c1.js";import{ol$geom$Point as vi,ol$Feature as gi,ol$source$Vector as se,ol$Observable$unByKey as oe,ol$math$clamp as yi}from"./ol.5c9201.js";import{Color as bi,Math as wi}from"./cesium.2a963a.js";L.config.productionTip=!1,L.use(kr),window.CESIUM_BASE_URL="./assets/cesium/";var Lc="",Nt,Si=new Uint8Array(16);function Ei(){if(!Nt&&(Nt=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Nt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nt(Si)}var Ti=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ii(n){return typeof n=="string"&&Ti.test(n)}for(var x=[],ae=0;ae<256;++ae)x.push((ae+256).toString(16).substr(1));function Ci(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(x[n[t+0]]+x[n[t+1]]+x[n[t+2]]+x[n[t+3]]+"-"+x[n[t+4]]+x[n[t+5]]+"-"+x[n[t+6]]+x[n[t+7]]+"-"+x[n[t+8]]+x[n[t+9]]+"-"+x[n[t+10]]+x[n[t+11]]+x[n[t+12]]+x[n[t+13]]+x[n[t+14]]+x[n[t+15]]).toLowerCase();if(!Ii(e))throw TypeError("Stringified UUID is invalid");return e}function St(n,t,e){n=n||{};var r=n.random||(n.rng||Ei)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){e=e||0;for(var i=0;i<16;++i)t[e+i]=r[i];return t}return Ci(r)}function xi(n,t){if(n!=null){const e=Number.parseFloat(String(n));if(e!=null&&!Number.isNaN(e))return e}return t}function Ai(n,t){return n==null?t:typeof n=="boolean"?n:n===1?!0:n===0?!1:typeof n=="string"&&(n.toLowerCase()==="true"||n.toLowerCase()==="1")?!0:typeof n=="string"&&(n.toLowerCase()==="false"||n.toLowerCase()==="0")?!1:t}function Li(n,t,e){if(n!=null){const r=Object.values(t).find(i=>i==n);if(r!=null)return r}return e}const Et=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"],[Symbol,"symbol"]];function Ft(n){const t={};if(!n||t.toString(n)!=="[object Object]")return!1;const e=Object.getPrototypeOf(n);if(!e)return!0;const r=t.hasOwnProperty,i=r.call(e,"constructor")&&e.constructor;return typeof i=="function"&&r.toString.call(i)===r.toString.call(Object)}function V(n,t){if(n===null)return"null";if(typeof n=="undefined")return"undefined";if(t)return typeof n;let e;if(Array.isArray(n))e=`[${n.map(i=>V(i,t)).join(",")}]`;else try{e=JSON.stringify(n)}catch{e=typeof n}return e=e||typeof n,e.length>20?`${e.substr(0,20)}...`:e}function Mi(n,t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"?n===t?!1:`Expected ${V(n)} to equal ${t.toString()}`:null}function $i(n,t,e){if(Array.isArray(t)){if(t.length!==1)throw new Error("Array patterns may only have on type");if(Array.isArray(n)){let r=!1;return n.findIndex(s=>{try{g(s,t[0],e)}catch(o){r=o.message.replace(/Match failed:\s/,"")}return r})>-1?`${r} in ${V(n)}`:!1}return`Expected ${V(n)} to be an Array`}return null}function ce(n,t,e){const r=e?`${e}.`:"";if(!Ft(n))return`Expected ${V(n)} to be a plain Object`;let s=!1;const o=Object.keys(t).find(a=>{const c=n[a];if(Ft(t[a]))s=ce(c,t[a],r+a);else try{g(c,t[a])}catch(l){s=l.message.replace(/Match failed:\s/,"")}return s});return o?`${s} in object.${r}${o}`:!1}function Oi(n,t){if(t===Number)return Number.isFinite(n)?!1:`expected ${V(n)} to be a number, excluding NaN`;for(let e=Et.length;e--;)if(t===Et[e][0])return typeof n===Et[e][1]?!1:`expected ${V(n)} to be a ${Et[e][1]}`;return null}function le(n){if(n===null)return"null";const t=Et.find(i=>i[0]===n);if(t)return t[1];let e=n.toString();if(n.className)return n.className;const r=e.match(/function (.*)\(/);if(r&&r.length>1)return r[1];if(Ft(n)){const i={};Object.keys(n).forEach(s=>{i[s]=le(n[s])});try{e=`Object of ${JSON.stringify(i)}`}catch{e="Object"}}return e}function cn(n,t,e){const r=e?`${e}.`:"";let i=!1;return Object.keys(n).find(o=>{if(Ft(t[o])){const a=n[o];i=cn(a,t[o],r+o)}else t[o]||(i=`Found additional key ${r}${o}`);return i=i?i.replace(/\sin.*/,""):!1,i})?`${i} in ${V(n)}`:!1}function Ni(n,t,e){const r=function(o,a){if(a==null)return o===a?!1:`Expected ${V(o)} to be ${a}`;const c=Oi(o,a);if(c!==null)return c;const l=Mi(o,a);if(l!==null)return l;if(Array.isArray(a))return $i(o,a,e);if(a instanceof Function)return o instanceof a?!1:`Expected ${V(o,!0)} to be of Type ${le(a)}`;if(a===Object)return ce(o,{});if(typeof a!="object")throw new Error(`Cannot handler pattern ${a}`);const u=ce(o,a);return u||(e?cn(o,a):!1)};let i;return Array.isArray(t)&&t.length>1?t.every(o=>r(n,o))&&(i=`Expected ${V(n)} to be a ${t.map(o=>le(o)).join(" or ")}`):i=r(n,t),i}function g(n,t,e){const r=Ni(n,t,e);if(r)throw new Error(`Match failed: ${r}`);return!1}function ut(n,t,e){const r=[null,void 0];return Array.isArray(t)&&t.length>1?t.forEach(i=>{r.push(i)}):r.push(t),g(n,r.reverse(),e)}const S={OFF:1,ERROR:2,WARN:4,INFO:8,DEBUG:16},z={ERROR:0,WARN:0,INFO:0,DEBUG:0};z.ERROR=S.ERROR|S.WARN|S.INFO|S.DEBUG,z.WARN=S.WARN|S.INFO|S.DEBUG,z.INFO=S.INFO|S.DEBUG,z.DEBUG=S.DEBUG;const Tt={useTimestamp:!1,logLevel:S.INFO},It=new Map;It.set(S.ERROR,"error"),It.set(S.WARN,"warn"),It.set(S.INFO,"info"),It.set(S.DEBUG,"log");class ln{constructor(t){this.className=t,this.deprecations=new Map}error(t,...e){Tt.logLevel&z.ERROR&&this._log(String(t),S.ERROR,e)}warning(t,...e){Tt.logLevel&z.WARN&&this._log(String(t),S.WARN,e)}deprecate(t,e){const r=String(t),i=e?String(e):null;if(!this.deprecations.has(r)){this.deprecations.set(r,i||null);let s=`${r} has been deprecated and will be removed`;i&&(s=`${s}. ${i}`),this.warning(s)}}info(t,...e){Tt.logLevel&z.INFO&&this._log(String(t),S.INFO,e)}debug(t,...e){Tt.logLevel&z.DEBUG&&this._log(String(t),S.DEBUG,e)}log(t,...e){Tt.logLevel&z.DEBUG&&this._log(String(t),S.DEBUG,e)}_log(t,e,r){let i=t;this.className&&(i=`[${this.className}] ${i}`),console[It.get(e)](i,...r),e&S.ERROR&&(console.group(),console.trace(),console.groupEnd())}}const ue=new Map;let he;function Fi(){return he||(he=new ln),he}function ki(n){const t=new ln(n);return ue.set(n,t),t}function un(n){return n?ue.has(n)?ue.get(n):ki(n):Fi()}function kt(){return un("plugin-helpers")}const R=Symbol("vcsApp"),it=Symbol("pluginFactory");function Pi(n){return g(n,String),/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(n)}async function Vi(n,t,e,r="https://plugins.virtualcitymap.de/"){let i=e.entry;i?/^(https?:\/\/|\/)/.test(i)?i==="_dev"&&(i=`/${t}.js`):i=`${window.location.origin}${window.location.pathname.replace(/\/?$/,"/")}${i}`:i=`${r.replace(/\/?$/,"")}/${t}/${e.version||"*"}/index.js`;try{let s;if(window.VcsPluginLoaderFunction?s=await window.VcsPluginLoaderFunction(t,i):s=await import(i),s.default==null||typeof s.default!="function")return kt().error(`plugin ${t} does not provide a default exported function`),null;const o=await s.default(e);return o.name?(o[it]=s.default,o):(kt().error(`plugin ${t} does not expose a name`),o.destroy&&o.destroy(),null)}catch(s){kt().error(`failed to load plugin ${t}`),kt().error(s)}return null}function Ri(n){const t=n.toJSON?n.toJSON():{};return n[it]&&(t[it]=n[it]),t}async function Di(n){const t=await n[it](n);return t[it]=n[it],t}const A={STATIC:"static",DYNAMIC_LEFT:"dynamicLeft",DYNAMIC_RIGHT:"dynamicRight",DETACHED:"detached"},D={TOP_LEFT:{left:"0px",top:"0px"},TOP_LEFT2:{left:"320px",top:"0px"},TOP_RIGHT:{right:"0px",top:"0px"},DETACHED:{left:"200px",top:"200px"}};function ht(n){return typeof n=="number"?`${n}px`:n}function hn(n,t={}){let e=ht(n.left)||"unset";const r=ht(n.right)||"unset";let i=ht(n.top)||"unset";const s=ht(n.bottom)||"unset";let o=ht(n.width)||"auto",a=ht(n.height)||"auto";return e!=="unset"&&r!=="unset"?o="auto":o==="auto"&&(o="320px"),e==="unset"&&r==="unset"&&(e="200px"),i!=="unset"&&s!=="unset"&&(a="auto"),i==="unset"&&s==="unset"&&(i="200px"),Object.assign(t,{left:e,right:r,top:i,bottom:s,width:o,height:a})}function ji(n,t,e="mapElement"){let r=e;typeof r=="string"&&(r=document.getElementsByClassName(e).item(0));const{left:i,top:s}=r.getBoundingClientRect();return{left:n-i,top:t-s}}class fn{constructor(){this.added=new K,this.removed=new K,this.componentIds=Q([]),this._windowComponents=new Map}get(t){if(this.has(t))return this._windowComponents.get(t)}has(t){return this._windowComponents.has(t)}remove(t){const e=this._windowComponents.get(t);if(e){const r=this.componentIds.indexOf(t);this.componentIds.splice(r,1),this._windowComponents.delete(t),this._handleSlotsChanged(e.slot.value),this.removed.raiseEvent(e)}}setWindowPositionOptions(t,e){const r=this._windowComponents.get(t);r&&(e===D.TOP_LEFT||e===D.TOP_LEFT2||e===D.TOP_RIGHT||(r.slot.value=A.DETACHED),hn(e,r.position))}_handleSlotsChanged(t){if(t===A.STATIC){const e=this._findWindowBySlot(A.STATIC),r=this._findWindowBySlot(A.DYNAMIC_LEFT);e&&r?this.setWindowPositionOptions(r.id,D.TOP_LEFT2):!e&&r&&this.setWindowPositionOptions(r.id,D.TOP_LEFT)}}_findWindowBySlot(t){return Array.from(this._windowComponents.values()).find(e=>e.slot.value===t)}_getPositionOptionsForSlot(t,e){return t===A.STATIC?D.TOP_LEFT:t===A.DYNAMIC_LEFT?this._findWindowBySlot(A.STATIC)?D.TOP_LEFT2:D.TOP_LEFT:t===A.DYNAMIC_RIGHT?D.TOP_RIGHT:e||D.DETACHED}_removeWindowAtSlot(t){if(t!==A.DETACHED){const e=this._findWindowBySlot(t);e&&this.remove(e.id)}}add(t,e){var B,Re,De,je,We,Be,Ue,He,Ge;if(g(e,[String,R]),t.id&&this.has(t.id))throw new Error(`A window with id ${t.id} has already been registered.`);const r=t.id||St(),i=((B=t.slot)==null?void 0:B.value)||t.slot,s=Li(i,A,A.DETACHED),o=this._getPositionOptionsForSlot(s,t.position),a=hn(o),c=y(s),{component:l,headerComponent:u}=t,h=E({},(Re=t==null?void 0:t.state)==null?void 0:Re.styles),f=Array.isArray((De=t==null?void 0:t.state)==null?void 0:De.classes)?[...(We=(je=t==null?void 0:t.state)==null?void 0:je.classes)!=null?We:[]]:E({},(Be=t==null?void 0:t.state)==null?void 0:Be.classes),d=Q({id:r,owner:e,hideHeader:!!((Ue=t==null?void 0:t.state)==null?void 0:Ue.hideHeader),headerTitle:(He=t==null?void 0:t.state)==null?void 0:He.headerTitle,headerIcon:(Ge=t==null?void 0:t.state)==null?void 0:Ge.headerIcon,classes:f,styles:h}),_=t.props||{},v=Q(a),w={get id(){return r},get state(){return d},get component(){return l},get headerComponent(){return u},get slot(){return c},get position(){return v},get props(){return _}};return this._removeWindowAtSlot(s),this._windowComponents.set(r,w),this.componentIds.push(r),this._handleSlotsChanged(s),this.added.raiseEvent(w),w}bringWindowToTop(t){if(this.has(t)){const e=this.componentIds.indexOf(t);e>=0&&e!==this.componentIds.length-1&&(this.componentIds.push(t),this.componentIds.splice(e,1))}}removeOwner(t){[...this.componentIds].forEach(r=>{const{state:i}=this.get(r);t===i.owner&&this.remove(r)})}clear(){[...this.componentIds].forEach(e=>{this.remove(e)})}destroy(){this.added.destroy(),this.removed.destroy(),this.componentIds.splice(0),this._windowComponents.clear()}}function Wi(n,t,e=[]){const r=[R,...e];return r.indexOf(t.owner)-r.indexOf(n.owner)}function Bi(n,t,e=[],r=Wi){return n.filter(i=>i.location===t).sort((i,s)=>r(i,s,e)).map(i=>i.action)}const U={MAP:0,CONTENT:1,TOOL:2,PROJECT:3,SHARE:4,MENU:5};class pn{constructor(){this.added=new K,this.removed=new K,this.componentIds=Q([]),this._buttonComponents=new Map}get(t){if(this.has(t))return this._buttonComponents.get(t)}has(t){return this._buttonComponents.has(t)}remove(t){const e=this._buttonComponents.get(t);if(e){const r=this.componentIds.indexOf(t);this.componentIds.splice(r,1),this._buttonComponents.delete(t),this.removed.raiseEvent(e)}}add(t,e){if(ut(t.id,String),g(t.location,Object.values(U)),g(t.action,{name:String,title:[void 0,String],icon:[void 0,String],callback:Function,active:[void 0,Boolean]}),g(e,[String,R]),t.id&&this.has(t.id))throw new Error(`A button with id ${t.id} has already been registered.`);const r=t.id||St(),i={get id(){return r},get owner(){return e},get location(){return t.location},get action(){return Q(t.action)}};return this._buttonComponents.set(r,i),this.componentIds.push(r),this.added.raiseEvent(i),i}removeOwner(t){[...this.componentIds].forEach(r=>{t===this.get(r).owner&&this.remove(r)})}clear(){[...this.componentIds].forEach(e=>{this.remove(e)})}destroy(){this.added.destroy(),this.removed.destroy(),this.componentIds.splice(0),this._buttonComponents.clear()}}function dn(n,t,e){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,String),g(e,Je);const r=F(E({},n),{active:!1,callback(){e.setActiveMap(t)}}),i=e.mapActivated.addEventListener(s=>{r.active=s.name===t});return{action:r,destroy:i}}function fe(n,t,e,r){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,{id:String}),g(r,[String,R]);const i=F(E({},n),{active:e.has(t.id),callback(){if(this.active)e.remove(t.id);else return e.add(t,r);return null}}),s=[e.added.addEventListener(({id:a})=>{a===t.id&&(i.active=!0)}),e.removed.addEventListener(({id:a})=>{a===t.id&&(i.active=!1)})];return{action:i,destroy:()=>{s.forEach(a=>{a()})}}}function _n(n,t,e){const{action:r,destroy:i}=fe({name:"overviewMapToggle",icon:"$vcsMap",title:"Overview Map"},t,e,R),s=[e.added.addEventListener(async({id:a})=>{a===t.id&&await n.activate()}),e.removed.addEventListener(({id:a})=>{a===t.id&&n.deactivate()})];return{action:r,destroy:()=>{i(),s.forEach(a=>{a()})}}}function mn(n,t,e,r){g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(r,[String,R]);const i=St(),s=u=>{if(!document.getElementById(i)){const f=document.createElement("div");f.id=i,Object.assign(f.style,{position:"absolute",zIndex:u,top:0,bottom:0,left:0,right:0}),f.onclick=()=>{e.remove(i)},document.body.appendChild(f)}},o=()=>{const u=document.getElementById(i);u&&u.parentElement.removeChild(u)},a=F(E({},n),{active:!1,callback(u){if(this.active)this.active=!1,e.remove(i);else{this.active=!0;const{left:h,top:f,width:d}=u.currentTarget.getBoundingClientRect(),_=ji(h+d,f),v=F(E({},t==null?void 0:t.state),{hideHeader:!0});e.add(F(E({position:_},t),{id:i,state:v}),r),s(e.componentIds.length-2)}return null}}),c=[e.removed.addEventListener(({id:u})=>{u===i&&(a.active=!1,o())}),o];return{action:a,destroy:()=>{c.forEach(u=>{u()})}}}function vn(n,t){return g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,String),F(E({},n),{callback(){const e=document.createElement("a");e.href=t,e.target="_blank",e.click()}})}function pe(n,t,e,r){return g(n,{name:String,icon:[void 0,String],title:[void 0,String]}),g(t,[Qt,String]),g(e,Ze),g(r,Je),F(E({},n),{async callback(){let i=t;typeof i=="string"&&(i=e.getByKey(t)),i&&await r.activeMap.gotoViewPoint(i)}})}/*! *****************************************************************************
|
14
|
-
Copyright (c) Microsoft Corporation.
|
15
|
-
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
17
|
-
purpose with or without fee is hereby granted.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
26
|
-
***************************************************************************** */var de=function(n,t){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])},de(n,t)};function O(n,t){de(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Ct(n){return typeof n=="function"}var gn=!1,j={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var t=new Error;""+t.stack}gn=n},get useDeprecatedSynchronousErrorHandling(){return gn}};function ft(n){setTimeout(function(){throw n},0)}var Pt={closed:!0,next:function(n){},error:function(n){if(j.useDeprecatedSynchronousErrorHandling)throw n;ft(n)},complete:function(){}},yn=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function bn(n){return n!==null&&typeof n=="object"}var Ui=function(){function n(t){return Error.call(this),this.message=t?t.length+` errors occurred during unsubscription:
|
27
|
-
`+t.map(function(e,r){return r+1+") "+e.toString()}).join(`
|
28
|
-
`):"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n}(),Vt=Ui,Y=function(){function n(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return n.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this,r=e._parentOrParents,i=e._ctorUnsubscribe,s=e._unsubscribe,o=e._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof n)r.remove(this);else if(r!==null)for(var a=0;a<r.length;++a){var c=r[a];c.remove(this)}if(Ct(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(h){t=h instanceof Vt?wn(h.errors):[h]}}if(yn(o))for(var a=-1,l=o.length;++a<l;){var u=o[a];if(bn(u))try{u.unsubscribe()}catch(f){t=t||[],f instanceof Vt?t=t.concat(wn(f.errors)):t.push(f)}}if(t)throw new Vt(t)}},n.prototype.add=function(t){var e=t;if(!t)return n.EMPTY;switch(typeof t){case"function":e=new n(t);case"object":if(e===this||e.closed||typeof e.unsubscribe!="function")return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof n)){var r=e;e=new n,e._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=e._parentOrParents;if(i===null)e._parentOrParents=this;else if(i instanceof n){if(i===this)return e;e._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return e;var s=this._subscriptions;return s===null?this._subscriptions=[e]:s.push(e),e},n.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}},n.EMPTY=function(t){return t.closed=!0,t}(new n),n}();function wn(n){return n.reduce(function(t,e){return t.concat(e instanceof Vt?e.errors:e)},[])}var Rt=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),W=function(n){O(t,n);function t(e,r,i){var s=n.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=Pt;break;case 1:if(!e){s.destination=Pt;break}if(typeof e=="object"){e instanceof t?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(s)):(s.syncErrorThrowable=!0,s.destination=new Sn(s,e));break}default:s.syncErrorThrowable=!0,s.destination=new Sn(s,e,r,i);break}return s}return t.prototype[Rt]=function(){return this},t.create=function(e,r,i){var s=new t(e,r,i);return s.syncErrorThrowable=!1,s},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(Y),Sn=function(n){O(t,n);function t(e,r,i,s){var o=n.call(this)||this;o._parentSubscriber=e;var a,c=o;return Ct(r)?a=r:r&&(a=r.next,i=r.error,s=r.complete,r!==Pt&&(c=Object.create(r),Ct(c.unsubscribe)&&o.add(c.unsubscribe.bind(c)),c.unsubscribe=o.unsubscribe.bind(o))),o._context=c,o._next=a,o._error=i,o._complete=s,o}return t.prototype.next=function(e){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!j.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(r,this._next,e)&&this.unsubscribe()}},t.prototype.error=function(e){if(!this.isStopped){var r=this._parentSubscriber,i=j.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(r,this._error,e),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=e,r.syncErrorThrown=!0):ft(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;ft(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return e._complete.call(e._context)};!j.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,r){try{e.call(this._context,r)}catch(i){if(this.unsubscribe(),j.useDeprecatedSynchronousErrorHandling)throw i;ft(i)}},t.prototype.__tryOrSetError=function(e,r,i){if(!j.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return j.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(ft(s),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(W);function Hi(n){for(;n;){var t=n,e=t.closed,r=t.destination,i=t.isStopped;if(e||i)return!1;r&&r instanceof W?n=r:n=null}return!0}function Gi(n,t,e){if(n){if(n instanceof W)return n;if(n[Rt])return n[Rt]()}return!n&&!t&&!e?new W(Pt):new W(n,t,e)}var xt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function En(n){return n}function qi(n){return n.length===0?En:n.length===1?n[0]:function(e){return n.reduce(function(r,i){return i(r)},e)}}var N=function(){function n(t){this._isScalar=!1,t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var i=this.operator,s=Gi(t,e,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||j.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),j.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){j.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Hi(t)?t.error(e):console.warn(e)}},n.prototype.forEach=function(t,e){var r=this;return e=Tn(e),new e(function(i,s){var o;o=r.subscribe(function(a){try{t(a)}catch(c){s(c),o&&o.unsubscribe()}},s,i)})},n.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},n.prototype[xt]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?this:qi(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Tn(t),new t(function(r,i){var s;e.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(t){return new n(t)},n}();function Tn(n){if(n||(n=j.Promise||Promise),!n)throw new Error("no Promise impl found");return n}var zi=function(){function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n}(),At=zi,Yi=function(n){O(t,n);function t(e,r){var i=n.call(this)||this;return i.subject=e,i.subscriber=r,i.closed=!1,i}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,r=e.observers;if(this.subject=null,!(!r||r.length===0||e.isStopped||e.closed)){var i=r.indexOf(this.subscriber);i!==-1&&r.splice(i,1)}}},t}(Y),Ji=function(n){O(t,n);function t(e){var r=n.call(this,e)||this;return r.destination=e,r}return t}(W),In=function(n){O(t,n);function t(){var e=n.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype[Rt]=function(){return new Ji(this)},t.prototype.lift=function(e){var r=new Cn(this,this);return r.operator=e,r},t.prototype.next=function(e){if(this.closed)throw new At;if(!this.isStopped)for(var r=this.observers,i=r.length,s=r.slice(),o=0;o<i;o++)s[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new At;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var r=this.observers,i=r.length,s=r.slice(),o=0;o<i;o++)s[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new At;this.isStopped=!0;for(var e=this.observers,r=e.length,i=e.slice(),s=0;s<r;s++)i[s].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(e){if(this.closed)throw new At;return n.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){if(this.closed)throw new At;return this.hasError?(e.error(this.thrownError),Y.EMPTY):this.isStopped?(e.complete(),Y.EMPTY):(this.observers.push(e),new Yi(this,e))},t.prototype.asObservable=function(){var e=new N;return e.source=this,e},t.create=function(e,r){return new Cn(e,r)},t}(N),Cn=function(n){O(t,n);function t(e,r){var i=n.call(this)||this;return i.destination=e,i.source=r,i}return t.prototype.next=function(e){var r=this.destination;r&&r.next&&r.next(e)},t.prototype.error=function(e){var r=this.destination;r&&r.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){var r=this.source;return r?this.source.subscribe(e):Y.EMPTY},t}(In),Zi=new N(function(n){return n.complete()});function Qi(n){return n?Ki(n):Zi}function Ki(n){return new N(function(t){return n.schedule(function(){return t.complete()})})}function xn(n){return n&&typeof n.schedule=="function"}var An=function(n){return function(t){for(var e=0,r=n.length;e<r&&!t.closed;e++)t.next(n[e]);t.complete()}};function _e(n,t){return new N(function(e){var r=new Y,i=0;return r.add(t.schedule(function(){if(i===n.length){e.complete();return}e.next(n[i++]),e.closed||r.add(this.schedule())})),r})}function Ln(n,t){return t?_e(n,t):new N(An(n))}function Xi(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=n[n.length-1];return xn(e)?(n.pop(),_e(n,e)):Ln(n)}function X(){}var ts=function(){function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n}(),es=ts;function Dt(n,t){return function(r){if(typeof n!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new ns(n,t))}}var ns=function(){function n(t,e){this.project=t,this.thisArg=e}return n.prototype.call=function(t,e){return e.subscribe(new rs(t,this.project,this.thisArg))},n}(),rs=function(n){O(t,n);function t(e,r,i){var s=n.call(this,e)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return t.prototype._next=function(e){var r;try{r=this.project.call(this.thisArg,e,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},t}(W),is=function(n){return function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ft),t}};function ss(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var jt=ss(),os=function(n){return function(t){var e=n[jt]();do{var r=void 0;try{r=e.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}while(!0);return typeof e.return=="function"&&t.add(function(){e.return&&e.return()}),t}},as=function(n){return function(t){var e=n[xt]();if(typeof e.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}},Mn=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function $n(n){return!!n&&typeof n.subscribe!="function"&&typeof n.then=="function"}var On=function(n){if(!!n&&typeof n[xt]=="function")return as(n);if(Mn(n))return An(n);if($n(n))return is(n);if(!!n&&typeof n[jt]=="function")return os(n);var t=bn(n)?"an invalid object":"'"+n+"'",e="You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(e)};function cs(n,t){return new N(function(e){var r=new Y;return r.add(t.schedule(function(){var i=n[xt]();r.add(i.subscribe({next:function(s){r.add(t.schedule(function(){return e.next(s)}))},error:function(s){r.add(t.schedule(function(){return e.error(s)}))},complete:function(){r.add(t.schedule(function(){return e.complete()}))}}))})),r})}function ls(n,t){return new N(function(e){var r=new Y;return r.add(t.schedule(function(){return n.then(function(i){r.add(t.schedule(function(){e.next(i),r.add(t.schedule(function(){return e.complete()}))}))},function(i){r.add(t.schedule(function(){return e.error(i)}))})})),r})}function us(n,t){if(!n)throw new Error("Iterable cannot be null");return new N(function(e){var r=new Y,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(t.schedule(function(){i=n[jt](),r.add(t.schedule(function(){if(!e.closed){var s,o;try{var a=i.next();s=a.value,o=a.done}catch(c){e.error(c);return}o?e.complete():(e.next(s),this.schedule())}}))})),r})}function hs(n){return n&&typeof n[xt]=="function"}function fs(n){return n&&typeof n[jt]=="function"}function ps(n,t){if(n!=null){if(hs(n))return cs(n,t);if($n(n))return ls(n,t);if(Mn(n))return _e(n,t);if(fs(n)||typeof n=="string")return us(n,t)}throw new TypeError((n!==null&&typeof n||n)+" is not observable")}function Nn(n,t){return t?ps(n,t):n instanceof N?n:new N(On(n))}var me=function(n){O(t,n);function t(e){var r=n.call(this)||this;return r.parent=e,r}return t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(W),ve=function(n){O(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(W);function ge(n,t){if(!t.closed){if(n instanceof N)return n.subscribe(t);var e;try{e=On(n)(t)}catch(r){t.error(r)}return e}}function Fn(n,t,e){return e===void 0&&(e=Number.POSITIVE_INFINITY),typeof t=="function"?function(r){return r.pipe(Fn(function(i,s){return Nn(n(i,s)).pipe(Dt(function(o,a){return t(i,o,s,a)}))},e))}:(typeof t=="number"&&(e=t),function(r){return r.lift(new ds(n,e))})}var ds=function(){function n(t,e){e===void 0&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return n.prototype.call=function(t,e){return e.subscribe(new _s(t,this.project,this.concurrent))},n}(),_s=function(n){O(t,n);function t(e,r,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=n.call(this,e)||this;return s.project=r,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var r,i=this.index++;try{r=this.project(e,i)}catch(s){this.destination.error(s);return}this.active++,this._innerSub(r)},t.prototype._innerSub=function(e){var r=new me(this),i=this.destination;i.add(r);var s=ge(e,r);s!==r&&i.add(s)},t.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(ve);function ms(n){return n===void 0&&(n=Number.POSITIVE_INFINITY),Fn(En,n)}function st(n,t,e,r){return Ct(e)&&(r=e,e=void 0),r?st(n,t,e).pipe(Dt(function(i){return yn(i)?r.apply(void 0,i):r(i)})):new N(function(i){function s(o){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(o)}kn(n,t,s,i,e)})}function kn(n,t,e,r,i){var s;if(ys(n)){var o=n;n.addEventListener(t,e,i),s=function(){return o.removeEventListener(t,e,i)}}else if(gs(n)){var a=n;n.on(t,e),s=function(){return a.off(t,e)}}else if(vs(n)){var c=n;n.addListener(t,e),s=function(){return c.removeListener(t,e)}}else if(n&&n.length)for(var l=0,u=n.length;l<u;l++)kn(n[l],t,e,r,i);else throw new TypeError("Invalid event target");r.add(s)}function vs(n){return n&&typeof n.addListener=="function"&&typeof n.removeListener=="function"}function gs(n){return n&&typeof n.on=="function"&&typeof n.off=="function"}function ys(n){return n&&typeof n.addEventListener=="function"&&typeof n.removeEventListener=="function"}function bs(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Number.POSITIVE_INFINITY,r=null,i=n[n.length-1];return xn(i)?(r=n.pop(),n.length>1&&typeof n[n.length-1]=="number"&&(e=n.pop())):typeof i=="number"&&(e=n.pop()),r===null&&n.length===1&&n[0]instanceof N?n[0]:ms(e)(Ln(n,r))}function ws(n){return function(t){return n===0?Qi():t.lift(new Ss(n))}}var Ss=function(){function n(t){if(this.total=t,this.total<0)throw new es}return n.prototype.call=function(t,e){return e.subscribe(new Es(t,this.total))},n}(),Es=function(n){O(t,n);function t(e,r){var i=n.call(this,e)||this;return i.total=r,i.count=0,i}return t.prototype._next=function(e){var r=this.total,i=++this.count;i<=r&&(this.destination.next(e),i===r&&(this.destination.complete(),this.unsubscribe()))},t}(W);function Pn(n,t){return typeof t=="function"?function(e){return e.pipe(Pn(function(r,i){return Nn(n(r,i)).pipe(Dt(function(s,o){return t(r,s,i,o)}))}))}:function(e){return e.lift(new Ts(n))}}var Ts=function(){function n(t){this.project=t}return n.prototype.call=function(t,e){return e.subscribe(new Is(t,this.project))},n}(),Is=function(n){O(t,n);function t(e,r){var i=n.call(this,e)||this;return i.project=r,i.index=0,i}return t.prototype._next=function(e){var r,i=this.index++;try{r=this.project(e,i)}catch(s){this.destination.error(s);return}this._innerSub(r)},t.prototype._innerSub=function(e){var r=this.innerSubscription;r&&r.unsubscribe();var i=new me(this),s=this.destination;s.add(i),this.innerSubscription=ge(e,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},t.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&n.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=void 0},t.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&n.prototype._complete.call(this)},t.prototype.notifyNext=function(e){this.destination.next(e)},t}(ve);function ye(n){return function(t){return t.lift(new Cs(n))}}var Cs=function(){function n(t){this.notifier=t}return n.prototype.call=function(t,e){var r=new xs(t),i=ge(this.notifier,new me(r));return i&&!r.seenValue?(r.add(i),e.subscribe(r)):r},n}(),xs=function(n){O(t,n);function t(e){var r=n.call(this,e)||this;return r.seenValue=!1,r}return t.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(ve);function Lt(n,t,e){return function(i){return i.lift(new As(n,t,e))}}var As=function(){function n(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return n.prototype.call=function(t,e){return e.subscribe(new Ls(t,this.nextOrObserver,this.error,this.complete))},n}(),Ls=function(n){O(t,n);function t(e,r,i,s){var o=n.call(this,e)||this;return o._tapNext=X,o._tapError=X,o._tapComplete=X,o._tapError=i||X,o._tapComplete=s||X,Ct(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||X,o._tapError=r.error||X,o._tapComplete=r.complete||X),o}return t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(r){this.destination.error(r);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(r){this.destination.error(r);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(W),Ms=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{ref:"windowComponentRef",staticClass:"elevation-3 position-absolute d-flex flex-column",class:{rounded:!n.isDocked,marginToTop:n.isDocked},attrs:{id:"window-component--"+n.windowState.id},on:{click:n.clicked}},[n.windowState.hideHeader?n._e():e("div",{ref:"draggableHeaderRef",staticClass:"pa-2",class:{"cursor-grab":n.isDynamic,"grey--text":!n.isOnTop},attrs:{draggable:n.isDynamic}},[n._t("headerComponent")],2),e(Ot),e("div",{staticClass:"overflow-x-hidden"},[n._t("default")],2)],1)},$s=[],Mc="";function T(n,t,e,r,i,s,o,a){var c=typeof n=="function"?n.options:n;t&&(c.render=t,c.staticRenderFns=e,c._compiled=!0),r&&(c.functional=!0),s&&(c._scopeId="data-v-"+s);var l;if(o?(l=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),i&&i.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(d,_){return l.call(_),u(d,_)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:n,options:c}}const Os={props:{windowState:{type:Object,required:!0},isOnTop:{type:Boolean,required:!0,default:!1},slotWindow:{type:Object,required:!0}},setup({windowState:n,slotWindow:t},{emit:e}){const r=y(null),i=y(null),s=$(()=>t.value!==A.STATIC),o=$(()=>t.value!==A.DETACHED),a=u=>{e("click",u)};let c,l;return Ye(()=>{!n.hideHeader&&t.value!==A.STATIC&&Pr(()=>{const u=st(r.value,"dragstart"),h=st(document.body,"dragover"),f=st(document.body,"drop");l=u.pipe(Lt(()=>{c=h.subscribe(_=>{_.preventDefault()})}),Pn(_=>{const v=window.getComputedStyle(i.value.$el,null),w={top:parseInt(v.getPropertyValue("top"),10),left:parseInt(v.getPropertyValue("left"),10),width:parseInt(v.getPropertyValue("width"),10),height:parseInt(v.getPropertyValue("height"),10)};return _.dataTransfer.setData("text/html",null),f.pipe(ws(1),Dt(B=>(w.dx=_.clientX-B.clientX,w.dy=_.clientY-B.clientY,w)),Lt(()=>{c.unsubscribe()}))})).subscribe(_=>{e("dropped",_)})})}),vt(()=>{c&&c.unsubscribe(),l&&l.unsubscribe()}),{isDynamic:s,isDocked:o,draggableHeaderRef:r,windowComponentRef:i,clicked:a}}},Vn={};var Ns=T(Os,Ms,$s,!1,Fs,"4d04edc4",null,null);function Fs(n){for(let t in Vn)this[t]=Vn[t]}var Rn=function(){return Ns.exports}(),ks=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",{staticClass:"d-flex justify-space-between align-center window-component-header"},[e("span",[n.windowState.headerIcon?e(rt,{staticClass:"mr-2 primary--text",domProps:{textContent:n._s(n.windowState.headerIcon)}}):n._e(),e("h3",{staticClass:"font-size-14 d-inline-block user-select-none font-weight-bold"},[n._v(" "+n._s(n._f("translate")(n.windowState.headerTitle))+" ")])],1),e("VcsButton",{attrs:{small:"",icon:"mdi-close-thick"},on:{click:function(r){return r.stopPropagation(),n.close.apply(null,arguments)}}})],1)},Ps=[],$c="";const Vs={components:{VcsButton:ie},props:{windowState:{type:Object,required:!0}},setup(n,{emit:t}){return{close:()=>{t("close")},clicked:i=>{t("click",i)}}}},Dn={};var Rs=T(Vs,ks,Ps,!1,Ds,null,null,null);function Ds(n){for(let t in Dn)this[t]=Dn[t]}var js=function(){return Rs.exports}(),Ws=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",n._l(n.componentIds,function(r,i){return e(Rn,{key:r,class:n.getState(r).classes,style:n.getStyles(r,i),attrs:{"window-state":n.getState(r),"slot-window":n.getSlot(r),"z-index":i,"is-on-top":n.isOnTop(i)},on:{dropped:function(s){return n.dropped(r,s)},click:function(s){return n.clicked(r)}},scopedSlots:n._u([n.getState(r).hideHeader?null:{key:"headerComponent",fn:function(){return[e(n.getHeaderComponent(r),{tag:"component",attrs:{"window-state":n.getState(r)},on:{close:function(s){return n.close(r)}}})]},proxy:!0}],null,!0)},[e(n.getComponent(r),n._b({tag:"component",attrs:{"window-state":n.getState(r)}},"component",n.getProps(r),!1))],1)}),1)},Bs=[];const Us={name:"VcsWindowManager",components:{WindowComponent:Rn},setup(){const n=ct("vcsApp"),{windowManager:t}=n,{componentIds:e}=t;return{componentIds:e,getComponent:l=>t.get(l).component,getHeaderComponent:l=>t.get(l).headerComponent||js,getStyles:(l,u)=>{const h=t.get(l),f=h==null?void 0:h.state,d=h==null?void 0:h.position;return E({zIndex:u,left:d.left,top:d.top,right:d.right,bottom:d.bottom,width:d.width,height:d.height},f.styles||{})},getState:l=>{var u;return(u=t.get(l))==null?void 0:u.state},getProps:l=>{var u,h;return(h=(u=t.get(l))==null?void 0:u.props)!=null?h:{}},isOnTop:l=>l===e.length-1,getSlot:l=>t.get(l).slot,close:l=>{t.remove(l)},dropped:(l,u)=>{const{innerWidth:h,innerHeight:f}=window,d=Math.min(Math.max(0,u.top-u.dy),f-u.height),_=Math.min(Math.max(0,u.left-u.dx),h-u.width);t.setWindowPositionOptions(l,{top:d,left:_,width:u.width,height:u.height})},clicked:l=>{t.has(l)&&t.bringWindowToTop(l)}}}},jn={};var Hs=T(Us,Ws,Bs,!1,Gs,null,null,null);function Gs(n){for(let t in jn)this[t]=jn[t]}var qs=function(){return Hs.exports}(),zs=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("span",{staticClass:"ma-1 position-relative",class:[].concat(n.customClasses)},[e(te,{staticClass:"expand-button mb-0 w-16 h-10",class:{"mb-0":n.active,"h-full":n.active,"rounded-b-0":n.active,"border-2--primary":n.group.options[0].selected},attrs:{color:n.active?"white":null,text:n.active?null:!0,disabled:n.group.options[0].disabled,elevation:"0"},on:{click:function(){return n.setOpen(n.group.id,!n.group.open)}}},[n._t("selected-icon",function(){return[e(rt,{domProps:{textContent:n._s(n.group.options[0].icon)}})]}),n._t("default"),n.group.options.length>1?e(rt,{class:{"rotate-180--right":n.active},domProps:{textContent:n._s("mdi-chevron-down")}}):n._e()],2),n.group.open?e("div",{staticClass:"d-flex flex-row white rounded-b position-absolute z-index-1 pos-t-11"},[n._t("menu-items",function(){return n._l(n.group.options.slice(1),function(r){return e(te,{key:r.id,staticClass:"py-1 rounded-t-0 rounded-br-0 h-10.5 -mt-2",attrs:{elevation:"0"},on:{click:function(){return n.selectOption(r.id)}}},[e(rt,{staticClass:"mt-1.5",domProps:{textContent:n._s(r.icon)}})],1)})})],2):n._e()],1)},Ys=[],Oc="";const Js={name:"VcsToolboxSingleSelectButton",props:{value:{type:Boolean,default:!1},group:{type:Object,default:()=>({})},customClasses:{type:Array,default:()=>[]}},setup({value:n},{emit:t}){const e=y(!1);return{active:n,open:e,selectOption:s=>{t("selected",s),t("set-open",{id:s,open:!e})},setOpen:(s,o)=>{t("set-open",{id:s,open:o})}}}},Wn={};var Zs=T(Js,zs,Ys,!1,Qs,"738eee0c",null,null);function Qs(n){for(let t in Wn)this[t]=Wn[t]}var Bn=function(){return Zs.exports}(),Ks=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.group.options&&n.group.options[0]?e("span",{staticClass:"ma-1 position-relative",class:[].concat(n.customClasses)},[e(te,{staticClass:"expand-button mb-0 w-16 h-10",class:{"mb-0":n.active,"h-full":n.active,"rounded-b-0":n.active},attrs:{color:n.active?"white":null,text:n.active?null:!0,disabled:n.group.options[0].disabled,elevation:"0"},on:{click:function(){return n.setOpen(n.group.id,!n.group.open)}}},[n._t("selected-icon",function(){return[e(rt,{domProps:{textContent:n._s(n.group.icon)}})]}),n._t("default"),n.group.options.length>1?e(rt,{class:{"rotate-180--right":n.active},domProps:{textContent:n._s("mdi-chevron-down")}}):n._e()],2),n.group.open?e(ee,{staticStyle:{position:"absolute","min-width":"150px"},attrs:{tile:""}},[e(nn,{attrs:{dense:""}},[e(ti,n._l(n.group.options,function(r){return e(rn,{key:r.id,attrs:{dense:""},on:{click:function(){return n.selectOption(r.id)}}},[e(ei,[e("input",{class:r.selected?"y":"n",attrs:{type:"checkbox"},domProps:{checked:r.selected}})]),e(sn,[e(ni,[n._v(n._s(r.text))])],1)],1)}),1)],1)],1):n._e()],1):n._e()},Xs=[],Nc="";const to={name:"VcsToolboxSingleSelectButton",props:{value:{type:Boolean,default:void 0},group:{type:Object,default:()=>({})},customClasses:{type:Array,default:()=>[]}},setup({value:n},{emit:t}){const e=y(!1);return{active:n,open:e,selectOption:s=>{t("selected",s)},setOpen:(s,o)=>{t("set-open",{id:s,open:o})}}}},Un={};var eo=T(to,Ks,Xs,!1,no,"2139e4f6",null,null);function no(n){for(let t in Un)this[t]=Un[t]}var Hn=function(){return eo.exports}(),ro=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(ri,{staticClass:"vcs-toolbox toolbar__secondary rounded-b mx-auto v-sheet",style:{maxWidth:n.getWidth()+"px"},attrs:{dense:""}},[e(ne,{staticClass:"w-full"},[e("div",{staticClass:"d-flex align-center justify-space-between w-full"},n._l(n.groups,function(r){return e("span",{key:r.id},[r.type==="customComponent"?e(r.component,{tag:"component",attrs:{icon:"$vcsObjectAttribute",value:r.active,group:r},nativeOn:{click:function(i){r.active=!r.active}}}):n._e(),r.type==="toggleButton"?e("Button",{attrs:{group:r,icon:"$vcsObjectAttribute",value:r.active},nativeOn:{click:function(i){r.active=!r.active}}}):n._e(),n.toolboxGroupVisible(r)&&r.type==="singleSelectButton"?e(Bn,{attrs:{group:r},on:{selected:function(i){return n.selectSingleSelectOption(i)},"set-open":function(i){var s=i.id,o=i.open;return n.setGroupOpen({id:s,open:o})}}}):n._e(),n.toolboxGroupVisible(r)&&r.type==="multiSelectButton"?e(Hn,{attrs:{group:r},on:{selected:function(i){return n.selectMultiSlectOption(i)},"set-open":function(i){var s=i.id,o=i.open;return n.setGroupOpen({id:s,open:o})}}}):n._e()],1)}),0)])],1)},io=[],Fc="";const so={name:"VcsToolbox",props:{width:{type:Number,default:600}},setup(){const n=ct("vcsApp"),{toolboxManager:t}=n,{state:{groups:e}}=t;return{groups:e,getWidth:()=>t.getNumberOfUsedSlots()*75,selectSingleSelectOption:c=>{t.bringToTop(c)},selectMultiSlectOption:c=>{t.selectOption(c)},setGroupOpen:({id:c,open:l})=>{t.setGroupOpen(c,l)},toolboxGroupVisible:c=>c&&c.options&&c.options.length}},components:{ToolboxSingleSelectButton:Bn,ToolboxMultiSelectButton:Hn,VcsButton:ie}},Gn={};var oo=T(so,ro,io,!1,ao,"e06d93b2",null,null);function ao(n){for(let t in Gn)this[t]=Gn[t]}var co=function(){return oo.exports}(),lo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{attrs:{id:n.mapId}})},uo=[],kc="";const ho={name:"VcsMap",props:{mapId:{type:String,required:!0}}},qn={};var fo=T(ho,lo,uo,!1,po,"3212fc9e",null,null);function po(n){for(let t in qn)this[t]=qn[t]}var be=function(){return fo.exports}(),_o=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(ii,{attrs:{app:"",absolute:"",dense:"",elevation:"0",color:"var(--v-basic-base)"}},[e(on,{staticClass:"pa-0",attrs:{fluid:""}},[e(lt,{attrs:{"no-gutters":""}},[e(re,[e(ne,[e("div",{staticClass:"d-flex align-center"},[e("VcsActionButtonList",{attrs:{actions:n.mapActions,"overflow-count":3,large:""}}),n.mapActions.length>0&&(n.contentActions.length>0||n.toolActions.length>0)?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),e("VcsActionButtonList",{attrs:{actions:n.contentActions,large:""}}),n.contentActions.length>0&&n.toolActions.length>0?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),e("VcsActionButtonList",{attrs:{actions:n.toolActions,large:""}})],1)])],1),e(re,{staticClass:"align-center d-flex justify-center"},[e("div",{staticClass:"company-logo"})]),e(re,{staticClass:"align-content-end d-flex justify-end"},[e(ne,[e("div",{staticClass:"d-flex align-center"},[e("VcsActionButtonList",{attrs:{actions:n.projectActions,large:""}}),n.projectActions.length>0&&n.menuActions.length>0?e(Ot,{staticClass:"mx-2",attrs:{vertical:"",inset:""}}):n._e(),n.shareActions.length>0?e(si,{attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e("VcsButton",n._g(n._b({attrs:{large:"",tooltip:"Share current view of the map.",icon:"$vcsShare"}},"VcsButton",s,!1),i))]}}],null,!1,2109527708)},[e("VcsActionList",{attrs:{actions:n.shareActions,"tooltip-position":"left","show-icon":!0}})],1):n._e(),e("VcsActionButtonList",{attrs:{actions:n.menuActions,"overflow-count":3,large:""}})],1)])],1)],1)],1)],1)},mo=[],Pc="";const vo={name:"VcsNavbar",components:{VcsActionButtonList:fi,VcsActionList:pi,VcsButton:ie},setup(){const n=ct("vcsApp"),t=y(n.navbarManager.componentIds),e=$(()=>t.value.map(i=>n.navbarManager.get(i))),r=i=>$(()=>Bi(e.value,i,[...n.plugins].map(s=>s.name)));return{mapActions:r(U.MAP),contentActions:r(U.CONTENT),toolActions:r(U.TOOL),projectActions:r(U.PROJECT),shareActions:r(U.SHARE),menuActions:r(U.MENU)}}},zn={};var go=T(vo,_o,mo,!1,yo,"66838369",null,null);function yo(n){for(let t in zn)this[t]=zn[t]}var Yn=function(){return go.exports}();class bo extends Rr{constructor(){super(Dr.CLICK,jr.ALL);this.mapClicked=new K,this.setActive()}async pipe(t){return this.mapClicked.raiseEvent(t),t.stopPropagation=!0,t}destroy(){this.mapClicked.destroy(),super.destroy()}}var Vc="";L.use(en);const we=new en({treeShake:!1,defaultAssets:{font:{family:"titillium-web"}},theme:{options:{customProperties:!0},themes:{light:{basic:"#FFFFFF",primary:"#409D76",accent:"#EDEDED",warning:"#FFCE00","gray-200":"#DEDEDE",gray:"#707070",secondary:"#222222",error:"#AA0000",info:"#2196F3",success:"#4CAF50"},dark:{basic:"#000000",primary:"#409D76",secondary:"#FFFFFF",accent:"#757575",warning:"#FFCE00",error:"#FF5252"}}},icons:{iconfont:"mdi",values:E({},di)}});function Jn(){return{component:be,props:{mapId:"overview-map-container"},slot:A.DETACHED,id:"overview-map-container",state:{hideHeader:!0},position:{right:"100px",bottom:"25px",width:"272px",height:"223px"}}}class wo{constructor(t){this._app=t,this._active=!1,this._map=new Kt({target:"overview-map-container"}),this._cachedViewPoint=null,this._obliqueTileLayer=null,this._obliqueImageLayer=null,this._obliqueSelectedImageLayer=null;const{primary:e,accent:r}=we.userPreset.theme.themes.light,i=bi.fromCssColorString(r);this.obliqueUnselectedStyle=new gt({fill:{color:i.withAlpha(.1).toCssColorString()},stroke:{color:e,width:1}}),this.obliqueSelectedStyle=new gt({fill:{color:i.withAlpha(.8).toCssColorString()},stroke:{color:e,width:3}}),this._obliqueResolutionFactor=2,this._obliqueViewDirection=null,this._cameraIconLayer=null,this.cameraIconStyle=new gt({image:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA8CAYAAADxJz2MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDphMzhlODgyYy00ZGYzLTZkNGMtYWZhYy1hYTkwOTI3MjRiYjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEYxRkE1MDlENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEYxRkE1MDhENjRDMTFFNTlGRjhFMzM3RTA3MDJFMDciIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OGJiODg5ODItZGM0Zi0xNjQyLWEyZDYtODJkZTcxMGNhNjkwIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzY5MTdhNjAtZDYzYy0xMWU1LThjNTgtYTMwNjE0MWQwNTkyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Fn8KKQAABwVJREFUeNrsW0toHVUYPufOvb2madNaa2NS3682BTcKiQqx4qO0i7gKpHFhoCBoG8SVC124ExcW02yCiFCQ4iLgIhWJCE2pYI1J1VitNFhTIz5STdI2D2tucsf/N9/YcTKvM+fMbYT54eu9nTvnzMx3/veZSNu2RSbJJZdRkBGYEZgRmBGYSUZgRmBGYEZgJslkTUZBoEjXpxcsxTz9U0OYIfxFsAi2a5DtOjnpxU09RNS9SEPXiXN8kbCWUCWhgZsIf+Am3WYdh0BpkFipeG3v2LhjdM4pgyPmbMI5aT1hHeECIV+BVVXRLJ17kR6LSnqOl8AbCZNsue4BWzAB/1B0TapLpEyJmDTcR9SCL4C8K4Tf+Jh3wK2EecIsoWDIFE1qSxoExvV9JcQLttAxfC7lPSdNgMQlqKpUuJht6MZ15gsao7OgElxw0NhAGMXvzJHtNzGzfBPILBj2dyY00ZT2qURdJmsr4TxcnCNW0CR1IPJ3RGk74YWTPITU0BTTGYLj92pB3E/e38MusAP5zsUQTayELxIKrkRX04SP39sEDfxGdRLWvPsIUyAyl1LkTMPkpAErYNKugyUOgUzlC20mbIfq5lN4gDiBREfTdYjka9cTRlBkJL7AnZjo54C6OY2bNz2n6mKUEDTOEX7Qzaf4wg+AvMkYzYc0nLkp7Y6zUCVY3gxMV5ggkIPITkw6j6aDCZMySYYJTV9CSVtF+Bi+P1TyEb/brlX5itCI77kKpy3SIKEyQlFY+47HIc+PQOnJ+dzH2ZGOI6iMeVIb1crBpCbqdleky+/dRvgyLGhEERj1nse3SCq3olIpKnYyZMqEJFkIJ1m+hfAL4YyCRVlJzJCDSAs6ErMuf5im9kmFVphqX3ARNS4r0/sgU8ZQpshKJCo/fAor5m46mCidTJmxVLBCrv17YbpOV76cxITjCl9omPAgCuxCism0aZ8oPfkem+4JPJP0IU6C1EWTBLJ8Dad7ByqVotDrLqdR74ZdawFFwhgyDG8skB5XYayD4hbeCniGcJkw55MfphkM4vq+oPZUDSznHfhz6dN1klGmbGLn7GaQ+CNuLFfhiJpEg3mhbye87WpRxQ0cxglkeYjwuLja6r4W3ZW448pwOx8STuo+eN4QgSeRG25Hsl1IITdUMeOg30og77SHPD/ti/R/JjXQWYwXQN6kYvsrKtE1USpyFN2CWv6gx7eFER9KoGXQzPmGfiU8BqdsY/4kyAHu716EjfOex89QTdhIeAtNESNi+UQdHbmI6qQZ3/OuPMrvwXIRsGIej1oMlnsJ7xG+03i+FRzlfXKfuBMFqfanhHsI9/s0HUxFXZXx7PfuJnxuImjoNhPiyhHcNKc4F3w0PY2A4pcLLuIe2CreNfBcdhIfmETYH35P2IXccAmLlcRs44zxmrLTr6xBo+B1wrSG2WoFEWW/ALkMP/gEPi2NQBDlD60A4jll6UGLqhBQ50ZJLsQyZVoa6AjnhLyvynsqU3gIGUKIqrYF/WYjaHxEOKrpnuw02lmqfvYN1M0TCZJ31Y4L+716dFdeEjFb8ybSGFOmLH384Rn0D8vi6iZ9TlMDpc8xgVyPF+tVwqWUePv3WS2DjtWvm+HIJfjBXfiuQlTOExjCxhYQdd8UAa9iGPb3tkkCo87hDeo65IeTrgohqZ+zfPwed1g+EMut+TRK1xX1cSV8oFs7eb+1C4FlIqB/aAv1Xb4y/N55wosJC4DUfWBUqSdjnMf+j3f2Wlz+0PLxa+7PMDh+rwaL83LCOjdxZWQp1MEyomOSi6k1F2HCj4rltroISEOEy8zd//cGEvZ71xMOieUXgVQty5mzrKOBJt4yUDGNczC5HWgvOWSUQQhr0w3ooFThmFNTL7mIZeEdwgGUj0nbYXZCLRWWpk/TiWCfEZ4Uy2+9z2G+WhBWPHDgwK6urq5txWJx8/Dw8ATGrANmMReP5a3VV0KsJKhZauSFJ1lhAr1j7kJQYb+1trW19ZG2traNp06dkvv37y/39vbKwcFBMT09faWurq6qvb3d3rNnzxHkeX+CzOfE8qt3sTaBTEvSPza0E46RPqbMOdv6lpaWnYcPH97Q2NgoSqWS6OvrkwMDA3J+fl6SFlZNTU2J5uZmMTMz87SLvIMgz5m/7NGu1LOMfIUWKuxBjhFaScNK1dXVcm5uTpw9e5axYszs7Kyora2VII1fvz1ucIGveSmnI8fIbB9uaGiob2pqWlMoFMTIyMh/COzo6LBZOzs7Ow8NDQ1xo+DZtOvc/5twRD5KBJ2wbXtkdHS03NPT8w/4Ox1boMDyCbor21bLTctVRmItkuGqffv2Lezdu/d5STI+Pj7V3d1NSjnC25GvieUud0ZgiHC93LR7927enBL9/f2seYOEL1bbjf4twAD8sqEzJ5yLRwAAAABJRU5ErkJggg==",anchor:[.5,1]}}),this.minimumHeight=150,this._eventHandler=null,this._mapClicked=null,this._mapPointerListener=null,this._listeners=[],this._mapActivatedListener=null,this._layerCollectionListener=[this._app.maps.layerCollection.added.addEventListener(s=>{if(s.properties.showInOverviewMap){const o=Wr(this._app,s.toJSON());o.activate();const a=this._map.layerCollection.indexOf(o);a<0?this._map.layerCollection.add(o):(this._map.layerCollection.remove(o),this._map.layerCollection.add(o,a))}}),this._app.maps.layerCollection.removed.addEventListener(s=>{if(this._map.layerCollection.hasKey(s.name)){const o=this._map.layerCollection.getByKey(s.name);this._map.layerCollection.remove(o)}})]}get active(){return this._active}get map(){return this._map}get eventHandler(){return this._eventHandler}get mapClicked(){return this._mapClicked}_setupMapInteraction(){this._eventHandler=new Br;const t=new bo;this._mapClicked=t.mapClicked,this._eventHandler.addPersistentInteraction(t),this._mapPointerListener=this._map.pointerInteractionEvent.addEventListener(e=>{this._eventHandler.handleMapEvent(e)})}async _activate(){this._mapClicked||this._setupMapInteraction(),await this._map.activate(),this._active||(this._mapActivatedListener=this._app.maps.mapActivated.addEventListener(()=>{this._clearListeners(),this._cachedViewPoint=null,this._activate()})),this._active=!0;const{activeMap:t}=this._app.maps;t instanceof Xt?await this._initializeForCesium(t):t instanceof Kt?await this._initializeForOpenlayers(t):t instanceof yt&&await this._initializeForOblique(t)}async activate(){this._app.windowManager.has("overview-map-container")||this._app.windowManager.add(Jn(),R),await this._activate(),this.map.setTarget("overview-map-container")}deactivate(){this._app.windowManager.remove("overview-map-container"),this._clearListeners(),this._mapActivatedListener&&(this._mapActivatedListener(),this._mapActivatedListener=null),this._active=!1}async _initializeForCesium(t){if(this._cameraIconLayer||this._setupCameraIconLayer(),t.initialized){const r=t.getCesiumWidget().scene,i=this._addNavigationListener(t),s=r.postRender.addEventListener(this._addCameraFeature,this),o=()=>{s(),i(),this._cameraIconLayer.deactivate()};this._listeners.push(o),await this._cameraIconLayer.activate()}}async _initializeForOpenlayers(t){this._cameraIconLayer||this._setupCameraIconLayer();const{olMap:e}=t,r=this._addNavigationListener(t),i=e.on("postrender",this._addCameraFeature.bind(this)),s=()=>{oe(i),r(),this._cameraIconLayer.deactivate()};this._listeners.push(s),await this._cameraIconLayer.activate()}async _initializeForOblique(t){this._obliqueTileLayer||this._setupObliqueLayers();const r=[this._mapClicked.addEventListener(async o=>{if(o.feature){const a=o.feature.getId().toString();if(this._obliqueTileLayer.getFeatureById(a)){const c=await t.collection.loadImageForCoordinate(o.positionOrPixel,this._obliqueViewDirection);c&&await t.setImageByName(c.name)}else await t.setImageByName(a)}}),t.imageChanged.addEventListener(this._obliqueImageChange.bind(this)),t.collectionChanged.addEventListener(this._obliqueCollectionChanged.bind(this))],i=this._map.olMap.once("postrender",()=>{this._obliqueCollectionChanged(t.collection),this._obliqueImageChange(t.currentImage)}),s=()=>{this._obliqueTileLayer.deactivate(),this._obliqueImageLayer.deactivate(),this._obliqueSelectedImageLayer.deactivate(),oe(i),r.forEach(o=>{o()})};this._listeners.push(s),await this._obliqueTileLayer.activate(),await this._obliqueImageLayer.activate(),await this._obliqueSelectedImageLayer.activate()}_obliqueCollectionChanged(t){this._obliqueTileLayer.source=t.tileFeatureSource,this._obliqueTileLayer.forceRedraw(),this._obliqueImageLayer.source=t.imageFeatureSource,this._obliqueImageLayer.forceRedraw(),this._obliqueSelectedImageLayer.removeAllFeatures()}_obliqueImageChange(t){const{source:e}=this._obliqueImageLayer;this._obliqueViewDirection!==t.viewDirection&&(this._obliqueViewDirection=t.viewDirection,e.changed());const r=e.getFeatureById(t.name);if(r){this._obliqueSelectedImageLayer.removeAllFeatures(),this._obliqueSelectedImageLayer.addFeatures([r]);const i=new Ur({coordinates:r.getGeometry().getExtent(),projection:bt.toJSON()}),s=Qt.createViewPointFromExtent(i);s.distance/=this._obliqueResolutionFactor,this._map.gotoViewPoint(s)}}_setupObliqueLayers(){const t=new gt({});t.style=r=>r.get("state")===Hr.PENDING?this.obliqueUnselectedStyle.style:Qe,this._obliqueTileLayer=new $t({projection:bt.toJSON(),style:t,zIndex:1});const e=new gt({});e.style=r=>r.get("viewDirection")===this._obliqueViewDirection?this.obliqueUnselectedStyle.style:Qe,this._obliqueImageLayer=new $t({projection:bt.toJSON(),style:e}),this._obliqueSelectedImageLayer=new $t({projection:bt.toJSON(),style:this.obliqueSelectedStyle}),this._map.layerCollection.add(this._obliqueImageLayer),this._map.layerCollection.add(this._obliqueSelectedImageLayer),this._map.layerCollection.add(this._obliqueTileLayer)}_addNavigationListener(t){return this._mapClicked.addEventListener(e=>{const r=t.getViewPointSync(),i=r.groundPosition[2]?r.groundPosition[2]:0;r.groundPosition=Ke.mercatorToWgs84(e.positionOrPixel),r.groundPosition[2]=i,r.cameraPosition=null,t.gotoViewPoint(r)})}_setupCameraIconLayer(){this._cameraIconLayer||(this._cameraIconLayer=new $t({projection:bt.toJSON(),zIndex:50}),this._map.layerCollection.add(this._cameraIconLayer))}_addCameraFeature(){const t=this._app.maps.activeMap.getViewPointSync();if(!t||!t.isValid()||t.equals(this._cachedViewPoint))return;this._cachedViewPoint=t.clone();const e=t.groundPosition,r=t.cameraPosition||e,{heading:i}=t;let{distance:s}=t;if(r[2]&&!(s&&s<r[2]*4)?s=r[2]*4:r[2]==null&&(r[2]=s),s=s>this.minimumHeight?s:this.minimumHeight,i==null||s==null)return;let o=this._cameraIconLayer.getFeatureById("cameraFeature");if(!o){const l=new vi([r[0],r[1]]);o=new gi({geometry:l}),o.setId("cameraFeature"),o.setStyle(this.cameraIconStyle.style),this._cameraIconLayer.addFeatures([o])}o.getGeometry().setCoordinates(Ke.wgs84ToMercator(r));const a=t.heading,c=wi.toRadians(a);this.cameraIconStyle.image.setRotation(c),t.heading=0,t.cameraPosition=r,t.groundPosition=null,t.distance=s*4,this._map.gotoViewPoint(t)}_clearListeners(){this._listeners.forEach(t=>t()),this._listeners.splice(0)}destroy(){this._clearListeners(),this._layerCollectionListener.forEach(t=>t()),this._mapPointerListener&&(this._mapPointerListener(),this._mapPointerListener=null),this._mapActivatedListener&&(this._mapActivatedListener(),this._mapActivatedListener=null),this._map&&this._map.destroy(),this._obliqueTileLayer&&(this._obliqueTileLayer.source=new se({}),this._obliqueTileLayer.destroy()),this._obliqueImageLayer&&(this._obliqueImageLayer.source=new se({}),this._obliqueImageLayer.destroy()),this._obliqueSelectedImageLayer&&(this._obliqueSelectedImageLayer.source=new se({}),this._obliqueSelectedImageLayer.destroy()),this._cameraIconLayer&&this._cameraIconLayer.destroy(),this._eventHandler&&this._eventHandler.destroy(),this.cameraIconStyle.destroy(),this.obliqueUnselectedStyle.destroy(),this.obliqueSelectedStyle.destroy(),this._cachedViewPoint=null,this._mapClicked=null}}var So=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"58",height:"58",viewBox:"0 0 58 58"}},[e("g",{attrs:{id:"Group_1654","data-name":"Group 1654",transform:"translate(24)"}},[e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"north_arrow","data-name":"Polygon 14",d:"M4,0,8,13H0Z",transform:"translate(1)",fill:"currentColor"},on:{click:function(r){return n.emit(0)}}}),e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"south_arrow","data-name":"Polygon 17",d:"M4,0,8,13H0Z",transform:"translate(9 58) rotate(180)",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(180)}}})]),e("g",{attrs:{id:"Group_1653","data-name":"Group 1653",transform:"translate(0 33) rotate(-90)"}},[e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"west_arrow","data-name":"Polygon 14",d:"M4,0,8,13H0Z",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(270)}}}),e("path",{class:n.canEmit?"cursor-pointer":"",attrs:{id:"east_arrow","data-name":"Polygon 17",d:"M4,0,8,13H0Z",transform:"translate(8 58) rotate(180)",fill:"rgba(88,88,88,0.51)"},on:{click:function(r){return n.emit(90)}}})]),n.hideTicks?n._e():e("g",{attrs:{id:"Group_1672","data-name":"Group 1672",transform:"translate(1)"}},[e("line",{attrs:{id:"Line_289-2","data-name":"Line 289",x2:"6.079",transform:"translate(3.751 15) rotate(30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-2","data-name":"Line 290",x2:"4.665",transform:"translate(48.208 40.667) rotate(30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-4","data-name":"Line 289",x2:"6.079",transform:"translate(14 53.249) rotate(-60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-3","data-name":"Line 290",x2:"4.665",transform:"translate(39.668 8.792) rotate(-60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-5","data-name":"Line 289",x2:"6.079",transform:"translate(14 4.751) rotate(60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-4","data-name":"Line 290",x2:"4.665",transform:"translate(39.667 49.208) rotate(60)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_289-6","data-name":"Line 289",x2:"6.079",transform:"translate(3.752 43) rotate(-30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}}),e("line",{attrs:{id:"Line_290-5","data-name":"Line 290",x2:"4.665",transform:"translate(48.209 17.333) rotate(-30)",fill:"none",stroke:"#707070","stroke-linecap":"round","stroke-width":"1"}})])])},Eo=[],Rc="";const To={props:{canEmit:{type:Boolean,default:!0},hideTicks:{type:Boolean,default:!1}},methods:{emit(n){this.canEmit&&this.$emit("direction-click",n)}}},Zn={};var Io=T(To,So,Eo,!1,Co,"524999e4",null,null);function Co(n){for(let t in Zn)this[t]=Zn[t]}var Qn=function(){return Io.exports}(),xo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{ref:"compassRef",staticClass:`
|
29
|
-
h-16 w-16
|
30
|
-
d-flex flex-column justify-center align-center
|
31
|
-
position-relative
|
32
|
-
rounded-circle
|
33
|
-
user-select-none
|
34
|
-
transition-transform-200-ease
|
35
|
-
`,style:{transform:"rotate("+n.compassRotation+"deg)",cursor:n.cursor},attrs:{elevation:"1"},on:{mousedown:n.trackMouse}},[e("span",[n._v("N")]),e(Qn,{staticClass:"position-absolute pos-a-0 primary--text",attrs:{"can-emit":n.viewMode==="3d"||n.viewMode==="oblique","hide-ticks":n.viewMode==="oblique"},on:{"direction-click":function(r){return n.$emit("input",r)}}})],1)},Ao=[];const Lo={name:"VcsCompass",components:{MapNavCompass:Qn},props:{viewMode:{type:String,required:!0},value:{type:Number,default:0}},setup(n,t){const e=new In,r=y(),i=y(),s=({referenceEl:l,event:u})=>{const{left:h,width:f,top:d,height:_}=l.getBoundingClientRect(),v=[h+f/2,d+_/2],w=Math.atan2(u.pageX-v[0],-(u.pageY-v[1]))*(180/Math.PI);return w<0?360+w:w},o=l=>{if(n.viewMode==="3d"){document.body.style.cursor="grabbing";const u=setTimeout(()=>{r.value=!0},200),h=()=>{clearTimeout(u),document.body.style.cursor="unset",r.value=!1};bs(Xi(l),st(document.body,"mousemove")).pipe(Lt(f=>{if(r.value){const d=s({event:f,referenceEl:i.value.$el});t.emit("input",-1*d)}}),ye(st(document.body,"mouseup").pipe(Lt(()=>h()))),ye(st(document.body,"mouseleave").pipe(Lt(()=>h()))),ye(e)).subscribe()}},a=$(()=>n.viewMode==="3d"?r.value?"grabbing":"grab":"auto"),c=y(n.value);return vt(()=>{e.next(),e.unsubscribe()}),{trackMouse:o,compassRef:i,cursor:a,rotationValue:c,compassRotation:$(()=>-1*c.value)}},watch:{value(n,t){let e=n-t;e>180?e-=360:e<-180&&(e+=360),this.rotationValue+=e}}},Kn={};var Mo=T(Lo,xo,Ao,!1,$o,null,null,null);function $o(n){for(let t in Kn)this[t]=Kn[t]}var Xn=function(){return Mo.exports}(),Oo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("VcsTooltip",{attrs:{"tooltip-position":n.tooltipPosition,tooltip:n.tooltip},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e(ee,n._g(n._b({staticClass:"h-8 w-8 d-flex align-center justify-center text-center btn-orientation-tools",attrs:{elevation:"2"}},"v-card",Object.assign({},n.$attrs,s),!1),Object.assign({},n.$listeners,i)),[e(rt,{attrs:{size:"16"},domProps:{textContent:n._s(n.icon)}})],1)]}}])})},No=[],Dc="";const Fo={name:"OrientationToolsButton",components:{VcsTooltip:an},props:{icon:{type:String,required:!0},tooltip:{type:String,required:!0},tooltipPosition:{type:String,default:"left"}}},tr={};var ko=T(Fo,Oo,No,!1,Po,"2e4b3b1a",null,null);function Po(n){for(let t in tr)this[t]=tr[t]}var tt=function(){return ko.exports}(),Vo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[e(tt,{attrs:{icon:"$vcsPlus",tooltip:"Zoom in"},on:{click:function(r){return n.$emit("zoom-in")}}}),e(tt,{attrs:{icon:"$vcsMinus",tooltip:"Zoom out"},on:{click:function(r){return n.$emit("zoom-out")}}})],1)},Ro=[];const Do={components:{OrientationToolsButton:tt}},er={};var jo=T(Do,Vo,Ro,!1,Wo,null,null,null);function Wo(n){for(let t in er)this[t]=er[t]}var nr=function(){return jo.exports}(),Bo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("VcsTooltip",{attrs:{tooltip:"Camera pitch: "+Math.round(n.value)+"\xB0","tooltip-position":"left"},scopedSlots:n._u([{key:"activator",fn:function(r){var i=r.on,s=r.attrs;return[e(ee,n._g(n._b({staticClass:"w-8"},"v-card",s,!1),i),[e(oi,{staticClass:"vcs-slider",attrs:{color:"secondary","track-color":"accent",max:0,min:-90,vertical:"","hide-details":""},model:{value:n.tilt,callback:function(o){n.tilt=o},expression:"tilt"}})],1)]}}])})},Uo=[],jc="",Wc="";const Ho={name:"TiltSlider",components:{VcsTooltip:an},props:{value:{type:Number,required:!0}},data(){return{localValue:Math.round(this.value)}},watch:{value(){this.localValue=yi(Math.round(this.value),-90,0)}},computed:{tilt:{get(){return this.localValue},set(n){n!==this.localValue&&(this.localValue=n,this.$emit("input",n))}}}},rr={};var Go=T(Ho,Bo,Uo,!1,qo,"9ccf0838",null,null);function qo(n){for(let t in rr)this[t]=rr[t]}var ir=function(){return Go.exports}(),zo=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"d-inline-flex"},[e(tt,{attrs:{icon:"mdi-undo",tooltip:"Rotate view left"},on:{click:function(r){return n.input(-90)}}}),e(tt,{attrs:{icon:"mdi-redo",tooltip:"Rotate view right"},on:{click:function(r){return n.input(90)}}})],1)},Yo=[],Bc="";const Jo={name:"ObliqueRotation",components:{OrientationToolsButton:tt},props:{value:{type:Number,required:!0}},methods:{input(n){let t=this.value+n;t>360?t-=360:t<0&&(t+=360),this.$emit("input",t)}}},sr={};var Zo=T(Jo,zo,Yo,!1,Qo,"6da5c2b5",null,null);function Qo(n){for(let t in sr)this[t]=sr[t]}var or=function(){return Zo.exports}(),Ko=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(on,{staticClass:"nav-container"},[e(lt,[e(Xn,{attrs:{"view-mode":n.viewMode},model:{value:n.heading,callback:function(r){n.heading=r},expression:"heading"}})],1),n.isOblique?e(lt,[e(or,{model:{value:n.heading,callback:function(r){n.heading=r},expression:"heading"}})],1):n._e(),e(lt,{attrs:{justify:"center"}},[e(nr,{on:{"zoom-out":function(r){return n.zoomOut()},"zoom-in":function(r){return n.zoomIn()}}})],1),n.is3D?e(lt,{attrs:{justify:"center"}},[e(ir,{model:{value:n.tilt,callback:function(r){n.tilt=r},expression:"tilt"}})],1):n._e(),e(lt,{attrs:{justify:"center"}},[e(tt,{attrs:{icon:n.overviewAction.icon,tooltip:n.overviewAction.title,color:n.overviewAction.active?"primary":void 0},on:{click:function(r){return r.stopPropagation(),n.overviewAction.callback(r)}}})],1)],1)},Xo=[],Uc="";const ot={THREE_D:"3d",TWO_D:"2d",OBLIQUE:"oblique"};function ta(n){return n instanceof yt?ot.OBLIQUE:n instanceof Xt?ot.THREE_D:ot.TWO_D}function ea(n,t,e){const r=()=>{const i=n.getViewPointSync();i&&(t.value=i.heading,e.value=i.pitch)};if(n instanceof Xt)return n.getScene().postRender.addEventListener(r);if(n instanceof yt||n instanceof Kt){const i=n.olMap.on("postrender",r);return()=>{oe(i)}}return()=>{}}async function ar(n,t=!1,e=2){const r=await n.getViewPoint();t?r.distance*=e:r.distance/=e,r.animate=!0,r.duration=.5,r.cameraPosition=null,await n.gotoViewPoint(r)}const na={components:{OrientationToolsButton:tt,ObliqueRotation:or,TiltSlider:ir,VcsZoomButton:nr,VcsCompass:Xn},setup(){const n=ct("vcsApp"),t=y(ot.TWO_D),e=y(0),r=y(0);let i=()=>{};const s=u=>{t.value=ta(u),i(),i=ea(u,e,r)};n.maps.mapActivated.addEventListener(s),s(n.maps.activeMap);const o=$({get(){return e.value},async set(u){let h;t.value===ot.OBLIQUE?h=await n.maps.activeMap.getViewPoint():h=n.maps.activeMap.getViewPointSync(),h.heading=u,n.maps.activeMap.gotoViewPoint(h)}}),a=$({get(){return r.value},set(u){const h=n.maps.activeMap.getViewPointSync();h.pitch=u,n.maps.activeMap.gotoViewPoint(h)}}),{action:c,destroy:l}=_n(n.overviewMap,Jn(),n.windowManager);return vt(()=>{l&&l()}),{viewMode:t,heading:o,tilt:a,is3D:$(()=>t.value===ot.THREE_D),isOblique:$(()=>t.value===ot.OBLIQUE),zoomIn(){ar(n.maps.activeMap)},zoomOut(){ar(n.maps.activeMap,!0)},left:()=>{},right:()=>{},overviewAction:y(c)}}},cr={};var ra=T(na,Ko,Xo,!1,ia,"2fe14c69",null,null);function ia(n){for(let t in cr)this[t]=cr[t]}var lr=function(){return ra.exports}(),sa=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(ai,{staticClass:"h-full",attrs:{absolute:""}},[e(Yn),e(ci,{attrs:{"fill-height":"",absolute:""}},[e(be,{attrs:{"map-id":n.mapId}}),e(lr),n.toolboxManagerVisible?e("ToolboxManagerComponent"):n._e(),e("WindowManagerComponent")],1),e(li,{attrs:{app:"",absolute:""}},[n._v(" footer ")])],1)},oa=[],Hc="";const aa={components:{MapNavigation:lr,Navbar:Yn,VcsMap:be,WindowManagerComponent:qs,ToolboxManagerComponent:co},props:{appId:{type:String,required:!0}},setup(n){const e=`mapCollection-${St()}`,r=Gr(n.appId);Vr("vcsApp",r);const i={OpenlayersMap:"$vcs2d",CesiumMap:"$vcs3d",ObliqueMap:"$vcsObliqueView"},s={},o=r.maps.added.addEventListener(({className:u,name:h})=>{s[h]&&s[h]();const{action:f,destroy:d}=dn({name:h,icon:i[u],title:`Activate ${h}`},h,r.maps);r.navbarManager.add({id:`mapButton-${h}`,location:U.MAP,action:f},R),s[h]=()=>{r.navbarManager.remove(`mapButton-${h}`),d()}}),a=r.maps.removed.addEventListener(({name:u})=>{s[u]&&(s[u](),delete s[u])});let c;const l=r.plugins.removed.addEventListener(async u=>{r.windowManager.removeOwner(u.name),r.navbarManager.removeOwner(u.name)});return Ye(()=>{c=r.plugins.added.addEventListener(u=>{r.windowManager.removeOwner(u.name),r.navbarManager.removeOwner(u.name),u.onVcsAppMounted&&u.onVcsAppMounted(r)}),[...r.plugins].forEach(u=>{u.onVcsAppMounted&&u.onVcsAppMounted(r)}),r.maps.setTarget(e)}),vt(()=>{o&&o(),a&&a(),c&&c(),l&&l(),Object.values(s).forEach(u=>u())}),{mapId:e,toolboxManagerVisible:r.toolboxManager.state.visible}},provide(){return{language:window.navigator.language.split("-")[0]}}},ur={};var ca=T(aa,sa,oa,!1,la,"8e028078",null,null);function la(n){for(let t in ur)this[t]=ur[t]}var ua=function(){return ca.exports}();/*!
|
36
|
-
* vue-i18n v8.25.0
|
37
|
-
* (c) 2021 kazuya kawaguchi
|
38
|
-
* Released under the MIT License.
|
39
|
-
*/var hr=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function pt(n,t){typeof console!="undefined"&&(console.warn("[vue-i18n] "+n),t&&console.warn(t.stack))}function ha(n,t){typeof console!="undefined"&&(console.error("[vue-i18n] "+n),t&&console.error(t.stack))}var H=Array.isArray;function P(n){return n!==null&&typeof n=="object"}function fa(n){return typeof n=="boolean"}function I(n){return typeof n=="string"}var pa=Object.prototype.toString,da="[object Object]";function G(n){return pa.call(n)===da}function k(n){return n==null}function Se(n){return typeof n=="function"}function Wt(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var e=null,r=null;return n.length===1?P(n[0])||H(n[0])?r=n[0]:typeof n[0]=="string"&&(e=n[0]):n.length===2&&(typeof n[0]=="string"&&(e=n[0]),(P(n[1])||H(n[1]))&&(r=n[1])),{locale:e,params:r}}function dt(n){return JSON.parse(JSON.stringify(n))}function _a(n,t){if(n.delete(t))return n}function ma(n){var t=[];return n.forEach(function(e){return t.push(e)}),t}function Bt(n,t){return!!~n.indexOf(t)}var va=Object.prototype.hasOwnProperty;function ga(n,t){return va.call(n,t)}function at(n){for(var t=arguments,e=Object(n),r=1;r<arguments.length;r++){var i=t[r];if(i!=null){var s=void 0;for(s in i)ga(i,s)&&(P(i[s])?e[s]=at(e[s],i[s]):e[s]=i[s])}}return e}function Ut(n,t){if(n===t)return!0;var e=P(n),r=P(t);if(e&&r)try{var i=H(n),s=H(t);if(i&&s)return n.length===t.length&&n.every(function(c,l){return Ut(c,t[l])});if(!i&&!s){var o=Object.keys(n),a=Object.keys(t);return o.length===a.length&&o.every(function(c){return Ut(n[c],t[c])})}else return!1}catch{return!1}else return!e&&!r?String(n)===String(t):!1}function ya(n){return n.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ba(n){return n!=null&&Object.keys(n).forEach(function(t){typeof n[t]=="string"&&(n[t]=ya(n[t]))}),n}function wa(n){n.prototype.hasOwnProperty("$i18n")||Object.defineProperty(n.prototype,"$i18n",{get:function(){return this._i18n}}),n.prototype.$t=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},n.prototype.$tc=function(t,e){for(var r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];var s=this.$i18n;return s._tc.apply(s,[t,s.locale,s._getMessages(),this,e].concat(r))},n.prototype.$te=function(t,e){var r=this.$i18n;return r._te(t,r.locale,r._getMessages(),e)},n.prototype.$d=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(r))},n.prototype.$n=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(r))}}var Sa={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n){if(t.i18n instanceof p){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach(function(a){e=at(e,JSON.parse(a))}),Object.keys(e).forEach(function(a){t.i18n.mergeLocaleMessage(a,e[a])})}catch{}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(G(t.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?this.$root.$i18n:null;if(r&&(t.i18n.root=this.$root,t.i18n.formatter=r.formatter,t.i18n.fallbackLocale=r.fallbackLocale,t.i18n.formatFallbackMessages=r.formatFallbackMessages,t.i18n.silentTranslationWarn=r.silentTranslationWarn,t.i18n.silentFallbackWarn=r.silentFallbackWarn,t.i18n.pluralizationRules=r.pluralizationRules,t.i18n.preserveDirectiveContent=r.preserveDirectiveContent),t.__i18n)try{var i=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach(function(a){i=at(i,JSON.parse(a))}),t.i18n.messages=i}catch{}var s=t.i18n,o=s.sharedMessages;o&&G(o)&&(t.i18n.messages=at(t.i18n.messages,o)),this._i18n=new p(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(t.i18n.sync===void 0||!!t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof p&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?t.i18n instanceof p?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):G(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof p?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof p&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(!!this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}},fr={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var r=e.data,i=e.parent,s=e.props,o=e.slots,a=i.$i18n;if(!!a){var c=s.path,l=s.locale,u=s.places,h=o(),f=a.i(c,l,Ea(h)||u?Ta(h.default,u):h),d=!!s.tag&&s.tag!==!0||s.tag===!1?s.tag:"span";return d?t(d,r,f):f}}};function Ea(n){var t;for(t in n)if(t!=="default")return!1;return Boolean(t)}function Ta(n,t){var e=t?Ia(t):{};if(!n)return e;n=n.filter(function(i){return i.tag||i.text.trim()!==""});var r=n.every(xa);return n.reduce(r?Ca:pr,e)}function Ia(n){return Array.isArray(n)?n.reduce(pr,{}):Object.assign({},n)}function Ca(n,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(n[t.data.attrs.place]=t),n}function pr(n,t,e){return n[e]=t,n}function xa(n){return Boolean(n.data&&n.data.attrs&&n.data.attrs.place)}var dr={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var r=e.props,i=e.parent,s=e.data,o=i.$i18n;if(!o)return null;var a=null,c=null;I(r.format)?a=r.format:P(r.format)&&(r.format.key&&(a=r.format.key),c=Object.keys(r.format).reduce(function(d,_){var v;return Bt(hr,_)?Object.assign({},d,(v={},v[_]=r.format[_],v)):d},null));var l=r.locale||o.locale,u=o._ntp(r.value,l,a,c),h=u.map(function(d,_){var v,w=s.scopedSlots&&s.scopedSlots[d.type];return w?w((v={},v[d.type]=d.value,v.index=_,v.parts=u,v)):d.value}),f=!!r.tag&&r.tag!==!0||r.tag===!1?r.tag:"span";return f?t(f,{attrs:s.attrs,class:s.class,staticClass:s.staticClass},h):h}};function Aa(n,t,e){!_r(n,e)||mr(n,t,e)}function La(n,t,e,r){if(!!_r(n,e)){var i=e.context.$i18n;$a(n,e)&&Ut(t.value,t.oldValue)&&Ut(n._localeMessage,i.getLocaleMessage(i.locale))||mr(n,t,e)}}function Ma(n,t,e,r){var i=e.context;if(!i){pt("Vue instance does not exists in VNode context");return}var s=e.context.$i18n||{};!t.modifiers.preserve&&!s.preserveDirectiveContent&&(n.textContent=""),n._vt=void 0,delete n._vt,n._locale=void 0,delete n._locale,n._localeMessage=void 0,delete n._localeMessage}function _r(n,t){var e=t.context;return e?e.$i18n?!0:(pt("VueI18n instance does not exists in Vue instance"),!1):(pt("Vue instance does not exists in VNode context"),!1)}function $a(n,t){var e=t.context;return n._locale===e.$i18n.locale}function mr(n,t,e){var r,i,s=t.value,o=Oa(s),a=o.path,c=o.locale,l=o.args,u=o.choice;if(!a&&!c&&!l){pt("value type not supported");return}if(!a){pt("`path` is required in v-t directive");return}var h=e.context;u!=null?n._vt=n.textContent=(r=h.$i18n).tc.apply(r,[a,u].concat(vr(c,l))):n._vt=n.textContent=(i=h.$i18n).t.apply(i,[a].concat(vr(c,l))),n._locale=h.$i18n.locale,n._localeMessage=h.$i18n.getLocaleMessage(h.$i18n.locale)}function Oa(n){var t,e,r,i;return I(n)?t=n:G(n)&&(t=n.path,e=n.locale,r=n.args,i=n.choice),{path:t,locale:e,args:r,choice:i}}function vr(n,t){var e=[];return n&&e.push(n),t&&(Array.isArray(t)||G(t))&&e.push(t),e}var M;function Ee(n){Ee.installed=!0,M=n,M.version&&Number(M.version.split(".")[0]),wa(M),M.mixin(Sa),M.directive("t",{bind:Aa,update:La,unbind:Ma}),M.component(fr.name,fr),M.component(dr.name,dr);var t=M.config.optionMergeStrategies;t.i18n=function(e,r){return r===void 0?e:r}}var gr=function(){this._caches=Object.create(null)};gr.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=ka(t),this._caches[t]=r),Pa(r,e)};var Na=/^(?:\d)+/,Fa=/^(?:\w)+/;function ka(n){for(var t=[],e=0,r="";e<n.length;){var i=n[e++];if(i==="{"){r&&t.push({type:"text",value:r}),r="";var s="";for(i=n[e++];i!==void 0&&i!=="}";)s+=i,i=n[e++];var o=i==="}",a=Na.test(s)?"list":o&&Fa.test(s)?"named":"unknown";t.push({value:s,type:a})}else i==="%"?n[e]!=="{"&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}function Pa(n,t){var e=[],r=0,i=Array.isArray(t)?"list":P(t)?"named":"unknown";if(i==="unknown")return e;for(;r<n.length;){var s=n[r];switch(s.type){case"text":e.push(s.value);break;case"list":e.push(t[parseInt(s.value,10)]);break;case"named":i==="named"&&e.push(t[s.value]);break}r++}return e}var C=0,_t=1,yr=2,br=3,Te=0,Ht=1,Gt=2,et=3,J=4,qt=5,zt=6,Yt=7,Mt=8,nt=[];nt[Te]={ws:[Te],ident:[et,C],"[":[J],eof:[Yt]},nt[Ht]={ws:[Ht],".":[Gt],"[":[J],eof:[Yt]},nt[Gt]={ws:[Gt],ident:[et,C],"0":[et,C],number:[et,C]},nt[et]={ident:[et,C],"0":[et,C],number:[et,C],ws:[Ht,_t],".":[Gt,_t],"[":[J,_t],eof:[Yt,_t]},nt[J]={"'":[qt,C],'"':[zt,C],"[":[J,yr],"]":[Ht,br],eof:Mt,else:[J,C]},nt[qt]={"'":[J,C],eof:Mt,else:[qt,C]},nt[zt]={'"':[J,C],eof:Mt,else:[zt,C]};var Va=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ra(n){return Va.test(n)}function Da(n){var t=n.charCodeAt(0),e=n.charCodeAt(n.length-1);return t===e&&(t===34||t===39)?n.slice(1,-1):n}function ja(n){if(n==null)return"eof";var t=n.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return n;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Wa(n){var t=n.trim();return n.charAt(0)==="0"&&isNaN(n)?!1:Ra(t)?Da(t):"*"+t}function Ba(n){var t=[],e=-1,r=Te,i=0,s,o,a,c,l,u,h,f=[];f[_t]=function(){o!==void 0&&(t.push(o),o=void 0)},f[C]=function(){o===void 0?o=a:o+=a},f[yr]=function(){f[C](),i++},f[br]=function(){if(i>0)i--,r=J,f[C]();else{if(i=0,o===void 0||(o=Wa(o),o===!1))return!1;f[_t]()}};function d(){var _=n[e+1];if(r===qt&&_==="'"||r===zt&&_==='"')return e++,a="\\"+_,f[C](),!0}for(;r!==null;)if(e++,s=n[e],!(s==="\\"&&d())){if(c=ja(s),h=nt[r],l=h[c]||h.else||Mt,l===Mt||(r=l[0],u=f[l[1]],u&&(a=l[2],a=a===void 0?s:a,u()===!1)))return;if(r===Yt)return t}}var Ie=function(){this._cache=Object.create(null)};Ie.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=Ba(t),e&&(this._cache[t]=e)),e||[]},Ie.prototype.getPathValue=function(t,e){if(!P(t))return null;var r=this.parsePath(e);if(r.length===0)return null;for(var i=r.length,s=t,o=0;o<i;){var a=s[r[o]];if(a==null)return null;s=a,o++}return s};var Ua=/<\/?[\w\s="/.':;#-\/]+>/,Ha=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Ga=/^@(?:\.([a-z]+))?:/,qa=/[()]/g,wr={upper:function(n){return n.toLocaleUpperCase()},lower:function(n){return n.toLocaleLowerCase()},capitalize:function(n){return""+n.charAt(0).toLocaleUpperCase()+n.substr(1)}},Ce=new gr,p=function(t){var e=this;t===void 0&&(t={}),!M&&typeof window!="undefined"&&window.Vue&&Ee(window.Vue);var r=t.locale||"en-US",i=t.fallbackLocale===!1?!1:t.fallbackLocale||"en-US",s=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||Ce,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=t.sync===void 0?!0:!!t.sync,this._fallbackRoot=t.fallbackRoot===void 0?!0:!!t.fallbackRoot,this._formatFallbackMessages=t.formatFallbackMessages===void 0?!1:!!t.formatFallbackMessages,this._silentTranslationWarn=t.silentTranslationWarn===void 0?!1:t.silentTranslationWarn,this._silentFallbackWarn=t.silentFallbackWarn===void 0?!1:!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Ie,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=t.preserveDirectiveContent===void 0?!1:!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(c,l){var u=Object.getPrototypeOf(e);if(u&&u.getChoiceIndex){var h=u.getChoiceIndex;return h.call(e,c,l)}var f=function(d,_){return d=Math.abs(d),_===2?d?d>1?1:0:1:d?Math.min(d,2):0};return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[c,l]):f(c,l)},this._exist=function(c,l){return!c||!l?!1:!!(!k(e._path.getPathValue(c,l))||c[l])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(s).forEach(function(c){e._checkLocaleMessage(c,e._warnHtmlInMessage,s[c])}),this._initVM({locale:r,fallbackLocale:i,messages:s,dateTimeFormats:o,numberFormats:a})},b={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};p.prototype._checkLocaleMessage=function(t,e,r){var i=[],s=function(o,a,c,l){if(G(c))Object.keys(c).forEach(function(f){var d=c[f];G(d)?(l.push(f),l.push("."),s(o,a,d,l),l.pop(),l.pop()):(l.push(f),s(o,a,d,l),l.pop())});else if(H(c))c.forEach(function(f,d){G(f)?(l.push("["+d+"]"),l.push("."),s(o,a,f,l),l.pop(),l.pop()):(l.push("["+d+"]"),s(o,a,f,l),l.pop())});else if(I(c)){var u=Ua.test(c);if(u){var h="Detected HTML in message '"+c+"' of keypath '"+l.join("")+"' at '"+a+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";o==="warn"?pt(h):o==="error"&&ha(h)}}};s(e,t,r,i)},p.prototype._initVM=function(t){var e=M.config.silent;M.config.silent=!0,this._vm=new M({data:t}),M.config.silent=e},p.prototype.destroyVM=function(){this._vm.$destroy()},p.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},p.prototype.unsubscribeDataChanging=function(t){_a(this._dataListeners,t)},p.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e=ma(t._dataListeners),r=e.length;r--;)M.nextTick(function(){e[r]&&e[r].$forceUpdate()})},{deep:!0})},p.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})},p.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},b.vm.get=function(){return this._vm},b.messages.get=function(){return dt(this._getMessages())},b.dateTimeFormats.get=function(){return dt(this._getDateTimeFormats())},b.numberFormats.get=function(){return dt(this._getNumberFormats())},b.availableLocales.get=function(){return Object.keys(this.messages).sort()},b.locale.get=function(){return this._vm.locale},b.locale.set=function(n){this._vm.$set(this._vm,"locale",n)},b.fallbackLocale.get=function(){return this._vm.fallbackLocale},b.fallbackLocale.set=function(n){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",n)},b.formatFallbackMessages.get=function(){return this._formatFallbackMessages},b.formatFallbackMessages.set=function(n){this._formatFallbackMessages=n},b.missing.get=function(){return this._missing},b.missing.set=function(n){this._missing=n},b.formatter.get=function(){return this._formatter},b.formatter.set=function(n){this._formatter=n},b.silentTranslationWarn.get=function(){return this._silentTranslationWarn},b.silentTranslationWarn.set=function(n){this._silentTranslationWarn=n},b.silentFallbackWarn.get=function(){return this._silentFallbackWarn},b.silentFallbackWarn.set=function(n){this._silentFallbackWarn=n},b.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},b.preserveDirectiveContent.set=function(n){this._preserveDirectiveContent=n},b.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},b.warnHtmlInMessage.set=function(n){var t=this,e=this._warnHtmlInMessage;if(this._warnHtmlInMessage=n,e!==n&&(n==="warn"||n==="error")){var r=this._getMessages();Object.keys(r).forEach(function(i){t._checkLocaleMessage(i,t._warnHtmlInMessage,r[i])})}},b.postTranslation.get=function(){return this._postTranslation},b.postTranslation.set=function(n){this._postTranslation=n},p.prototype._getMessages=function(){return this._vm.messages},p.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},p.prototype._getNumberFormats=function(){return this._vm.numberFormats},p.prototype._warnDefault=function(t,e,r,i,s,o){if(!k(r))return r;if(this._missing){var a=this._missing.apply(null,[t,e,i,s]);if(I(a))return a}if(this._formatFallbackMessages){var c=Wt.apply(void 0,s);return this._render(e,o,c.params,e)}else return e},p.prototype._isFallbackRoot=function(t){return!t&&!k(this._root)&&this._fallbackRoot},p.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},p.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},p.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},p.prototype._interpolate=function(t,e,r,i,s,o,a){if(!e)return null;var c=this._path.getPathValue(e,r);if(H(c)||G(c))return c;var l;if(k(c))if(G(e)){if(l=e[r],!(I(l)||Se(l)))return null}else return null;else if(I(c)||Se(c))l=c;else return null;return I(l)&&(l.indexOf("@:")>=0||l.indexOf("@.")>=0)&&(l=this._link(t,e,l,i,"raw",o,a)),this._render(l,s,o,r)},p.prototype._link=function(t,e,r,i,s,o,a){var c=r,l=c.match(Ha);for(var u in l)if(!!l.hasOwnProperty(u)){var h=l[u],f=h.match(Ga),d=f[0],_=f[1],v=h.replace(d,"").replace(qa,"");if(Bt(a,v))return c;a.push(v);var w=this._interpolate(t,e,v,i,s==="raw"?"string":s,s==="raw"?void 0:o,a);if(this._isFallbackRoot(w)){if(!this._root)throw Error("unexpected error");var B=this._root.$i18n;w=B._translate(B._getMessages(),B.locale,B.fallbackLocale,v,i,s,o)}w=this._warnDefault(t,v,w,i,H(o)?o:[o],s),this._modifiers.hasOwnProperty(_)?w=this._modifiers[_](w):wr.hasOwnProperty(_)&&(w=wr[_](w)),a.pop(),c=w?c.replace(h,w):c}return c},p.prototype._createMessageContext=function(t,e,r,i){var s=this,o=H(t)?t:[],a=P(t)?t:{},c=function(f){return o[f]},l=function(f){return a[f]},u=this._getMessages(),h=this.locale;return{list:c,named:l,values:t,formatter:e,path:r,messages:u,locale:h,linked:function(f){return s._interpolate(h,u[h]||{},f,null,i,void 0,[f])}}},p.prototype._render=function(t,e,r,i){if(Se(t))return t(this._createMessageContext(r,this._formatter||Ce,i,e));var s=this._formatter.interpolate(t,r,i);return s||(s=Ce.interpolate(t,r,i)),e==="string"&&!I(s)?s.join(""):s},p.prototype._appendItemToChain=function(t,e,r){var i=!1;return Bt(t,e)||(i=!0,e&&(i=e[e.length-1]!=="!",e=e.replace(/!/g,""),t.push(e),r&&r[e]&&(i=r[e]))),i},p.prototype._appendLocaleToChain=function(t,e,r){var i,s=e.split("-");do{var o=s.join("-");i=this._appendItemToChain(t,o,r),s.splice(-1,1)}while(s.length&&i===!0);return i},p.prototype._appendBlockToChain=function(t,e,r){for(var i=!0,s=0;s<e.length&&fa(i);s++){var o=e[s];I(o)&&(i=this._appendLocaleToChain(t,o,r))}return i},p.prototype._getLocaleChain=function(t,e){if(t==="")return[];this._localeChainCache||(this._localeChainCache={});var r=this._localeChainCache[t];if(!r){e||(e=this.fallbackLocale),r=[];for(var i=[t];H(i);)i=this._appendBlockToChain(r,i,e);var s;H(e)?s=e:P(e)?e.default?s=e.default:s=null:s=e,I(s)?i=[s]:i=s,i&&this._appendBlockToChain(r,i,null),this._localeChainCache[t]=r}return r},p.prototype._translate=function(t,e,r,i,s,o,a){for(var c=this._getLocaleChain(e,r),l,u=0;u<c.length;u++){var h=c[u];if(l=this._interpolate(h,t[h],i,s,o,a,[i]),!k(l))return l}return null},p.prototype._t=function(t,e,r,i){for(var s,o=[],a=arguments.length-4;a-- >0;)o[a]=arguments[a+4];if(!t)return"";var c=Wt.apply(void 0,o);this._escapeParameterHtml&&(c.params=ba(c.params));var l=c.locale||e,u=this._translate(r,l,this.fallbackLocale,t,i,"string",c.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(s=this._root).$t.apply(s,[t].concat(o))}else return u=this._warnDefault(l,t,u,i,o,"string"),this._postTranslation&&u!==null&&u!==void 0&&(u=this._postTranslation(u,t)),u},p.prototype.t=function(t){for(var e,r=[],i=arguments.length-1;i-- >0;)r[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(r))},p.prototype._i=function(t,e,r,i,s){var o=this._translate(r,e,this.fallbackLocale,t,i,"raw",s);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,s)}else return this._warnDefault(e,t,o,i,[s],"raw")},p.prototype.i=function(t,e,r){return t?(I(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,r)):""},p.prototype._tc=function(t,e,r,i,s){for(var o,a=[],c=arguments.length-5;c-- >0;)a[c]=arguments[c+5];if(!t)return"";s===void 0&&(s=1);var l={count:s,n:s},u=Wt.apply(void 0,a);return u.params=Object.assign(l,u.params),a=u.locale===null?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,r,i].concat(a)),s)},p.prototype.fetchChoice=function(t,e){if(!t||!I(t))return null;var r=t.split("|");return e=this.getChoiceIndex(e,r.length),r[e]?r[e].trim():t},p.prototype.tc=function(t,e){for(var r,i=[],s=arguments.length-2;s-- >0;)i[s]=arguments[s+2];return(r=this)._tc.apply(r,[t,this.locale,this._getMessages(),null,e].concat(i))},p.prototype._te=function(t,e,r){for(var i=[],s=arguments.length-3;s-- >0;)i[s]=arguments[s+3];var o=Wt.apply(void 0,i).locale||e;return this._exist(r[o],t)},p.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},p.prototype.getLocaleMessage=function(t){return dt(this._vm.messages[t]||{})},p.prototype.setLocaleMessage=function(t,e){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},p.prototype.mergeLocaleMessage=function(t,e){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,at(typeof this._vm.messages[t]!="undefined"&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},p.prototype.getDateTimeFormat=function(t){return dt(this._vm.dateTimeFormats[t]||{})},p.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},p.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,at(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},p.prototype._clearDateTimeFormat=function(t,e){for(var r in e){var i=t+"__"+r;!this._dateTimeFormatters.hasOwnProperty(i)||delete this._dateTimeFormatters[i]}},p.prototype._localizeDateTime=function(t,e,r,i,s){for(var o=e,a=i[o],c=this._getLocaleChain(e,r),l=0;l<c.length;l++){var u=o,h=c[l];if(a=i[h],o=h,!(k(a)||k(a[s])))break}if(k(a)||k(a[s]))return null;var f=a[s],d=o+"__"+s,_=this._dateTimeFormatters[d];return _||(_=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(o,f)),_.format(t)},p.prototype._d=function(t,e,r){if(!r)return new Intl.DateTimeFormat(e).format(t);var i=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,r,e)}else return i||""},p.prototype.d=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.locale,s=null;return e.length===1?I(e[0])?s=e[0]:P(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key)):e.length===2&&(I(e[0])&&(s=e[0]),I(e[1])&&(i=e[1])),this._d(t,i,s)},p.prototype.getNumberFormat=function(t){return dt(this._vm.numberFormats[t]||{})},p.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},p.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,at(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},p.prototype._clearNumberFormat=function(t,e){for(var r in e){var i=t+"__"+r;!this._numberFormatters.hasOwnProperty(i)||delete this._numberFormatters[i]}},p.prototype._getNumberFormatter=function(t,e,r,i,s,o){for(var a=e,c=i[a],l=this._getLocaleChain(e,r),u=0;u<l.length;u++){var h=a,f=l[u];if(c=i[f],a=f,!(k(c)||k(c[s])))break}if(k(c)||k(c[s]))return null;var d=c[s],_;if(o)_=new Intl.NumberFormat(a,Object.assign({},d,o));else{var v=a+"__"+s;_=this._numberFormatters[v],_||(_=this._numberFormatters[v]=new Intl.NumberFormat(a,d))}return _},p.prototype._n=function(t,e,r,i){if(!p.availabilities.numberFormat)return"";if(!r){var s=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return s.format(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,i),a=o&&o.format(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:r,locale:e},i))}else return a||""},p.prototype.n=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.locale,s=null,o=null;return e.length===1?I(e[0])?s=e[0]:P(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(s=e[0].key),o=Object.keys(e[0]).reduce(function(a,c){var l;return Bt(hr,c)?Object.assign({},a,(l={},l[c]=e[0][c],l)):a},null)):e.length===2&&(I(e[0])&&(s=e[0]),I(e[1])&&(i=e[1])),this._n(t,i,s,o)},p.prototype._ntp=function(t,e,r,i){if(!p.availabilities.numberFormat)return[];if(!r){var s=i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e);return s.formatToParts(t)}var o=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,i),a=o&&o.formatToParts(t);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,r,i)}else return a||[]},Object.defineProperties(p.prototype,b);var xe;Object.defineProperty(p,"availabilities",{get:function(){if(!xe){var t=typeof Intl!="undefined";xe={dateTimeFormat:t&&typeof Intl.DateTimeFormat!="undefined",numberFormat:t&&typeof Intl.NumberFormat!="undefined"}}return xe}}),p.install=Ee,p.version="8.25.0";var Sr=p;const za={general:{save:"Save",reset:"Reset"},search:{title:"Suche",placeholder:"Search for Street, Address, Landmark, POI"},oblique:{title:"Schr\xE4gansicht",south:"S\xFCd",west:"West",east:"Ost",north:"Nord"},"action-content":{"camera-flight":"Camera Flight {index} in one line",interpolation:"Interpolation","total-flight-duration":"Total flight duration","circular-flight-path":"Circular flight path","show-flight-path":"Show flight path","flight-viewpoint":"Flight viewpoint","viewpoint-step":"Viewpoint step {index}"},"layer-tree":{title:"Inhalte / Umgebung",search:{placeholder:"Element, Ansicht..."}},components:{title:"Components"},tools:{title:"Werkzeuge"},"poi-view":{title:"POI & Attributes"},"endless-list":{"load-more":"Weitere Eintr\xE4ge laden","amount-loaded":"{loaded} von {total} Eintr\xE4ge "},"context-menu":{regular:{"zoom-in":"Zoom in","zoom-out":"Zoom out","rotate-90-cw":"Rotate 90\xB0 CW","rotate-90-ccw":"Rotate 90\xB0 CCW","pedestrian-mode":"Predestrian mode","reset-view":"Reset view",paste:"Paste","view-coordinates":"View coordinates","copy-coordinates":"Copy coordinates"}}},Ya={general:{save:"Save",reset:"Reset"},search:{title:"Suche",placeholder:"Search for Street, Address, Landmark, POI"},oblique:{title:"Schr\xE4gansicht",south:"S\xFCd",west:"West",east:"Ost",north:"Nord"},"action-content":{"camera-flight":"Camera Flight {index} in one line",interpolation:"Interpolation","total-flight-duration":"Total flight duration","circular-flight-path":"Circular flight path","show-flight-path":"Show flight path","flight-viewpoint":"Flight viewpoint","viewpoint-step":"Viewpoint step {index}"},"layer-tree":{title:"Inhalte / Umgebung",search:{placeholder:"Element, Ansicht..."}},components:{title:"Components"},tools:{title:"Werkzeuge"},contextMenu:{regular:{"zoom-in":"Zoom in","zoom-out":"Zoom out","rotate-90-cw":"Rotate 90\xB0 CW","rotate-90-ccw":"Rotate 90\xB0 CCW","pedestrian-mode":"Predestrian mode","reset-view":"Reset view",paste:"Paste","view-coordinates":"View coordinates","copy-coordinates":"Copy coordinates"}}};L.use(Sr);const Er=new Sr({locale:"de",messages:{en:Ya,de:za}});L.filter("translate",(n,t)=>Er.t(n,t));class Ja{constructor(){this.onAdded=new K,this.onRemoved=new K,this.state=Q({visible:!0,groups:{}})}setGroupOpen(t,e){Object.values(this.state.groups).forEach(r=>{r.id===t?L.set(this.state.groups,r.id,F(E({},r),{open:e})):L.set(this.state.groups,r.id,F(E({},r),{open:!1}))})}toggle(){L.set(this.state,"visible",!this.state.visible)}has(t){return!!this.get(t)}get(t){return Object.values(this.state.groups).map(e=>e.options).flat().find(e=>e&&e.id===t)}setDisabled(t,e){const[r,i]=this.getSlotIndexAndEntry(t),s=i.options.find(o=>o.id===t);s.disabled=e,L.set(this.state.groups,r,i)}getSlotIndexAndEntry(t){return Object.entries(this.state.groups).find(e=>e[1]&&e[1].options&&e[1].options.find(r=>r.id===t))}selectOption(t){const[e,r]=this.getSlotIndexAndEntry(t),i=r.options.find(s=>s.id===t);i&&(i.selected=!i.selected),L.set(this.state.groups,e,E({},r))}getSlotIndexFor(t){const[e]=Object.entries(this.state.groups).find(r=>r[1].options.find(i=>i.id===t));return e}getNumberOfUsedSlots(){return Object.values(this.state.groups).reduce((t,e)=>e.type==="toggleButton"||e.type==="customComponent"||e.options&&e.options.length?t+1:t,0)}bringToTop(t){const[e,r]=this.getSlotIndexAndEntry(t),i=[r.options.find(s=>s.id===t),...r.options.filter(s=>s.id!==t)];L.set(this.state.groups,e,F(E({},r),{options:i}))}addToolboxItem(t,e){if(this.has(t.id))throw new Error(`Toolbox-Item with id ${t.id} has already been registered`);L.set(this.state.groups,e,F(E({},this.state.groups[e]),{options:[...this.state.groups[e].options,t]})),this.onAdded.raiseEvent(t.id)}addToolboxGroup(t,e){if(this.state.groups[e])throw new Error(`Toolbox-Group with slot-id ${e} has already been registered`);L.set(this.state.groups,e,t)}removeToolboxItem(t){const e=this.getSlotIndexFor(t);if(!e)throw new Error(`Cannot find slot index for toolbar item with id ${t}`);L.set(this.state.groups,e,F(E({},this.state.groups[e]),{options:[...this.state.groups[e].options.filter(r=>r.id!==t)]})),this.onRemoved.raiseEvent(t)}}const m={NONE:0,INACTIVE:1,LOADING:2,ACTIVE:3,INDETERMINATE:4},Tr={[m.INACTIVE]:"$vcsCheckbox",[m.ACTIVE]:"$vcsCheckboxChecked",[m.INDETERMINATE]:"$vcsCheckboxIndeterminate",[m.LOADING]:"$vcsProgress"};function Za(n,t,e){g(n,String),g(t==null?void 0:t.value,Object.values(m)),g(e,Function);const r=t.value,i={name:n,title:"Activate",icon:Tr[r],callback:e},s=Zt(t,()=>{i.icon=Tr[t.value]});return{action:i,destroy:s}}const Ir=Symbol("ActionWeight"),q=new qr;class Z{static get className(){return"ContentTreeItem"}constructor(t,e){this._app=e,this._actions=y([]),this._name=t.name,this._visible=y(!0),this._clickable=y(!0),this._disabled=y(!1),this._state=y(m.NONE),this._stateActionListener=null,this._infoUrl=null,this.infoUrl=t.infoUrl,this._title=y(t.title),this._icon=y(t.icon),this._children=y([]),this._weight=xi(t.weight,0),this.initOpen=Ai(t.initOpen,!1),this.weightChanged=new K}get className(){return this.constructor.className}get name(){return this._name}get actions(){return this._actions.value.slice()}get visible(){return this._visible.value}set visible(t){this._visible.value=!!t}get clickable(){return this._clickable.value}set clickable(t){this._clickable.value=!!t}get disabled(){return this._disabled.value}set disabled(t){this._disabled.value=!!t}get state(){return this._state.value}set state(t){g(t,Object.values(m)),this._state.value!==t&&(this._state.value=t,this._setStateAction())}get infoUrl(){return this._infoUrl}set infoUrl(t){if(ut(t,String),this._infoUrl!==t){this._infoUrl=t;const e="infoUrl";if(this._infoUrl){const r=vn({name:e,title:"Info",icon:"$vcsInfo"},this._infoUrl);this.addAction(r,6)}else this.removeAction(e)}}get title(){return this._title.value}set title(t){ut(t,[String,Object]),this._title.value=t}get icon(){return this._icon.value}set icon(t){ut(t,[String,HTMLElement]),this._icon.value=t}get weight(){return this._weight}set weight(t){g(t,Number),t!==this._weight&&(this._weight=t,this.weightChanged.raiseEvent(t))}_setStateAction(){const t="stateAction";if(this.state!==m.NONE&&!this._stateActionListener){const{action:e,destroy:r}=Za(t,this._state,this.clicked.bind(this));this.addAction(e,0),this._stateActionListener=()=>{this.removeAction(t),r()}}else this._stateActionListener&&this.state===m.NONE&&(this._stateActionListener(),this._stateActionListener=null)}_getActionIndex(t){return this._actions.value.findIndex(e=>e.name===t)}addAction(t,e=11){if(g(t.name,String),ut(e,Number),this._getActionIndex(t.name)>-1)throw new Error("Action names must be unique");t[Ir]=e;const i=this._actions.value.findIndex(s=>s[Ir]>e);i>-1?this._actions.value.splice(i,0,t):this._actions.value.push(t)}removeAction(t){const e=this._getActionIndex(t);e>-1&&this._actions.value.splice(e,1)}async clicked(){}getTreeViewItem(){const t=this.clicked.bind(this);return Q({name:this._name,visible:this._visible,clickable:this._clickable,disabled:this._disabled,state:this._state,title:this._title,icon:this._icon,actions:this._actions,children:this._children,visibleChildren:$(()=>this._children.value.filter(e=>e.visible)),clicked:t})}toJSON(){const t={type:this.className,name:this.name};return this.title&&(t.title=this.title),this.icon&&(t.icon=this.icon),this.infoUrl&&(t.infoUrl=this.infoUrl),this.initOpen&&(t.initOpen=this.initOpen),this.weight&&(t.weight=this.weight),t}destroy(){this._stateActionListener&&this._stateActionListener(),this.actions.splice(0),this._children.value.splice(0)}}q.registerClass(Z.className,Z);const Ae=Symbol("SubTree");class Jt extends Z{static get className(){return"SubContentTreeItem"}constructor(t,e){super(t,e);if(!this.name||this.name.split(".").length>1)throw new Error(`Sub trees may only be defined on top level. Tree ${this.name} is nested or undefined`);this.clickable=!1}getTreeViewItem(){const t=super.getTreeViewItem();return t[Ae]=!0,t}}q.registerClass(Jt.className,Jt);var Qa=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.tree&&n.tree.length?e("VcsTreeview",{attrs:{items:n.tree,open:n.open,"has-searchbar":!0,"searchbar-placeholder":"layer-tree.search.placeholder","item-children":"visibleChildren"},on:{"update:open":function(r){n.open=r}}}):n._e()},Ka=[];const Xa={name:"VcsLayerTree",components:{VcsTreeview:_i},props:{windowState:{type:Object,required:!0}},setup(n){const t=ct("vcsApp"),{id:e}=n.windowState,r=t.contentTree.getTreeOpenStateRef(e);return{tree:t.contentTree.getComputedVisibleTree(e),open:r}}},Cr={};var tc=T(Xa,Qa,Ka,!1,ec,null,null,null);function ec(n){for(let t in Cr)this[t]=Cr[t]}var nc=function(){return tc.exports}();const Le=Symbol("SubTreeOpenState");class rc extends Yr{constructor(t){super();this._app=t;const e=()=>{this._suspendListeners||this._setTreeView()};this._weightListeners=new Map,this._listeners=[this.added.addEventListener(r=>{e(),this._weightListeners.set(r.name,r.weightChanged.addEventListener(e))}),this.removed.addEventListener(r=>{e(),this._weightListeners.has(r.name)&&(this._weightListeners.get(r.name)(),this._weightListeners.delete(r.name))})],this._defaultSubtreeItem=new Jt({name:"Content",icon:"$vcsLayers"},t),this._subTreeViewItems=y(new Map),this._subTreeListeners=[],this._suspendListeners=!1}_clearSubTrees(){this._subTreeViewItems.value.clear(),this._subTreeListeners.forEach(t=>{t()})}_createSubtreeActionButton(t,e=A.STATIC){const r=St(),i=this._app,{action:s,destroy:o}=fe({name:t.name,icon:t.icon,title:t.title},{component:nc,slot:e,id:r,state:{headerIcon:t.icon,headerTitle:t.title}},i.windowManager,R);return this._app.navbarManager.add({id:r,action:s,location:U.CONTENT},R),this._subTreeViewItems.value.set(r,t),()=>{i.windowManager.remove(r),i.navbarManager.remove(r),o()}}_setTreeView(){this._clearSubTrees();const t=new Map;[...this._array].sort((o,a)=>{const c=o.name.split(".").length,l=a.name.split(".").length;return c===l?o.weight===a.weight?0:o.weight>a.weight?-1:1:c>l?1:-1}).forEach(o=>{const a=o.getTreeViewItem(),c=a.name.split("."),l=c.pop();let u={children:t};c.forEach(h=>{!u||(u=u.children.get(h))}),u&&u.children.set(l,{treeViewItem:a,children:new Map})});const e=({treeViewItem:o,children:a})=>{const c=[...a.values()];return c.forEach(e),o.children.splice(0),o.children.push(...c.map(l=>l.treeViewItem)),o},r=[...t.values()].map(e),i=this._defaultSubtreeItem.getTreeViewItem();i.children.splice(0),i.children.push(...r.filter(o=>!o[Ae]));const s=[i,...r.filter(o=>o[Ae])];this._subTreeListeners=s.map(o=>this._createSubtreeActionButton(o))}get subTreeIds(){return[...this._subTreeViewItems.value.keys()]}getComputedVisibleTree(t){return $(()=>{const e=this._subTreeViewItems.value;return e.has(t)?e.get(t).visibleChildren:[]})}_getSubTree(t){return this._subTreeViewItems.value.get(t)}getChildrenForSubTree(t){const e=this._getSubTree(t);if(e){if(e===this._subTreeViewItems.value.values().next().value){const r=[...this._subTreeViewItems.value.values()].filter(i=>i!==e).map(i=>i.name);return this._array.filter(i=>!r.some(s=>i.name.startsWith(s)))}return this._array.filter(r=>r.name.startsWith(e.name))}return[]}getTreeOpenStateRef(t){const e=this._getSubTree(t);return e?(e[Le]||(e[Le]=y(this.getChildrenForSubTree(t).filter(r=>r.initOpen).map(r=>r.name))),e[Le]):y([])}destroy(){this._clearSubTrees(),this._defaultSubtreeItem.destroy(),this._listeners.forEach(t=>{t()}),this._weightListeners.forEach(t=>{t()}),this._weightListeners.clear(),super.destroy()}}function ic(n){const t=new rc(n),e=Xe(t,()=>n.dynamicContextId,null,i=>zr(n.contentTreeClassRegistry,i,n),Z),r=e.parseItems.bind(e);return e.parseItems=async function(...s){this._suspendListeners=!0,await r(...s),this._suspendListeners=!1,this._setTreeView()},e}function sc(){return un("VcsUiApp")}class oc extends Jr{constructor(){super();this._plugins=Xe(new Ze,()=>this.dynamicContextId,Ri,Di),this._pluginAddedListener=this._plugins.added.addEventListener(t=>{t.initialize&&t.initialize(this)}),this._contentTreeClassRegistry=new Zr(q),this._contentTree=ic(this),this._toolboxManager=new Ja,this._windowManager=new fn,this._navbarManager=new pn,this._overviewMap=new wo(this)}get plugins(){return this._plugins}get contentTree(){return this._contentTree}get contentTreeClassRegistry(){return this._contentTreeClassRegistry}get toolboxManager(){return this._toolboxManager}get windowManager(){return this._windowManager}get navbarManager(){return this._navbarManager}get overviewMap(){return this._overviewMap}async _parseContext(t){const{config:e}=t;Array.isArray(e.plugins)&&(await Promise.all(e.plugins.map(async i=>{const s=await Vi(this,i.name,i);return s?(Pi(s.name)||sc().warning(`plugin ${s.name} has no valid package name!`),s[Qr]=t.id,s):null}))).filter(i=>i).map(i=>this._plugins.override(i)).filter(i=>i),await super._parseContext(t),await this._contentTree.parseItems(e.contentTree,t.id)}async _removeContext(t){await Promise.all([super._removeContext(t),this._plugins.removeContext(t),this._contentTree.removeContext(t)])}destroy(){this.windowManager.destroy(),this.navbarManager.destroy(),this._overviewMap.destroy(),this._pluginAddedListener(),tn(this._plugins),tn(this._contentTree),this._contentTreeClassRegistry.destroy(),super.destroy()}}async function ac(n,t){g(n,String),ut(t,String);const e=new oc;if(new L({vuetify:we,i18n:Er,render:r=>r(ua,{props:{appId:e.id}})}).$mount(n),t){const r=await fetch(t).then(s=>s.json()),i=new Kr(r);await e.addContext(i)}return e}var cc=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e(wt,{staticStyle:{height:"100%"}},[n._v(" Statisches Window "),e(wt)],1)},lc=[];const uc={},xr={};var hc=T(uc,cc,lc,!1,fc,null,null,null);function fc(n){for(let t in xr)this[t]=xr[t]}var pc=function(){return hc.exports}();class Me extends Z{static get className(){return"GroupContentTreeItem"}constructor(t,e){super(t,e);this._childWatcher=Zt(this._children,()=>{const r=this._children.value;if(this.visible=r.some(i=>i.visible),r.every(i=>i.state===m.NONE))this.state=m.NONE;else{const i=r.filter(s=>s.state!==m.NONE);i.every(s=>s.state===m.ACTIVE)?this.state=m.ACTIVE:i.every(s=>s.state===m.INACTIVE)?this.state=m.INACTIVE:this.state=m.INDETERMINATE}},{deep:!0})}async clicked(){if(this.state===m.NONE)return;const t=this.state===m.ACTIVE?r=>r!==m.NONE:r=>r!==m.NONE&&r!==m.ACTIVE,e=this._children.value.filter(r=>r.visible&&t(r.state)).map(r=>r.clicked());await Promise.all(e)}destroy(){this._childWatcher(),super.destroy()}}q.registerClass(Me.className,Me);var dc=function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.items?e(wt,{staticClass:"pa-2"},[e("VcsSelect",{attrs:{items:n.items},model:{value:n.currentStyle,callback:function(r){n.currentStyle=r},expression:"currentStyle"}}),n.currentStyleLegend.length>0?e(nn,n._l(n.currentStyleLegend,function(r,i){return e(rn,{key:"style-legend-"+i,attrs:{dense:""}},[e(ui,[e(hi,{attrs:{color:r.color}})],1),e(sn,[n._v(" "+n._s(r.title)+" ")])],1)}),1):n._e()],1):n._e()},_c=[],Gc="";const mc={name:"StyleSelector",components:{VcsSelect:mi},props:{availableStyles:{type:Array,default:()=>[]},layerName:{type:String,required:!0}},setup({layerName:n,availableStyles:t}){const e=ct("vcsApp"),r=e.layers.getByKey(n),i=y(r.style.name),s=y([]),o=r.defaultStyle.name;function a(h){i.value=r.style.name,h.legend&&(s.value=h.legend)}a(r.style);const c=r.styleChanged.addEventListener(a);vt(()=>{c()});const l=$({get(){return i.value},set(h){const f=h===o?r.defaultStyle:e.styles.getByKey(h);r.setStyle(f)}}),u=$(()=>[{text:"Default",value:o},...t.map(h=>({text:h,value:h}))]);return{currentStyle:l,currentStyleLegend:s,items:u}}},Ar={};var vc=T(mc,dc,_c,!1,gc,"34299418",null,null);function gc(n){for(let t in Ar)this[t]=Ar[t]}var yc=function(){return vc.exports}();class mt extends Z{static get className(){return"VcsObjectContentTreeItem"}constructor(t,e){super(t,e);this._ownProperties={title:this.title,icon:this.icon,infoUrl:this.infoUrl},this._currentObjectProperties={}}_setProperties(t){this.title=t.title,this.icon=t.icon,this.infoUrl=t.infoUrl}setPropertiesFromObject(t){this._currentObjectProperties=t.properties;const e=E({},this._currentObjectProperties);Object.entries(this._ownProperties).forEach(([r,i])=>{i!==void 0&&(e[r]=i)}),this._setProperties(e)}toJSON(){const t=super.toJSON();return Object.entries(this._currentObjectProperties).forEach(([e,r])=>{t[e]&&t[e]===r&&this._ownProperties[e]!==r&&delete t[e]}),t}}q.registerClass(mt.className,mt);function $e(n,t,e){const r="ViewPointAction";if(n.removeAction(r),e){const i=pe({name:r,icon:"mdi-crosshairs-gps"},e,t.viewPoints,t.maps);n.addAction(i,2)}}function Oe(n){return n.active?m.ACTIVE:n.loading?m.LOADING:m.INACTIVE}class Ne extends mt{static get className(){return"LayerContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._layerName=t.layerName,this._listeners=[],this._setup()}get _layer(){return this._app.layers.getByKey(this._layerName)}_setStyleAction(t){const e="StyleSelector";if(this.removeAction(e),Array.isArray(t)){const{action:r,destroy:i}=mn({name:e,icon:"$vcsColorSwatch"},{component:yc,props:Q({availableStyles:t.slice(),layerName:this._layerName})},this._app.windowManager,R);this.addAction(r,4),this._listeners.push(i)}}_setLayerExtentAction(){const t="LayerExtentAction";if(this.removeAction(t),this._layer){const{extent:e}=this._layer.toJSON();if(e){const r=Qt.createViewPointFromExtent(this._layer.extent),i=pe({name:"LayerExtentAction"},r,this._app.viewPoints,this._app.maps);this.addAction(i,8)}}}_setProperties(t){super._setProperties(t),this._setStyleAction(t.availableStyles),$e(this,this._app,t.defaultViewpoint)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._layerName&&this._setup()};this._layer?(this.visible=this._layer.isSupported(this._app.maps.activeMap),this.state=Oe(this._layer),this._setLayerExtentAction(),this.setPropertiesFromObject(this._layer),this._listeners.push(this._app.layers.removed.addEventListener(t)),this._listeners.push(this._app.layers.added.addEventListener(t)),this._listeners.push(this._layer.stateChanged.addEventListener(()=>{this.state=Oe(this._layer)})),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this.visible=this._layer.isSupported(this._app.maps.activeMap)}))):(this.visible=!1,this._listeners.push(this._app.layers.added.addEventListener(t)))}async clicked(){this._layer&&(this.state===m.INACTIVE?await this._layer.activate():this._layer.deactivate())}toJSON(){const t=super.toJSON();return t.layerName=this._layerName,t}destroy(){super.destroy(),this._clearListeners()}}q.registerClass(Ne.className,Ne);function Lr(n){const t=n.map(e=>Oe(e));return t.some(e=>e===m.LOADING)?m.LOADING:t.every(e=>e===m.INACTIVE)?m.INACTIVE:t.every(e=>e===m.ACTIVE)?m.ACTIVE:m.INDETERMINATE}class Fe extends Z{static get className(){return"LayerGroupContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._layerNames=Array.isArray(t.layerNames)?t.layerNames.slice():[],this._listeners=[],this._defaultViewpoint=t.defaultViewpoint||null,this._setup()}get _layers(){return this._layerNames.map(t=>this._app.layers.getByKey(t)).filter(t=>t)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=r=>{this._layerNames.includes(r.name)&&this._setup()},e=this._layers;this.visible=e.some(r=>r.isSupported(this._app.maps.activeMap)),this.state=Lr(e),$e(this,this._app,this._defaultViewpoint),this._listeners.push(this._app.layers.removed.addEventListener(t)),this._listeners.push(this._app.layers.added.addEventListener(t)),e.forEach(r=>{this._listeners.push(r.stateChanged.addEventListener(()=>{this.state=Lr(e)}))}),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this.visible=!!e.find(r=>r.isSupported(this._app.maps.activeMap))}))}async clicked(){const t=this._layers;t.some(r=>!(r.active||r.loading))?await Promise.all(t.map(r=>r.activate())):t.forEach(r=>{r.deactivate()})}toJSON(){const t=super.toJSON();return t.layerNames=this._layerNames.slice(),this._defaultViewpoint&&(t.defaultViewpoint=this._defaultViewpoint),t}destroy(){this._clearListeners(),super.destroy()}}q.registerClass(Fe.className,Fe);class ke extends Z{static get className(){return"NodeContentTreeItem"}constructor(t,e){super(t,e);this.clickable=!1,this._childWatcher=Zt(this._children,()=>{const r=this._children.value;this.visible=r.some(i=>i.visible)},{deep:!0})}destroy(){this._childWatcher(),super.destroy()}}q.registerClass(ke.className,ke);const bc=new Xr({});class Pe extends mt{static get className(){return"ObliqueCollectionContentTreeItem"}constructor(t,e){super(t,e);this.state=m.INACTIVE,this._collectionName=t.collectionName,this._listeners=[],this._setup()}get _collection(){return this._app.obliqueCollections.getByKey(this._collectionName)}_setProperties(t){super._setProperties(t),$e(this,this._app,t.defaultViewpoint)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._collectionName&&this._setup()};if(!this._collection)this.visible=!1,this._listeners.push(this._app.obliqueCollections.added.addEventListener(t));else{const e=this._app.maps.activeMap;e instanceof yt?(this.visible=!0,this.state=e.collection===this._collection?m.ACTIVE:m.INACTIVE,this._listeners.push(e.collectionChanged.addEventListener(()=>{this.state=e.collection===this._collection?m.ACTIVE:m.INACTIVE}))):this.visible=!1,this.setPropertiesFromObject(this._collection),this._listeners.push(this._app.maps.mapActivated.addEventListener(()=>{this._setup()})),this._listeners.push(this._app.obliqueCollections.removed.addEventListener(t)),this._listeners.push(this._app.obliqueCollections.added.addEventListener(t))}}async clicked(){if(this.visible&&this._collection&&this._app.maps.activeMap instanceof yt){const t=this._app.maps.activeMap,e=await t.getViewPoint();this.state===m.INACTIVE?(this.state=m.LOADING,await t.setCollection(this._collection,e)):this.state===m.ACTIVE&&(this.state=m.INACTIVE,await t.setCollection(bc,e))}}toJSON(){const t=super.toJSON();return t.collectionName=this._collectionName,t}destroy(){this._clearListeners(),super.destroy()}}q.registerClass(Pe.className,Pe);class Ve extends mt{static get className(){return"ViewPointContentTreeItem"}constructor(t,e){t.icon=t.icon||"$vcsPoi";super(t,e);this._viewPointName=t.viewpointName,this._listeners=[],this._setup()}get viewPoint(){return this._app.viewPoints.getByKey(this._viewPointName)}_clearListeners(){this._listeners.forEach(t=>{t()}),this._listeners.splice(0)}_setup(){this._clearListeners();const t=e=>{e.name===this._viewPointName&&this._setup()};this.viewPoint?(this.visible=!0,this.setPropertiesFromObject(this.viewPoint),this._listeners.push(this._app.viewPoints.added.addEventListener(t)),this._listeners.push(this._app.viewPoints.removed.addEventListener(t))):(this.visible=!1,this._listeners.push(this._app.viewPoints.added.addEventListener(t)))}async clicked(){this._app.maps.activeMap&&this.viewPoint&&await this._app.maps.activeMap.gotoViewPoint(this.viewPoint)}toJSON(){const t=super.toJSON();return t.icon==="$vcsPoi"&&delete t.icon,t.viewpointName=this._viewPointName,t}destroy(){this._clearListeners(),super.destroy()}}q.registerClass(Ve.className,Ve);export{U as ButtonLocation,pn as ButtonManager,Z as ContentTreeItem,pc as EmptyCmpt,Me as GroupContentTreeItem,Ne as LayerContentTreeItem,Fe as LayerGroupContentTreeItem,ke as NodeContentTreeItem,Pe as ObliqueCollectionContentTreeItem,Jt as SubContentTreeItem,mt as VcsObjectContentTreeItem,Ve as ViewPointContentTreeItem,fn as WindowManager,D as WindowPositions,A as WindowSlot,pe as createGoToViewpointAction,vn as createLinkAction,dn as createMapButtonAction,mn as createModalAction,_n as createOverviewMapAction,fe as createToggleAction,ac as initApp,we as vuetify};
|