@eox/layercontrol 0.28.0 → 0.28.2-dev.1736961804.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +1125 -1349
- package/dist/eox-layercontrol.umd.cjs +153 -386
- package/package.json +2 -2
- package/src/components/layer-config.js +8 -4
- package/src/components/layer-legend.js +42 -16
- package/src/components/layer-tools.js +4 -4
- package/src/components/layer.js +1 -1
- package/src/enums/index.js +1 -0
- package/src/enums/stories/assets/polaris-style.json +135 -0
- package/src/enums/stories/index.js +159 -0
- package/src/helpers/get-legend-config.js +29 -11
- package/src/methods/layer-config/apply-updated-styles.js +1 -2
- package/types/layercontrol/src/components/layer-config.d.ts +17 -8
- package/types/layercontrol/src/components/layer-config.d.ts.map +1 -1
- package/types/layercontrol/src/components/layer-legend.d.ts +2 -2
- package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
- package/types/layercontrol/src/enums/index.d.ts +1 -1
- package/types/layercontrol/src/enums/stories/index.d.ts +222 -110
- package/types/layercontrol/src/enums/stories/index.d.ts.map +1 -1
- package/types/layercontrol/src/helpers/get-legend-config.d.ts +1 -12
- package/types/layercontrol/src/helpers/get-legend-config.d.ts.map +1 -1
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts +1 -1
- package/types/layercontrol/src/methods/layer-config/apply-updated-styles.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts.map +1 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
(function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R["eox-layercontrol"]={}))})(this,function(R){"use strict";var wa=Object.defineProperty;var
|
|
1
|
+
(function(R,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(R=typeof globalThis<"u"?globalThis:R||self,P(R["eox-layercontrol"]={}))})(this,function(R){"use strict";var wa=Object.defineProperty;var jr=R=>{throw TypeError(R)};var xa=(R,P,X)=>P in R?wa(R,P,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[P]=X;var Z=(R,P,X)=>xa(R,typeof P!="symbol"?P+"":P,X),gn=(R,P,X)=>P.has(R)||jr("Cannot "+X);var T=(R,P,X)=>(gn(R,P,"read from private field"),X?X.call(R):P.get(R)),O=(R,P,X)=>P.has(R)?jr("Cannot add the same private member more than once"):P instanceof WeakSet?P.add(R):P.set(R,X),ge=(R,P,X,ne)=>(gn(R,P,"write to private field"),ne?ne.call(R,X):P.set(R,X),X),q=(R,P,X)=>(gn(R,P,"access private method"),X);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var Ur,oi,si,Mt,pe,Ne,He,mn,ai,li,di,zr,ci,ui,ke,hi,pi,fi,gi,Ct,me,Zr,mi,yi,bi,vi,wi,xi,$i,qr,st,Xr,Yr,yn,Wr,Gr,Ti,Ei,Si,jt,fe,Jr,Kr,Ai;const P=globalThis,X=P.ShadowRoot&&(P.ShadyCSS===void 0||P.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol(),bn=new WeakMap;let vn=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==ne)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(X&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=bn.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&bn.set(e,t))}return t}toString(){return this.cssText}};const Qr=i=>new vn(typeof i=="string"?i:i+"",void 0,ne),wn=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((n,r,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1],i[0]);return new vn(e,i,ne)},to=(i,t)=>{if(X)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),r=P.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=e.cssText,i.appendChild(n)}},xn=X?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Qr(e)})(i):i;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:eo,defineProperty:io,getOwnPropertyDescriptor:no,getOwnPropertyNames:ro,getOwnPropertySymbols:oo,getPrototypeOf:so}=Object,Nt=globalThis,$n=Nt.trustedTypes,ao=$n?$n.emptyScript:"",Di=Nt.reactiveElementPolyfillSupport,ye=(i,t)=>i,Pi={toAttribute(i,t){switch(t){case Boolean:i=i?ao:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},En=(i,t)=>!eo(i,t),Sn={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:En};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Nt.litPropertyMetadata??(Nt.litPropertyMetadata=new WeakMap);class re extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Sn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&io(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:o}=no(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return r==null?void 0:r.call(this)},set(s){const a=r==null?void 0:r.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Sn}static _$Ei(){if(this.hasOwnProperty(ye("elementProperties")))return;const t=so(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ye("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ye("properties"))){const e=this.properties,n=[...ro(e),...oo(e)];for(const r of n)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)e.unshift(xn(r))}else t!==void 0&&e.push(xn(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return to(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){var o;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){const s=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:Pi).toAttribute(e,n.type);this._$Em=t,s==null?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){var o;const n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const s=n.getPropertyOptions(r),a=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)==null?void 0:o.fromAttribute)!==void 0?s.converter:Pi;this._$Em=r,this[r]=a.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??En)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,s]of r)s.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[ye("elementProperties")]=new Map,re[ye("finalized")]=new Map,Di==null||Di({ReactiveElement:re}),(Nt.reactiveElementVersions??(Nt.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,
|
|
13
|
+
*/const be=globalThis,Be=be.trustedTypes,An=Be?Be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Li="$lit$",Tt=`lit$${Math.random().toFixed(9).slice(2)}$`,Oi="?"+Tt,lo=`<${Oi}>`,Zt=document,ve=()=>Zt.createComment(""),we=i=>i===null||typeof i!="object"&&typeof i!="function",Ri=Array.isArray,_n=i=>Ri(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mi=`[
|
|
14
|
+
\f\r]`,xe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cn=/-->/g,Tn=/>/g,qt=RegExp(`>|${Mi}(?:([^\\s"'>=/]+)(${Mi}*=${Mi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dn=/'/g,Pn=/"/g,Ln=/^(?:script|style|textarea|title)$/i,co=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),v=co(1),xt=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),On=new WeakMap,Xt=Zt.createTreeWalker(Zt,129);function Rn(i,t){if(!Ri(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return An!==void 0?An.createHTML(t):t}const Mn=(i,t)=>{const e=i.length-1,n=[];let r,o=t===2?"<svg>":t===3?"<math>":"",s=xe;for(let a=0;a<e;a++){const l=i[a];let d,u,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===xe?u[1]==="!--"?s=Cn:u[1]!==void 0?s=Tn:u[2]!==void 0?(Ln.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=qt):u[3]!==void 0&&(s=qt):s===qt?u[0]===">"?(s=r??xe,c=-1):u[1]===void 0?c=-2:(c=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?qt:u[3]==='"'?Pn:Dn):s===Pn||s===Dn?s=qt:s===Cn||s===Tn?s=xe:(s=qt,r=void 0);const f=s===qt&&i[a+1].startsWith("/>")?" ":"";o+=s===xe?l+lo:c>=0?(n.push(d),l.slice(0,c)+Li+l.slice(c)+Tt+f):l+Tt+(c===-2?a:f)}return[Rn(i,o+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class $e{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let o=0,s=0;const a=t.length-1,l=this.parts,[d,u]=Mn(t,e);if(this.el=$e.createElement(d,n),Xt.currentNode=this.el.content,e===2||e===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(r=Xt.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const c of r.getAttributeNames())if(c.endsWith(Li)){const p=u[s++],f=r.getAttribute(c).split(Tt),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:g[2],strings:f,ctor:g[1]==="."?Nn:g[1]==="?"?Hn:g[1]==="@"?kn:Ee}),r.removeAttribute(c)}else c.startsWith(Tt)&&(l.push({type:6,index:o}),r.removeAttribute(c));if(Ln.test(r.tagName)){const c=r.textContent.split(Tt),p=c.length-1;if(p>0){r.textContent=Be?Be.emptyScript:"";for(let f=0;f<p;f++)r.append(c[f],ve()),Xt.nextNode(),l.push({type:2,index:++o});r.append(c[p],ve())}}}else if(r.nodeType===8)if(r.data===Oi)l.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(Tt,c+1))!==-1;)l.push({type:7,index:o}),c+=Tt.length-1}o++}}static createElement(t,e){const n=Zt.createElement("template");return n.innerHTML=t,n}}function Yt(i,t,e=i,n){var s,a;if(t===xt)return t;let r=n!==void 0?(s=e._$Co)==null?void 0:s[n]:e._$Cl;const o=we(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==o&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=r:e._$Cl=r),r!==void 0&&(t=Yt(i,r._$AS(i,t.values),r,n)),t}let In=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=((t==null?void 0:t.creationScope)??Zt).importNode(e,!0);Xt.currentNode=r;let o=Xt.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new oe(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new Vn(o,this,t)),this._$AV.push(d),l=n[++a]}s!==(l==null?void 0:l.index)&&(o=Xt.nextNode(),s++)}return Xt.currentNode=Zt,r}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}};class oe{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Yt(this,t,e),we(t)?t===L||t==null||t===""?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):_n(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==L&&we(this._$AH)?this._$AA.nextSibling.data=t:this.T(Zt.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=$e.createElement(Rn(n.h,n.h[0]),this.options)),n);if(((o=this._$AH)==null?void 0:o._$AD)===r)this._$AH.p(e);else{const s=new In(r,this),a=s.u(this.options);s.p(e),this.T(a),this._$AH=s}}_$AC(t){let e=On.get(t.strings);return e===void 0&&On.set(t.strings,e=new $e(t)),e}k(t){Ri(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const o of t)r===e.length?e.push(n=new oe(this.O(ve()),this.O(ve()),this,this.options)):n=e[r],n._$AI(o),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}_$AI(t,e=this,n,r){const o=this.strings;let s=!1;if(o===void 0)t=Yt(this,t,e,0),s=!we(t)||t!==this._$AH&&t!==xt,s&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=Yt(this,a[n+l],e,l),d===xt&&(d=this._$AH[l]),s||(s=!we(d)||d!==this._$AH[l]),d===L?t=L:t!==L&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!r&&this.j(t)}j(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Nn extends Ee{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===L?void 0:t}}class Hn extends Ee{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==L)}}class kn extends Ee{constructor(t,e,n,r,o){super(t,e,n,r,o),this.type=5}_$AI(t,e=this){if((t=Yt(this,t,e,0)??L)===xt)return;const n=this._$AH,r=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==L&&(n===L||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Vn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Yt(this,t)}}const uo={M:Li,P:Tt,A:Oi,C:1,L:Mn,R:In,D:_n,V:Yt,I:oe,H:Ee,N:Hn,U:kn,B:Nn,F:Vn},Ii=be.litHtmlPolyfillSupport;Ii==null||Ii($e,oe),(be.litHtmlVersions??(be.litHtmlVersions=[])).push("3.2.1");const ho=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let r=n._$litPart$;if(r===void 0){const o=(e==null?void 0:e.renderBefore)??null;n._$litPart$=r=new oe(t.insertBefore(ve(),o),o,void 0,e??{})}return r._$AI(i),r};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/let dt=class extends
|
|
19
|
+
*/let dt=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ho(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return xt}};dt._$litElement$=!0,dt.finalized=!0,(Ur=globalThis.litElementHydrateSupport)==null||Ur.call(globalThis,{LitElement:dt});const Ni=globalThis.litElementPolyfillSupport;Ni==null||Ni({LitElement:dt}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/function
|
|
23
|
+
*/function W(i,t,e){return i?t(i):e==null?void 0:e(i)}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hi=i=>(...t)=>({_$litDirective$:i,values:t});class
|
|
27
|
+
*/const Ht={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hi=i=>(...t)=>({_$litDirective$:i,values:t});class ki{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2020 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/const{I:
|
|
31
|
+
*/const{I:po}=uo,fo=i=>i.strings===void 0,Bn=()=>document.createComment(""),Se=(i,t,e)=>{var o;const n=i._$AA.parentNode,r=t===void 0?i._$AB:t._$AA;if(e===void 0){const s=n.insertBefore(Bn(),r),a=n.insertBefore(Bn(),r);e=new po(s,a,i,i.options)}else{const s=e._$AB.nextSibling,a=e._$AM,l=a!==i;if(l){let d;(o=e._$AQ)==null||o.call(e,i),e._$AM=i,e._$AP!==void 0&&(d=i._$AU)!==a._$AU&&e._$AP(d)}if(s!==r||l){let d=e._$AA;for(;d!==s;){const u=d.nextSibling;n.insertBefore(d,r),d=u}}}return e},Wt=(i,t,e=i)=>(i._$AI(t,e),i),go={},Un=(i,t=go)=>i._$AH=t,mo=i=>i._$AH,Vi=i=>{var n;(n=i._$AP)==null||n.call(i,!1,!0);let t=i._$AA;const e=i._$AB.nextSibling;for(;t!==e;){const r=t.nextSibling;t.remove(),t=r}};/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2017 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/const Fn=(i,t,e)=>{const n=new Map;for(let
|
|
35
|
+
*/const Fn=(i,t,e)=>{const n=new Map;for(let r=t;r<=e;r++)n.set(i[r],r);return n},yo=Hi(class extends ki{constructor(i){if(super(i),i.type!==Ht.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,t,e){let n;e===void 0?e=t:t!==void 0&&(n=t);const r=[],o=[];let s=0;for(const a of i)r[s]=n?n(a,s):s,o[s]=e(a,s),s++;return{values:o,keys:r}}render(i,t,e){return this.dt(i,t,e).values}update(i,[t,e,n]){const r=mo(i),{values:o,keys:s}=this.dt(t,e,n);if(!Array.isArray(r))return this.ut=s,o;const a=this.ut??(this.ut=[]),l=[];let d,u,c=0,p=r.length-1,f=0,g=o.length-1;for(;c<=p&&f<=g;)if(r[c]===null)c++;else if(r[p]===null)p--;else if(a[c]===s[f])l[f]=Wt(r[c],o[f]),c++,f++;else if(a[p]===s[g])l[g]=Wt(r[p],o[g]),p--,g--;else if(a[c]===s[g])l[g]=Wt(r[c],o[g]),Se(i,l[g+1],r[c]),c++,g--;else if(a[p]===s[f])l[f]=Wt(r[p],o[f]),Se(i,r[c],r[p]),p--,f++;else if(d===void 0&&(d=Fn(s,f,g),u=Fn(a,c,p)),d.has(a[c]))if(d.has(a[p])){const b=u.get(s[f]),k=b!==void 0?r[b]:null;if(k===null){const et=Se(i,r[c]);Wt(et,o[f]),l[f]=et}else l[f]=Wt(k,o[f]),Se(i,r[c],k),r[b]=null;f++}else Vi(r[p]),p--;else Vi(r[c]),c++;for(;f<=g;){const b=Se(i,l[g+1]);Wt(b,o[f]),l[f++]=b}for(;c<=p;){const b=r[c++];b!==null&&Vi(b)}return this.ut=s,Un(i,l),xt}});/**
|
|
36
36
|
* wms-capabilities @0.6.0
|
|
37
37
|
* @description WMS service Capabilities > JSON, based on openlayers
|
|
38
38
|
* @license BSD-2-Clause
|
|
39
39
|
* @preserve
|
|
40
|
-
*/var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const
|
|
40
|
+
*/var S=i=>i!==void 0,jn=(i,t,e)=>t in i?i[t]:i[t]=e;const Ae={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};class bo{constructor(t){this._parser=new t}toDocument(t){return this._parser.parseFromString(t,"application/xml")}getAllTextContent(t,e){return Ue(t,e).join("")}}function Ue(i,t){return zn(i,t,[]).join("")}function zn(i,t,e){if(i.nodeType===Ae.CDATA_SECTION||i.nodeType===Ae.TEXT)t?e.push(String(i.nodeValue).replace(/(\r\n|\r|\n)/g,"")):e.push(i.nodeValue);else{var n;for(n=i.firstChild;n;n=n.nextSibling)zn(n,t,e)}return e}function vo(i,t,e,n){for(var r=wo(t);r;r=xo(r)){var o=r.namespaceURI||null,s=i[o];if(S(s)){var a=s[r.localName];S(a)&&a.call(n,r,e)}}}function wo(i){let t=i.firstElementChild||i.firstChild;for(;t&&t.nodeType!==Ae.ELEMENT;)t=t.nextSibling;return t}function xo(i){let t=i.nextElementSibling||i.nextSibling;for(;t&&t.nodeType!==Ae.ELEMENT;)t=t.nextSibling;return t}function nt(i,t,e){return $o(i,t,e)}function $o(i,t,e){var n=S(e)?e:{},r,o;for(r=0,o=i.length;r<o;++r)n[i[r]]=t;return n}function Zn(i,t){return function(e,n){var r=i.call(S(t)?t:this,e,n);if(S(r)){var o=n[n.length-1];o.push(r)}}}function tt(i,t,e,n,r){return n.push(i),vo(t,e,n,r),n.pop()}function y(i,t,e){return function(n,r){let o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName;s[a]=o}}}function ht(i,t,e){return function(n,r){var o=i.call(S(e)?e:this,n,r);if(S(o)){var s=r[r.length-1],a=S(t)?t:n.localName,l=jn(s,a,[]);l.push(o)}}}const Eo=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function So(i){return i.replace(Eo,"")}function Gt(i){const t=/^\s*(true|1)|(false|0)\s*$/.exec(i);if(t)return S(t[1])||!1}function se(i){return Dt(Ue(i,!1))}function Dt(i){const t=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(i);if(t)return parseFloat(t[1])}function Bi(i){return Fe(Ue(i,!1))}function Fe(i){const t=/^\s*(\d+)\s*$/.exec(i);if(t)return parseInt(t[1],10)}function D(i){return So(Ue(i,!1))}const Ao="http://www.w3.org/1999/xlink";function Ui(i){return i.getAttributeNS(Ao,"href")}function _o(i,t){return tt({},Qo,i,t)}function qn(i){return[Dt(i.getAttribute("minx")),Dt(i.getAttribute("miny")),Dt(i.getAttribute("maxx")),Dt(i.getAttribute("maxy"))]}function Co(i,t){const e=qn(i),n=[Dt(i.getAttribute("resx")),Dt(i.getAttribute("resy"))];return{crs:i.getAttribute("CRS")||i.getAttribute("SRS"),extent:e,res:n}}function To(i,t){const e=qn(i);if(!(!S(e[0])||!S(e[1])||!S(e[2])||!S(e[3])))return e}function Do(i,t){const e=parseFloat(i.getAttribute("min")),n=parseFloat(i.getAttribute("max"));return{min:e,max:n}}function Po(i,t){const e=tt({},ts,i,t);if(!S(e))return;const n=e.westBoundLongitude,r=e.southBoundLatitude,o=e.eastBoundLongitude,s=e.northBoundLatitude;if(!(!S(n)||!S(r)||!S(o)||!S(s)))return[n,r,o,s]}function Lo(i,t){return tt({},Xo,i,t)}function Oo(i,t){return tt({},Yo,i,t)}function Ro(i,t){return tt({},Wo,i,t)}function Mo(i,t){return tt({},Go,i,t)}function Io(i,t){return tt({},Jo,i,t)}function No(i,t){return tt([],Ko,i,t)}function Ho(i,t){const e=Gt(i.getAttribute("queryable"));return tt({queryable:S(e)?e:!1},Wn,i,t)}function ko(i,t){var e=t[t.length-1];const n=tt({},Wn,i,t);if(!S(n))return;let r=Gt(i.getAttribute("queryable"));S(r)||(r=e.queryable),n.queryable=S(r)?r:!1;let o=Fe(i.getAttribute("cascaded"));S(o)||(o=e.cascaded),n.cascaded=o;let s=Gt(i.getAttribute("opaque"));S(s)||(s=e.opaque),n.opaque=S(s)?s:!1;let a=Gt(i.getAttribute("noSubsets"));S(a)||(a=e.noSubsets),n.noSubsets=S(a)?a:!1;let l=Dt(i.getAttribute("fixedWidth"));S(l)||(l=e.fixedWidth),n.fixedWidth=l;let d=Dt(i.getAttribute("fixedHeight"));S(d)||(d=e.fixedHeight),n.fixedHeight=d;const u=["Style","CRS","AuthorityURL"];for(let p=0,f=u.length;p<f;p++){const g=u[p],b=e[g];if(S(b)){let k=jn(n,g,[]);k=k.concat(b),n[g]=k}}const c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];for(let p=0,f=c.length;p<f;p++){const g=c[p],b=n[g];if(!S(b)){const k=e[g];n[g]=k}}return n}function Vo(i,t){return{name:i.getAttribute("name"),units:i.getAttribute("units"),unitSymbol:i.getAttribute("unitSymbol"),default:i.getAttribute("default"),multipleValues:Gt(i.getAttribute("multipleValues")),nearestValue:Gt(i.getAttribute("nearestValue")),current:Gt(i.getAttribute("current")),values:D(i)}}function Pt(i,t){return tt({},ss,i,t)}function Bo(i,t){return tt({},es,i,t)}function Uo(i,t){return tt({},ns,i,t)}function Fo(i,t){return tt({},rs,i,t)}function Fi(i,t){return tt({},is,i,t)}function Xn(i,t){var e=Pt(i,t);if(S(e)){const n=[Fe(i.getAttribute("width")),Fe(i.getAttribute("height"))];return e.size=n,e}}function jo(i,t){var e=Pt(i,t);if(S(e))return e.name=i.getAttribute("name"),e}function zo(i,t){var e=Pt(i,t);if(S(e))return e.type=i.getAttribute("type"),e}function Zo(i,t){return tt({},os,i,t)}function Yn(i,t){return tt([],as,i,t)}const rt=[null,"http://www.opengis.net/wms"],qo=nt(rt,{Service:y(Oo),Capability:y(Lo)}),Xo=nt(rt,{Request:y(Bo),Exception:y(No),Layer:y(Ho)}),Yo=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),OnlineResource:y(Ui),ContactInformation:y(Ro),Fees:y(D),AccessConstraints:y(D),LayerLimit:y(Bi),MaxWidth:y(Bi),MaxHeight:y(Bi)}),Wo=nt(rt,{ContactPersonPrimary:y(Mo),ContactPosition:y(D),ContactAddress:y(Io),ContactVoiceTelephone:y(D),ContactFacsimileTelephone:y(D),ContactElectronicMailAddress:y(D)}),Go=nt(rt,{ContactPerson:y(D),ContactOrganization:y(D)}),Jo=nt(rt,{AddressType:y(D),Address:y(D),City:y(D),StateOrProvince:y(D),PostCode:y(D),Country:y(D)}),Ko=nt(rt,{Format:Zn(D)}),Wn=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),KeywordList:y(Yn),CRS:ht(D),SRS:ht(D),EX_GeographicBoundingBox:y(Po),LatLonBoundingBox:y(To),BoundingBox:ht(Co),Dimension:ht(Vo),Attribution:y(_o),AuthorityURL:ht(jo),Identifier:ht(D),MetadataURL:ht(zo),DataURL:ht(Pt),FeatureListURL:ht(Pt),Style:ht(Zo),MinScaleDenominator:y(se),MaxScaleDenominator:y(se),ScaleHint:y(Do),Layer:ht(ko)}),Qo=nt(rt,{Title:y(D),OnlineResource:y(Ui),LogoURL:y(Xn)}),ts=nt(rt,{westBoundLongitude:y(se),eastBoundLongitude:y(se),southBoundLatitude:y(se),northBoundLatitude:y(se)}),es=nt(rt,{GetCapabilities:y(Fi),GetMap:y(Fi),GetFeatureInfo:y(Fi)}),is=nt(rt,{Format:ht(D),DCPType:ht(Uo)}),ns=nt(rt,{HTTP:y(Fo)}),rs=nt(rt,{Get:y(Pt),Post:y(Pt)}),os=nt(rt,{Name:y(D),Title:y(D),Abstract:y(D),LegendURL:ht(Xn),StyleSheetURL:y(Pt),StyleURL:y(Pt)}),ss=nt(rt,{Format:y(D),OnlineResource:y(Ui)}),as=nt(rt,{Keyword:Zn(D)});class ls{constructor(t,e){!e&&typeof window<"u"&&(e=window.DOMParser),this.version=void 0,this._parser=new bo(e),this._data=t}data(t){return this._data=t,this}toJSON(t){return t=t||this._data,this.parse(t)}parse(t){return this.readFromDocument(this._parser.toDocument(t))}readFromDocument(t){for(let e=t.firstChild;e;e=e.nextSibling)if(e.nodeType==Ae.ELEMENT)return this.readFromNode(e);return null}readFromNode(t){return this.version=t.getAttribute("version"),tt({version:this.version},qo,t,[])||null}}async function ds(i){let t=new URL(i),e=t.searchParams;e.set("SERVICE","WMS"),e.set("REQUEST","GetCapabilities");let n=t.toString();const r=await fetch(n);if(r.ok){const o=await r.text();return new ls(o).toJSON()}else throw new Error(`Error: ${r.status}`)}function ji(i){const t=/\b(?:wms|ows)\b/i,e=/{(?:z|x|y-?)}\/{(?:z|x|y-?)}\/{(?:z|x|y-?)}/i;return t.test(i)?"TileWMS":e.test(i)?"XYZ":!1}function cs(i){const e=/^(?:(?:https?|ftp):\/\/|\/\/)?(?:localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|(?:\w+[\w-]*\.)+\w+)(?::\d+)?(?:\/\S*)?$/.test(i),n=ji(i);return!!(i&&e&&n)}function Gn(i){return i.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": ').replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/\s*(\{|}|\[|\]|,)\s*/g,"$1").replaceAll('": //',"://")}function us(i){try{return JSON.parse(Gn(i)),!!i}catch{return!1}}function hs(i,t){const e=new URL(i).searchParams;Object.entries(t).forEach(([s,a])=>{typeof a=="object"&&!Array.isArray(a)&&a!==null?Object.keys(a).forEach(l=>{e.set(l,a[l])}):e.set(s,a)});const n=i.split("?")[0],r=e.toString();return`${n}?${r}`}/**!
|
|
41
41
|
* Sortable 1.15.6
|
|
42
42
|
* @author RubaXa <trash@rubaxa.org>
|
|
43
43
|
* @author owenm <owen23355@gmail.com>
|
|
44
44
|
* @license MIT
|
|
45
|
-
*/function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(i,o).enumerable})),e.push.apply(e,n)}return e}function _t(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function Fe(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(t){return typeof t}:Fe=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fe(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Ot(){return Ot=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Ot.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),o,r;for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&(e[o]=i[o]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Lt(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Rt=Lt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Lt(/Edge/i),Kn=Lt(/firefox/i),Ae=Lt(/safari/i)&&!Lt(/chrome/i)&&!Lt(/android/i),zi=Lt(/iP(ad|od|hone)/i),Qn=Lt(/chrome/i)&&Lt(/android/i),to={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&to)}function _(i,t,e){i.removeEventListener(t,e,!Rt&&to)}function je(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function eo(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function $t(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&je(i,t):je(i,t))||n&&i===e)return i;if(i===e)break}while(i=eo(i))}return null}var io=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(io," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(io," ")}}function v(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function se(i,t){var e="";if(typeof i=="string")e=i;else do{var n=v(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(e)}function no(i,t,e){if(i){var n=i.getElementsByTagName(t),o=0,r=n.length;if(e)for(;o<r;o++)e(n[o],o);return n}return[]}function At(){var i=document.scrollingElement;return i||document.documentElement}function W(i,t,e,n,o){if(!(!i.getBoundingClientRect&&i!==window)){var r,s,a,l,d,c,u;if(i!==window&&i.parentNode&&i!==At()?(r=i.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,d=r.right,c=r.height,u=r.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&i!==window&&(o=o||i.parentNode,!Rt))do if(o&&o.getBoundingClientRect&&(v(o,"transform")!=="none"||e&&v(o,"position")!=="static")){var p=o.getBoundingClientRect();s-=p.top+parseInt(v(o,"border-top-width")),a-=p.left+parseInt(v(o,"border-left-width")),l=s+r.height,d=a+r.width;break}while(o=o.parentNode);if(n&&i!==window){var f=se(o||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,u/=g,c/=b,l=s+c,d=a+u)}return{top:s,left:a,bottom:l,right:d,width:u,height:c}}}function oo(i,t,e){for(var n=Vt(i,!0),o=W(i)[t];n;){var r=W(n)[e],s=void 0;if(s=o>=r,!s)return n;if(n===At())break;n=Vt(n,!1)}return!1}function ae(i,t,e,n){for(var o=0,r=0,s=i.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==w.ghost&&(n||s[r]!==w.dragged)&&$t(s[r],e.draggable,i,!1)){if(o===t)return s[r];o++}r++}return null}function Zi(i,t){for(var e=i.lastElementChild;e&&(e===w.ghost||v(e,"display")==="none"||t&&!je(e,t));)e=e.previousElementSibling;return e||null}function Et(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==w.clone&&(!t||je(i,t))&&e++;return e}function ro(i){var t=0,e=0,n=At();if(i)do{var o=se(i),r=o.a,s=o.d;t+=i.scrollLeft*r,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function Vt(i,t){if(!i||!i.getBoundingClientRect)return At();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var o=v(e);if(e.clientWidth<e.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return At();if(n||t)return e;n=!0}}while(e=e.parentNode);return At()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Ce;function so(i,t){return function(){if(!Ce){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Ce=setTimeout(function(){Ce=void 0},t)}}}function vs(){clearTimeout(Ce),Ce=void 0}function ao(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lo(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function uo(i,t,e){var n={};return Array.from(i.children).forEach(function(o){var r,s,a,l;if(!(!$t(o,t.draggable,i,!1)||o.animated||o===e)){var d=W(o);n.left=Math.min((r=n.left)!==null&&r!==void 0?r:1/0,d.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,d.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,d.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(v(o,"display")==="none"||o===w.ghost)){i.push({target:o,rect:W(o)});var r=_t({},i[i.length-1].rect);if(o.thisAnimationDuration){var s=se(o,!0);s&&(r.top-=s.f,r.left-=s.e)}o.fromRect=r}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,s=0;i.forEach(function(a){var l=0,d=a.target,c=d.fromRect,u=W(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=se(d,!0);b&&(u.top-=b.f,u.left-=b.e),d.toRect=u,d.thisAnimationDuration&&qi(p,u)&&!qi(c,u)&&(g.top-u.top)/(g.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=Es(g,p,f,o.options)),qi(u,c)||(d.prevFromRect=c,d.prevToRect=u,l||(l=o.options.animation),o.animate(d,g,u,l)),l&&(r=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,o,r,s){if(s){v(n,"transition",""),v(n,"transform","");var a=se(this.el),l=a&&a.a,d=a&&a.d,c=(o.left-r.left)/(l||1),u=(o.top-r.top)/(d||1);n.animatingX=!!c,n.animatingY=!!u,v(n,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=xs(n),v(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),v(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){v(n,"transition",""),v(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function xs(i){return i.offsetWidth}function Es(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var le=[],Xi={initializeByDefault:!0},Te={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);le.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),le.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";le.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][r]&&e[s.pluginName][r](_t({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](_t({sortable:e},n)))})},initializePlugins:function(t,e,n,o){le.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Ot(n,d.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s<"u"&&(t.options[r]=s)}},getEventProperties:function(t,e){var n={};return le.forEach(function(o){typeof o.eventProperties=="function"&&Ot(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return le.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[e]=="function"&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function $s(i){var t=i.sortable,e=i.rootEl,n=i.name,o=i.targetEl,r=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,c=i.oldDraggableIndex,u=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,V=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Rt&&!_e?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=o||e,b.clone=r,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=c,b.newDraggableIndex=u,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=_t(_t({},g),Te.getEventProperties(n,t));for(var ct in z)b[ct]=z[ct];e&&e.dispatchEvent(b),V[et]&&V[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=gs(n,Ss);Te.pluginEvent.bind(w)(t,e,_t({dragEl:h,parentEl:j,ghostEl:E,rootEl:B,nextEl:Gt,lastDownEl:ze,cloneEl:U,cloneHidden:Bt,dragStarted:Pe,putSortable:rt,activeSortable:w.active,originalEvent:o,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt,hideGhostForTarget:yo,unhideGhostForTarget:bo,cloneNowHidden:function(){Bt=!0},cloneNowShown:function(){Bt=!1},dispatchSortableEvent:function(a){ut({sortable:e,name:a,originalEvent:o})}},r))};function ut(i){$s(_t({putSortable:rt,cloneEl:U,targetEl:h,rootEl:B,oldIndex:de,oldDraggableIndex:De,newIndex:vt,newDraggableIndex:kt},i))}var h,j,E,B,Gt,ze,U,Bt,de,vt,De,kt,Ze,rt,ue=!1,qe=!1,Xe=[],Jt,St,Yi,Wi,co,ho,Pe,ce,Oe,Le=!1,Ye=!1,We,lt,Gi=[],Ji=!1,Ge=[],Je=typeof document<"u",Ke=zi,po=_e||Rt?"cssFloat":"float",_s=Je&&!Qn&&!zi&&"draggable"in document.createElement("div"),fo=function(){if(Je){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),go=function(t,e){var n=v(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=ae(t,0,e),s=ae(t,1,e),a=r&&v(r),l=s&&v(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+W(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+W(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var u=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=o&&n[po]==="none"||s&&n[po]==="none"&&d+c>o)?"vertical":"horizontal"},As=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return o===a||r===l||o+s/2===a+d/2},Cs=function(t,e){var n;return Xe.some(function(o){var r=o[pt].options.emptyInsertThreshold;if(!(!r||Zi(o))){var s=W(o),a=t>=s.left-r&&t<=s.right+r,l=e>=s.top-r&&e<=s.bottom+r;if(a&&l)return n=o}}),n},mo=function(t){function e(r,s){return function(a,l,d,c){var u=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(s||u))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return e(r(a,l,d,c),s)(a,l,d,c);var p=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},o=t.group;(!o||Fe(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},yo=function(){!fo&&E&&v(E,"display","none")},bo=function(){!fo&&E&&v(E,"display","")};Je&&!Qn&&document.addEventListener("click",function(i){if(qe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),qe=!1,!1},!0);var Kt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function w(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Ot({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return go(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:w.supportPointer!==!1&&"PointerEvent"in window&&(!Ae||zi),emptyInsertThreshold:5};Te.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);mo(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:_s,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Xe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ot(this,ws())}w.prototype={constructor:w,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(ce=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ae&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=$t(l,o.draggable,n,!1),!(l&&l.animated)&&ze!==l)){if(de=Et(l),De=Et(l,o.draggable),typeof c=="function"){if(c.call(this,t,l,this)){ut({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),r&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=$t(d,u.trim(),n,!1),u)return ut({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),c)){r&&t.preventDefault();return}o.handle&&!$t(d,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o=this,r=o.el,s=o.options,a=r.ownerDocument,l;if(n&&!h&&n.parentNode===r){var d=W(n);if(B=r,h=n,j=h.parentNode,Gt=h.nextSibling,ze=n,Ze=s.group,w.dragged=h,Jt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},co=Jt.clientX-d.left,ho=Jt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",o,{evt:t}),w.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Kn&&o.nativeDraggable&&(h.draggable=!0),o._triggerDragStart(t,e),ut({sortable:o,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){no(h,c.trim(),Ki)}),C(a,"dragover",Kt),C(a,"mousemove",Kt),C(a,"touchmove",Kt),s.supportPointer?(C(a,"pointerup",o._onDrop),!this.nativeDraggable&&C(a,"pointercancel",o._onDrop)):(C(a,"mouseup",o._onDrop),C(a,"touchend",o._onDrop),C(a,"touchcancel",o._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_e||Rt))){if(w.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",o._disableDelayedDrag),C(a,"pointercancel",o._disableDelayedDrag)):(C(a,"mouseup",o._disableDelayedDrag),C(a,"touchend",o._disableDelayedDrag),C(a,"touchcancel",o._disableDelayedDrag)),C(a,"mousemove",o._delayedDragTouchMoveHandler),C(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(B,"dragstart",this._onDragStart));try{document.selection?ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,B&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),w.active=this,t&&this._appendGhost(),ut({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,yo();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=eo(e));bo()}},_onTouchMove:function(t){if(Jt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,s=E&&se(E,!0),a=E&&s&&s.a,l=E&&s&&s.d,d=Ke&<&&ro(lt),c=(r.clientX-Jt.clientX+o.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),u=(r.clientY-Jt.clientY+o.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!w.active&&!ue){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(E){s?(s.e+=c-(Yi||0),s.f+=u-(Wi||0)):s={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");v(E,"webkitTransform",p),v(E,"mozTransform",p),v(E,"msTransform",p),v(E,"transform",p),Yi=c,Wi=u,St=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!E){var t=this.options.fallbackOnBody?document.body:B,e=W(h,!0,Ke,!0,t),n=this.options;if(Ke){for(lt=t;v(lt,"position")==="static"&&v(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=At()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=At(),Gi=ro(lt)}E=h.cloneNode(!0),bt(E,n.ghostClass,!1),bt(E,n.fallbackClass,!0),bt(E,n.dragClass,!0),v(E,"transition",""),v(E,"transform",""),v(E,"box-sizing","border-box"),v(E,"margin",0),v(E,"top",e.top),v(E,"left",e.left),v(E,"width",e.width),v(E,"height",e.height),v(E,"opacity","0.8"),v(E,"position",Ke?"absolute":"fixed"),v(E,"zIndex","100000"),v(E,"pointerEvents","none"),w.ghost=E,t.appendChild(E),v(E,"transform-origin",co/parseInt(E.style.width)*100+"% "+ho/parseInt(E.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;if(ft("dragStart",this,{evt:t}),w.eventCanceled){this._onDrop();return}ft("setupClone",this),w.eventCanceled||(U=lo(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),w.clone=U),n.cloneId=ti(function(){ft("clone",n),!w.eventCanceled&&(n.options.removeCloneOnHide||B.insertBefore(U,h),n._hideClone(),ut({sortable:n,name:"clone"}))}),!e&&bt(h,r.dragClass,!0),e?(qe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,h)),C(document,"drop",n),v(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ti(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Pe=!0,window.getSelection().removeAllRanges(),Ae&&v(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,o,r,s,a=this.options,l=a.group,d=w.active,c=Ze===l,u=a.sort,p=rt||d,f,g=this,b=!1;if(Ji)return;function V(wt,Qt){ft(wt,g,_t({evt:t,isOwner:c,axis:f?"vertical":"horizontal",revert:s,dragRect:o,targetRect:r,canSort:u,fromSortable:p,target:n,completed:z,onMove:function(te,It){return Qe(B,e,h,o,te,W(te),t,It)},changed:ct},Qt))}function et(){V("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return V("dragOverCompleted",{insertion:wt}),wt&&(c?d._hideClone():d._showClone(g),g!==p&&(bt(h,rt?rt.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),rt!==g&&g!==w.active?rt=g:g===w.active&&rt&&(rt=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){V("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(ce=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Kt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ct(){vt=Et(h),kt=Et(h,a.draggable),ut({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:kt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=$t(n,a.draggable,e,!0),V("dragOver"),w.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return z(!1);if(qe=!1,d&&!a.disabled&&(c?u||(s=j!==B):rt===this||(this.lastPutMode=Ze.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",o=W(h),V("dragOverValid"),w.eventCanceled)return b;if(s)return j=B,et(),this._hideClone(),V("revert"),w.eventCanceled||(Gt?B.insertBefore(h,Gt):B.appendChild(h)),z(!0);var it=Zi(e,a.draggable);if(!it||Ls(t,f,this)&&!it.animated){if(it===h)return z(!1);if(it&&e===t.target&&(n=it),n&&(r=W(n)),Qe(B,e,h,o,n,r,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ct(),z(!0)}else if(it&&Os(t,f,this)){var $=ae(e,0,a,!0);if($===h)return z(!1);if(n=$,r=W(n),Qe(B,e,h,o,n,r,t,!1)!==!1)return et(),e.insertBefore(h,$),j=e,ct(),z(!0)}else if(n.parentNode===e){r=W(n);var m=0,A,N=h.parentNode!==e,M=!As(h.animated&&h.toRect||o,n.animated&&n.toRect||r,f),J=f?"top":"left",K=oo(n,"top","top")||oo(h,"top","top"),k=K?K.scrollTop:void 0;ce!==n&&(A=r[J],Le=!1,Ye=!M&&a.invertSwap||N),m=Rs(t,n,r,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ye,ce===n);var I;if(m!==0){var Y=Et(h);do Y-=m,I=j.children[Y];while(I&&(v(I,"display")==="none"||I===E))}if(m===0||I===n)return z(!1);ce=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=Qe(B,e,h,o,n,r,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),K&&ao(K,0,k-K.scrollTop),j=h.parentNode,A!==void 0&&!Ye&&(We=Math.abs(A-W(n)[J])),ct(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Kt),_(document,"mousemove",Kt),_(document,"touchmove",Kt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=Et(h),kt=Et(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=Et(h),kt=Et(h,n.draggable),w.eventCanceled){this._nulling();return}ue=!1,Ye=!1,Le=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ae&&v(document.body,"user-select",""),v(h,"transform",""),t&&(Pe&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),E&&E.parentNode&&E.parentNode.removeChild(E),(B===j||rt&&rt.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&_(h,"dragend",this),Ki(h),h.style["will-change"]="",Pe&&!ue&&bt(h,rt?rt.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ut({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),B!==j?(vt>=0&&(ut({rootEl:j,name:"add",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"remove",toEl:j,originalEvent:t}),ut({rootEl:j,name:"sort",toEl:j,fromEl:B,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),rt&&rt.save()):vt!==de&&vt>=0&&(ut({sortable:this,name:"update",toEl:j,originalEvent:t}),ut({sortable:this,name:"sort",toEl:j,originalEvent:t})),w.active&&((vt==null||vt===-1)&&(vt=de,kt=De),ut({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),B=h=j=E=Gt=U=ze=Bt=Jt=St=Pe=vt=kt=de=De=ce=Oe=rt=Ze=w.dragged=w.ghost=w.clone=w.active=null,Ge.forEach(function(t){t.checked=!0}),Ge.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,o=0,r=n.length,s=this.options;o<r;o++)e=n[o],$t(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(r,s){var a=o.children[s];$t(a,this.options.draggable,o,!1)&&(n[r]=a)},this),e&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(o.removeChild(n[r]),o.appendChild(n[r]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $t(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var o=Te.modifyOption(this,t,e);typeof o<"u"?n[t]=o:n[t]=e,t==="group"&&mo(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Xe.splice(Xe.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Bt){if(ft("hideClone",this),w.eventCanceled)return;v(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Bt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Bt){if(ft("showClone",this),w.eventCanceled)return;h.parentNode==B&&!this.options.group.revertClone?B.insertBefore(U,h):Gt?B.insertBefore(U,Gt):B.appendChild(U),this.options.group.revertClone&&this.animate(h,U),v(U,"display",""),Bt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Qe(i,t,e,n,o,r,s,a){var l,d=i[pt],c=d.options.onMove,u;return window.CustomEvent&&!Rt&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=o||t,l.relatedRect=r||W(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),c&&(u=c.call(d,l,s)),u}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Os(i,t,e){var n=W(ae(e.el,0,e.options,!0)),o=uo(e.el,e.options,E),r=10;return t?i.clientX<o.left-r||i.clientY<n.top&&i.clientX<n.right:i.clientY<o.top-r||i.clientY<n.bottom&&i.clientX<n.left}function Ls(i,t,e){var n=W(Zi(e.el,e.options.draggable)),o=uo(e.el,e.options,E),r=10;return t?i.clientX>o.right+r||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>o.bottom+r||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,o,r,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,c=n?e.top:e.left,u=n?e.bottom:e.right,p=!1;if(!s){if(a&&We<d*o){if(!Le&&(Oe===1?l>c+d*r/2:l<u-d*r/2)&&(Le=!0),Le)p=!0;else if(Oe===1?l<c+We:l>u-We)return-Oe}else if(l>c+d*(1-o)/2&&l<u-d*(1-o)/2)return Ms(t)}return p=p||s,p&&(l<c+d*r/2||l>u-d*r/2)?l>c+d/2?1:-1:0}function Ms(i){return Et(h)<Et(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Ge.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Ge.push(n)}}function ti(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Je&&C(document,"touchmove",function(i){(w.active||ue)&&i.cancelable&&i.preventDefault()}),w.utils={on:C,off:_,css:v,find:no,is:function(t,e){return!!$t(t,e,t,!1)},extend:bs,throttle:so,closest:$t,toggleClass:bt,clone:lo,index:Et,nextTick:ti,cancelNextTick:Qi,detectDirection:go,getChild:ae,expando:pt},w.get=function(i){return i[pt]},w.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(w.utils=_t(_t({},w.utils),n.utils)),Te.mount(n)})},w.create=function(i,t){return new w(i,t)},w.version=ms;var G=[],Re,tn,en=!1,nn,on,ei,Me;function Hs(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),vo(),ii(),vs()},nulling:function(){ei=tn=Re=en=Me=nn=on=null,G.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var o=this,r=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,s);if(ei=e,n||this.options.forceAutoScrollFallback||_e||Rt||Ae){rn(e,this.options,a,n);var l=Vt(a,!0);en&&(!Me||r!==nn||s!==on)&&(Me&&vo(),Me=setInterval(function(){var d=Vt(document.elementFromPoint(r,s),!0);d!==l&&(l=d,ii()),rn(e,o.options,d,n)},10),nn=r,on=s)}else{if(!this.options.bubbleScroll||Vt(a,!0)===At()){ii();return}rn(e,this.options,Vt(a,!1),!1)}}},Ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ii(){G.forEach(function(i){clearInterval(i.pid)}),G=[]}function vo(){clearInterval(Me)}var rn=so(function(i,t,e,n){if(t.scroll){var o=(i.touches?i.touches[0]:i).clientX,r=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=At(),d=!1,c;tn!==e&&(tn=e,ii(),Re=t.scroll,c=t.scrollFn,Re===!0&&(Re=Vt(e,!0)));var u=0,p=Re;do{var f=p,g=W(f),b=g.top,V=g.bottom,et=g.left,z=g.right,ct=g.width,it=g.height,$=void 0,m=void 0,A=f.scrollWidth,N=f.scrollHeight,M=v(f),J=f.scrollLeft,K=f.scrollTop;f===l?($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):($=ct<A&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var k=$&&(Math.abs(z-o)<=s&&J+ct<A)-(Math.abs(et-o)<=s&&!!J),I=m&&(Math.abs(V-r)<=s&&K+it<N)-(Math.abs(b-r)<=s&&!!K);if(!G[u])for(var Y=0;Y<=u;Y++)G[Y]||(G[Y]={});(G[u].vx!=k||G[u].vy!=I||G[u].el!==f)&&(G[u].el=f,G[u].vx=k,G[u].vy=I,clearInterval(G[u].pid),(k!=0||I!=0)&&(d=!0,G[u].pid=setInterval((function(){n&&this.layer===0&&w.active._onTouchMove(ei);var gt=G[this.layer].vy?G[this.layer].vy*a:0,at=G[this.layer].vx?G[this.layer].vx*a:0;typeof c=="function"&&c.call(w.dragged.parentNode[pt],at,gt,i,ei,G[this.layer].el)!=="continue"||ao(G[this.layer].el,at,gt)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Vt(p,!1)));en=d}},30),wo=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),d&&!d.el.contains(u)&&(s("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=ae(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:wo},Ot(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:wo},Ot(an,{pluginName:"removeOnSpill"}),w.mount(new Hs),w.mount(an,sn);const Vs=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},Bs=(i,t,e,n,o,r)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(o),c=l.find(b=>b.get(o)===d),u=r.dataset.layer,p=l.find(b=>b.get(o)==u);let f,g;for(f=0;f<l.length;f++)if(l[f]==c){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,c):n.insertAt(g+1,c);break}t.requestUpdate()};function ks(i,t,e,n){let o=[],r=null;i._sortable=w.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>o=Vs(s),onMove:s=>{r=s.related},onEnd:s=>Bs(s,n,o,t,e,r)})}function Us(i,t,e,n){const o=i.getArray();let r=!1;o.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),r=!0),s.get(e)||(s.set(e,`layer ${a}`),r=!0),r&&n.requestUpdate()})}function ln(i,t,e){let n=[];const o=(r,s,a)=>{n=[...n,...r.filter(d=>d.get(s)===a)];const l=r.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>o(d.getLayers().getArray(),s,a)),n};return o(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!xo(i,e))return!0;const n=i.get("minZoom"),o=i.get("maxZoom"),r=t.getView().getZoom();return r>n&&r<o}function xo(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var o,r,s;return!i||!t?void 0:i.getLayers?"group":((s=(o=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:o.ol_uid)==null?void 0:s.includes(i.getSource?(r=i.getSource())==null?void 0:r.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...o)=>hs(n(...o),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,o="setStyle"in t,r=n?t.style_:e.style;let s=r==null?void 0:r.variables;if(s){const a=dn(i);if(r.variables={...s,...a},n)t.updateStyleVariables(a);else if(o){const l=qs(r);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const o in n)t[o]=n==null?void 0:n[o]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const o in n)typeof n[o]=="number"?e=e.replaceAll(`["var","${o}"]`,n[o]):e=e.replaceAll(`["var","${o}"]`,`"${n[o]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{var e;if(i)return!("domainProperties"in i)||"domain"in i?{...i}:(e=Object.keys(i))==null?void 0:e.reduce((n,o)=>{if(o==="domainProperties"){const r=dn(t);n.domain=i[o].map(s=>r[s])}else n[o]=i[o];return n},{})};function Eo(i,t){var n;let e={};for(const o in i){const r=i[o].type;if(r&&r!=="object")e[o]=r==="number"?Number(t[o]):t[o];else if(typeof i[o]=="object"&&((n=i[o])!=null&&n.properties)){const s=Eo(i[o].properties,t);Object.keys(s).length>0&&(e[o]=s)}}return e}function Ys(i,t){var r,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(r=i.style_)==null?void 0:r.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const c=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(c.searchParams.entries())}else return null;const o=Eo(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(o).length?o:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>x`
|
|
46
|
-
<button slot="${i}-icon" class="icon">${t?i:
|
|
47
|
-
`,Ks=i=>
|
|
45
|
+
*/function Jn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function At(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Jn(Object(e),!0).forEach(function(n){ps(i,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(e,n))})}return i}function je(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?je=function(t){return typeof t}:je=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(i)}function ps(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Lt(){return Lt=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Lt.apply(this,arguments)}function fs(i,t){if(i==null)return{};var e={},n=Object.keys(i),r,o;for(o=0;o<n.length;o++)r=n[o],!(t.indexOf(r)>=0)&&(e[r]=i[r]);return e}function gs(i,t){if(i==null)return{};var e=fs(i,t),n,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(e[n]=i[n])}return e}var ms="1.15.6";function Ot(i){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(i)}var Rt=Ot(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_e=Ot(/Edge/i),Kn=Ot(/firefox/i),Ce=Ot(/safari/i)&&!Ot(/chrome/i)&&!Ot(/android/i),zi=Ot(/iP(ad|od|hone)/i),Qn=Ot(/chrome/i)&&Ot(/android/i),tr={capture:!1,passive:!1};function C(i,t,e){i.addEventListener(t,e,!Rt&&tr)}function A(i,t,e){i.removeEventListener(t,e,!Rt&&tr)}function ze(i,t){if(t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch{return!1}return!1}}function er(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Et(i,t,e,n){if(i){e=e||document;do{if(t!=null&&(t[0]===">"?i.parentNode===e&&ze(i,t):ze(i,t))||n&&i===e)return i;if(i===e)break}while(i=er(i))}return null}var ir=/\s+/g;function bt(i,t,e){if(i&&t)if(i.classList)i.classList[e?"add":"remove"](t);else{var n=(" "+i.className+" ").replace(ir," ").replace(" "+t+" "," ");i.className=(n+(e?" "+t:"")).replace(ir," ")}}function w(i,t,e){var n=i&&i.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ae(i,t){var e="";if(typeof i=="string")e=i;else do{var n=w(i,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(i=i.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function nr(i,t,e){if(i){var n=i.getElementsByTagName(t),r=0,o=n.length;if(e)for(;r<o;r++)e(n[r],r);return n}return[]}function _t(){var i=document.scrollingElement;return i||document.documentElement}function G(i,t,e,n,r){if(!(!i.getBoundingClientRect&&i!==window)){var o,s,a,l,d,u,c;if(i!==window&&i.parentNode&&i!==_t()?(o=i.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,d=o.right,u=o.height,c=o.width):(s=0,a=0,l=window.innerHeight,d=window.innerWidth,u=window.innerHeight,c=window.innerWidth),(t||e)&&i!==window&&(r=r||i.parentNode,!Rt))do if(r&&r.getBoundingClientRect&&(w(r,"transform")!=="none"||e&&w(r,"position")!=="static")){var p=r.getBoundingClientRect();s-=p.top+parseInt(w(r,"border-top-width")),a-=p.left+parseInt(w(r,"border-left-width")),l=s+o.height,d=a+o.width;break}while(r=r.parentNode);if(n&&i!==window){var f=ae(r||i),g=f&&f.a,b=f&&f.d;f&&(s/=b,a/=g,c/=g,u/=b,l=s+u,d=a+c)}return{top:s,left:a,bottom:l,right:d,width:c,height:u}}}function rr(i,t,e){for(var n=kt(i,!0),r=G(i)[t];n;){var o=G(n)[e],s=void 0;if(s=r>=o,!s)return n;if(n===_t())break;n=kt(n,!1)}return!1}function le(i,t,e,n){for(var r=0,o=0,s=i.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==x.ghost&&(n||s[o]!==x.dragged)&&Et(s[o],e.draggable,i,!1)){if(r===t)return s[o];r++}o++}return null}function Zi(i,t){for(var e=i.lastElementChild;e&&(e===x.ghost||w(e,"display")==="none"||t&&!ze(e,t));)e=e.previousElementSibling;return e||null}function $t(i,t){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==x.clone&&(!t||ze(i,t))&&e++;return e}function or(i){var t=0,e=0,n=_t();if(i)do{var r=ae(i),o=r.a,s=r.d;t+=i.scrollLeft*o,e+=i.scrollTop*s}while(i!==n&&(i=i.parentNode));return[t,e]}function ys(i,t){for(var e in i)if(i.hasOwnProperty(e)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===i[e][n])return Number(e)}return-1}function kt(i,t){if(!i||!i.getBoundingClientRect)return _t();var e=i,n=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=w(e);if(e.clientWidth<e.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return _t();if(n||t)return e;n=!0}}while(e=e.parentNode);return _t()}function bs(i,t){if(i&&t)for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);return i}function qi(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var Te;function sr(i,t){return function(){if(!Te){var e=arguments,n=this;e.length===1?i.call(n,e[0]):i.apply(n,e),Te=setTimeout(function(){Te=void 0},t)}}}function vs(){clearTimeout(Te),Te=void 0}function ar(i,t,e){i.scrollLeft+=t,i.scrollTop+=e}function lr(i){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function dr(i,t,e){var n={};return Array.from(i.children).forEach(function(r){var o,s,a,l;if(!(!Et(r,t.draggable,i,!1)||r.animated||r===e)){var d=G(r);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,d.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,d.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,d.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,d.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var pt="Sortable"+new Date().getTime();function ws(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(r){if(!(w(r,"display")==="none"||r===x.ghost)){i.push({target:r,rect:G(r)});var o=At({},i[i.length-1].rect);if(r.thisAnimationDuration){var s=ae(r,!0);s&&(o.top-=s.f,o.left-=s.e)}r.fromRect=o}})}},addAnimationState:function(n){i.push(n)},removeAnimationState:function(n){i.splice(ys(i,{target:n}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var o=!1,s=0;i.forEach(function(a){var l=0,d=a.target,u=d.fromRect,c=G(d),p=d.prevFromRect,f=d.prevToRect,g=a.rect,b=ae(d,!0);b&&(c.top-=b.f,c.left-=b.e),d.toRect=c,d.thisAnimationDuration&&qi(p,c)&&!qi(u,c)&&(g.top-c.top)/(g.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(l=$s(g,p,f,r.options)),qi(c,u)||(d.prevFromRect=u,d.prevToRect=c,l||(l=r.options.animation),r.animate(d,g,c,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},l),d.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),i=[]},animate:function(n,r,o,s){if(s){w(n,"transition",""),w(n,"transform","");var a=ae(this.el),l=a&&a.a,d=a&&a.d,u=(r.left-o.left)/(l||1),c=(r.top-o.top)/(d||1);n.animatingX=!!u,n.animatingY=!!c,w(n,"transform","translate3d("+u+"px,"+c+"px,0)"),this.forRepaintDummy=xs(n),w(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),w(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){w(n,"transition",""),w(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function xs(i){return i.offsetWidth}function $s(i,t,e,n){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*n.animation}var de=[],Xi={initializeByDefault:!0},De={mount:function(t){for(var e in Xi)Xi.hasOwnProperty(e)&&!(e in t)&&(t[e]=Xi[e]);de.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),de.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=t+"Global";de.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][o]&&e[s.pluginName][o](At({sortable:e},n)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](At({sortable:e},n)))})},initializePlugins:function(t,e,n,r){de.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var d=new a(t,e,t.options);d.sortable=t,d.options=t.options,t[l]=d,Lt(n,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,e){var n={};return de.forEach(function(r){typeof r.eventProperties=="function"&&Lt(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return de.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],n))}),r}};function Es(i){var t=i.sortable,e=i.rootEl,n=i.name,r=i.targetEl,o=i.cloneEl,s=i.toEl,a=i.fromEl,l=i.oldIndex,d=i.newIndex,u=i.oldDraggableIndex,c=i.newDraggableIndex,p=i.originalEvent,f=i.putSortable,g=i.extraEventProperties;if(t=t||e&&e[pt],!!t){var b,k=t.options,et="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Rt&&!_e?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=s||e,b.from=a||e,b.item=r||e,b.clone=o,b.oldIndex=l,b.newIndex=d,b.oldDraggableIndex=u,b.newDraggableIndex=c,b.originalEvent=p,b.pullMode=f?f.lastPutMode:void 0;var z=At(At({},g),De.getEventProperties(n,t));for(var ut in z)b[ut]=z[ut];e&&e.dispatchEvent(b),k[et]&&k[et].call(t,b)}}var Ss=["evt"],ft=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,o=gs(n,Ss);De.pluginEvent.bind(x)(t,e,At({dragEl:h,parentEl:j,ghostEl:$,rootEl:V,nextEl:Jt,lastDownEl:Ze,cloneEl:U,cloneHidden:Vt,dragStarted:Le,putSortable:ot,activeSortable:x.active,originalEvent:r,oldIndex:ce,oldDraggableIndex:Pe,newIndex:vt,newDraggableIndex:Bt,hideGhostForTarget:mr,unhideGhostForTarget:yr,cloneNowHidden:function(){Vt=!0},cloneNowShown:function(){Vt=!1},dispatchSortableEvent:function(a){ct({sortable:e,name:a,originalEvent:r})}},o))};function ct(i){Es(At({putSortable:ot,cloneEl:U,targetEl:h,rootEl:V,oldIndex:ce,oldDraggableIndex:Pe,newIndex:vt,newDraggableIndex:Bt},i))}var h,j,$,V,Jt,Ze,U,Vt,ce,vt,Pe,Bt,qe,ot,ue=!1,Xe=!1,Ye=[],Kt,St,Yi,Wi,cr,ur,Le,he,Oe,Re=!1,We=!1,Ge,lt,Gi=[],Ji=!1,Je=[],Ke=typeof document<"u",Qe=zi,hr=_e||Rt?"cssFloat":"float",As=Ke&&!Qn&&!zi&&"draggable"in document.createElement("div"),pr=function(){if(Ke){if(Rt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),fr=function(t,e){var n=w(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=le(t,0,e),s=le(t,1,e),a=o&&w(o),l=s&&w(s),d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+G(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+G(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||d>=r&&n[hr]==="none"||s&&n[hr]==="none"&&d+u>r)?"vertical":"horizontal"},_s=function(t,e,n){var r=n?t.left:t.top,o=n?t.right:t.bottom,s=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,d=n?e.width:e.height;return r===a||o===l||r+s/2===a+d/2},Cs=function(t,e){var n;return Ye.some(function(r){var o=r[pt].options.emptyInsertThreshold;if(!(!o||Zi(r))){var s=G(r),a=t>=s.left-o&&t<=s.right+o,l=e>=s.top-o&&e<=s.bottom+o;if(a&&l)return n=r}}),n},gr=function(t){function e(o,s){return function(a,l,d,u){var c=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||c))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return e(o(a,l,d,u),s)(a,l,d,u);var p=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var n={},r=t.group;(!r||je(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},mr=function(){!pr&&$&&w($,"display","none")},yr=function(){!pr&&$&&w($,"display","")};Ke&&!Qn&&document.addEventListener("click",function(i){if(Xe)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Xe=!1,!1},!0);var Qt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Cs(t.clientX,t.clientY);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[pt]._onDragOver(n)}}},Ts=function(t){h&&h.parentNode[pt]._isOutsideThisEl(t.target)};function x(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=Lt({},t),i[pt]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return fr(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:x.supportPointer!==!1&&"PointerEvent"in window&&(!Ce||zi),emptyInsertThreshold:5};De.initializePlugins(this,i,e);for(var n in e)!(n in t)&&(t[n]=e[n]);gr(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:As,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(i,"pointerdown",this._onTapStart):(C(i,"mousedown",this._onTapStart),C(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(i,"dragover",this),C(i,"dragenter",this)),Ye.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Lt(this,ws())}x.prototype={constructor:x,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(he=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,h):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,o=r.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=r.filter;if(Ns(n),!h&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ce&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Et(l,r.draggable,n,!1),!(l&&l.animated)&&Ze!==l)){if(ce=$t(l),Pe=$t(l,r.draggable),typeof u=="function"){if(u.call(this,t,l,this)){ct({sortable:e,rootEl:d,name:"filter",targetEl:l,toEl:n,fromEl:n}),ft("filter",e,{evt:t}),o&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=Et(d,c.trim(),n,!1),c)return ct({sortable:e,rootEl:c,name:"filter",targetEl:l,fromEl:n,toEl:n}),ft("filter",e,{evt:t}),!0}),u)){o&&t.preventDefault();return}r.handle&&!Et(d,r.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var r=this,o=r.el,s=r.options,a=o.ownerDocument,l;if(n&&!h&&n.parentNode===o){var d=G(n);if(V=o,h=n,j=h.parentNode,Jt=h.nextSibling,Ze=n,qe=s.group,x.dragged=h,Kt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},cr=Kt.clientX-d.left,ur=Kt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(ft("delayEnded",r,{evt:t}),x.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Kn&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),ct({sortable:r,name:"choose",originalEvent:t}),bt(h,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){nr(h,u.trim(),Ki)}),C(a,"dragover",Qt),C(a,"mousemove",Qt),C(a,"touchmove",Qt),s.supportPointer?(C(a,"pointerup",r._onDrop),!this.nativeDraggable&&C(a,"pointercancel",r._onDrop)):(C(a,"mouseup",r._onDrop),C(a,"touchend",r._onDrop),C(a,"touchcancel",r._onDrop)),Kn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),ft("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(_e||Rt))){if(x.eventCanceled){this._onDrop();return}s.supportPointer?(C(a,"pointerup",r._disableDelayedDrag),C(a,"pointercancel",r._disableDelayedDrag)):(C(a,"mouseup",r._disableDelayedDrag),C(a,"touchend",r._disableDelayedDrag),C(a,"touchcancel",r._disableDelayedDrag)),C(a,"mousemove",r._delayedDragTouchMoveHandler),C(a,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&C(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Ki(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._disableDelayedDrag),A(t,"touchend",this._disableDelayedDrag),A(t,"touchcancel",this._disableDelayedDrag),A(t,"pointerup",this._disableDelayedDrag),A(t,"pointercancel",this._disableDelayedDrag),A(t,"mousemove",this._delayedDragTouchMoveHandler),A(t,"touchmove",this._delayedDragTouchMoveHandler),A(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):e?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(h,"dragend",this),C(V,"dragstart",this._onDragStart));try{document.selection?ei(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(ue=!1,V&&h){ft("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Ts);var n=this.options;!t&&bt(h,n.dragClass,!1),bt(h,n.ghostClass,!0),x.active=this,t&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,mr();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY),t!==e);)e=t;if(h.parentNode[pt]._isOutsideThisEl(t),e)do{if(e[pt]){var n=void 0;if(n=e[pt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=er(e));yr()}},_onTouchMove:function(t){if(Kt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,s=$&&ae($,!0),a=$&&s&&s.a,l=$&&s&&s.d,d=Qe&<&&or(lt),u=(o.clientX-Kt.clientX+r.x)/(a||1)+(d?d[0]-Gi[0]:0)/(a||1),c=(o.clientY-Kt.clientY+r.y)/(l||1)+(d?d[1]-Gi[1]:0)/(l||1);if(!x.active&&!ue){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if($){s?(s.e+=u-(Yi||0),s.f+=c-(Wi||0)):s={a:1,b:0,c:0,d:1,e:u,f:c};var p="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");w($,"webkitTransform",p),w($,"mozTransform",p),w($,"msTransform",p),w($,"transform",p),Yi=u,Wi=c,St=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$){var t=this.options.fallbackOnBody?document.body:V,e=G(h,!0,Qe,!0,t),n=this.options;if(Qe){for(lt=t;w(lt,"position")==="static"&&w(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=_t()),e.top+=lt.scrollTop,e.left+=lt.scrollLeft):lt=_t(),Gi=or(lt)}$=h.cloneNode(!0),bt($,n.ghostClass,!1),bt($,n.fallbackClass,!0),bt($,n.dragClass,!0),w($,"transition",""),w($,"transform",""),w($,"box-sizing","border-box"),w($,"margin",0),w($,"top",e.top),w($,"left",e.left),w($,"width",e.width),w($,"height",e.height),w($,"opacity","0.8"),w($,"position",Qe?"absolute":"fixed"),w($,"zIndex","100000"),w($,"pointerEvents","none"),x.ghost=$,t.appendChild($),w($,"transform-origin",cr/parseInt($.style.width)*100+"% "+ur/parseInt($.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;if(ft("dragStart",this,{evt:t}),x.eventCanceled){this._onDrop();return}ft("setupClone",this),x.eventCanceled||(U=lr(h),U.removeAttribute("id"),U.draggable=!1,U.style["will-change"]="",this._hideClone(),bt(U,this.options.chosenClass,!1),x.clone=U),n.cloneId=ei(function(){ft("clone",n),!x.eventCanceled&&(n.options.removeCloneOnHide||V.insertBefore(U,h),n._hideClone(),ct({sortable:n,name:"clone"}))}),!e&&bt(h,o.dragClass,!0),e?(Xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(A(document,"mouseup",n._onDrop),A(document,"touchend",n._onDrop),A(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,h)),C(document,"drop",n),w(h,"transform","translateZ(0)")),ue=!0,n._dragStartId=ei(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Le=!0,window.getSelection().removeAllRanges(),Ce&&w(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,n=t.target,r,o,s,a=this.options,l=a.group,d=x.active,u=qe===l,c=a.sort,p=ot||d,f,g=this,b=!1;if(Ji)return;function k(wt,te){ft(wt,g,At({evt:t,isOwner:u,axis:f?"vertical":"horizontal",revert:s,dragRect:r,targetRect:o,canSort:c,fromSortable:p,target:n,completed:z,onMove:function(ee,It){return ti(V,e,h,r,ee,G(ee),t,It)},changed:ut},te))}function et(){k("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function z(wt){return k("dragOverCompleted",{insertion:wt}),wt&&(u?d._hideClone():d._showClone(g),g!==p&&(bt(h,ot?ot.options.ghostClass:d.options.ghostClass,!1),bt(h,a.ghostClass,!0)),ot!==g&&g!==x.active?ot=g:g===x.active&&ot&&(ot=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){k("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===h&&!h.animated||n===e&&!n.animated)&&(he=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(h.parentNode[pt]._isOutsideThisEl(t.target),!wt&&Qt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function ut(){vt=$t(h),Bt=$t(h,a.draggable),ct({sortable:g,name:"change",toEl:e,newIndex:vt,newDraggableIndex:Bt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Et(n,a.draggable,e,!0),k("dragOver"),x.eventCanceled)return b;if(h.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return z(!1);if(Xe=!1,d&&!a.disabled&&(u?c||(s=j!==V):ot===this||(this.lastPutMode=qe.checkPull(this,d,h,t))&&l.checkPut(this,d,h,t))){if(f=this._getDirection(t,n)==="vertical",r=G(h),k("dragOverValid"),x.eventCanceled)return b;if(s)return j=V,et(),this._hideClone(),k("revert"),x.eventCanceled||(Jt?V.insertBefore(h,Jt):V.appendChild(h)),z(!0);var it=Zi(e,a.draggable);if(!it||Os(t,f,this)&&!it.animated){if(it===h)return z(!1);if(it&&e===t.target&&(n=it),n&&(o=G(n)),ti(V,e,h,r,n,o,t,!!n)!==!1)return et(),it&&it.nextSibling?e.insertBefore(h,it.nextSibling):e.appendChild(h),j=e,ut(),z(!0)}else if(it&&Ls(t,f,this)){var E=le(e,0,a,!0);if(E===h)return z(!1);if(n=E,o=G(n),ti(V,e,h,r,n,o,t,!1)!==!1)return et(),e.insertBefore(h,E),j=e,ut(),z(!0)}else if(n.parentNode===e){o=G(n);var m=0,_,N=h.parentNode!==e,M=!_s(h.animated&&h.toRect||r,n.animated&&n.toRect||o,f),K=f?"top":"left",Q=rr(n,"top","top")||rr(h,"top","top"),B=Q?Q.scrollTop:void 0;he!==n&&(_=o[K],Re=!1,We=!M&&a.invertSwap||N),m=Rs(t,n,o,f,M?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,We,he===n);var I;if(m!==0){var Y=$t(h);do Y-=m,I=j.children[Y];while(I&&(w(I,"display")==="none"||I===$))}if(m===0||I===n)return z(!1);he=n,Oe=m;var gt=n.nextElementSibling,at=!1;at=m===1;var mt=ti(V,e,h,r,n,o,t,at);if(mt!==!1)return(mt===1||mt===-1)&&(at=mt===1),Ji=!0,setTimeout(Ps,30),et(),at&&!gt?e.appendChild(h):n.parentNode.insertBefore(h,at?gt:n),Q&&ar(Q,0,B-Q.scrollTop),j=h.parentNode,_!==void 0&&!We&&(Ge=Math.abs(_-G(n)[K])),ut(),z(!0)}if(e.contains(h))return z(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){A(document,"mousemove",this._onTouchMove),A(document,"touchmove",this._onTouchMove),A(document,"pointermove",this._onTouchMove),A(document,"dragover",Qt),A(document,"mousemove",Qt),A(document,"touchmove",Qt)},_offUpEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._onDrop),A(t,"touchend",this._onDrop),A(t,"pointerup",this._onDrop),A(t,"pointercancel",this._onDrop),A(t,"touchcancel",this._onDrop),A(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;if(vt=$t(h),Bt=$t(h,n.draggable),ft("drop",this,{evt:t}),j=h&&h.parentNode,vt=$t(h),Bt=$t(h,n.draggable),x.eventCanceled){this._nulling();return}ue=!1,We=!1,Re=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qi(this.cloneId),Qi(this._dragStartId),this.nativeDraggable&&(A(document,"drop",this),A(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ce&&w(document.body,"user-select",""),w(h,"transform",""),t&&(Le&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),$&&$.parentNode&&$.parentNode.removeChild($),(V===j||ot&&ot.lastPutMode!=="clone")&&U&&U.parentNode&&U.parentNode.removeChild(U),h&&(this.nativeDraggable&&A(h,"dragend",this),Ki(h),h.style["will-change"]="",Le&&!ue&&bt(h,ot?ot.options.ghostClass:this.options.ghostClass,!1),bt(h,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:j,newIndex:null,newDraggableIndex:null,originalEvent:t}),V!==j?(vt>=0&&(ct({rootEl:j,name:"add",toEl:j,fromEl:V,originalEvent:t}),ct({sortable:this,name:"remove",toEl:j,originalEvent:t}),ct({rootEl:j,name:"sort",toEl:j,fromEl:V,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),ot&&ot.save()):vt!==ce&&vt>=0&&(ct({sortable:this,name:"update",toEl:j,originalEvent:t}),ct({sortable:this,name:"sort",toEl:j,originalEvent:t})),x.active&&((vt==null||vt===-1)&&(vt=ce,Bt=Pe),ct({sortable:this,name:"end",toEl:j,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ft("nulling",this),V=h=j=$=Jt=U=Ze=Vt=Kt=St=Le=vt=Bt=ce=Pe=he=Oe=ot=qe=x.dragged=x.ghost=x.clone=x.active=null,Je.forEach(function(t){t.checked=!0}),Je.length=Yi=Wi=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Ds(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,r=0,o=n.length,s=this.options;r<o;r++)e=n[r],Et(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||Is(e));return t},sort:function(t,e){var n={},r=this.el;this.toArray().forEach(function(o,s){var a=r.children[s];Et(a,this.options.draggable,r,!1)&&(n[o]=a)},this),e&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(r.removeChild(n[o]),r.appendChild(n[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Et(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(e===void 0)return n[t];var r=De.modifyOption(this,t,e);typeof r<"u"?n[t]=r:n[t]=e,t==="group"&&gr(n)},destroy:function(){ft("destroy",this);var t=this.el;t[pt]=null,A(t,"mousedown",this._onTapStart),A(t,"touchstart",this._onTapStart),A(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(A(t,"dragover",this),A(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ye.splice(Ye.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Vt){if(ft("hideClone",this),x.eventCanceled)return;w(U,"display","none"),this.options.removeCloneOnHide&&U.parentNode&&U.parentNode.removeChild(U),Vt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Vt){if(ft("showClone",this),x.eventCanceled)return;h.parentNode==V&&!this.options.group.revertClone?V.insertBefore(U,h):Jt?V.insertBefore(U,Jt):V.appendChild(U),this.options.group.revertClone&&this.animate(h,U),w(U,"display",""),Vt=!1}}};function Ds(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function ti(i,t,e,n,r,o,s,a){var l,d=i[pt],u=d.options.onMove,c;return window.CustomEvent&&!Rt&&!_e?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=i,l.dragged=e,l.draggedRect=n,l.related=r||t,l.relatedRect=o||G(t),l.willInsertAfter=a,l.originalEvent=s,i.dispatchEvent(l),u&&(c=u.call(d,l,s)),c}function Ki(i){i.draggable=!1}function Ps(){Ji=!1}function Ls(i,t,e){var n=G(le(e.el,0,e.options,!0)),r=dr(e.el,e.options,$),o=10;return t?i.clientX<r.left-o||i.clientY<n.top&&i.clientX<n.right:i.clientY<r.top-o||i.clientY<n.bottom&&i.clientX<n.left}function Os(i,t,e){var n=G(Zi(e.el,e.options.draggable)),r=dr(e.el,e.options,$),o=10;return t?i.clientX>r.right+o||i.clientY>n.bottom&&i.clientX>n.left:i.clientY>r.bottom+o||i.clientX>n.right&&i.clientY>n.top}function Rs(i,t,e,n,r,o,s,a){var l=n?i.clientY:i.clientX,d=n?e.height:e.width,u=n?e.top:e.left,c=n?e.bottom:e.right,p=!1;if(!s){if(a&&Ge<d*r){if(!Re&&(Oe===1?l>u+d*o/2:l<c-d*o/2)&&(Re=!0),Re)p=!0;else if(Oe===1?l<u+Ge:l>c-Ge)return-Oe}else if(l>u+d*(1-r)/2&&l<c-d*(1-r)/2)return Ms(t)}return p=p||s,p&&(l<u+d*o/2||l>c-d*o/2)?l>u+d/2?1:-1:0}function Ms(i){return $t(h)<$t(i)?1:-1}function Is(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,e=t.length,n=0;e--;)n+=t.charCodeAt(e);return n.toString(36)}function Ns(i){Je.length=0;for(var t=i.getElementsByTagName("input"),e=t.length;e--;){var n=t[e];n.checked&&Je.push(n)}}function ei(i){return setTimeout(i,0)}function Qi(i){return clearTimeout(i)}Ke&&C(document,"touchmove",function(i){(x.active||ue)&&i.cancelable&&i.preventDefault()}),x.utils={on:C,off:A,css:w,find:nr,is:function(t,e){return!!Et(t,e,t,!1)},extend:bs,throttle:sr,closest:Et,toggleClass:bt,clone:lr,index:$t,nextTick:ei,cancelNextTick:Qi,detectDirection:fr,getChild:le,expando:pt},x.get=function(i){return i[pt]},x.mount=function(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(x.utils=At(At({},x.utils),n.utils)),De.mount(n)})},x.create=function(i,t){return new x(i,t)},x.version=ms;var J=[],Me,tn,en=!1,nn,rn,ii,Ie;function Hs(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):n.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):(A(document,"pointermove",this._handleFallbackAutoScroll),A(document,"touchmove",this._handleFallbackAutoScroll),A(document,"mousemove",this._handleFallbackAutoScroll)),br(),ni(),vs()},nulling:function(){ii=tn=Me=en=Ie=nn=rn=null,J.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var r=this,o=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(o,s);if(ii=e,n||this.options.forceAutoScrollFallback||_e||Rt||Ce){on(e,this.options,a,n);var l=kt(a,!0);en&&(!Ie||o!==nn||s!==rn)&&(Ie&&br(),Ie=setInterval(function(){var d=kt(document.elementFromPoint(o,s),!0);d!==l&&(l=d,ni()),on(e,r.options,d,n)},10),nn=o,rn=s)}else{if(!this.options.bubbleScroll||kt(a,!0)===_t()){ni();return}on(e,this.options,kt(a,!1),!1)}}},Lt(i,{pluginName:"scroll",initializeByDefault:!0})}function ni(){J.forEach(function(i){clearInterval(i.pid)}),J=[]}function br(){clearInterval(Ie)}var on=sr(function(i,t,e,n){if(t.scroll){var r=(i.touches?i.touches[0]:i).clientX,o=(i.touches?i.touches[0]:i).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=_t(),d=!1,u;tn!==e&&(tn=e,ni(),Me=t.scroll,u=t.scrollFn,Me===!0&&(Me=kt(e,!0)));var c=0,p=Me;do{var f=p,g=G(f),b=g.top,k=g.bottom,et=g.left,z=g.right,ut=g.width,it=g.height,E=void 0,m=void 0,_=f.scrollWidth,N=f.scrollHeight,M=w(f),K=f.scrollLeft,Q=f.scrollTop;f===l?(E=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(E=ut<_&&(M.overflowX==="auto"||M.overflowX==="scroll"),m=it<N&&(M.overflowY==="auto"||M.overflowY==="scroll"));var B=E&&(Math.abs(z-r)<=s&&K+ut<_)-(Math.abs(et-r)<=s&&!!K),I=m&&(Math.abs(k-o)<=s&&Q+it<N)-(Math.abs(b-o)<=s&&!!Q);if(!J[c])for(var Y=0;Y<=c;Y++)J[Y]||(J[Y]={});(J[c].vx!=B||J[c].vy!=I||J[c].el!==f)&&(J[c].el=f,J[c].vx=B,J[c].vy=I,clearInterval(J[c].pid),(B!=0||I!=0)&&(d=!0,J[c].pid=setInterval((function(){n&&this.layer===0&&x.active._onTouchMove(ii);var gt=J[this.layer].vy?J[this.layer].vy*a:0,at=J[this.layer].vx?J[this.layer].vx*a:0;typeof u=="function"&&u.call(x.dragged.parentNode[pt],at,gt,i,ii,J[this.layer].el)!=="continue"||ar(J[this.layer].el,at,gt)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==l&&(p=kt(p,!1)));en=d}},30),vr=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var d=n||o;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);l(),d&&!d.el.contains(c)&&(s("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function sn(){}sn.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=le(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:vr},Lt(sn,{pluginName:"revertOnSpill"});function an(){}an.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,r=n||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:vr},Lt(an,{pluginName:"removeOnSpill"}),x.mount(new Hs),x.mount(an,sn);const ks=i=>{const t=i.item;let e=Array.prototype.slice.call(t.parentNode.childNodes);return e=e.filter(n=>n.nodeType!=Node.ELEMENT_NODE||!n.classList.contains("sortable-fallback")),e},Vs=(i,t,e,n,r,o)=>{const a=i.item.parentNode;for(const b of e)a.appendChild(b);if(i.oldIndex==i.newIndex)return;const l=n.getArray(),d=i.item.querySelector("eox-layercontrol-layer").layer.get(r),u=l.find(b=>b.get(r)===d),c=o.dataset.layer,p=l.find(b=>b.get(r)==c);let f,g;for(f=0;f<l.length;f++)if(l[f]==u){n.removeAt(f);break}for(g=0;g<l.length;g++)if(l[g]===p){f>g?n.insertAt(g,u):n.insertAt(g+1,u);break}t.requestUpdate()};function Bs(i,t,e,n){let r=[],o=null;i._sortable=x.create(i,{handle:".drag-handle",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",onStart:s=>r=ks(s),onMove:s=>{o=s.related},onEnd:s=>Vs(s,n,r,t,e,o)})}function Us(i,t,e,n){const r=i.getArray();let o=!1;r.forEach(s=>{const a=s.ol_uid;s.get(t)||(s.set(t,a),o=!0),s.get(e)||(s.set(e,`layer ${a}`),o=!0),o&&n.requestUpdate()})}function ln(i,t,e){let n=[];const r=(o,s,a)=>{n=[...n,...o.filter(d=>d.get(s)===a)];const l=o.filter(d=>d.getLayers);return l.length>0&&l.forEach(d=>r(d.getLayers().getArray(),s,a)),n};return r(i,t,e),n}function Fs(i,t,e){if(!i||!t)return!1;if(!wr(i,e))return!0;const n=i.get("minZoom"),r=i.get("maxZoom"),o=t.getView().getZoom();return o>n&&o<r}function wr(i,t){const e=i.get("minZoom"),n=i.get("maxZoom");return!!(t&&(e!==-1/0||n!==1/0))}function js(i,t){var r,o,s;return!i||!t?void 0:i.getLayers?"group":((s=(r=t.getInteractions().getArray().filter(a=>a.freehand_!==void 0).map(a=>a.source_))==null?void 0:r.ol_uid)==null?void 0:s.includes(i.getSource?(o=i.getSource())==null?void 0:o.ol_uid:void 0))?"draw":i.declutter_!==void 0?"vector":"raster"}const zs=(i,t,e)=>{let n=t;return e.layer.getSource().getTileUrlFunction()&&(n||(n=e.layer.getSource().getTileUrlFunction()),e.layer.getSource().setTileUrlFunction((...r)=>hs(n(...r),i)),e.layer.getSource().setKey(new Date)),n};function Zs(i,t,e){const n="updateStyleVariables"in t,r="setStyle"in t,o=n?t.style_:e.style;let s=o==null?void 0:o.variables;if(s){const a=dn(i);if(o.variables={...s,...a},n)t.updateStyleVariables(a);else if(r){const l=qs(o);t.setStyle(l)}}}const dn=i=>{const t={};for(const e in i)if(typeof i[e]=="object"&&i[e]!==null){const n=dn(i[e]);for(const r in n)t[r]=n==null?void 0:n[r]}else t[e]=i==null?void 0:i[e];return t};function qs(i){let t=i;if("variables"in i){let e=JSON.stringify(i);const{variables:n}=i;for(const r in n)typeof n[r]=="number"?e=e.replaceAll(`["var","${r}"]`,n[r]):e=e.replaceAll(`["var","${r}"]`,`"${n[r]}"`);t=JSON.parse(e)}return t}const Xs=(i,t)=>{if(!i)return;let e;const n=dn(t);return Array.isArray(i)&&i.length?(e=i.find(r=>{const o=r.boundTo.key,s=r.boundTo.value;return n[o]==s}),e||(e=i)):e=i,Array.isArray(e)||(e=[e]),e.map(r=>{var o;return!("domainProperties"in r)||"domain"in r?{...r}:(o=Object.keys(r))==null?void 0:o.reduce((s,a)=>(a==="domainProperties"?s.domain=r[a].map(l=>n[l]):s[a]=r[a],s),{})})};function xr(i,t){var n;let e={};for(const r in i){const o=i[r].type;if(o&&o!=="object")e[r]=o==="number"?Number(t[r]):t[r];else if(typeof i[r]=="object"&&((n=i[r])!=null&&n.properties)){const s=xr(i[r].properties,t);Object.keys(s).length>0&&(e[r]=s)}}return e}function Ys(i,t){var o,s,a,l,d;if(!t)return null;let e={},n="updateStyleVariables"in i?(o=i.style_)==null?void 0:o.variables:(s=t.style)==null?void 0:s.variables;if((t.type==="style"||t.style)&&n)e=n;else if((l=(a=i.getSource())==null?void 0:a.getTileUrlFunction)!=null&&l.call(a)){const u=new URL(i.getSource().getTileUrlFunction()([0,0,0]));e=Object.fromEntries(u.searchParams.entries())}else return null;const r=xr(((d=t.schema)==null?void 0:d.properties)||t.schema,e);return Object.keys(r).length?r:null}const Ws=(i,t)=>i==null?void 0:i.filter(e=>["remove","sort"].filter(n=>t!=null&&t.get("layerControlDisable")?n!=="sort":!0).includes(e)),Gs=(i,t)=>i==null?void 0:i.filter(e=>{let n=!0;return["remove","sort"].includes(e)&&(n=!1),e==="info"&&(n=t.get("description")),e==="config"&&(n=t.get("layerConfig")),e==="datetime"&&(n=t.get("layerDatetime")),e==="legend"&&(n=t.get("layerLegend")),n}),Js=(i,t)=>v`
|
|
46
|
+
<button slot="${i}-icon" class="icon">${t?i:L}</button>
|
|
47
|
+
`,Ks=i=>v`
|
|
48
48
|
<button
|
|
49
49
|
class="remove-icon icon"
|
|
50
50
|
@click=${()=>{const{layer:t}=i;t==null||t.set("layerControlOptional",!0),t==null||t.setVisible(!1),i.dispatchEvent(new CustomEvent("changed",{detail:t,bubbles:!0}))}}
|
|
51
51
|
>
|
|
52
|
-
${i.unstyled?"x":
|
|
52
|
+
${i.unstyled?"x":L}
|
|
53
53
|
</button>
|
|
54
|
-
`,Qs=i=>
|
|
54
|
+
`,Qs=i=>v`
|
|
55
55
|
<span class="button sort-icon icon drag-handle">
|
|
56
|
-
${i?"═":
|
|
56
|
+
${i?"═":L}
|
|
57
57
|
</span>
|
|
58
|
-
`,$
|
|
58
|
+
`,$r=i=>{var e;const t=["layerControlHide","layerControlOptional"];return(e=i==null?void 0:i.getArray())==null?void 0:e.filter(n=>t.every(r=>!n.get(r)))};/**
|
|
59
59
|
* @license
|
|
60
60
|
* Copyright 2020 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
-
*/const
|
|
62
|
+
*/const Er=Hi(class extends ki{constructor(i){if(super(i),i.type!==Ht.PROPERTY&&i.type!==Ht.ATTRIBUTE&&i.type!==Ht.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!fo(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[t]){if(t===xt||t===L)return t;const e=i.element,n=i.name;if(i.type===Ht.PROPERTY){if(t===e[n])return xt}else if(i.type===Ht.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(n))return xt}else if(i.type===Ht.ATTRIBUTE&&e.getAttribute(n)===t+"")return xt;return Un(i),t}});/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2017 Google LLC
|
|
65
65
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
-
*/class
|
|
66
|
+
*/class cn extends ki{constructor(t){if(super(t),this.it=L,t.type!==Ht.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===L||t==null)return this._t=void 0,this.it=t;if(t===xt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const ta=Hi(cn);/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/function*
|
|
70
|
+
*/function*ri(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var un,Ar;function ea(){if(Ar)return un;Ar=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function k(m,_,N){var M,K,Q,B,I,Y,gt=0,at=!1,mt=!1,wt=!0;if(typeof m!="function")throw new TypeError(i);_=E(_)||0,z(N)&&(at=!!N.leading,mt="maxWait"in N,Q=mt?f(E(N.maxWait)||0,_):Q,wt="trailing"in N?!!N.trailing:wt);function te(H){var yt=M,zt=K;return M=K=void 0,gt=H,B=m.apply(zt,yt),B}function _i(H){return gt=H,I=setTimeout(ie,_),at?te(H):B}function ee(H){var yt=H-Y,zt=H-gt,Fr=_-yt;return mt?g(Fr,Q-zt):Fr}function It(H){var yt=H-Y,zt=H-gt;return Y===void 0||yt>=_||yt<0||mt&&zt>=Q}function ie(){var H=b();if(It(H))return Ci(H);I=setTimeout(ie,ee(H))}function Ci(H){return I=void 0,wt&&M?te(H):(M=K=void 0,B)}function fn(){I!==void 0&&clearTimeout(I),gt=0,M=Y=K=I=void 0}function Ve(){return I===void 0?B:Ci(b())}function F(){var H=b(),yt=It(H);if(M=arguments,K=this,Y=H,yt){if(I===void 0)return _i(Y);if(mt)return I=setTimeout(ie,_),te(Y)}return I===void 0&&(I=setTimeout(ie,_)),B}return F.cancel=fn,F.flush=Ve,F}function et(m,_,N){var M=!0,K=!0;if(typeof m!="function")throw new TypeError(i);return z(N)&&(M="leading"in N?!!N.leading:M,K="trailing"in N?!!N.trailing:K),k(m,_,{leading:M,maxWait:_,trailing:K})}function z(m){var _=typeof m;return!!m&&(_=="object"||_=="function")}function ut(m){return!!m&&typeof m=="object"}function it(m){return typeof m=="symbol"||ut(m)&&p.call(m)==e}function E(m){if(typeof m=="number")return m;if(it(m))return t;if(z(m)){var _=typeof m.valueOf=="function"?m.valueOf():m;m=z(_)?_+"":_}if(typeof m!="string")return m===0?m:+m;m=m.replace(n,"");var N=o.test(m);return N||s.test(m)?a(m.slice(2),N?2:8):r.test(m)?t:+m}return un=et,un}var ia=ea();const _r=Sr(ia);/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2018 Google LLC
|
|
73
73
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
-
*/const
|
|
74
|
+
*/const Ft=i=>i??L;class Cr extends dt{constructor(){super();O(this,oi,wn`
|
|
75
75
|
color-legend {
|
|
76
76
|
--cle-background: transparent;
|
|
77
77
|
--cle-font-family: inherit;
|
|
@@ -80,32 +80,51 @@
|
|
|
80
80
|
--cle-letter-spacing-title: inherit;
|
|
81
81
|
--cle-padding: 0;
|
|
82
82
|
}
|
|
83
|
-
`);
|
|
83
|
+
`);O(this,si,"");this.unstyled=!1,this.noShadow=!1,this.layerLegend=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){this.layerLegend.width||new ResizeObserver(()=>{this.offsetWidth!==this.layerLegend.width&&(this.layerLegend.width=this.offsetWidth,this.requestUpdate())}).observe(this.renderRoot.querySelector(".legend-container"))}render(){return customElements.get("color-legend")||console.error("Please import `color-legend-element` in order to use layerLegend"),v`
|
|
84
84
|
<style>
|
|
85
|
-
${T(this,
|
|
85
|
+
${T(this,oi)}
|
|
86
86
|
${!this.unstyled&&T(this,si)}
|
|
87
87
|
</style>
|
|
88
|
-
${
|
|
88
|
+
${W(this.layerLegend,()=>v`
|
|
89
89
|
<div class="legend-container">
|
|
90
90
|
<!-- Render color-legend-->
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
${W(Array.isArray(this.layerLegend),()=>this.layerLegend.map((e,n)=>v`
|
|
92
|
+
<color-legend
|
|
93
|
+
id="${this.layer.get("id")+n}"
|
|
94
|
+
width=${e.width??325}
|
|
95
|
+
scaleType="${Ft(e.scaleType)}"
|
|
96
|
+
markType="${Ft(e.markType)}"
|
|
97
|
+
titleText="${Ft(e.title)}"
|
|
98
|
+
.range=${e.range}
|
|
99
|
+
.domain=${e.domain}
|
|
100
|
+
tickFormat="${Ft(e.tickFormat)}"
|
|
101
|
+
.ticks=${e.ticks??5}
|
|
102
|
+
.tickValues=${e.tickValues}
|
|
103
|
+
.marginLeft=${0}
|
|
104
|
+
.marginRight=${0}
|
|
105
|
+
>
|
|
106
|
+
</color-legend>
|
|
107
|
+
<div></div>
|
|
108
|
+
`),()=>v`
|
|
109
|
+
<color-legend
|
|
110
|
+
id="${this.layer.get("id")}"
|
|
111
|
+
width=${this.layerLegend.width??325}
|
|
112
|
+
scaleType="${Ft(this.layerLegend.scaleType)}"
|
|
113
|
+
markType="${Ft(this.layerLegend.markType)}"
|
|
114
|
+
titleText="${Ft(this.layerLegend.title)}"
|
|
115
|
+
.range=${this.layerLegend.range}
|
|
116
|
+
.domain=${this.layerLegend.domain}
|
|
117
|
+
tickFormat="${Ft(this.layerLegend.tickFormat)}"
|
|
118
|
+
.ticks=${this.layerLegend.ticks??5}
|
|
119
|
+
.tickValues=${this.layerLegend.tickValues}
|
|
120
|
+
.marginLeft=${0}
|
|
121
|
+
.marginRight=${0}
|
|
122
|
+
>
|
|
123
|
+
</color-legend>
|
|
124
|
+
`)}
|
|
106
125
|
</div>
|
|
107
126
|
`)}
|
|
108
|
-
`}}
|
|
127
|
+
`}}oi=new WeakMap,si=new WeakMap,Z(Cr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerLegend:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-legend",Cr);class Tr extends dt{constructor(){super();O(this,He);O(this,Mt,{});O(this,pe,null);O(this,Ne);O(this,ai,wn`
|
|
109
128
|
color-legend {
|
|
110
129
|
--cle-background: transparent;
|
|
111
130
|
--cle-font-family: inherit;
|
|
@@ -113,13 +132,13 @@
|
|
|
113
132
|
--cle-font-weight: inherit --cle-letter-spacing: inherit;
|
|
114
133
|
--cle-letter-spacing-title: inherit;
|
|
115
134
|
}
|
|
116
|
-
`);
|
|
135
|
+
`);O(this,li,"");this.layer=null,this.unstyled=!1,this.noShadow=!1,this.layerConfig=null,this.throttleDataChange=_r(q(this,He,mn),1e3)}updated(e){if(e.has("layerConfig")){const n=this.layerConfig.type==="style"||this.layerConfig.style?100:1e3;this.throttleDataChange=_r(q(this,He,mn),n),this.requestUpdate()}}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){ge(this,pe,Ys(this.layer,this.layerConfig)),Object.keys(T(this,Mt)).length!==0&&ge(this,pe,T(this,Mt)),customElements.get("eox-jsonform")||console.error("Please import @eox/jsonform in order to use layerconfig");const e={disable_edit_json:!0,disable_collapse:!0,disable_properties:!0};return v`
|
|
117
136
|
<style>
|
|
118
137
|
${T(this,ai)}
|
|
119
138
|
${!this.unstyled&&T(this,li)}
|
|
120
139
|
</style>
|
|
121
|
-
${
|
|
122
|
-
${
|
|
140
|
+
${W(this.layerConfig,()=>v`
|
|
141
|
+
${W(this.layerConfig.legend,()=>v`
|
|
123
142
|
<eox-layercontrol-layer-legend
|
|
124
143
|
.noShadow=${!0}
|
|
125
144
|
.unstyled=${this.unstyled}
|
|
@@ -130,17 +149,17 @@
|
|
|
130
149
|
<!-- Render a JSON form for layer configuration -->
|
|
131
150
|
<eox-jsonform
|
|
132
151
|
.schema=${this.layerConfig.schema}
|
|
133
|
-
.value=${T(this,
|
|
152
|
+
.value=${T(this,pe)}
|
|
134
153
|
.options=${e}
|
|
135
154
|
@change=${this.throttleDataChange}
|
|
136
155
|
></eox-jsonform>
|
|
137
156
|
`)}
|
|
138
|
-
`}}Mt=new WeakMap,
|
|
157
|
+
`}}Mt=new WeakMap,pe=new WeakMap,Ne=new WeakMap,He=new WeakSet,mn=function(e){ge(this,Mt,e.detail),this.layerConfig.type==="style"||this.layerConfig.style?"setStyle"in this.layer||"updateStyleVariables"in this.layer?Zs(T(this,Mt),this.layer,this.layerConfig):console.error(`Layer type ${this.layer.get("type")??""} does not support styles configuration`):ge(this,Ne,zs(T(this,Mt),T(this,Ne),this)),this.requestUpdate()},ai=new WeakMap,li=new WeakMap,Z(Tr,"properties",{layer:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},layerConfig:{attribute:!1}}),customElements.define("eox-layercontrol-layerconfig",Tr);class Dr extends dt{constructor(){super();O(this,di);O(this,ci,"");O(this,ui,"");this.unstyled=!1,this.noShadow=!1,this.layerDatetime=null,this.layer=null}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){return customElements.get("eox-timecontrol")||console.error("Please import @eox/timecontrol in order to use layerDatetime"),v`
|
|
139
158
|
<style>
|
|
140
|
-
${T(this,
|
|
141
|
-
${!this.unstyled&&T(this,
|
|
159
|
+
${T(this,ci)}
|
|
160
|
+
${!this.unstyled&&T(this,ui)}
|
|
142
161
|
</style>
|
|
143
|
-
${
|
|
162
|
+
${W(this.layerDatetime,()=>v`
|
|
144
163
|
<!-- Render a Timecontrol for layer date time -->
|
|
145
164
|
<eox-timecontrol
|
|
146
165
|
?unstyled=${this.unstyled}
|
|
@@ -153,10 +172,10 @@
|
|
|
153
172
|
.controlProperty=${void 0}
|
|
154
173
|
current-step=${this.layerDatetime.currentStep}
|
|
155
174
|
.displayFormat=${this.layerDatetime.displayFormat}
|
|
156
|
-
@stepchange=${q(this,di,
|
|
175
|
+
@stepchange=${q(this,di,zr)}
|
|
157
176
|
></eox-timecontrol>
|
|
158
177
|
`)}
|
|
159
|
-
`}}di=new WeakSet,
|
|
178
|
+
`}}di=new WeakSet,zr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{bubbles:!0,detail:{datetime:e.detail.currentStep,layer:this.layer}})),this.layerDatetime.currentStep=e.detail.currentStep,this.requestUpdate()},ci=new WeakMap,ui=new WeakMap,Z(Dr,"properties",{unstyled:{type:Boolean},noShadow:{type:Boolean},layerDatetime:{attribute:!1},layer:{attribute:!1}}),customElements.define("eox-layercontrol-layer-datetime",Dr);class Pr extends dt{constructor(){super();O(this,ke,e=>(this.selectedTab===e||this.toolsAsList)&&"highlighted");O(this,hi,`
|
|
160
179
|
.tabbed figure,
|
|
161
180
|
.listed figure {
|
|
162
181
|
margin: 0;
|
|
@@ -178,7 +197,7 @@
|
|
|
178
197
|
.listed .tab.highlighted {
|
|
179
198
|
display: block;
|
|
180
199
|
}
|
|
181
|
-
`);
|
|
200
|
+
`);O(this,pi,`
|
|
182
201
|
.listed label {
|
|
183
202
|
display: flex;
|
|
184
203
|
justify-content: start;
|
|
@@ -216,34 +235,34 @@
|
|
|
216
235
|
border-radius: 2px;
|
|
217
236
|
padding: var(--padding-vertical) var(--padding);
|
|
218
237
|
}
|
|
219
|
-
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,n=this.actions,
|
|
238
|
+
`);this.actions=[],this.selectedTab=0,this.tabs=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.tabs,n=this.actions,r=n.length+e.length>1;return v`
|
|
220
239
|
<style>
|
|
221
240
|
${T(this,hi)}
|
|
222
241
|
${!this.unstyled&&T(this,pi)}
|
|
223
242
|
</style>
|
|
224
243
|
<div class="${this.toolsAsList?"listed":"tabbed"}">
|
|
225
244
|
<!-- Navigation for tabs and actions -->
|
|
226
|
-
${
|
|
245
|
+
${W(r,()=>v`
|
|
227
246
|
<nav>
|
|
228
|
-
${
|
|
247
|
+
${W(!this.toolsAsList,()=>v`
|
|
229
248
|
<div>
|
|
230
249
|
<!-- Labels for tabs -->
|
|
231
|
-
${
|
|
250
|
+
${ri(e,(o,s)=>v`
|
|
232
251
|
<label
|
|
233
|
-
class=${T(this,
|
|
252
|
+
class=${T(this,ke).call(this,s)}
|
|
234
253
|
@click=${()=>this.selectedTab=s}
|
|
235
254
|
>
|
|
236
255
|
<!-- Customizable icon for each tab -->
|
|
237
|
-
<slot name=${`${
|
|
256
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
238
257
|
</label>
|
|
239
258
|
`)}
|
|
240
259
|
</div>
|
|
241
260
|
<div>
|
|
242
261
|
<!-- Icons for actions -->
|
|
243
|
-
${
|
|
262
|
+
${ri(n,o=>v`
|
|
244
263
|
<span>
|
|
245
264
|
<!-- Customizable icon for each action -->
|
|
246
|
-
<slot name=${`${
|
|
265
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
247
266
|
</span>
|
|
248
267
|
`)}
|
|
249
268
|
</div>
|
|
@@ -252,274 +271,22 @@
|
|
|
252
271
|
`)}
|
|
253
272
|
<figure>
|
|
254
273
|
<!-- Content for each tab -->
|
|
255
|
-
${
|
|
256
|
-
${
|
|
274
|
+
${ri(e,(o,s)=>v`
|
|
275
|
+
${W(this.toolsAsList,()=>v`
|
|
257
276
|
<label>
|
|
258
277
|
<!-- Customizable icon for each tab -->
|
|
259
|
-
<slot name=${`${
|
|
260
|
-
<span>${
|
|
278
|
+
<slot name=${`${o}-icon`}>${o}</slot>
|
|
279
|
+
<span>${o}</span>
|
|
261
280
|
</label>
|
|
262
281
|
`)}
|
|
263
|
-
<div class="tab ${T(this,
|
|
282
|
+
<div class="tab ${T(this,ke).call(this,s)}">
|
|
264
283
|
<!-- Content slot for each tab -->
|
|
265
|
-
<slot name=${`${
|
|
284
|
+
<slot name=${`${o}-content`}>${o}</slot>
|
|
266
285
|
</div>
|
|
267
286
|
`)}
|
|
268
287
|
</figure>
|
|
269
288
|
</div>
|
|
270
|
-
`}}
|
|
271
|
-
button,
|
|
272
|
-
.button {
|
|
273
|
-
/* TODO: why does this only work here and not from :root? */
|
|
274
|
-
--primary-color: #004170;
|
|
275
|
-
--primary-color-hover: #004170CC;
|
|
276
|
-
--error-color: #FF5252;
|
|
277
|
-
|
|
278
|
-
display: inline-flex;
|
|
279
|
-
position: relative;
|
|
280
|
-
align-items: center;
|
|
281
|
-
color: #fff;
|
|
282
|
-
border-width: 0;
|
|
283
|
-
outline: none;
|
|
284
|
-
border-radius: 4px;
|
|
285
|
-
padding: 16px;
|
|
286
|
-
height: 36px;
|
|
287
|
-
cursor: pointer;
|
|
288
|
-
font-family: inherit;
|
|
289
|
-
font-size: 0.875rem;
|
|
290
|
-
text-transform: uppercase;
|
|
291
|
-
letter-spacing: 1.25px;
|
|
292
|
-
font-weight: 500;
|
|
293
|
-
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
294
|
-
transition-property: box-shadow, transform, opacity, background;
|
|
295
|
-
transition-duration: 0.28s;
|
|
296
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
button:hover:not([disabled]):not(.icon),
|
|
300
|
-
.button:hover:not([disabled]):not(.icon) {
|
|
301
|
-
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
|
|
302
|
-
background: var(--primary-color-hover);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
button, button:active,
|
|
306
|
-
.button, .button:active {
|
|
307
|
-
background: var(--primary-color);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
button[disabled],
|
|
311
|
-
.button[disabled] {
|
|
312
|
-
opacity: 0.5;
|
|
313
|
-
cursor: not-allowed;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
button.block,
|
|
317
|
-
.button.block {
|
|
318
|
-
display: block;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
button.outline,
|
|
322
|
-
.button.outline {
|
|
323
|
-
background: transparent;
|
|
324
|
-
box-shadow: none;
|
|
325
|
-
color: var(--primary-color);
|
|
326
|
-
outline: 1px solid var(--primary-color);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
button.outline:hover,
|
|
330
|
-
.button.outline:hover {
|
|
331
|
-
background: transparent;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
button.icon,
|
|
335
|
-
.button.icon {
|
|
336
|
-
background: transparent;
|
|
337
|
-
border: none;
|
|
338
|
-
box-shadow: none;
|
|
339
|
-
padding: 0;
|
|
340
|
-
border-radius: 50%;
|
|
341
|
-
width: 24px;
|
|
342
|
-
height: 24px;
|
|
343
|
-
text-indent: -9999px;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
button.icon-text,
|
|
347
|
-
.button.icon-text {
|
|
348
|
-
text-indent: 26px;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
button.icon-text.block,
|
|
352
|
-
.button.icon-text.block {
|
|
353
|
-
text-indent: 20px;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
button.icon:before, button.icon-text:before,
|
|
357
|
-
.button.icon:before, .button.icon-text:before {
|
|
358
|
-
position: absolute;
|
|
359
|
-
text-indent: 0;
|
|
360
|
-
line-height: initial;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
button.icon-text.block:before,
|
|
364
|
-
.button.icon-text.block:before {
|
|
365
|
-
text-indent: -54px;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
button.icon:before,
|
|
369
|
-
.button.icon:before {
|
|
370
|
-
width: 24px;
|
|
371
|
-
height: 24px;
|
|
372
|
-
margin-right: 0;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
button.icon-text:before,
|
|
376
|
-
.button.icon-text:before {
|
|
377
|
-
width: 18px;
|
|
378
|
-
height: 18px;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
button.small,
|
|
382
|
-
.button.small {
|
|
383
|
-
height: 28px;
|
|
384
|
-
padding: 12.4px;
|
|
385
|
-
font-size: .75rem;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
button.smallest.icon,
|
|
389
|
-
button.smallest.icon::before {
|
|
390
|
-
height: 16px;
|
|
391
|
-
width: 16px;
|
|
392
|
-
padding: 0px;
|
|
393
|
-
}
|
|
394
|
-
`,oa=`
|
|
395
|
-
input[type=radio] {
|
|
396
|
-
appearance: none;
|
|
397
|
-
-webkit-appearance: none;
|
|
398
|
-
margin: 0;
|
|
399
|
-
cursor: pointer;
|
|
400
|
-
display: flex;
|
|
401
|
-
flex-direction: row;
|
|
402
|
-
align-items: center;
|
|
403
|
-
width: 24px;
|
|
404
|
-
height: 24px;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
label span {
|
|
408
|
-
font-size: small;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
input[type=radio]:after {
|
|
412
|
-
display: block;
|
|
413
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
|
|
414
|
-
width: 20px;
|
|
415
|
-
height: 20px;
|
|
416
|
-
margin-right: 4px;
|
|
417
|
-
}
|
|
418
|
-
input[type=radio]:checked:after {
|
|
419
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
`,Lo=`
|
|
423
|
-
input[type=checkbox] {
|
|
424
|
-
appearance: none;
|
|
425
|
-
-webkit-appearance: none;
|
|
426
|
-
margin: 0;
|
|
427
|
-
cursor: pointer;
|
|
428
|
-
display: flex;
|
|
429
|
-
flex-direction: row;
|
|
430
|
-
align-items: center;
|
|
431
|
-
width: 24px;
|
|
432
|
-
height: 24px;
|
|
433
|
-
}
|
|
434
|
-
input[type=checkbox]:after {
|
|
435
|
-
display: block;
|
|
436
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
|
|
437
|
-
width: 20px;
|
|
438
|
-
height: 20px;
|
|
439
|
-
margin-right: 4px;
|
|
440
|
-
}
|
|
441
|
-
input[type=checkbox]:checked:after {
|
|
442
|
-
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
`,ra=`
|
|
446
|
-
input[type="range"] {
|
|
447
|
-
-webkit-appearance: none;
|
|
448
|
-
width: 90%;
|
|
449
|
-
margin-left: 5%;
|
|
450
|
-
height: 6px;
|
|
451
|
-
border-radius: 5px;
|
|
452
|
-
background: #d7dcdf;
|
|
453
|
-
outline: none;
|
|
454
|
-
padding: 0;
|
|
455
|
-
}
|
|
456
|
-
input[type="range"]::-webkit-slider-thumb {
|
|
457
|
-
appearance: none;
|
|
458
|
-
width: 15px;
|
|
459
|
-
height: 15px;
|
|
460
|
-
border-radius: 50%;
|
|
461
|
-
background: #2c3e50;
|
|
462
|
-
cursor: pointer;
|
|
463
|
-
transition: background 0.15s ease-in-out;
|
|
464
|
-
}
|
|
465
|
-
.range-slider {
|
|
466
|
-
margin: 60px 0 0 0;
|
|
467
|
-
}
|
|
468
|
-
.range-slider {
|
|
469
|
-
width: 100%;
|
|
470
|
-
}
|
|
471
|
-
input[type="range"]::-webkit-slider-thumb:hover {
|
|
472
|
-
background: #00416F;
|
|
473
|
-
}
|
|
474
|
-
input[type="range"]:active::-webkit-slider-thumb {
|
|
475
|
-
background: #00416F;
|
|
476
|
-
}
|
|
477
|
-
input[type="range"]::-moz-range-thumb {
|
|
478
|
-
width: 15px;
|
|
479
|
-
height: 15px;
|
|
480
|
-
border: 0;
|
|
481
|
-
border-radius: 50%;
|
|
482
|
-
background: #2c3e50;
|
|
483
|
-
cursor: pointer;
|
|
484
|
-
transition: background 0.15s ease-in-out;
|
|
485
|
-
}
|
|
486
|
-
input[type="range"]::-moz-range-thumb:hover {
|
|
487
|
-
background: #00416F;
|
|
488
|
-
}
|
|
489
|
-
input[type="range"]:active::-moz-range-thumb {
|
|
490
|
-
background: #00416F;
|
|
491
|
-
}
|
|
492
|
-
input[type="range"]:focus::-webkit-slider-thumb {
|
|
493
|
-
box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
|
|
494
|
-
}
|
|
495
|
-
.range-slider__value {
|
|
496
|
-
display: inline-block;
|
|
497
|
-
position: relative;
|
|
498
|
-
width: 60px;
|
|
499
|
-
color: #fff;
|
|
500
|
-
line-height: 20px;
|
|
501
|
-
text-align: center;
|
|
502
|
-
border-radius: 3px;
|
|
503
|
-
background: #2c3e50;
|
|
504
|
-
padding: 5px 10px;
|
|
505
|
-
margin-left: 8px;
|
|
506
|
-
}
|
|
507
|
-
.range-slider__value:after {
|
|
508
|
-
position: absolute;
|
|
509
|
-
top: 8px;
|
|
510
|
-
left: -7px;
|
|
511
|
-
width: 0;
|
|
512
|
-
height: 0;
|
|
513
|
-
border-top: 7px solid transparent;
|
|
514
|
-
border-right: 7px solid #2c3e50;
|
|
515
|
-
border-bottom: 7px solid transparent;
|
|
516
|
-
content: '';
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
input::-moz-focus-inner, input::-moz-focus-outer {
|
|
520
|
-
border: 0;
|
|
521
|
-
}
|
|
522
|
-
`;class Ro extends dt{constructor(){super();Z(this,"_removeButton",()=>Ks(this));Z(this,"_sortButton",()=>Qs(this.unstyled));Z(this,"_button",e=>Js(e,this.unstyled));Z(this,"_getDefaultTools",()=>{var e;return x`
|
|
289
|
+
`}}ke=new WeakMap,hi=new WeakMap,pi=new WeakMap,Z(Pr,"properties",{actions:{attribute:!1},selectedTab:{state:!0},tabs:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-tools-items",Pr);const na="button,.button { /* TODO: why does this only work here and not from :root? */ --primary-color: #004170; --primary-color-hover: #004170cc; --error-color: #ff5252; display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0px;}",ra=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`,Lr=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,oa=':root,:host { --range-slider-height: 6px; --range-slider-thumb-size: 15px; --range-slider-thumb-border-radius: 50%; --range-slider-color: #004170; --range-slider-track-color: #d7dcdf; --range-slider-track-border-radius: 0;}input[type="range"] { -webkit-appearance: none; border: none; color: var(--range-slider-color); overflow: hidden; padding-left: 0; margin-left: 7px;}/*webkit*/input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; margin-top: calc( var(--range-slider-height) * 0.5 - var(--range-slider-thumb-size) * 0.5 );}input[type="range"]::-webkit-slider-runnable-track { height: var(--range-slider-height); border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-webkit-slider-thumb { cursor: grab; --clip-edges: 4px; --clip-top: calc( (var(--range-slider-thumb-size) - var(--range-slider-height)) * 0.5 ); --clip-bottom: calc(var(--range-slider-thumb-size) - var(--clip-top)); --clip-further: calc(100% + 1px); --box-fill: calc( -100vmax - var(--range-slider-thumb-size, var(--range-slider-thumb-size)) + 1px ) 0 0 100vmax currentColor; background: linear-gradient(currentColor 0 0) scroll no-repeat left center / 50% calc(var(--range-slider-height) + 1px); background-color: currentColor; box-shadow: var(--box-fill); border-radius: var(--range-slider-thumb-size, var(--range-slider-thumb-size)); filter: brightness(100%); clip-path: polygon( 100% -1px, var(--clip-edges) -1px, 0 var(--clip-top), -100vmax var(--clip-top), -100vmax var(--clip-bottom), 0 var(--clip-bottom), var(--clip-edges) 100%, var(--clip-further) var(--clip-further) );}/*mozilla*/input[type="range"]::-moz-range-thumb { width: var(--range-slider-thumb-size); height: var(--range-slider-thumb-size); border-radius: var(--range-slider-thumb-border-radius); background: var(--range-slider-color); border: none; box-shadow: none; cursor: grab;}input[type="range"]::-moz-range-track { border: none; border-radius: var(--range-slider-track-border-radius); background: var(--range-slider-track-color); box-shadow: none;}input[type="range"]::-moz-range-progress { appearance: none; background: currentColor; transition-delay: 30ms;}input[type="range"]::-moz-range-track,input[type="range"]::-moz-range-progress { height: calc(var(--range-slider-height)); border-radius: var(--range-slider-track-border-radius);}/*toolcool slider*/tc-range-slider { --height: var(--range-slider-height); --panel-bg: var(--range-slider-track-color); --panel-bg-hover: var(--range-slider-track-color); --panel-bg-fill: var(--range-slider-color); --panel-bg-border-radius: var(--range-slider-track-border-radius); --pointer-bg: var(--range-slider-color); --pointer-bg-hover: var(--range-slider-color); --pointer-bg-focus: var(--range-slider-color); --pointer-width: var(--range-slider-thumb-size); --pointer-height: var(--range-slider-thumb-size); --pointer-shadow: none; --pointer-shadow-hover: none; --pointer-shadow-focus: none; --pointer-border: none; --pointer-border-hover: 0; --pointer-border-focus: 0; --pointer-border-radius: var(--range-slider-thumb-border-radius);}';class Or extends dt{constructor(){super();Z(this,"_removeButton",()=>Ks(this));Z(this,"_sortButton",()=>Qs(this.unstyled));Z(this,"_button",e=>Js(e,this.unstyled));Z(this,"_getDefaultTools",()=>{var e;return v`
|
|
523
290
|
<div slot="info-content">
|
|
524
291
|
${ta(this.layer.get("description"))}
|
|
525
292
|
</div>
|
|
@@ -530,13 +297,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
530
297
|
min="0"
|
|
531
298
|
max="1"
|
|
532
299
|
step="0.01"
|
|
533
|
-
value=${
|
|
300
|
+
value=${Er((e=this.layer)==null?void 0:e.getOpacity())}
|
|
534
301
|
@input=${n=>this.layer.setOpacity(parseFloat(n.target.value))}
|
|
535
302
|
/>
|
|
536
303
|
</div>
|
|
537
304
|
<div slot="config-content">
|
|
538
305
|
<!-- Layer configuration -->
|
|
539
|
-
${
|
|
306
|
+
${W(this.layer.get("layerConfig"),()=>v`
|
|
540
307
|
<eox-layercontrol-layerconfig
|
|
541
308
|
slot="config-content"
|
|
542
309
|
.layer=${this.layer}
|
|
@@ -549,7 +316,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
549
316
|
</div>
|
|
550
317
|
<div slot="datetime-content">
|
|
551
318
|
<!-- Layer datetime -->
|
|
552
|
-
${
|
|
319
|
+
${W(this.layer.get("layerDatetime"),()=>v`
|
|
553
320
|
<eox-layercontrol-layer-datetime
|
|
554
321
|
slot="datetime-content"
|
|
555
322
|
.noShadow=${!0}
|
|
@@ -562,7 +329,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
562
329
|
</div>
|
|
563
330
|
<div slot="legend-content">
|
|
564
331
|
<!-- Layer legend -->
|
|
565
|
-
${
|
|
332
|
+
${W(this.layer.get("layerLegend"),()=>v`
|
|
566
333
|
<eox-layercontrol-layer-legend
|
|
567
334
|
slot="legend-content"
|
|
568
335
|
.noShadow=${!0}
|
|
@@ -575,11 +342,11 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
575
342
|
</div>
|
|
576
343
|
<div slot="remove-icon">${this._removeButton()}</div>
|
|
577
344
|
<div slot="sort-icon">${this._sortButton()}</div>
|
|
578
|
-
`});
|
|
345
|
+
`});O(this,fi,"");O(this,gi,`
|
|
579
346
|
${na}
|
|
580
|
-
${oa}
|
|
581
|
-
${Lo}
|
|
582
347
|
${ra}
|
|
348
|
+
${Lr}
|
|
349
|
+
${oa}
|
|
583
350
|
.drag-handle {
|
|
584
351
|
cursor: n-resize;
|
|
585
352
|
}
|
|
@@ -696,23 +463,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
696
463
|
[slot=info-content] * {
|
|
697
464
|
max-width: 100%;
|
|
698
465
|
}
|
|
699
|
-
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Ws(this.tools,this.layer),n=Gs(this.tools,this.layer),
|
|
466
|
+
`);this.layer=null,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var l;const e=Ws(this.tools,this.layer),n=Gs(this.tools,this.layer),r=this[`_${e==null?void 0:e[0]}Button`]?this[`_${e==null?void 0:e[0]}Button`]():L,o=((l=this.tools)==null?void 0:l.length)===1?`${this.tools[0]}-icon`:"",s=e==null?void 0:e.length,a=n==null?void 0:n.length;return v`
|
|
700
467
|
<style>
|
|
701
468
|
${T(this,fi)}
|
|
702
469
|
${!this.unstyled&&T(this,gi)}
|
|
703
470
|
</style>
|
|
704
|
-
${
|
|
705
|
-
${
|
|
471
|
+
${W(s+a>0,()=>v`
|
|
472
|
+
${W(s===1&&a===0,()=>v`
|
|
706
473
|
<div class="single-action-container">
|
|
707
|
-
<div class="single-action">${
|
|
474
|
+
<div class="single-action">${r}</div>
|
|
708
475
|
</div>
|
|
709
|
-
`,()=>
|
|
476
|
+
`,()=>v`
|
|
710
477
|
<details
|
|
711
478
|
class="tools"
|
|
712
|
-
open=${this.layer.get("layerControlToolsExpand")||
|
|
479
|
+
open=${this.layer.get("layerControlToolsExpand")||L}
|
|
713
480
|
>
|
|
714
481
|
<summary>
|
|
715
|
-
<button class="icon ${
|
|
482
|
+
<button class="icon ${o}">Tools</button>
|
|
716
483
|
</summary>
|
|
717
484
|
<eox-layercontrol-tools-items
|
|
718
485
|
class="${this.toolsAsList?"tools-list":"tools-tab"}"
|
|
@@ -723,15 +490,15 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
723
490
|
.toolsAsList=${this.toolsAsList}
|
|
724
491
|
>
|
|
725
492
|
<!-- Rendering tabs and content -->
|
|
726
|
-
${
|
|
493
|
+
${ri(n,d=>this._button(d))}
|
|
727
494
|
<!-- Including default tools -->
|
|
728
495
|
${this._getDefaultTools()}
|
|
729
496
|
</eox-layercontrol-tools-items>
|
|
730
497
|
</details>
|
|
731
498
|
`)}
|
|
732
499
|
`)}
|
|
733
|
-
`}}fi=new WeakMap,gi=new WeakMap,Z(
|
|
734
|
-
${
|
|
500
|
+
`}}fi=new WeakMap,gi=new WeakMap,Z(Or,"properties",{layer:{attribute:!1},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-tools",Or);const sa=i=>{const t=()=>{const e=Fs(i.layer,i.map,i.showLayerZoomState);let n=!1;!e&&i.currLayerVisibilityBasedOnZoom?(i.currLayerVisibilityBasedOnZoom=!1,n=!0):e&&!i.currLayerVisibilityBasedOnZoom&&(i.currLayerVisibilityBasedOnZoom=!0,n=!0),n&&(i.requestUpdate(),i.dispatchEvent(new CustomEvent("change:resolution",{bubbles:!0})))};wr(i.layer,i.showLayerZoomState)&&(t(),i.map.getView().on("change:resolution",()=>t()))},aa=(i,t)=>{const e=t.layer;e.setVisible(i.target.checked),i.target.checked&&e.get("layerControlExclusive")&&t.closest(".layers > ul").querySelectorAll("eox-layercontrol-layer").forEach(r=>{var o;r.layer!==e&&((o=r.layer)!=null&&o.get("layerControlExclusive"))&&(r.layer.setVisible(!1),r.requestUpdate())}),t.dispatchEvent(new CustomEvent("changed",{bubbles:!0,detail:e})),t.requestUpdate()};class Rr extends dt{constructor(){super();O(this,Ct);Z(this,"currLayerVisibilityBasedOnZoom",!0);O(this,mi,"");O(this,yi,`
|
|
501
|
+
${Lr}
|
|
735
502
|
eox-layercontrol-layer {
|
|
736
503
|
width: 100%;
|
|
737
504
|
position: relative;
|
|
@@ -789,30 +556,30 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
789
556
|
[data-type=draw] .title::before {
|
|
790
557
|
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230041703a' viewBox='0 0 24 24'%3E%3Ctitle%3Evector-square-edit%3C/title%3E%3Cpath d='M22.7 14.4L21.7 15.4L19.6 13.3L20.6 12.3C20.8 12.1 21.2 12.1 21.4 12.3L22.7 13.6C22.9 13.8 22.9 14.1 22.7 14.4M13 19.9L19.1 13.8L21.2 15.9L15.1 22H13V19.9M11 19.9V19.1L11.6 18.5L12.1 18H8V16H6V8H8V6H16V8H18V12.1L19.1 11L19.3 10.8C19.5 10.6 19.8 10.4 20.1 10.3V8H22.1V2H16.1V4H8V2H2V8H4V16H2V22H8V20L11 19.9M18 4H20V6H18V4M4 4H6V6H4V4M6 20H4V18H6V20Z' /%3E%3C/svg%3E");
|
|
791
558
|
}
|
|
792
|
-
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){sa(this)}render(){var l;const e=this.layer.getVisible(),n=e?"visible":"",
|
|
559
|
+
`);this.layer=null,this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}firstUpdated(){sa(this)}render(){var l;const e=this.layer.getVisible(),n=e?"visible":"",r=this.currLayerVisibilityBasedOnZoom?"":"zoom-state-invisible",o=q(this,Ct,me).call(this,"layerControlDisable")?"disabled":"",s=q(this,Ct,me).call(this,"layerControlExclusive")?"radio":"checkbox",a=((l=this.tools)==null?void 0:l.length)>0;return v`
|
|
793
560
|
<style>
|
|
794
561
|
${T(this,mi)}
|
|
795
562
|
${!this.unstyled&&T(this,yi)}
|
|
796
563
|
</style>
|
|
797
|
-
${
|
|
564
|
+
${W(this.layer,()=>v`
|
|
798
565
|
<!-- Render the layer -->
|
|
799
|
-
<div class="layer ${n} ${
|
|
800
|
-
<label class="drag-handle ${
|
|
566
|
+
<div class="layer ${n} ${r}">
|
|
567
|
+
<label class="drag-handle ${o}">
|
|
801
568
|
<!-- Input element for layer visibility -->
|
|
802
569
|
<input
|
|
803
570
|
type=${s}
|
|
804
|
-
.checked=${
|
|
805
|
-
@click=${q(this,Ct,
|
|
571
|
+
.checked=${Er(e)}
|
|
572
|
+
@click=${q(this,Ct,Zr)}
|
|
806
573
|
/>
|
|
807
574
|
|
|
808
575
|
<!-- Layer title -->
|
|
809
576
|
<span
|
|
810
|
-
class="title ${q(this,Ct,
|
|
811
|
-
style="--layer-color: ${q(this,Ct,
|
|
577
|
+
class="title ${q(this,Ct,me).call(this,"color")?"color-swatch":""}"
|
|
578
|
+
style="--layer-color: ${q(this,Ct,me).call(this,"color")}"
|
|
812
579
|
>
|
|
813
|
-
${q(this,Ct,
|
|
580
|
+
${q(this,Ct,me).call(this,this.titleProperty)}
|
|
814
581
|
</span>
|
|
815
|
-
${
|
|
582
|
+
${W(a,()=>v`<span class="tools-placeholder"></span>`)}
|
|
816
583
|
</label>
|
|
817
584
|
</div>
|
|
818
585
|
|
|
@@ -825,7 +592,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
825
592
|
.toolsAsList=${this.toolsAsList}
|
|
826
593
|
></eox-layercontrol-layer-tools>
|
|
827
594
|
`)}
|
|
828
|
-
`}}Ct=new WeakSet,
|
|
595
|
+
`}}Ct=new WeakSet,me=function(e){var n;return(n=this.layer)==null?void 0:n.get(e)},Zr=function(e){aa(e,this)},mi=new WeakMap,yi=new WeakMap,Z(Rr,"properties",{layer:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer",Rr);class Mr extends dt{constructor(){super();O(this,bi,"");O(this,vi,`
|
|
829
596
|
details summary {
|
|
830
597
|
cursor: pointer;
|
|
831
598
|
display: var(--layer-summary-visibility);
|
|
@@ -849,15 +616,15 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
849
616
|
details[data-children-length="0"] summary::before {
|
|
850
617
|
display: none;
|
|
851
618
|
}
|
|
852
|
-
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var o
|
|
619
|
+
`);this.group=null,this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=[],this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){var r,o;const e=!!((r=this.group)!=null&&r.get("layerControlExpand")),n=(o=$r(this.group.getLayers()))==null?void 0:o.length;return v`
|
|
853
620
|
<style>
|
|
854
621
|
${T(this,bi)}
|
|
855
622
|
${!this.unstyled&&T(this,vi)}
|
|
856
623
|
</style>
|
|
857
|
-
${
|
|
624
|
+
${W(this.group,()=>v`
|
|
858
625
|
<!-- Render the details element with the layer control -->
|
|
859
626
|
<details
|
|
860
|
-
open=${e||
|
|
627
|
+
open=${e||L}
|
|
861
628
|
data-children-length=${n}
|
|
862
629
|
>
|
|
863
630
|
<summary>
|
|
@@ -890,7 +657,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
890
657
|
></eox-layercontrol-layer-list>
|
|
891
658
|
</details>
|
|
892
659
|
`)}
|
|
893
|
-
`}}bi=new WeakMap,vi=new WeakMap,Z(
|
|
660
|
+
`}}bi=new WeakMap,vi=new WeakMap,Z(Mr,"properties",{group:{attribute:!1},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-group",Mr);var hn,Ir;function la(){if(Ir)return hn;Ir=1;var i="Expected a function",t=NaN,e="[object Symbol]",n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt,l=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,d=typeof self=="object"&&self&&self.Object===Object&&self,u=l||d||Function("return this")(),c=Object.prototype,p=c.toString,f=Math.max,g=Math.min,b=function(){return u.Date.now()};function k(E,m,_){var N,M,K,Q,B,I,Y=0,gt=!1,at=!1,mt=!0;if(typeof E!="function")throw new TypeError(i);m=it(m)||0,et(_)&&(gt=!!_.leading,at="maxWait"in _,K=at?f(it(_.maxWait)||0,m):K,mt="trailing"in _?!!_.trailing:mt);function wt(F){var H=N,yt=M;return N=M=void 0,Y=F,Q=E.apply(yt,H),Q}function te(F){return Y=F,B=setTimeout(It,m),gt?wt(F):Q}function _i(F){var H=F-I,yt=F-Y,zt=m-H;return at?g(zt,K-yt):zt}function ee(F){var H=F-I,yt=F-Y;return I===void 0||H>=m||H<0||at&&yt>=K}function It(){var F=b();if(ee(F))return ie(F);B=setTimeout(It,_i(F))}function ie(F){return B=void 0,mt&&N?wt(F):(N=M=void 0,Q)}function Ci(){B!==void 0&&clearTimeout(B),Y=0,N=I=M=B=void 0}function fn(){return B===void 0?Q:ie(b())}function Ve(){var F=b(),H=ee(F);if(N=arguments,M=this,I=F,H){if(B===void 0)return te(I);if(at)return B=setTimeout(It,m),wt(I)}return B===void 0&&(B=setTimeout(It,m)),Q}return Ve.cancel=Ci,Ve.flush=fn,Ve}function et(E){var m=typeof E;return!!E&&(m=="object"||m=="function")}function z(E){return!!E&&typeof E=="object"}function ut(E){return typeof E=="symbol"||z(E)&&p.call(E)==e}function it(E){if(typeof E=="number")return E;if(ut(E))return t;if(et(E)){var m=typeof E.valueOf=="function"?E.valueOf():E;E=et(m)?m+"":m}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var _=o.test(E);return _||s.test(E)?a(E.slice(2),_?2:8):r.test(E)?t:+E}return hn=k,hn}var da=la();const ca=Sr(da),ua=i=>{const{layers:t,idProperty:e,titleProperty:n,renderRoot:r}=i,o=ca(()=>{i.requestUpdate(),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0}))},50),s=()=>o();if(t&&(t.hasListener("change:length")&&(t==null||t.un("change:length",s)),t.on("change:length",s),t)){const a=r.querySelector("ul");Us(t,e,n,i),Bs(a,t,e,i)}};class Nr extends dt{constructor(){super();O(this,wi,"");O(this,xi,`
|
|
894
661
|
ul {
|
|
895
662
|
padding: 0;
|
|
896
663
|
margin: 0;
|
|
@@ -917,19 +684,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
917
684
|
}
|
|
918
685
|
li.sortable-ghost {
|
|
919
686
|
}
|
|
920
|
-
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}firstUpdated(){
|
|
687
|
+
`);this.idProperty="id",this.layers=null,this.map=null,this.tools=void 0,this.titleProperty="title",this.showLayerZoomState=!1,this.unstyled=!1,this.noShadow=!1,this.toolsAsList=!1}firstUpdated(){ua(this)}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.layers?$r(this.layers).reverse():[];return v`
|
|
921
688
|
<style>
|
|
922
689
|
${T(this,wi)}
|
|
923
690
|
${!this.unstyled&&T(this,xi)}
|
|
924
691
|
</style>
|
|
925
692
|
<ul>
|
|
926
|
-
${
|
|
927
|
-
${
|
|
693
|
+
${W(this.layers,()=>v`
|
|
694
|
+
${yo(e,n=>n,n=>v`
|
|
928
695
|
<li
|
|
929
696
|
data-layer="${n.get(this.idProperty)}"
|
|
930
697
|
data-type="${js(n,this.map)}"
|
|
931
698
|
>
|
|
932
|
-
${n.getLayers?
|
|
699
|
+
${n.getLayers?v`
|
|
933
700
|
<eox-layercontrol-layer-group
|
|
934
701
|
.noShadow=${!0}
|
|
935
702
|
.group=${n}
|
|
@@ -943,7 +710,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
943
710
|
@changed=${()=>this.requestUpdate()}
|
|
944
711
|
>
|
|
945
712
|
</eox-layercontrol-layer-group>
|
|
946
|
-
`:
|
|
713
|
+
`:v`
|
|
947
714
|
<eox-layercontrol-layer
|
|
948
715
|
.noShadow=${!0}
|
|
949
716
|
.layer=${n}
|
|
@@ -960,7 +727,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
960
727
|
`)}
|
|
961
728
|
`)}
|
|
962
729
|
</ul>
|
|
963
|
-
`}}wi=new WeakMap,xi=new WeakMap,Z(
|
|
730
|
+
`}}wi=new WeakMap,xi=new WeakMap,Z(Nr,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},unstyled:{type:Boolean},noShadow:{type:Boolean},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol-layer-list",Nr);const ha=i=>{const t=i.querySelector("select[name=optional]"),e=t?t.value:null,n=ln(i.layers.getArray(),"layerControlOptional",!0).find(r=>(r.get(i.idProperty)||r.ol_uid)===e);n==null||n.set("layerControlOptional",!1),n==null||n.setVisible(!0),i.dispatchEvent(new CustomEvent("changed",{bubbles:!0})),i.renderRoot.parentNode.querySelectorAll("eox-layercontrol-layer-list").forEach(r=>r.requestUpdate()),i.requestUpdate()};class Hr extends dt{constructor(){super();O(this,$i);this.idProperty="id",this.layers=null,this.titleProperty="title",this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=ln(this.layers.getArray(),"layerControlOptional",!0);return v`
|
|
964
731
|
<!-- Label for the dropdown -->
|
|
965
732
|
<label for="optional">Optional layers</label>
|
|
966
733
|
|
|
@@ -972,19 +739,19 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
972
739
|
</option>
|
|
973
740
|
|
|
974
741
|
<!-- Mapping through filtered layers list to generate dropdown options -->
|
|
975
|
-
${e.map(n=>{const
|
|
742
|
+
${e.map(n=>{const r=n.get(this.idProperty)||n.ol_uid,o=n.get(this.titleProperty),s=`layer ${n.get(this.idProperty)}`;return v` <option value="${r}">${o||s}</option> `})}
|
|
976
743
|
</select>
|
|
977
744
|
|
|
978
745
|
<!-- Button to handle adding layers -->
|
|
979
|
-
<button @click="${q(this,
|
|
980
|
-
`}}
|
|
746
|
+
<button @click="${q(this,$i,qr)}">add</button>
|
|
747
|
+
`}}$i=new WeakSet,qr=function(){ha(this)},Z(Hr,"properties",{idProperty:{attribute:"id-property"},layers:{attribute:!1},titleProperty:{attribute:"title-property",type:String},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-optional-list",Hr);const pa=(i,t)=>{t.jsonInput=i.target.value,t.requestUpdate()},kr=i=>{const t=JSON.parse(`{"data":${Gn(i.jsonInput)}}`);Array.isArray(t.data)?t.data.forEach(e=>{i.eoxMap.addOrUpdateLayer(e)}):i.eoxMap.addOrUpdateLayer(t.data),i.jsonInput=null,i.requestUpdate()},fa=(i,t)=>{t.urlInput=i.target.value,t.requestUpdate()};async function ga(i){const t=i.urlInput;if(i.wmsCapabilities=null,i.searchLoad=!0,i.requestUpdate(),!t)return!1;if(ji(t)==="XYZ")return{Name:t};try{const e=await ds(t);i.wmsCapabilities=e}catch{}finally{i.searchLoad=!1,i.requestUpdate()}return!1}const ma=(i,t)=>{const{Name:e}=i,n=ji(t.urlInput)||"XYZ",r={type:"Tile",properties:{id:e,title:e},source:{type:n,url:t.urlInput,params:{LAYERS:e}}};t.jsonInput=JSON.stringify(r)},ya=(i,t)=>{t.open=i||null,t.urlInput=null,t.jsonInput=null,t.wmsCapabilities=null,t.requestUpdate()};class Vr extends dt{constructor(){super();O(this,st);Z(this,"urlInput",null);Z(this,"jsonInput",null);Z(this,"open",null);Z(this,"searchLoad",!1);Z(this,"wmsCapabilities",null);O(this,Ei,`
|
|
981
748
|
.eox-add-layer-main .open {
|
|
982
749
|
position: relative;
|
|
983
750
|
}
|
|
984
751
|
.eox-add-layer-main .close {
|
|
985
752
|
display: none;
|
|
986
753
|
}
|
|
987
|
-
`);
|
|
754
|
+
`);O(this,Si,`
|
|
988
755
|
.eox-add {
|
|
989
756
|
background: #f0f2f5;
|
|
990
757
|
border-top: 1px solid #0041701a;
|
|
@@ -1117,9 +884,9 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1117
884
|
font-weight: bold;
|
|
1118
885
|
display: inline-block;
|
|
1119
886
|
}
|
|
1120
|
-
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",n=this.open==="url",
|
|
887
|
+
`);this.eoxMap=null,this.unstyled=!1,this.noShadow=!1}createRenderRoot(){return this.noShadow?this:super.createRenderRoot()}render(){const e=this.open?"open":"close",n=this.open==="url",r=this.open==="json",o=!cs(this.urlInput)||this.searchLoad?!0:L;return v`
|
|
1121
888
|
<style>
|
|
1122
|
-
${T(this
|
|
889
|
+
${T(this,Ei)}
|
|
1123
890
|
${!this.unstyled&&T(this,Si)}
|
|
1124
891
|
</style>
|
|
1125
892
|
<div class="eox-add-layer-main">
|
|
@@ -1134,7 +901,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1134
901
|
</li>
|
|
1135
902
|
<li
|
|
1136
903
|
@click=${()=>q(this,st,Ti).call(this,"json")}
|
|
1137
|
-
class="${
|
|
904
|
+
class="${r?"active":""}"
|
|
1138
905
|
>
|
|
1139
906
|
JSON
|
|
1140
907
|
</li>
|
|
@@ -1149,7 +916,7 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1149
916
|
</button>
|
|
1150
917
|
</div>
|
|
1151
918
|
<div class="eox-add ${e}">
|
|
1152
|
-
${n?
|
|
919
|
+
${n?v`
|
|
1153
920
|
<!-- Input field for URL -->
|
|
1154
921
|
<div class="eox-add-layer-col">
|
|
1155
922
|
<input
|
|
@@ -1157,22 +924,22 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1157
924
|
class="add-url"
|
|
1158
925
|
placeholder="Add URL (WMS/XYZ)"
|
|
1159
926
|
.value="${this.urlInput}"
|
|
1160
|
-
@input=${q(this,st,
|
|
927
|
+
@input=${q(this,st,Xr)}
|
|
1161
928
|
>
|
|
1162
929
|
</input>
|
|
1163
930
|
<!-- Search button for URL -->
|
|
1164
931
|
<button
|
|
1165
932
|
class="search-icon"
|
|
1166
|
-
disabled=${
|
|
1167
|
-
@click=${q(this,st,
|
|
933
|
+
disabled=${o}
|
|
934
|
+
@click=${q(this,st,Yr)}
|
|
1168
935
|
>
|
|
1169
936
|
${this.unstyled?"Search":""}
|
|
1170
937
|
</button>
|
|
1171
938
|
</div>
|
|
1172
939
|
|
|
1173
940
|
<!-- Display layers for WMS capabilities -->
|
|
1174
|
-
${this.wmsCapabilities?
|
|
1175
|
-
${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return
|
|
941
|
+
${this.wmsCapabilities?v`<ul class="search-lists">
|
|
942
|
+
${this.wmsCapabilities.Capability.Layer.Layer.map(s=>{const a=s.Name;return v`
|
|
1176
943
|
<li class="search-list">
|
|
1177
944
|
${a}
|
|
1178
945
|
<!-- Button to add layer -->
|
|
@@ -1184,28 +951,28 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1184
951
|
</button>
|
|
1185
952
|
</li>
|
|
1186
953
|
`})}
|
|
1187
|
-
</ul>`:
|
|
1188
|
-
`:
|
|
954
|
+
</ul>`:L}
|
|
955
|
+
`:v`
|
|
1189
956
|
<!-- Textarea for JSON input -->
|
|
1190
957
|
<textarea
|
|
1191
958
|
class="add-layer-input"
|
|
1192
959
|
placeholder="Please put a valid eox-map layer JSON."
|
|
1193
|
-
@input=${q(this,st,
|
|
960
|
+
@input=${q(this,st,Gr)}
|
|
1194
961
|
.value=${this.jsonInput}
|
|
1195
962
|
></textarea>
|
|
1196
963
|
|
|
1197
964
|
<!-- Button to add JSON layer -->
|
|
1198
965
|
<button
|
|
1199
966
|
class="add-layer-icon json-add-layer"
|
|
1200
|
-
disabled=${
|
|
1201
|
-
@click=${q(this,st,
|
|
967
|
+
disabled=${us(this.jsonInput)?L:!0}
|
|
968
|
+
@click=${q(this,st,Wr)}
|
|
1202
969
|
>
|
|
1203
970
|
${this.unstyled?"Add JSON":""}
|
|
1204
971
|
</button>
|
|
1205
972
|
`}
|
|
1206
973
|
</div>
|
|
1207
974
|
</div>
|
|
1208
|
-
`}}st=new WeakSet,
|
|
975
|
+
`}}st=new WeakSet,Xr=function(e){fa(e,this)},Yr=async function(){const e=await ga(this);e&&q(this,st,yn).call(this,e)},yn=function(e){ma(e,this),kr(this)},Wr=function(){kr(this)},Gr=function(e){pa(e,this)},Ti=function(e){ya(e,this)},Ei=new WeakMap,Si=new WeakMap,Z(Vr,"properties",{eoxMap:{attribute:!1,state:!0},unstyled:{type:Boolean},noShadow:{type:Boolean}}),customElements.define("eox-layercontrol-add-layers",Vr);const ba=(i,t)=>{if(t.requestUpdate(),i.target.tagName==="EOX-LAYERCONTROL-LAYER-TOOLS"){const e=t.renderRoot.querySelector("eox-layercontrol-optional-list");e==null||e.requestUpdate()}},va=i=>{let t;return typeof i=="string"?t=document.querySelector(i):t=i,t},Br=i=>{const t=va(i.for);return t&&t.map!==i.map&&(i.map=t.map),t};class pn extends dt{constructor(){super();O(this,fe);O(this,jt);O(this,Ai,`
|
|
1209
976
|
:host, :root {
|
|
1210
977
|
font-family: Roboto, sans-serif;
|
|
1211
978
|
--padding: 0.5rem;
|
|
@@ -1226,23 +993,23 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1226
993
|
select {
|
|
1227
994
|
background-color: var(--background-color);
|
|
1228
995
|
}
|
|
1229
|
-
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=
|
|
996
|
+
`);this.for="eox-map",this.idProperty="id",this.map=null,this.titleProperty="title",this.showLayerZoomState=!1,this.tools=["info","opacity","datetime","config","remove","sort"],this.addExternalLayers=!1,this.unstyled=!1,this.styleOverride="",this.toolsAsList=!1}firstUpdated(){this.eoxMap=Br(this)}updated(e){e.has("for")&&(this.eoxMap=Br(this))}get eoxMap(){return T(this,jt)}set eoxMap(e){const n=T(this,jt);ge(this,jt,e),this.requestUpdate("eoxMap",n)}render(){var r,o,s;const e=(r=this.map)==null?void 0:r.getLayers().getArray(),n=e&&((o=ln(e,"layerControlOptional",!0))==null?void 0:o.length)>0;return v`
|
|
1230
997
|
<style>
|
|
1231
|
-
${!this.unstyled&&T(this,
|
|
998
|
+
${!this.unstyled&&T(this,Ai)}
|
|
1232
999
|
${this.styleOverride}
|
|
1233
1000
|
</style>
|
|
1234
1001
|
|
|
1235
1002
|
<!-- Conditional rendering of add layers component -->
|
|
1236
|
-
${
|
|
1003
|
+
${W(this.addExternalLayers&&((s=T(this,jt))==null?void 0:s.addOrUpdateLayer),()=>v`
|
|
1237
1004
|
<eox-layercontrol-add-layers
|
|
1238
1005
|
.noShadow=${!0}
|
|
1239
|
-
.eoxMap=${T(this,
|
|
1006
|
+
.eoxMap=${T(this,jt)}
|
|
1240
1007
|
.unstyled=${this.unstyled}
|
|
1241
1008
|
></eox-layercontrol-add-layers>
|
|
1242
1009
|
`)}
|
|
1243
1010
|
|
|
1244
1011
|
<!-- Conditional rendering of layer list component -->
|
|
1245
|
-
${
|
|
1012
|
+
${W(this.map,()=>v`
|
|
1246
1013
|
<eox-layercontrol-layer-list
|
|
1247
1014
|
.noShadow=${!0}
|
|
1248
1015
|
class="layers"
|
|
@@ -1254,13 +1021,13 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1254
1021
|
.tools=${this.tools}
|
|
1255
1022
|
.unstyled=${this.unstyled}
|
|
1256
1023
|
.toolsAsList=${this.toolsAsList}
|
|
1257
|
-
@changed=${q(this,
|
|
1258
|
-
@datetime:updated=${q(this,
|
|
1024
|
+
@changed=${q(this,fe,Jr)}
|
|
1025
|
+
@datetime:updated=${q(this,fe,Kr)}
|
|
1259
1026
|
></eox-layercontrol-layer-list>
|
|
1260
1027
|
`)}
|
|
1261
1028
|
|
|
1262
1029
|
<!-- Conditional rendering of optional list component -->
|
|
1263
|
-
${
|
|
1030
|
+
${W(n,()=>v`
|
|
1264
1031
|
<eox-layercontrol-optional-list
|
|
1265
1032
|
.noShadow=${!0}
|
|
1266
1033
|
.idProperty=${this.idProperty}
|
|
@@ -1269,4 +1036,4 @@ input::-moz-focus-inner, input::-moz-focus-outer {
|
|
|
1269
1036
|
@changed=${()=>this.requestUpdate()}
|
|
1270
1037
|
></eox-layercontrol-optional-list>
|
|
1271
1038
|
`)}
|
|
1272
|
-
`}}
|
|
1039
|
+
`}}jt=new WeakMap,fe=new WeakSet,Jr=function(e){ba(e,this),this.dispatchEvent(new CustomEvent("layerchange",{detail:e.detail}))},Kr=function(e){this.dispatchEvent(new CustomEvent("datetime:updated",{detail:e.detail}))},Ai=new WeakMap,Z(pn,"properties",{for:{type:String},idProperty:{attribute:"id-property"},map:{attribute:!1,state:!0},titleProperty:{attribute:"title-property",type:String},showLayerZoomState:{attribute:"show-layer-zoom-state",type:Boolean},tools:{attribute:!1},addExternalLayers:{attribute:!1},unstyled:{type:Boolean},styleOverride:{type:String},toolsAsList:{type:Boolean}}),customElements.define("eox-layercontrol",pn),R.EOxLayerControl=pn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|