@eox/layercontrol 0.6.3 → 0.6.5

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.
@@ -1,65 +1,67 @@
1
- (function(E,Z){typeof exports=="object"&&typeof module<"u"?Z(exports):typeof define=="function"&&define.amd?define(["exports"],Z):(E=typeof globalThis<"u"?globalThis:E||self,Z(E["eox-layercontrol"]={}))})(this,function(E){"use strict";/**
1
+ (function(_,nt){typeof exports=="object"&&typeof module<"u"?nt(exports):typeof define=="function"&&define.amd?define(["exports"],nt):(_=typeof globalThis<"u"?globalThis:_||self,nt(_["eox-layercontrol"]={}))})(this,function(_){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Z=window,ne=Z.ShadowRoot&&(Z.ShadyCSS===void 0||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Te=Symbol(),Oe=new WeakMap;let Ii=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Te)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(ne&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Oe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Oe.set(e,t))}return t}toString(){return this.cssText}};const Mi=n=>new Ii(typeof n=="string"?n:n+"",void 0,Te),Ni=(n,t)=>{ne?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),r=Z.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)})},Le=ne?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Mi(e)})(n):n;/**
5
+ */const nt=window,ye=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ge=Symbol(),Ze=new WeakMap;let Zi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ge)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(ye&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ze.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ze.set(e,t))}return t}toString(){return this.cssText}};const qi=n=>new Zi(typeof n=="string"?n:n+"",void 0,Ge),Ki=(n,t)=>{ye?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),r=nt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,n.appendChild(i)})},qe=ye?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return qi(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var re;const Vt=window,He=Vt.trustedTypes,ki=He?He.emptyScript:"",Pe=Vt.reactiveElementPolyfillSupport,oe={toAttribute(n,t){switch(t){case Boolean:n=n?ki:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Ie=(n,t)=>t!==n&&(t==t||n==n),ae={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:Ie},se="finalized";let ut=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=ae){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ae}static finalize(){if(this.hasOwnProperty(se))return!1;this[se]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Le(r))}else t!==void 0&&e.push(Le(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ni(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ae){var r;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:oe).toAttribute(e,i.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:oe;this._$El=o,this[o]=l.fromAttribute(e,a.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ie)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ut[se]=!0,ut.elementProperties=new Map,ut.elementStyles=[],ut.shadowRootOptions={mode:"open"},Pe==null||Pe({ReactiveElement:ut}),((re=Vt.reactiveElementVersions)!==null&&re!==void 0?re:Vt.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var be;const Jt=window,Ke=Jt.trustedTypes,Qi=Ke?Ke.emptyScript:"",Qe=Jt.reactiveElementPolyfillSupport,Ee={toAttribute(n,t){switch(t){case Boolean:n=n?Qi:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Je=(n,t)=>t!==n&&(t==t||n==n),_e={attribute:!0,type:String,converter:Ee,reflect:!1,hasChanged:Je},we="finalized";let wt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const r=this._$Ep(i,e);r!==void 0&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=_e){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_e}static finalize(){if(this.hasOwnProperty(we))return!1;this[we]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of i)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(qe(r))}else t!==void 0&&e.push(qe(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ki(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=_e){var r;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const a=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:Ee).toAttribute(e,i.type);this._$El=t,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(o!==void 0&&this._$El!==o){const a=r.getPropertyOptions(o),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:Ee;this._$El=o,this[o]=l.fromAttribute(e,a.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Je)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw e=!1,this._$Ek(),r}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};wt[we]=!0,wt.elementProperties=new Map,wt.elementStyles=[],wt.shadowRootOptions={mode:"open"},Qe==null||Qe({ReactiveElement:wt}),((be=Jt.reactiveElementVersions)!==null&&be!==void 0?be:Jt.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var le;const Bt=window,ct=Bt.trustedTypes,Me=ct?ct.createPolicy("lit-html",{createHTML:n=>n}):void 0,Rt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,de="?"+Y,Vi=`<${de}>`,et=document,Ct=()=>et.createComment(""),xt=n=>n===null||typeof n!="object"&&typeof n!="function",Ne=Array.isArray,ke=n=>Ne(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",he=`[
14
- \f\r]`,$t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,Be=/>/g,it=RegExp(`>|${he}(?:([^\\s"'>=/]+)(${he}*=${he}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Re=/'/g,Ue=/"/g,Fe=/^(?:script|style|textarea|title)$/i,Bi=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),O=Bi(1),U=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),ze=new WeakMap,nt=et.createTreeWalker(et,129,null,!1),je=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=$t;for(let s=0;s<e;s++){const d=n[s];let c,u,p=-1,m=0;for(;m<d.length&&(a.lastIndex=m,u=a.exec(d),u!==null);)m=a.lastIndex,a===$t?u[1]==="!--"?a=Ve:u[1]!==void 0?a=Be:u[2]!==void 0?(Fe.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=it):u[3]!==void 0&&(a=it):a===it?u[0]===">"?(a=r??$t,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?it:u[3]==='"'?Ue:Re):a===Ue||a===Re?a=it:a===Ve||a===Be?a=$t:(a=it,r=void 0);const f=a===it&&n[s+1].startsWith("/>")?" ":"";o+=a===$t?d+Vi:p>=0?(i.push(c),d.slice(0,p)+Rt+d.slice(p)+Y+f):d+Y+(p===-2?(i.push(void 0),s):f)}const l=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Me!==void 0?Me.createHTML(l):l,i]};class At{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const l=t.length-1,s=this.parts,[d,c]=je(t,e);if(this.el=At.createElement(d,i),nt.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(r=nt.nextNode())!==null&&s.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const p of r.getAttributeNames())if(p.endsWith(Rt)||p.startsWith(Y)){const m=c[a++];if(u.push(p),m!==void 0){const f=r.getAttribute(m.toLowerCase()+Rt).split(Y),v=/([.?@])?(.*)/.exec(m);s.push({type:1,index:o,name:v[2],strings:f,ctor:v[1]==="."?Ye:v[1]==="?"?We:v[1]==="@"?Ge:St})}else s.push({type:6,index:o})}for(const p of u)r.removeAttribute(p)}if(Fe.test(r.tagName)){const u=r.textContent.split(Y),p=u.length-1;if(p>0){r.textContent=ct?ct.emptyScript:"";for(let m=0;m<p;m++)r.append(u[m],Ct()),nt.nextNode(),s.push({type:2,index:++o});r.append(u[p],Ct())}}}else if(r.nodeType===8)if(r.data===de)s.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(Y,u+1))!==-1;)s.push({type:7,index:o}),u+=Y.length-1}o++}}static createElement(t,e){const i=et.createElement("template");return i.innerHTML=t,i}}function rt(n,t,e=n,i){var r,o,a,l;if(t===U)return t;let s=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const d=xt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((o=s==null?void 0:s._$AO)===null||o===void 0||o.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,e,i)),i!==void 0?((a=(l=e)._$Co)!==null&&a!==void 0?a:l._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=rt(n,s._$AS(n,t.values),s,i)),t}class Xe{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){var e;const{el:{content:i},parts:r}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:et).importNode(i,!0);nt.currentNode=o;let a=nt.nextNode(),l=0,s=0,d=r[0];for(;d!==void 0;){if(l===d.index){let c;d.type===2?c=new pt(a,a.nextSibling,this,t):d.type===1?c=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(c=new Ze(a,this,t)),this._$AV.push(c),d=r[++s]}l!==(d==null?void 0:d.index)&&(a=nt.nextNode(),l++)}return nt.currentNode=et,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class pt{constructor(t,e,i,r){var o;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}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=rt(this,t,e),xt(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ke(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==_&&xt(this._$AH)?this._$AA.nextSibling.data=t:this.$(et.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=At.createElement(r.h,this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new Xe(o,this),l=a.u(this.options);a.v(i),this.$(l),this._$AH=a}}_$AC(t){let e=ze.get(t.strings);return e===void 0&&ze.set(t.strings,e=new At(t)),e}T(t){Ne(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new pt(this.k(Ct()),this.k(Ct()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.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._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class St{constructor(t,e,i,r,o){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(o===void 0)t=rt(this,t,e,0),a=!xt(t)||t!==this._$AH&&t!==U,a&&(this._$AH=t);else{const l=t;let s,d;for(t=o[0],s=0;s<o.length-1;s++)d=rt(this,l[i+s],e,s),d===U&&(d=this._$AH[s]),a||(a=!xt(d)||d!==this._$AH[s]),d===_?t=_:t!==_&&(t+=(d??"")+o[s+1]),this._$AH[s]=d}a&&!r&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ye extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const Ri=ct?ct.emptyScript:"";class We extends St{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,Ri):this.element.removeAttribute(this.name)}}class Ge extends St{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=rt(this,t,e,0))!==null&&i!==void 0?i:_)===U)return;const r=this._$AH,o=t===_&&r!==_||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==_&&(r===_||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class Ze{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){rt(this,t)}}const Ui={O:Rt,P:Y,A:de,C:1,M:je,L:Xe,D:ke,R:rt,I:pt,V:St,H:We,N:Ge,U:Ye,F:Ze},qe=Bt.litHtmlPolyfillSupport;qe==null||qe(At,pt),((le=Bt.litHtmlVersions)!==null&&le!==void 0?le:Bt.litHtmlVersions=[]).push("2.7.4");const Fi=(n,t,e)=>{var i,r;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let a=o._$litPart$;if(a===void 0){const l=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new pt(t.insertBefore(Ct(),l),l,void 0,e??{})}return a._$AI(n),a};/**
13
+ */var xe;const te=window,xt=te.trustedTypes,ti=xt?xt.createPolicy("lit-html",{createHTML:n=>n}):void 0,ee="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Ce="?"+Q,Ji=`<${Ce}>`,dt=document,Ht=()=>dt.createComment(""),It=n=>n===null||typeof n!="object"&&typeof n!="function",ei=Array.isArray,ii=n=>ei(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Ae=`[
14
+ \f\r]`,Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ri=/>/g,ut=RegExp(`>|${Ae}(?:([^\\s"'>=/]+)(${Ae}*=${Ae}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ai=/"/g,si=/^(?:script|style|textarea|title)$/i,tn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),H=tn(1),Y=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),li=new WeakMap,ct=dt.createTreeWalker(dt,129,null,!1),di=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=Pt;for(let s=0;s<e;s++){const d=n[s];let h,u,p=-1,g=0;for(;g<d.length&&(a.lastIndex=g,u=a.exec(d),u!==null);)g=a.lastIndex,a===Pt?u[1]==="!--"?a=ni:u[1]!==void 0?a=ri:u[2]!==void 0?(si.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=ut):u[3]!==void 0&&(a=ut):a===ut?u[0]===">"?(a=r??Pt,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,h=u[1],a=u[3]===void 0?ut:u[3]==='"'?ai:oi):a===ai||a===oi?a=ut:a===ni||a===ri?a=Pt:(a=ut,r=void 0);const f=a===ut&&n[s+1].startsWith("/>")?" ":"";o+=a===Pt?d+Ji:p>=0?(i.push(h),d.slice(0,p)+ee+d.slice(p)+Q+f):d+Q+(p===-2?(i.push(void 0),s):f)}const l=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ti!==void 0?ti.createHTML(l):l,i]};class Mt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const l=t.length-1,s=this.parts,[d,h]=di(t,e);if(this.el=Mt.createElement(d,i),ct.currentNode=this.el.content,e===2){const u=this.el.content,p=u.firstChild;p.remove(),u.append(...p.childNodes)}for(;(r=ct.nextNode())!==null&&s.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const p of r.getAttributeNames())if(p.endsWith(ee)||p.startsWith(Q)){const g=h[a++];if(u.push(p),g!==void 0){const f=r.getAttribute(g.toLowerCase()+ee).split(Q),y=/([.?@])?(.*)/.exec(g);s.push({type:1,index:o,name:y[2],strings:f,ctor:y[1]==="."?ci:y[1]==="?"?hi:y[1]==="@"?pi:kt})}else s.push({type:6,index:o})}for(const p of u)r.removeAttribute(p)}if(si.test(r.tagName)){const u=r.textContent.split(Q),p=u.length-1;if(p>0){r.textContent=xt?xt.emptyScript:"";for(let g=0;g<p;g++)r.append(u[g],Ht()),ct.nextNode(),s.push({type:2,index:++o});r.append(u[p],Ht())}}}else if(r.nodeType===8)if(r.data===Ce)s.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(Q,u+1))!==-1;)s.push({type:7,index:o}),u+=Q.length-1}o++}}static createElement(t,e){const i=dt.createElement("template");return i.innerHTML=t,i}}function ht(n,t,e=n,i){var r,o,a,l;if(t===Y)return t;let s=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const d=It(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==d&&((o=s==null?void 0:s._$AO)===null||o===void 0||o.call(s,!1),d===void 0?s=void 0:(s=new d(n),s._$AT(n,e,i)),i!==void 0?((a=(l=e)._$Co)!==null&&a!==void 0?a:l._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=ht(n,s._$AS(n,t.values),s,i)),t}class ui{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){var e;const{el:{content:i},parts:r}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:dt).importNode(i,!0);ct.currentNode=o;let a=ct.nextNode(),l=0,s=0,d=r[0];for(;d!==void 0;){if(l===d.index){let h;d.type===2?h=new Ct(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new fi(a,this,t)),this._$AV.push(h),d=r[++s]}l!==(d==null?void 0:d.index)&&(a=ct.nextNode(),l++)}return ct.currentNode=dt,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ct{constructor(t,e,i,r){var o;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}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=ht(this,t,e),It(t)?t===w||t==null||t===""?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ii(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==w&&It(this._$AH)?this._$AA.nextSibling.data=t:this.$(dt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Mt.createElement(r.h,this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new ui(o,this),l=a.u(this.options);a.v(i),this.$(l),this._$AH=a}}_$AC(t){let e=li.get(t.strings);return e===void 0&&li.set(t.strings,e=new Mt(t)),e}T(t){ei(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Ct(this.k(Ht()),this.k(Ht()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.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._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class kt{constructor(t,e,i,r,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let a=!1;if(o===void 0)t=ht(this,t,e,0),a=!It(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const l=t;let s,d;for(t=o[0],s=0;s<o.length-1;s++)d=ht(this,l[i+s],e,s),d===Y&&(d=this._$AH[s]),a||(a=!It(d)||d!==this._$AH[s]),d===w?t=w:t!==w&&(t+=(d??"")+o[s+1]),this._$AH[s]=d}a&&!r&&this.j(t)}j(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ci extends kt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===w?void 0:t}}const en=xt?xt.emptyScript:"";class hi extends kt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==w?this.element.setAttribute(this.name,en):this.element.removeAttribute(this.name)}}class pi extends kt{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=ht(this,t,e,0))!==null&&i!==void 0?i:w)===Y)return;const r=this._$AH,o=t===w&&r!==w||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==w&&(r===w||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class fi{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}}const nn={O:ee,P:Q,A:Ce,C:1,M:di,L:ui,D:ii,R:ht,I:Ct,V:kt,H:hi,N:pi,U:ci,F:fi},gi=te.litHtmlPolyfillSupport;gi==null||gi(Mt,Ct),((xe=te.litHtmlVersions)!==null&&xe!==void 0?xe:te.litHtmlVersions=[]).push("2.7.4");const rn=(n,t,e)=>{var i,r;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let a=o._$litPart$;if(a===void 0){const l=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new Ct(t.insertBefore(Ht(),l),l,void 0,e??{})}return a._$AI(n),a};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var ue,ce;let ft=class extends ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fi(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return U}};ft.finalized=!0,ft._$litElement$=!0,(ue=globalThis.litElementHydrateSupport)===null||ue===void 0||ue.call(globalThis,{LitElement:ft});const Ke=globalThis.litElementPolyfillSupport;Ke==null||Ke({LitElement:ft}),((ce=globalThis.litElementVersions)!==null&&ce!==void 0?ce:globalThis.litElementVersions=[]).push("3.3.2");/**
19
+ */var $e,Se;let At=class extends wt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rn(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return Y}};At.finalized=!0,At._$litElement$=!0,($e=globalThis.litElementHydrateSupport)===null||$e===void 0||$e.call(globalThis,{LitElement:At});const mi=globalThis.litElementPolyfillSupport;mi==null||mi({LitElement:At}),((Se=globalThis.litElementVersions)!==null&&Se!==void 0?Se:globalThis.litElementVersions=[]).push("3.3.2");/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const Je=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:r,elements:o}=i;return{kind:r,elements:o,finisher(a){customElements.define(e,a)}}})(n,t);/**
23
+ */const vi=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:r,elements:o}=i;return{kind:r,elements:o,finisher(a){customElements.define(e,a)}}})(n,t);/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const zi=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}},ji=(n,t,e)=>{t.constructor.createProperty(e,n)};function M(n){return(t,e)=>e!==void 0?ji(n,t,e):zi(n,t)}/**
27
+ */const on=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}},an=(n,t,e)=>{t.constructor.createProperty(e,n)};function k(n){return(t,e)=>e!==void 0?an(n,t,e):on(n,t)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function gt(n){return M({...n,state:!0})}/**
31
+ */function pt(n){return k({...n,state:!0})}/**
32
32
  * @license
33
33
  * Copyright 2021 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */var pe;((pe=window.HTMLSlotElement)===null||pe===void 0?void 0:pe.prototype.assignedElements)!=null;/**
35
+ */var Oe;((Oe=window.HTMLSlotElement)===null||Oe===void 0?void 0:Oe.prototype.assignedElements)!=null;/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const ot={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qe=n=>(...t)=>({_$litDirective$:n,values:t});class ti{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
39
+ */const ft={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yi=n=>(...t)=>({_$litDirective$:n,values:t});class bi{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
40
40
  * @license
41
41
  * Copyright 2020 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const{I:Xi}=Ui,Yi=n=>n.strings===void 0,ei=()=>document.createComment(""),Dt=(n,t,e)=>{var i;const r=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const a=r.insertBefore(ei(),o),l=r.insertBefore(ei(),o);e=new Xi(a,l,n,n.options)}else{const a=e._$AB.nextSibling,l=e._$AM,s=l!==n;if(s){let d;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(d=n._$AU)!==l._$AU&&e._$AP(d)}if(a!==o||s){let d=e._$AA;for(;d!==a;){const c=d.nextSibling;r.insertBefore(d,o),d=c}}}return e},at=(n,t,e=n)=>(n._$AI(t,e),n),Wi={},ii=(n,t=Wi)=>n._$AH=t,Gi=n=>n._$AH,fe=n=>{var t;(t=n._$AP)===null||t===void 0||t.call(n,!1,!0);let e=n._$AA;const i=n._$AB.nextSibling;for(;e!==i;){const r=e.nextSibling;e.remove(),e=r}};/**
43
+ */const{I:sn}=nn,ln=n=>n.strings===void 0,Ei=()=>document.createComment(""),Nt=(n,t,e)=>{var i;const r=n._$AA.parentNode,o=t===void 0?n._$AB:t._$AA;if(e===void 0){const a=r.insertBefore(Ei(),o),l=r.insertBefore(Ei(),o);e=new sn(a,l,n,n.options)}else{const a=e._$AB.nextSibling,l=e._$AM,s=l!==n;if(s){let d;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(d=n._$AU)!==l._$AU&&e._$AP(d)}if(a!==o||s){let d=e._$AA;for(;d!==a;){const h=d.nextSibling;r.insertBefore(d,o),d=h}}}return e},gt=(n,t,e=n)=>(n._$AI(t,e),n),dn={},_i=(n,t=dn)=>n._$AH=t,un=n=>n._$AH,Te=n=>{var t;(t=n._$AP)===null||t===void 0||t.call(n,!1,!0);let e=n._$AA;const i=n._$AB.nextSibling;for(;e!==i;){const r=e.nextSibling;e.remove(),e=r}};/**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const ni=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},ge=Qe(class extends ti{constructor(n){if(super(n),n.type!==ot.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const r=[],o=[];let a=0;for(const l of n)r[a]=i?i(l,a):a,o[a]=e(l,a),a++;return{values:o,keys:r}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){var r;const o=Gi(n),{values:a,keys:l}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=l,a;const s=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],d=[];let c,u,p=0,m=o.length-1,f=0,v=a.length-1;for(;p<=m&&f<=v;)if(o[p]===null)p++;else if(o[m]===null)m--;else if(s[p]===l[f])d[f]=at(o[p],a[f]),p++,f++;else if(s[m]===l[v])d[v]=at(o[m],a[v]),m--,v--;else if(s[p]===l[v])d[v]=at(o[p],a[v]),Dt(n,d[v+1],o[p]),p++,v--;else if(s[m]===l[f])d[f]=at(o[m],a[f]),Dt(n,o[p],o[m]),m--,f++;else if(c===void 0&&(c=ni(l,f,v),u=ni(s,p,m)),c.has(s[p]))if(c.has(s[m])){const D=u.get(l[f]),z=D!==void 0?o[D]:null;if(z===null){const P=Dt(n,o[p]);at(P,a[f]),d[f]=P}else d[f]=at(z,a[f]),Dt(n,o[p],z),o[D]=null;f++}else fe(o[m]),m--;else fe(o[p]),p++;for(;f<=v;){const D=Dt(n,d[v+1]);at(D,a[f]),d[f++]=D}for(;p<=m;){const D=o[p++];D!==null&&fe(D)}return this.ht=l,ii(n,d),U}});/**
47
+ */const wi=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},De=yi(class extends bi{constructor(n){if(super(n),n.type!==ft.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const r=[],o=[];let a=0;for(const l of n)r[a]=i?i(l,a):a,o[a]=e(l,a),a++;return{values:o,keys:r}}render(n,t,e){return this.dt(n,t,e).values}update(n,[t,e,i]){var r;const o=un(n),{values:a,keys:l}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=l,a;const s=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],d=[];let h,u,p=0,g=o.length-1,f=0,y=a.length-1;for(;p<=g&&f<=y;)if(o[p]===null)p++;else if(o[g]===null)g--;else if(s[p]===l[f])d[f]=gt(o[p],a[f]),p++,f++;else if(s[g]===l[y])d[y]=gt(o[g],a[y]),g--,y--;else if(s[p]===l[y])d[y]=gt(o[p],a[y]),Nt(n,d[y+1],o[p]),p++,y--;else if(s[g]===l[f])d[f]=gt(o[g],a[f]),Nt(n,o[p],o[g]),g--,f++;else if(h===void 0&&(h=wi(l,f,y),u=wi(s,p,g)),h.has(s[p]))if(h.has(s[g])){const O=u.get(l[f]),F=O!==void 0?o[O]:null;if(F===null){const L=Nt(n,o[p]);gt(L,a[f]),d[f]=L}else d[f]=gt(F,a[f]),Nt(n,o[p],F),o[O]=null;f++}else Te(o[g]),g--;else Te(o[p]),p++;for(;f<=y;){const O=Nt(n,d[y+1]);gt(O,a[f]),d[f++]=O}for(;p<=g;){const O=o[p++];O!==null&&Te(O)}return this.ht=l,_i(n,d),Y}});/**
48
48
  * @license
49
49
  * Copyright 2020 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const me=Qe(class extends ti{constructor(n){if(super(n),n.type!==ot.PROPERTY&&n.type!==ot.ATTRIBUTE&&n.type!==ot.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Yi(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===U||t===_)return t;const e=n.element,i=n.name;if(n.type===ot.PROPERTY){if(t===e[i])return U}else if(n.type===ot.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return U}else if(n.type===ot.ATTRIBUTE&&e.getAttribute(i)===t+"")return U;return ii(n),t}});/**
51
+ */const Le=yi(class extends bi{constructor(n){if(super(n),n.type!==ft.PROPERTY&&n.type!==ft.ATTRIBUTE&&n.type!==ft.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ln(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===Y||t===w)return t;const e=n.element,i=n.name;if(n.type===ft.PROPERTY){if(t===e[i])return Y}else if(n.type===ft.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return Y}else if(n.type===ft.ATTRIBUTE&&e.getAttribute(i)===t+"")return Y;return _i(n),t}});/**
52
52
  * @license
53
53
  * Copyright 2021 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function ri(n,t,e){return n?t():e==null?void 0:e()}/**!
55
+ */function xi(n,t,e){return n?t():e==null?void 0:e()}/**!
56
56
  * Sortable 1.15.0
57
57
  * @author RubaXa <trash@rubaxa.org>
58
58
  * @author owenm <owen23355@gmail.com>
59
59
  * @license MIT
60
- */function oi(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function j(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?oi(Object(e),!0).forEach(function(i){Zi(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):oi(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Ut(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ut=function(t){return typeof t}:Ut=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(n)}function Zi(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function q(){return q=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},q.apply(this,arguments)}function qi(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function Ki(n,t){if(n==null)return{};var e=qi(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var Ji="1.15.0";function W(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var K=W(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ft=W(/Edge/i),ai=W(/firefox/i),zt=W(/safari/i)&&!W(/chrome/i)&&!W(/android/i),si=W(/iP(ad|od|hone)/i),li=W(/chrome/i)&&W(/android/i),di={capture:!1,passive:!1};function C(n,t,e){n.addEventListener(t,e,!K&&di)}function w(n,t,e){n.removeEventListener(t,e,!K&&di)}function jt(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function Qi(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function X(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&jt(n,t):jt(n,t))||i&&n===e)return n;if(n===e)break}while(n=Qi(n))}return null}var hi=/\s+/g;function k(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(hi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(hi," ")}}function g(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function mt(n,t){var e="";if(typeof n=="string")e=n;else do{var i=g(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function ui(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function J(){var n=document.scrollingElement;return n||document.documentElement}function T(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,l,s,d,c,u;if(n!==window&&n.parentNode&&n!==J()?(o=n.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,c=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!K))do if(r&&r.getBoundingClientRect&&(g(r,"transform")!=="none"||e&&g(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(g(r,"border-top-width")),l-=p.left+parseInt(g(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(i&&n!==window){var m=mt(r||n),f=m&&m.a,v=m&&m.d;m&&(a/=v,l/=f,u/=f,c/=v,s=a+c,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:c}}}function ci(n,t,e){for(var i=fi(n,!0),r=T(n)[t];i;){var o=T(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===J())break;i=fi(i,!1)}return!1}function vt(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==y.ghost&&(i||a[o]!==y.dragged)&&X(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function ve(n,t){for(var e=n.lastElementChild;e&&(e===y.ghost||g(e,"display")==="none"||t&&!jt(e,t));)e=e.previousElementSibling;return e||null}function B(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==y.clone&&(!t||jt(n,t))&&e++;return e}function pi(n){var t=0,e=0,i=J();if(n)do{var r=mt(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function tn(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function fi(n,t){if(!n||!n.getBoundingClientRect)return J();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=g(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 J();if(i||t)return e;i=!0}}while(e=e.parentNode);return J()}function en(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function ye(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var be;function nn(n,t){return function(){if(!be){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),be=setTimeout(function(){be=void 0},t)}}}function rn(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function gi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}var R="Sortable"+new Date().getTime();function on(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(g(r,"display")==="none"||r===y.ghost)){n.push({target:r,rect:T(r)});var o=j({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=mt(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(tn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(l){var s=0,d=l.target,c=d.fromRect,u=T(d),p=d.prevFromRect,m=d.prevToRect,f=l.rect,v=mt(d,!0);v&&(u.top-=v.f,u.left-=v.e),d.toRect=u,d.thisAnimationDuration&&ye(p,u)&&!ye(c,u)&&(f.top-u.top)/(f.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(s=sn(f,p,m,r.options)),ye(u,c)||(d.prevFromRect=c,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,f,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){g(i,"transition",""),g(i,"transform","");var l=mt(this.el),s=l&&l.a,d=l&&l.d,c=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);i.animatingX=!!c,i.animatingY=!!u,g(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=an(i),g(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){g(i,"transition",""),g(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function an(n){return n.offsetWidth}function sn(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var yt=[],Ee={initializeByDefault:!0},Tt={mount:function(t){for(var e in Ee)Ee.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ee[e]);yt.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),yt.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";yt.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](j({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](j({sortable:e},i)))})},initializePlugins:function(t,e,i,r){yt.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[s]=d,q(i,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return yt.forEach(function(r){typeof r.eventProperties=="function"&&q(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return yt.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function ln(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,d=n.newIndex,c=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,m=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[R],!!t){var v,D=t.options,z="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!K&&!Ft?v=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(i,!0,!0)),v.to=a||e,v.from=l||e,v.item=r||e,v.clone=o,v.oldIndex=s,v.newIndex=d,v.oldDraggableIndex=c,v.newDraggableIndex=u,v.originalEvent=p,v.pullMode=m?m.lastPutMode:void 0;var P=j(j({},f),Tt.getEventProperties(i,t));for(var ht in P)v[ht]=P[ht];e&&e.dispatchEvent(v),D[z]&&D[z].call(t,v)}}var dn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=Ki(i,dn);Tt.pluginEvent.bind(y)(t,e,j({dragEl:h,parentEl:A,ghostEl:b,rootEl:x,nextEl:st,lastDownEl:Xt,cloneEl:$,cloneHidden:Q,dragStarted:Lt,putSortable:L,activeSortable:y.active,originalEvent:r,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt,hideGhostForTarget:wi,unhideGhostForTarget:Ci,cloneNowHidden:function(){Q=!0},cloneNowShown:function(){Q=!1},dispatchSortableEvent:function(l){I({sortable:e,name:l,originalEvent:r})}},o))};function I(n){ln(j({putSortable:L,cloneEl:$,targetEl:h,rootEl:x,oldIndex:bt,oldDraggableIndex:Ot,newIndex:V,newDraggableIndex:tt},n))}var h,A,b,x,st,Xt,$,Q,bt,V,Ot,tt,Yt,L,Et=!1,Wt=!1,Gt=[],lt,F,_e,we,mi,vi,Lt,_t,Ht,Pt=!1,Zt=!1,qt,H,Ce=[],xe=!1,Kt=[],Jt=typeof document<"u",Qt=si,yi=Ft||K?"cssFloat":"float",hn=Jt&&!li&&!si&&"draggable"in document.createElement("div"),bi=function(){if(Jt){if(K)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ei=function(t,e){var i=g(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=vt(t,0,e),a=vt(t,1,e),l=o&&g(o),s=a&&g(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+T(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&i[yi]==="none"||a&&i[yi]==="none"&&d+c>r)?"vertical":"horizontal"},un=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?e.left:e.top,s=i?e.right:e.bottom,d=i?e.width:e.height;return r===l||o===s||r+a/2===l+d/2},cn=function(t,e){var i;return Gt.some(function(r){var o=r[R].options.emptyInsertThreshold;if(!(!o||ve(r))){var a=T(r),l=t>=a.left-o&&t<=a.right+o,s=e>=a.top-o&&e<=a.bottom+o;if(l&&s)return i=r}}),i},_i=function(t){function e(o,a){return function(l,s,d,c){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(l,s,d,c),a)(l,s,d,c);var p=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||Ut(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},wi=function(){!bi&&b&&g(b,"display","none")},Ci=function(){!bi&&b&&g(b,"display","")};Jt&&!li&&document.addEventListener("click",function(n){if(Wt)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Wt=!1,!1},!0);var dt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=cn(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[R]._onDragOver(i)}}},pn=function(t){h&&h.parentNode[R]._isOutsideThisEl(t.target)};function y(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=q({},t),n[R]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ei(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.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:y.supportPointer!==!1&&"PointerEvent"in window&&!zt,emptyInsertThreshold:5};Tt.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);_i(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),q(this,on())}y.prototype={constructor:y,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(_t=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,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=r.filter;if(_n(i),!h&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&zt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,r.draggable,i,!1),!(s&&s.animated)&&Xt!==s)){if(bt=B(s),Ot=B(s,r.draggable),typeof c=="function"){if(c.call(this,t,s,this)){I({sortable:e,rootEl:d,name:"filter",targetEl:s,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=X(d,u.trim(),i,!1),u)return I({sortable:e,rootEl:u,name:"filter",targetEl:s,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!X(d,r.handle,i,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!h&&i.parentNode===o){var d=T(i);if(x=o,h=i,A=h.parentNode,st=h.nextSibling,Xt=i,Yt=a.group,y.dragged=h,lt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},mi=lt.clientX-d.left,vi=lt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:t}),y.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!ai&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),I({sortable:r,name:"choose",originalEvent:t}),k(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){ui(h,c.trim(),$e)}),C(l,"dragover",dt),C(l,"mousemove",dt),C(l,"touchmove",dt),C(l,"mouseup",r._onDrop),C(l,"touchend",r._onDrop),C(l,"touchcancel",r._onDrop),ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Ft||K))){if(y.eventCanceled){this._onDrop();return}C(l,"mouseup",r._disableDelayedDrag),C(l,"touchend",r._disableDelayedDrag),C(l,"touchcancel",r._disableDelayedDrag),C(l,"mousemove",r._delayedDragTouchMoveHandler),C(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_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&&$e(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(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(x,"dragstart",this._onDragStart));try{document.selection?ee(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Et=!1,x&&h){N("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",pn);var i=this.options;!t&&k(h,i.dragClass,!1),k(h,i.ghostClass,!0),y.active=this,t&&this._appendGhost(),I({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(F){this._lastX=F.clientX,this._lastY=F.clientY,wi();for(var t=document.elementFromPoint(F.clientX,F.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(F.clientX,F.clientY),t!==e);)e=t;if(h.parentNode[R]._isOutsideThisEl(t),e)do{if(e[R]){var i=void 0;if(i=e[R]._onDragOver({clientX:F.clientX,clientY:F.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ci()}},_onTouchMove:function(t){if(lt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&mt(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,d=Qt&&H&&pi(H),c=(o.clientX-lt.clientX+r.x)/(l||1)+(d?d[0]-Ce[0]:0)/(l||1),u=(o.clientY-lt.clientY+r.y)/(s||1)+(d?d[1]-Ce[1]:0)/(s||1);if(!y.active&&!Et){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=c-(_e||0),a.f+=u-(we||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",p),g(b,"mozTransform",p),g(b,"msTransform",p),g(b,"transform",p),_e=c,we=u,F=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:x,e=T(h,!0,Qt,!0,t),i=this.options;if(Qt){for(H=t;g(H,"position")==="static"&&g(H,"transform")==="none"&&H!==document;)H=H.parentNode;H!==document.body&&H!==document.documentElement?(H===document&&(H=J()),e.top+=H.scrollTop,e.left+=H.scrollLeft):H=J(),Ce=pi(H)}b=h.cloneNode(!0),k(b,i.ghostClass,!1),k(b,i.fallbackClass,!0),k(b,i.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",e.top),g(b,"left",e.left),g(b,"width",e.width),g(b,"height",e.height),g(b,"opacity","0.8"),g(b,"position",Qt?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),y.ghost=b,t.appendChild(b),g(b,"transform-origin",mi/parseInt(b.style.width)*100+"% "+vi/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),y.eventCanceled){this._onDrop();return}N("setupClone",this),y.eventCanceled||($=gi(h),$.removeAttribute("id"),$.draggable=!1,$.style["will-change"]="",this._hideClone(),k($,this.options.chosenClass,!1),y.clone=$),i.cloneId=ee(function(){N("clone",i),!y.eventCanceled&&(i.options.removeCloneOnHide||x.insertBefore($,h),i._hideClone(),I({sortable:i,name:"clone"}))}),!e&&k(h,o.dragClass,!0),e?(Wt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(w(document,"mouseup",i._onDrop),w(document,"touchend",i._onDrop),w(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,h)),C(document,"drop",i),g(h,"transform","translateZ(0)")),Et=!0,i._dragStartId=ee(i._dragStarted.bind(i,e,t)),C(document,"selectstart",i),Lt=!0,zt&&g(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,l=this.options,s=l.group,d=y.active,c=Yt===s,u=l.sort,p=L||d,m,f=this,v=!1;if(xe)return;function D(kt,An){N(kt,f,j({evt:t,isOwner:c,axis:m?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:p,target:i,completed:P,onMove:function(Pi,Sn){return te(x,e,h,r,Pi,T(Pi),t,Sn)},changed:ht},An))}function z(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function P(kt){return D("dragOverCompleted",{insertion:kt}),kt&&(c?d._hideClone():d._showClone(f),f!==p&&(k(h,L?L.options.ghostClass:d.options.ghostClass,!1),k(h,l.ghostClass,!0)),L!==f&&f!==y.active?L=f:f===y.active&&L&&(L=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(_t=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[R]._isOutsideThisEl(t.target),!kt&&dt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function ht(){V=B(h),tt=B(h,l.draggable),I({sortable:f,name:"change",toEl:e,newIndex:V,newDraggableIndex:tt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=X(i,l.draggable,e,!0),D("dragOver"),y.eventCanceled)return v;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return P(!1);if(Wt=!1,d&&!l.disabled&&(c?u||(a=A!==x):L===this||(this.lastPutMode=Yt.checkPull(this,d,h,t))&&s.checkPut(this,d,h,t))){if(m=this._getDirection(t,i)==="vertical",r=T(h),D("dragOverValid"),y.eventCanceled)return v;if(a)return A=x,z(),this._hideClone(),D("revert"),y.eventCanceled||(st?x.insertBefore(h,st):x.appendChild(h)),P(!0);var G=ve(e,l.draggable);if(!G||vn(t,m,this)&&!G.animated){if(G===h)return P(!1);if(G&&e===t.target&&(i=G),i&&(o=T(i)),te(x,e,h,r,i,o,t,!!i)!==!1)return z(),G&&G.nextSibling?e.insertBefore(h,G.nextSibling):e.appendChild(h),A=e,ht(),P(!0)}else if(G&&mn(t,m,this)){var Se=vt(e,0,l,!0);if(Se===h)return P(!1);if(i=Se,o=T(i),te(x,e,h,r,i,o,t,!1)!==!1)return z(),e.insertBefore(h,Se),A=e,ht(),P(!0)}else if(i.parentNode===e){o=T(i);var wt=0,De,xn=h.parentNode!==e,Ti=!un(h.animated&&h.toRect||r,i.animated&&i.toRect||o,m),Oi=m?"top":"left",It=ci(i,"top","top")||ci(h,"top","top"),$n=It?It.scrollTop:void 0;_t!==i&&(De=o[Oi],Pt=!1,Zt=!Ti&&l.invertSwap||xn),wt=yn(t,i,o,m,Ti?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Zt,_t===i);var Mt;if(wt!==0){var Li=B(h);do Li-=wt,Mt=A.children[Li];while(Mt&&(g(Mt,"display")==="none"||Mt===b))}if(wt===0||Mt===i)return P(!1);_t=i,Ht=wt;var Hi=i.nextElementSibling,Nt=!1;Nt=wt===1;var ie=te(x,e,h,r,i,o,t,Nt);if(ie!==!1)return(ie===1||ie===-1)&&(Nt=ie===1),xe=!0,setTimeout(gn,30),z(),Nt&&!Hi?e.appendChild(h):i.parentNode.insertBefore(h,Nt?Hi:i),It&&rn(It,0,$n-It.scrollTop),A=h.parentNode,De!==void 0&&!Zt&&(qt=Math.abs(De-T(i)[Oi])),ht(),P(!0)}if(e.contains(h))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",dt),w(document,"mousemove",dt),w(document,"touchmove",dt)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(V=B(h),tt=B(h,i.draggable),N("drop",this,{evt:t}),A=h&&h.parentNode,V=B(h),tt=B(h,i.draggable),y.eventCanceled){this._nulling();return}Et=!1,Zt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ae(this.cloneId),Ae(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),zt&&g(document.body,"user-select",""),g(h,"transform",""),t&&(Lt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(x===A||L&&L.lastPutMode!=="clone")&&$&&$.parentNode&&$.parentNode.removeChild($),h&&(this.nativeDraggable&&w(h,"dragend",this),$e(h),h.style["will-change"]="",Lt&&!Et&&k(h,L?L.options.ghostClass:this.options.ghostClass,!1),k(h,this.options.chosenClass,!1),I({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:t}),x!==A?(V>=0&&(I({rootEl:A,name:"add",toEl:A,fromEl:x,originalEvent:t}),I({sortable:this,name:"remove",toEl:A,originalEvent:t}),I({rootEl:A,name:"sort",toEl:A,fromEl:x,originalEvent:t}),I({sortable:this,name:"sort",toEl:A,originalEvent:t})),L&&L.save()):V!==bt&&V>=0&&(I({sortable:this,name:"update",toEl:A,originalEvent:t}),I({sortable:this,name:"sort",toEl:A,originalEvent:t})),y.active&&((V==null||V===-1)&&(V=bt,tt=Ot),I({sortable:this,name:"end",toEl:A,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),x=h=A=b=st=$=Xt=Q=lt=F=Lt=V=tt=bt=Ot=_t=Ht=L=Yt=y.dragged=y.ghost=y.clone=y.active=null,Kt.forEach(function(t){t.checked=!0}),Kt.length=_e=we=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),fn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],X(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||En(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];X(l,this.options.draggable,r,!1)&&(i[o]=l)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return X(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Tt.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&_i(i)},destroy:function(){N("destroy",this);var t=this.el;t[R]=null,w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart),w(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Gt.splice(Gt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Q){if(N("hideClone",this),y.eventCanceled)return;g($,"display","none"),this.options.removeCloneOnHide&&$.parentNode&&$.parentNode.removeChild($),Q=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Q){if(N("showClone",this),y.eventCanceled)return;h.parentNode==x&&!this.options.group.revertClone?x.insertBefore($,h):st?x.insertBefore($,st):x.appendChild($),this.options.group.revertClone&&this.animate(h,$),g($,"display",""),Q=!1}}};function fn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function te(n,t,e,i,r,o,a,l){var s,d=n[R],c=d.options.onMove,u;return window.CustomEvent&&!K&&!Ft?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=n,s.dragged=e,s.draggedRect=i,s.related=r||t,s.relatedRect=o||T(t),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function $e(n){n.draggable=!1}function gn(){xe=!1}function mn(n,t,e){var i=T(vt(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function vn(n,t,e){var i=T(ve(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function yn(n,t,e,i,r,o,a,l){var s=i?n.clientY:n.clientX,d=i?e.height:e.width,c=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!a){if(l&&qt<d*r){if(!Pt&&(Ht===1?s>c+d*o/2:s<u-d*o/2)&&(Pt=!0),Pt)p=!0;else if(Ht===1?s<c+qt:s>u-qt)return-Ht}else if(s>c+d*(1-r)/2&&s<u-d*(1-r)/2)return bn(t)}return p=p||a,p&&(s<c+d*o/2||s>u-d*o/2)?s>c+d/2?1:-1:0}function bn(n){return B(h)<B(n)?1:-1}function En(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function _n(n){Kt.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&Kt.push(i)}}function ee(n){return setTimeout(n,0)}function Ae(n){return clearTimeout(n)}Jt&&C(document,"touchmove",function(n){(y.active||Et)&&n.cancelable&&n.preventDefault()}),y.utils={on:C,off:w,css:g,find:ui,is:function(t,e){return!!X(t,e,t,!1)},extend:en,throttle:nn,closest:X,toggleClass:k,clone:gi,index:B,nextTick:ee,cancelNextTick:Ae,detectDirection:Ei,getChild:vt},y.get=function(n){return n[R]},y.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(y.utils=j(j({},y.utils),i.utils)),Tt.mount(i)})},y.create=function(n,t){return new y(n,t)},y.version=Ji;var xi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var d=i||o;l();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function $i(){}$i.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var r=vt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:xi},q($i,{pluginName:"revertOnSpill"});function Ai(){}Ai.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:xi},q(Ai,{pluginName:"removeOnSpill"});const Si=`
60
+ */function Ci(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function G(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Ci(Object(e),!0).forEach(function(i){cn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ci(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function ie(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(t){return typeof t}:ie=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(n)}function cn(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function J(){return J=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},J.apply(this,arguments)}function hn(n,t){if(n==null)return{};var e={},i=Object.keys(n),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(e[r]=n[r]);return e}function pn(n,t){if(n==null)return{};var e=hn(n,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(e[i]=n[i])}return e}var fn="1.15.0";function tt(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var et=tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vt=tt(/Edge/i),Ai=tt(/firefox/i),Bt=tt(/safari/i)&&!tt(/chrome/i)&&!tt(/android/i),$i=tt(/iP(ad|od|hone)/i),Si=tt(/chrome/i)&&tt(/android/i),Oi={capture:!1,passive:!1};function x(n,t,e){n.addEventListener(t,e,!et&&Oi)}function E(n,t,e){n.removeEventListener(t,e,!et&&Oi)}function ne(n,t){if(t){if(t[0]===">"&&(t=t.substring(1)),n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(t)}catch{return!1}return!1}}function gn(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Z(n,t,e,i){if(n){e=e||document;do{if(t!=null&&(t[0]===">"?n.parentNode===e&&ne(n,t):ne(n,t))||i&&n===e)return n;if(n===e)break}while(n=gn(n))}return null}var Ti=/\s+/g;function V(n,t,e){if(n&&t)if(n.classList)n.classList[e?"add":"remove"](t);else{var i=(" "+n.className+" ").replace(Ti," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Ti," ")}}function m(n,t,e){var i=n&&n.style;if(i){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(e=n.currentStyle),t===void 0?e:e[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=e+(typeof e=="string"?"":"px")}}function $t(n,t){var e="";if(typeof n=="string")e=n;else do{var i=m(n,"transform");i&&i!=="none"&&(e=i+" "+e)}while(!t&&(n=n.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(e)}function Di(n,t,e){if(n){var i=n.getElementsByTagName(t),r=0,o=i.length;if(e)for(;r<o;r++)e(i[r],r);return i}return[]}function q(){var n=document.scrollingElement;return n||document.documentElement}function D(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,l,s,d,h,u;if(n!==window&&n.parentNode&&n!==q()?(o=n.getBoundingClientRect(),a=o.top,l=o.left,s=o.bottom,d=o.right,h=o.height,u=o.width):(a=0,l=0,s=window.innerHeight,d=window.innerWidth,h=window.innerHeight,u=window.innerWidth),(t||e)&&n!==window&&(r=r||n.parentNode,!et))do if(r&&r.getBoundingClientRect&&(m(r,"transform")!=="none"||e&&m(r,"position")!=="static")){var p=r.getBoundingClientRect();a-=p.top+parseInt(m(r,"border-top-width")),l-=p.left+parseInt(m(r,"border-left-width")),s=a+o.height,d=l+o.width;break}while(r=r.parentNode);if(i&&n!==window){var g=$t(r||n),f=g&&g.a,y=g&&g.d;g&&(a/=y,l/=f,u/=f,h/=y,s=a+h,d=l+u)}return{top:a,left:l,bottom:s,right:d,width:u,height:h}}}function Li(n,t,e){for(var i=rt(n,!0),r=D(n)[t];i;){var o=D(i)[e],a=void 0;if(e==="top"||e==="left"?a=r>=o:a=r<=o,!a)return i;if(i===q())break;i=rt(i,!1)}return!1}function St(n,t,e,i){for(var r=0,o=0,a=n.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==v.ghost&&(i||a[o]!==v.dragged)&&Z(a[o],e.draggable,n,!1)){if(r===t)return a[o];r++}o++}return null}function He(n,t){for(var e=n.lastElementChild;e&&(e===v.ghost||m(e,"display")==="none"||t&&!ne(e,t));)e=e.previousElementSibling;return e||null}function j(n,t){var e=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==v.clone&&(!t||ne(n,t))&&e++;return e}function Hi(n){var t=0,e=0,i=q();if(n)do{var r=$t(n),o=r.a,a=r.d;t+=n.scrollLeft*o,e+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[t,e]}function mn(n,t){for(var e in n)if(n.hasOwnProperty(e)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===n[e][i])return Number(e)}return-1}function rt(n,t){if(!n||!n.getBoundingClientRect)return q();var e=n,i=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var r=m(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 q();if(i||t)return e;i=!0}}while(e=e.parentNode);return q()}function vn(n,t){if(n&&t)for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Ie(n,t){return Math.round(n.top)===Math.round(t.top)&&Math.round(n.left)===Math.round(t.left)&&Math.round(n.height)===Math.round(t.height)&&Math.round(n.width)===Math.round(t.width)}var Rt;function Ii(n,t){return function(){if(!Rt){var e=arguments,i=this;e.length===1?n.call(i,e[0]):n.apply(i,e),Rt=setTimeout(function(){Rt=void 0},t)}}}function yn(){clearTimeout(Rt),Rt=void 0}function Pi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Mi(n){var t=window.Polymer,e=window.jQuery||window.Zepto;return t&&t.dom?t.dom(n).cloneNode(!0):e?e(n).clone(!0)[0]:n.cloneNode(!0)}var B="Sortable"+new Date().getTime();function bn(){var n=[],t;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(m(r,"display")==="none"||r===v.ghost)){n.push({target:r,rect:D(r)});var o=G({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=$t(r,!0);a&&(o.top-=a.f,o.left-=a.e)}r.fromRect=o}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(mn(n,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(t),typeof i=="function"&&i();return}var o=!1,a=0;n.forEach(function(l){var s=0,d=l.target,h=d.fromRect,u=D(d),p=d.prevFromRect,g=d.prevToRect,f=l.rect,y=$t(d,!0);y&&(u.top-=y.f,u.left-=y.e),d.toRect=u,d.thisAnimationDuration&&Ie(p,u)&&!Ie(h,u)&&(f.top-u.top)/(f.left-u.left)===(h.top-u.top)/(h.left-u.left)&&(s=_n(f,p,g,r.options)),Ie(u,h)||(d.prevFromRect=h,d.prevToRect=u,s||(s=r.options.animation),r.animate(d,f,u,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},s),d.thisAnimationDuration=s)}),clearTimeout(t),o?t=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,r,o,a){if(a){m(i,"transition",""),m(i,"transform","");var l=$t(this.el),s=l&&l.a,d=l&&l.d,h=(r.left-o.left)/(s||1),u=(r.top-o.top)/(d||1);i.animatingX=!!h,i.animatingY=!!u,m(i,"transform","translate3d("+h+"px,"+u+"px,0)"),this.forRepaintDummy=En(i),m(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),m(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){m(i,"transition",""),m(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function En(n){return n.offsetWidth}function _n(n,t,e,i){return Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))/Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))*i.animation}var Ot=[],Pe={initializeByDefault:!0},Ft={mount:function(t){for(var e in Pe)Pe.hasOwnProperty(e)&&!(e in t)&&(t[e]=Pe[e]);Ot.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ot.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";Ot.forEach(function(a){e[a.pluginName]&&(e[a.pluginName][o]&&e[a.pluginName][o](G({sortable:e},i)),e.options[a.pluginName]&&e[a.pluginName][t]&&e[a.pluginName][t](G({sortable:e},i)))})},initializePlugins:function(t,e,i,r){Ot.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var d=new l(t,e,t.options);d.sortable=t,d.options=t.options,t[s]=d,J(i,d.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,e){var i={};return Ot.forEach(function(r){typeof r.eventProperties=="function"&&J(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return Ot.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function wn(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,d=n.newIndex,h=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,g=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[B],!!t){var y,O=t.options,F="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!et&&!Vt?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=a||e,y.from=l||e,y.item=r||e,y.clone=o,y.oldIndex=s,y.newIndex=d,y.oldDraggableIndex=h,y.newDraggableIndex=u,y.originalEvent=p,y.pullMode=g?g.lastPutMode:void 0;var L=G(G({},f),Ft.getEventProperties(i,t));for(var W in L)y[W]=L[W];e&&e.dispatchEvent(y),O[F]&&O[F].call(t,y)}}var xn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=pn(i,xn);Ft.pluginEvent.bind(v)(t,e,G({dragEl:c,parentEl:$,ghostEl:b,rootEl:C,nextEl:mt,lastDownEl:re,cloneEl:A,cloneHidden:ot,dragStarted:zt,putSortable:I,activeSortable:v.active,originalEvent:r,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at,hideGhostForTarget:Ui,unhideGhostForTarget:zi,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(l){M({sortable:e,name:l,originalEvent:r})}},o))};function M(n){wn(G({putSortable:I,cloneEl:A,targetEl:c,rootEl:C,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at},n))}var c,$,b,C,mt,re,A,ot,Tt,R,Ut,at,oe,I,Dt=!1,ae=!1,se=[],vt,X,Me,ke,ki,Ni,zt,Lt,jt,Yt=!1,le=!1,de,P,Ne=[],Ve=!1,ue=[],ce=typeof document<"u",he=$i,Vi=Vt||et?"cssFloat":"float",Cn=ce&&!Si&&!$i&&"draggable"in document.createElement("div"),Bi=function(){if(ce){if(et)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Ri=function(t,e){var i=m(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=St(t,0,e),a=St(t,1,e),l=o&&m(o),s=a&&m(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+D(o).width,h=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var u=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=r&&i[Vi]==="none"||a&&i[Vi]==="none"&&d+h>r)?"vertical":"horizontal"},An=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,l=i?e.left:e.top,s=i?e.right:e.bottom,d=i?e.width:e.height;return r===l||o===s||r+a/2===l+d/2},$n=function(t,e){var i;return se.some(function(r){var o=r[B].options.emptyInsertThreshold;if(!(!o||He(r))){var a=D(r),l=t>=a.left-o&&t<=a.right+o,s=e>=a.top-o&&e<=a.bottom+o;if(l&&s)return i=r}}),i},Fi=function(t){function e(o,a){return function(l,s,d,h){var u=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(o==null&&(a||u))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(l,s,d,h),a)(l,s,d,h);var p=(a?l:s).options.group.name;return o===!0||typeof o=="string"&&o===p||o.join&&o.indexOf(p)>-1}}var i={},r=t.group;(!r||ie(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Ui=function(){!Bi&&b&&m(b,"display","none")},zi=function(){!Bi&&b&&m(b,"display","")};ce&&!Si&&document.addEventListener("click",function(n){if(ae)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ae=!1,!1},!0);var yt=function(t){if(c){t=t.touches?t.touches[0]:t;var e=$n(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[B]._onDragOver(i)}}},Sn=function(t){c&&c.parentNode[B]._isOutsideThisEl(t.target)};function v(n,t){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=t=J({},t),n[B]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ri(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.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:v.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};Ft.initializePlugins(this,n,e);for(var i in e)!(i in t)&&(t[i]=e[i]);Fi(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Cn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(n,"pointerdown",this._onTapStart):(x(n,"mousedown",this._onTapStart),x(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(n,"dragover",this),x(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,bn())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Lt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,r=this.options,o=r.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,h=r.filter;if(Mn(i),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Bt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Z(s,r.draggable,i,!1),!(s&&s.animated)&&re!==s)){if(Tt=j(s),Ut=j(s,r.draggable),typeof h=="function"){if(h.call(this,t,s,this)){M({sortable:e,rootEl:d,name:"filter",targetEl:s,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(u){if(u=Z(d,u.trim(),i,!1),u)return M({sortable:e,rootEl:u,name:"filter",targetEl:s,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),h)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Z(d,r.handle,i,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,l=o.ownerDocument,s;if(i&&!c&&i.parentNode===o){var d=D(i);if(C=o,c=i,$=c.parentNode,mt=c.nextSibling,re=i,oe=a.group,v.dragged=c,vt={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},ki=vt.clientX-d.left,Ni=vt.clientY-d.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:t}),v.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ai&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(t,e),M({sortable:r,name:"choose",originalEvent:t}),V(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(h){Di(c,h.trim(),Be)}),x(l,"dragover",yt),x(l,"mousemove",yt),x(l,"touchmove",yt),x(l,"mouseup",r._onDrop),x(l,"touchend",r._onDrop),x(l,"touchcancel",r._onDrop),Ai&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||et))){if(v.eventCanceled){this._onDrop();return}x(l,"mouseup",r._disableDelayedDrag),x(l,"touchend",r._disableDelayedDrag),x(l,"touchcancel",r._disableDelayedDrag),x(l,"mousemove",r._delayedDragTouchMoveHandler),x(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_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(){c&&Be(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._disableDelayedDrag),E(t,"touchend",this._disableDelayedDrag),E(t,"touchcancel",this._disableDelayedDrag),E(t,"mousemove",this._delayedDragTouchMoveHandler),E(t,"touchmove",this._delayedDragTouchMoveHandler),E(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):e?x(document,"touchmove",this._onTouchMove):x(document,"mousemove",this._onTouchMove):(x(c,"dragend",this),x(C,"dragstart",this._onDragStart));try{document.selection?fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Dt=!1,C&&c){N("dragStarted",this,{evt:e}),this.nativeDraggable&&x(document,"dragover",Sn);var i=this.options;!t&&V(c,i.dragClass,!1),V(c,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),M({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,Ui();for(var t=document.elementFromPoint(X.clientX,X.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(X.clientX,X.clientY),t!==e);)e=t;if(c.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]){var i=void 0;if(i=e[B]._onDragOver({clientX:X.clientX,clientY:X.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);zi()}},_onTouchMove:function(t){if(vt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&$t(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,d=he&&P&&Hi(P),h=(o.clientX-vt.clientX+r.x)/(l||1)+(d?d[0]-Ne[0]:0)/(l||1),u=(o.clientY-vt.clientY+r.y)/(s||1)+(d?d[1]-Ne[1]:0)/(s||1);if(!v.active&&!Dt){if(i&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(b){a?(a.e+=h-(Me||0),a.f+=u-(ke||0)):a={a:1,b:0,c:0,d:1,e:h,f:u};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");m(b,"webkitTransform",p),m(b,"mozTransform",p),m(b,"msTransform",p),m(b,"transform",p),Me=h,ke=u,X=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:C,e=D(c,!0,he,!0,t),i=this.options;if(he){for(P=t;m(P,"position")==="static"&&m(P,"transform")==="none"&&P!==document;)P=P.parentNode;P!==document.body&&P!==document.documentElement?(P===document&&(P=q()),e.top+=P.scrollTop,e.left+=P.scrollLeft):P=q(),Ne=Hi(P)}b=c.cloneNode(!0),V(b,i.ghostClass,!1),V(b,i.fallbackClass,!0),V(b,i.dragClass,!0),m(b,"transition",""),m(b,"transform",""),m(b,"box-sizing","border-box"),m(b,"margin",0),m(b,"top",e.top),m(b,"left",e.left),m(b,"width",e.width),m(b,"height",e.height),m(b,"opacity","0.8"),m(b,"position",he?"absolute":"fixed"),m(b,"zIndex","100000"),m(b,"pointerEvents","none"),v.ghost=b,t.appendChild(b),m(b,"transform-origin",ki/parseInt(b.style.width)*100+"% "+Ni/parseInt(b.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,o=i.options;if(N("dragStart",this,{evt:t}),v.eventCanceled){this._onDrop();return}N("setupClone",this),v.eventCanceled||(A=Mi(c),A.removeAttribute("id"),A.draggable=!1,A.style["will-change"]="",this._hideClone(),V(A,this.options.chosenClass,!1),v.clone=A),i.cloneId=fe(function(){N("clone",i),!v.eventCanceled&&(i.options.removeCloneOnHide||C.insertBefore(A,c),i._hideClone(),M({sortable:i,name:"clone"}))}),!e&&V(c,o.dragClass,!0),e?(ae=!0,i._loopId=setInterval(i._emulateDragOver,50)):(E(document,"mouseup",i._onDrop),E(document,"touchend",i._onDrop),E(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,c)),x(document,"drop",i),m(c,"transform","translateZ(0)")),Dt=!0,i._dragStartId=fe(i._dragStarted.bind(i,e,t)),x(document,"selectstart",i),zt=!0,Bt&&m(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,o,a,l=this.options,s=l.group,d=v.active,h=oe===s,u=l.sort,p=I||d,g,f=this,y=!1;if(Ve)return;function O(Qt,Bn){N(Qt,f,G({evt:t,isOwner:h,axis:g?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:u,fromSortable:p,target:i,completed:L,onMove:function(Gi,Rn){return pe(C,e,c,r,Gi,D(Gi),t,Rn)},changed:W},Bn))}function F(){O("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function L(Qt){return O("dragOverCompleted",{insertion:Qt}),Qt&&(h?d._hideClone():d._showClone(f),f!==p&&(V(c,I?I.options.ghostClass:d.options.ghostClass,!1),V(c,l.ghostClass,!0)),I!==f&&f!==v.active?I=f:f===v.active&&I&&(I=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){O("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===c&&!c.animated||i===e&&!i.animated)&&(Lt=null),!l.dragoverBubble&&!t.rootEl&&i!==document&&(c.parentNode[B]._isOutsideThisEl(t.target),!Qt&&yt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function W(){R=j(c),at=j(c,l.draggable),M({sortable:f,name:"change",toEl:e,newIndex:R,newDraggableIndex:at,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Z(i,l.draggable,e,!0),O("dragOver"),v.eventCanceled)return y;if(c.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return L(!1);if(ae=!1,d&&!l.disabled&&(h?u||(a=$!==C):I===this||(this.lastPutMode=oe.checkPull(this,d,c,t))&&s.checkPut(this,d,c,t))){if(g=this._getDirection(t,i)==="vertical",r=D(c),O("dragOverValid"),v.eventCanceled)return y;if(a)return $=C,F(),this._hideClone(),O("revert"),v.eventCanceled||(mt?C.insertBefore(c,mt):C.appendChild(c)),L(!0);var U=He(e,l.draggable);if(!U||Ln(t,g,this)&&!U.animated){if(U===c)return L(!1);if(U&&e===t.target&&(i=U),i&&(o=D(i)),pe(C,e,c,r,i,o,t,!!i)!==!1)return F(),U&&U.nextSibling?e.insertBefore(c,U.nextSibling):e.appendChild(c),$=e,W(),L(!0)}else if(U&&Dn(t,g,this)){var bt=St(e,0,l,!0);if(bt===c)return L(!1);if(i=bt,o=D(i),pe(C,e,c,r,i,o,t,!1)!==!1)return F(),e.insertBefore(c,bt),$=e,W(),L(!0)}else if(i.parentNode===e){o=D(i);var K=0,Et,Gt=c.parentNode!==e,z=!An(c.animated&&c.toRect||r,i.animated&&i.toRect||o,g),Zt=g?"top":"left",st=Li(i,"top","top")||Li(c,"top","top"),qt=st?st.scrollTop:void 0;Lt!==i&&(Et=o[Zt],Yt=!1,le=!z&&l.invertSwap||Gt),K=Hn(t,i,o,g,z?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,le,Lt===i);var it;if(K!==0){var _t=j(c);do _t-=K,it=$.children[_t];while(it&&(m(it,"display")==="none"||it===b))}if(K===0||it===i)return L(!1);Lt=i,jt=K;var Kt=i.nextElementSibling,lt=!1;lt=K===1;var ve=pe(C,e,c,r,i,o,t,lt);if(ve!==!1)return(ve===1||ve===-1)&&(lt=ve===1),Ve=!0,setTimeout(Tn,30),F(),lt&&!Kt?e.appendChild(c):i.parentNode.insertBefore(c,lt?Kt:i),st&&Pi(st,0,qt-st.scrollTop),$=c.parentNode,Et!==void 0&&!le&&(de=Math.abs(Et-D(i)[Zt])),W(),L(!0)}if(e.contains(c))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",yt),E(document,"mousemove",yt),E(document,"touchmove",yt)},_offUpEvents:function(){var t=this.el.ownerDocument;E(t,"mouseup",this._onDrop),E(t,"touchend",this._onDrop),E(t,"pointerup",this._onDrop),E(t,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(R=j(c),at=j(c,i.draggable),N("drop",this,{evt:t}),$=c&&c.parentNode,R=j(c),at=j(c,i.draggable),v.eventCanceled){this._nulling();return}Dt=!1,le=!1,Yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Re(this.cloneId),Re(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bt&&m(document.body,"user-select",""),m(c,"transform",""),t&&(zt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(C===$||I&&I.lastPutMode!=="clone")&&A&&A.parentNode&&A.parentNode.removeChild(A),c&&(this.nativeDraggable&&E(c,"dragend",this),Be(c),c.style["will-change"]="",zt&&!Dt&&V(c,I?I.options.ghostClass:this.options.ghostClass,!1),V(c,this.options.chosenClass,!1),M({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==$?(R>=0&&(M({rootEl:$,name:"add",toEl:$,fromEl:C,originalEvent:t}),M({sortable:this,name:"remove",toEl:$,originalEvent:t}),M({rootEl:$,name:"sort",toEl:$,fromEl:C,originalEvent:t}),M({sortable:this,name:"sort",toEl:$,originalEvent:t})),I&&I.save()):R!==Tt&&R>=0&&(M({sortable:this,name:"update",toEl:$,originalEvent:t}),M({sortable:this,name:"sort",toEl:$,originalEvent:t})),v.active&&((R==null||R===-1)&&(R=Tt,at=Ut),M({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),C=c=$=b=mt=A=re=ot=vt=X=zt=R=at=Tt=Ut=Lt=jt=I=oe=v.dragged=v.ghost=v.clone=v.active=null,ue.forEach(function(t){t.checked=!0}),ue.length=Me=ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),On(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,o=i.length,a=this.options;r<o;r++)e=i[r],Z(e,a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Pn(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var l=r.children[a];Z(l,this.options.draggable,r,!1)&&(i[o]=l)},this),e&&this.captureAnimationState(),t.forEach(function(o){i[o]&&(r.removeChild(i[o]),r.appendChild(i[o]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Z(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=Ft.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&Fi(i)},destroy:function(){N("destroy",this);var t=this.el;t[B]=null,E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart),E(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),se.splice(se.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ot){if(N("hideClone",this),v.eventCanceled)return;m(A,"display","none"),this.options.removeCloneOnHide&&A.parentNode&&A.parentNode.removeChild(A),ot=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ot){if(N("showClone",this),v.eventCanceled)return;c.parentNode==C&&!this.options.group.revertClone?C.insertBefore(A,c):mt?C.insertBefore(A,mt):C.appendChild(A),this.options.group.revertClone&&this.animate(c,A),m(A,"display",""),ot=!1}}};function On(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function pe(n,t,e,i,r,o,a,l){var s,d=n[B],h=d.options.onMove,u;return window.CustomEvent&&!et&&!Vt?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=n,s.dragged=e,s.draggedRect=i,s.related=r||t,s.relatedRect=o||D(t),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),h&&(u=h.call(d,s,a)),u}function Be(n){n.draggable=!1}function Tn(){Ve=!1}function Dn(n,t,e){var i=D(St(e.el,0,e.options,!0)),r=10;return t?n.clientX<i.left-r||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-r||n.clientY<i.bottom&&n.clientX<i.left}function Ln(n,t,e){var i=D(He(e.el,e.options.draggable)),r=10;return t?n.clientX>i.right+r||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+r}function Hn(n,t,e,i,r,o,a,l){var s=i?n.clientY:n.clientX,d=i?e.height:e.width,h=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!a){if(l&&de<d*r){if(!Yt&&(jt===1?s>h+d*o/2:s<u-d*o/2)&&(Yt=!0),Yt)p=!0;else if(jt===1?s<h+de:s>u-de)return-jt}else if(s>h+d*(1-r)/2&&s<u-d*(1-r)/2)return In(t)}return p=p||a,p&&(s<h+d*o/2||s>u-d*o/2)?s>h+d/2?1:-1:0}function In(n){return j(c)<j(n)?1:-1}function Pn(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,e=t.length,i=0;e--;)i+=t.charCodeAt(e);return i.toString(36)}function Mn(n){ue.length=0;for(var t=n.getElementsByTagName("input"),e=t.length;e--;){var i=t[e];i.checked&&ue.push(i)}}function fe(n){return setTimeout(n,0)}function Re(n){return clearTimeout(n)}ce&&x(document,"touchmove",function(n){(v.active||Dt)&&n.cancelable&&n.preventDefault()}),v.utils={on:x,off:E,css:m,find:Di,is:function(t,e){return!!Z(t,e,t,!1)},extend:vn,throttle:Ii,closest:Z,toggleClass:V,clone:Mi,index:j,nextTick:fe,cancelNextTick:Re,detectDirection:Ri,getChild:St},v.get=function(n){return n[B]},v.mount=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(v.utils=G(G({},v.utils),i.utils)),Ft.mount(i)})},v.create=function(n,t){return new v(n,t)},v.version=fn;var T=[],Xt,Fe,Ue=!1,ze,je,ge,Wt;function kn(){function n(){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 n.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):i.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),ji(),me(),yn()},nulling:function(){ge=Fe=Xt=Ue=Wt=ze=je=null,T.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var r=this,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(o,a);if(ge=e,i||this.options.forceAutoScrollFallback||Vt||et||Bt){Ye(e,this.options,l,i);var s=rt(l,!0);Ue&&(!Wt||o!==ze||a!==je)&&(Wt&&ji(),Wt=setInterval(function(){var d=rt(document.elementFromPoint(o,a),!0);d!==s&&(s=d,me()),Ye(e,r.options,d,i)},10),ze=o,je=a)}else{if(!this.options.bubbleScroll||rt(l,!0)===q()){me();return}Ye(e,this.options,rt(l,!1),!1)}}},J(n,{pluginName:"scroll",initializeByDefault:!0})}function me(){T.forEach(function(n){clearInterval(n.pid)}),T=[]}function ji(){clearInterval(Wt)}var Ye=Ii(function(n,t,e,i){if(t.scroll){var r=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=q(),d=!1,h;Fe!==e&&(Fe=e,me(),Xt=t.scroll,h=t.scrollFn,Xt===!0&&(Xt=rt(e,!0)));var u=0,p=Xt;do{var g=p,f=D(g),y=f.top,O=f.bottom,F=f.left,L=f.right,W=f.width,U=f.height,bt=void 0,K=void 0,Et=g.scrollWidth,Gt=g.scrollHeight,z=m(g),Zt=g.scrollLeft,st=g.scrollTop;g===s?(bt=W<Et&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(bt=W<Et&&(z.overflowX==="auto"||z.overflowX==="scroll"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var qt=bt&&(Math.abs(L-r)<=a&&Zt+W<Et)-(Math.abs(F-r)<=a&&!!Zt),it=K&&(Math.abs(O-o)<=a&&st+U<Gt)-(Math.abs(y-o)<=a&&!!st);if(!T[u])for(var _t=0;_t<=u;_t++)T[_t]||(T[_t]={});(T[u].vx!=qt||T[u].vy!=it||T[u].el!==g)&&(T[u].el=g,T[u].vx=qt,T[u].vy=it,clearInterval(T[u].pid),(qt!=0||it!=0)&&(d=!0,T[u].pid=setInterval(function(){i&&this.layer===0&&v.active._onTouchMove(ge);var Kt=T[this.layer].vy?T[this.layer].vy*l:0,lt=T[this.layer].vx?T[this.layer].vx*l:0;typeof h=="function"&&h.call(v.dragged.parentNode[B],lt,Kt,n,ge,T[this.layer].el)!=="continue"||Pi(T[this.layer].el,lt,Kt)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==s&&(p=rt(p,!1)));Ue=d}},30),Yi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var d=i||o;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(h.clientX,h.clientY);s(),d&&!d.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function Xe(){}Xe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var r=St(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Yi},J(Xe,{pluginName:"revertOnSpill"});function We(){}We.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:Yi},J(We,{pluginName:"removeOnSpill"}),v.mount(new kn),v.mount(We,Xe);const Xi=`
61
61
  :host {
62
62
  display: block;
63
+ overflow-y: auto;
64
+ height: 100%;
63
65
  }
64
66
  .layer {
65
67
  display: inline-flex;
@@ -68,7 +70,7 @@
68
70
  ul[data-group] {
69
71
  padding-inline-start: 40px;
70
72
  }
71
- `,Di=`
73
+ `,Wi=`
72
74
  * {
73
75
  font-family: Roboto, sans-serif;
74
76
  }
@@ -150,6 +152,12 @@ button.icon-text:before {
150
152
  height: 18px;
151
153
  }
152
154
 
155
+ button.small {
156
+ height: 28px;
157
+ padding: 12.4px;
158
+ font-size: .75rem;
159
+ }
160
+
153
161
 
154
162
  input[type="range"] {
155
163
  -webkit-appearance: none;
@@ -272,23 +280,37 @@ input[type=checkbox]:checked:after {
272
280
 
273
281
 
274
282
  summary > .layer {
275
- height: 36px;
276
- border-bottom: 1px solid #00417000;
283
+ min-height: 36px;
277
284
  display: flex;
278
- align-items: center;
285
+ align-items: flex-start;
279
286
  padding-right: 12px;
287
+ padding-top: 0px;
288
+ }
289
+
290
+ ul[data-group] {
291
+ overflow-y: auto;
292
+ max-height: calc(var(--container-height) * 0.3);
280
293
  }
281
294
 
282
295
  [data-type=group] .title {
296
+ display: flex;
297
+ align-items: flex-start;
283
298
  font-style: italic;
299
+ line-height: 1.3rem;
300
+ }
301
+
302
+ [data-type] .title span {
303
+ margin-bottom: 8px;
284
304
  }
285
305
 
286
306
 
287
307
  [data-type] .title::before {
288
308
  width: 24px;
309
+ min-width: 24px;
289
310
  height: 24px;
290
311
  margin-right: 6px;
291
312
  margin-left: -1px;
313
+ transform: translateY(-2px);
292
314
  }
293
315
 
294
316
  [data-layerconfig] button {
@@ -460,13 +482,19 @@ li .layer {
460
482
  li .layer .left,
461
483
  li .layer .right {
462
484
  display: flex;
485
+ align-items: flex-start;
463
486
  }
464
- li .layer .left span {
487
+ li .layer .left .title {
465
488
  cursor: pointer;
466
489
  display: flex;
467
- align-items: center;
468
490
  margin-left: 6px;
469
491
  }
492
+ li .layer .left {
493
+ margin-top: 7px;
494
+ }
495
+ li .layer .right {
496
+ margin-top: 5px;
497
+ }
470
498
  .drag-handle span {
471
499
  display: none;
472
500
  }
@@ -488,30 +516,32 @@ li.sortable-drag {
488
516
  }
489
517
  li.sortable-ghost {
490
518
  }
491
- `;var wn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,S=(n,t,e,i)=>{for(var r=i>1?void 0:i?Cn(t,e):t,o=n.length-1,a;o>=0;o--)(a=n[o])&&(r=(i?a(t,e,r):a(r))||r);return i&&r&&wn(t,e,r),r};E.EOxLayerControl=class extends ft{constructor(){super(...arguments),this.for="eox-map",this.layerIdentifier="id",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,l,s)=>{r=[...r,...a.filter(c=>c.get(l)===s)];const d=a.filter(c=>c.getLayers);return d.length>0&&d.forEach(c=>o(c.getLayers().getArray(),l,s)),r};return o(t,e,i),r},this.findLayerById=(t,e)=>this.filterLayers(t,"id",e)[0],this.getLayerType=(t,e)=>{var i;return t.getLayers?"group":e.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>{var o;return(o=r.source_)==null?void 0:o.ol_uid}).includes(t.getSource?(i=t.getSource())==null?void 0:i.ol_uid:!1)?"draw":t.declutter_!==void 0?"vector":"raster"}}_updateControl(t){const e=i=>{i.forEach(r=>{r.get(this.layerIdentifier)||r.set(this.layerIdentifier,r.ol_uid),r.get(this.layerTitle)||r.set(this.layerTitle,`layer ${r.ol_uid}`),r.getLayers&&e(r.getLayers().getArray())})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(t){const e={detail:{layer:t},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",e))}changeOpacity(t,e){t.setOpacity(e)}changeStyleProperty(t,e,i){t.updateStyleVariables({...t.style_,[e]:i})}preFilterLayers(t){return[...t].filter(e=>e.get("layerControlHide")!==!0&&e.get("layerControlOptional")!==!0)}toggleLayerVisibility(t,e){if(t.setVisible(!t.getVisible()),t.get("layerControlExclusive")){let i=[];e?i=this.findLayerById(this.layerCollection.getArray(),e).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&o.get("layerControlExclusive")):i=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&r.get("layerControlExclusive")),i.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}render(){var o;const t=document.querySelector(this.for);if(t&&(this.olMap=(t==null?void 0:t.map)||t),!this.olMap)return _;const e=this.olMap.getLayers();this._updateControl(e),e.on("change:length",()=>{this._currentlySorting||this._updateControl(e)});const i=(a,l)=>{var s;return O`
492
- <details>
519
+ `;var Nn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,S=(n,t,e,i)=>{for(var r=i>1?void 0:i?Vn(t,e):t,o=n.length-1,a;o>=0;o--)(a=n[o])&&(r=(i?a(t,e,r):a(r))||r);return i&&r&&Nn(t,e,r),r};_.EOxLayerControl=class extends At{constructor(){super(...arguments),this.for="eox-map",this.layerIdentifier="id",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,l,s)=>{r=[...r,...a.filter(h=>h.get(l)===s)];const d=a.filter(h=>h.getLayers);return d.length>0&&d.forEach(h=>o(h.getLayers().getArray(),l,s)),r};return o(t,e,i),r},this.findLayerById=(t,e)=>this.filterLayers(t,"id",e)[0],this.getLayerType=(t,e)=>{var i;return t.getLayers?"group":e.getInteractions().getArray().filter(r=>r.freehand_!==void 0).map(r=>{var o;return(o=r.source_)==null?void 0:o.ol_uid}).includes(t.getSource?(i=t.getSource())==null?void 0:i.ol_uid:void 0)?"draw":t.declutter_!==void 0?"vector":"raster"}}_updateControl(t){const e=i=>{i.forEach(r=>{r.get(this.layerIdentifier)||r.set(this.layerIdentifier,r.ol_uid),r.get(this.layerTitle)||r.set(this.layerTitle,`layer ${r.ol_uid}`),r.getLayers&&e(r.getLayers().getArray())})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0),this.requestUpdate()}_emitLayerconfig(t){const e={detail:{layer:t},bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("layerconfig",e))}changeOpacity(t,e){t.setOpacity(e)}changeStyleProperty(t,e,i){t.updateStyleVariables({...t.style_,[e]:i})}preFilterLayers(t){return[...t].filter(e=>e.get("layerControlHide")!==!0&&e.get("layerControlOptional")!==!0)}toggleLayerVisibility(t,e){if(t.setVisible(!t.getVisible()),t.get("layerControlExclusive")){let i=[];e?i=this.findLayerById(this.layerCollection.getArray(),e).getLayers().getArray().filter(o=>o.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&o.get("layerControlExclusive")):i=this.layerCollection.getArray().filter(r=>r.get(this.layerIdentifier)!==t.get(this.layerIdentifier)&&r.get("layerControlExclusive")),i.forEach(r=>{r.setVisible(!1)})}this.requestUpdate()}firstUpdated(){this.resizeObserver=new ResizeObserver(t=>{for(let e of t)e.target===this&&(this.style.setProperty("--container-height",`${e.contentRect.height}px`),this.requestUpdate())}),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),super.disconnectedCallback()}render(){var o;const t=document.querySelector(this.for);if(t&&(t.map?this.olMap=t.map:this.olMap=t),!this.olMap)return w;const e=this.olMap.getLayers();this._updateControl(e),e.on("change:length",()=>{this._currentlySorting||this._updateControl(e)});const i=(a,l)=>{var s;return H`
520
+ <details open="${a.get("layerControlExpanded")?!0:w}">
493
521
  <summary>
494
522
  <div class="layer">
495
523
  <div class="left">
496
524
  <input
497
525
  type="${a.get("layerControlExclusive")?"radio":"checkbox"}"
498
- .checked="${me(a.getVisible())}"
526
+ .checked="${Le(a.getVisible())}"
499
527
  @click=${()=>{this.toggleLayerVisibility(a,l)}}
500
528
  />
501
529
  <span class="title"
502
- >${a.get(this.layerTitle)||`${a.get(this.layerIdentifier)}`}
530
+ ><span
531
+ >${a.get(this.layerTitle)||`${a.get(this.layerIdentifier)}`}</span
532
+ >
503
533
  </span>
504
534
  </div>
505
535
  <div class="right">
506
- ${this.sortBy==="layerOrder"&&!this.unstyled?O` <div
536
+ ${this.sortBy==="layerOrder"&&!this.unstyled?H` <div
507
537
  class="drag-handle ${a.get("layerControlDisable")?"disabled":""}"
508
538
  >
509
539
  <span>=</span>
510
- </div>`:_}
540
+ </div>`:w}
511
541
  </div>
512
542
  </div>
513
543
  </summary>
514
- ${this.layerConfig?O`
544
+ ${this.layerConfig?H`
515
545
  <eox-layerconfig
516
546
  .layerConfig="${this.layerConfig}"
517
547
  .layerControl="${this}"
@@ -519,22 +549,22 @@ li.sortable-ghost {
519
549
  .external=${this.externalLayerConfig}
520
550
  .unstyled="${this.unstyled}"
521
551
  ></eox-layerconfig>
522
- `:_}
523
- ${this.externalLayerConfig&&((s=a.style_)!=null&&s.color)?O`
524
- <button @click=${()=>this._emitLayerconfig(a)}>
525
- configure
526
- </button>
527
- `:_}
528
- ${a.getLayers?O`
529
- ${r(this.preFilterLayers([...a.getLayers().getArray()].reverse()),a.get(this.layerIdentifier))}
530
- `:_}
552
+ `:w}
553
+ ${this.externalLayerConfig&&((s=a.style_)!=null&&s.color)?H`
554
+ <button @click=${()=>this._emitLayerconfig(a)}>
555
+ configure
556
+ </button>
557
+ `:w}
558
+ ${a.getLayers?H`
559
+ ${r(this.preFilterLayers([...a.getLayers().getArray()].reverse()),a.get(this.layerIdentifier))}
560
+ `:w}
531
561
  </details>
532
- `},r=(a,l)=>O`
533
- <ul data-group="${l??_}">
534
- ${ge(a,s=>s.get(this.layerIdentifier),s=>{var d;return O`
562
+ `},r=(a,l)=>H`
563
+ <ul data-group="${l??w}">
564
+ ${De(a,s=>s.get(this.layerIdentifier),s=>{var d;return H`
535
565
  <li
536
566
  data-layer="${s.get(this.layerIdentifier)}"
537
- data-disabled="${s.get("layerControlDisable")||_}"
567
+ data-disabled="${s.get("layerControlDisable")||w}"
538
568
  data-type="${this.getLayerType(s,this.olMap)}"
539
569
  data-layerconfig="${((d=this.layerConfig)==null?void 0:d.length)>0}"
540
570
  >
@@ -542,28 +572,26 @@ li.sortable-ghost {
542
572
  </li>
543
573
  `})}
544
574
  </ul>
545
- `;return O`
575
+ `;return H`
546
576
  <style>
547
- ${Si}
548
- ${!this.unstyled&&Di}
577
+ ${Xi}
578
+ ${!this.unstyled&&Wi}
549
579
  </style>
550
580
  <div>
551
581
  <slot></slot>
552
- ${this.layerCollection.getArray().length>10?O`<input type="text" placeholder="Find layer" />`:_}
582
+ ${this.layerCollection.getArray().length>10?H`<input type="text" placeholder="Find layer" />`:w}
553
583
  <div class="layers">
554
584
  ${r(this.preFilterLayers(e.getArray()))}
555
585
  </div>
556
- ${ri(((o=this.optionalLayerArray)==null?void 0:o.length)>0,()=>O`
586
+ ${xi(((o=this.optionalLayerArray)==null?void 0:o.length)>0,()=>H`
557
587
  <label for="optional">Optional layers</label>
558
588
 
559
589
  <select name="optional" data-cy="optionalLayers">
560
590
  <option disabled selected value>
561
591
  -- select an optional layer to add --
562
592
  </option>
563
- ${this.optionalLayerArray.map(a=>O`
564
- <option
565
- value="${a.get(this.layerIdentifier)}"
566
- >
593
+ ${this.optionalLayerArray.map(a=>H`
594
+ <option value="${a.get(this.layerIdentifier)}">
567
595
  ${a.get(this.layerTitle)||`layer ${a.get(this.layerIdentifier)}`}
568
596
  </option>
569
597
  `)}
@@ -575,16 +603,16 @@ li.sortable-ghost {
575
603
  </button>
576
604
  `)}
577
605
  </div>
578
- `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;y.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>i?[...this.findLayerById(this.layerCollection.getArray(),i).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{r.toArray().reverse().forEach((a,l)=>{if(i){const d=this.findLayerById(this.layerCollection.getArray(),i).getLayers(),c=this.findLayerById(d.getArray(),a);d.remove(c),d.insertAt(l,c)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(l,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},S([gt()],E.EOxLayerControl.prototype,"olMap",2),S([gt()],E.EOxLayerControl.prototype,"layerCollection",2),S([gt()],E.EOxLayerControl.prototype,"layerArray",2),S([gt()],E.EOxLayerControl.prototype,"optionalLayerArray",2),S([M()],E.EOxLayerControl.prototype,"for",2),S([M()],E.EOxLayerControl.prototype,"layerIdentifier",2),S([M()],E.EOxLayerControl.prototype,"layerTitle",2),S([M()],E.EOxLayerControl.prototype,"sortBy",2),S([M({type:Array})],E.EOxLayerControl.prototype,"layerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"externalLayerConfig",2),S([M({type:Boolean})],E.EOxLayerControl.prototype,"unstyled",2),E.EOxLayerControl=S([Je("eox-layercontrol")],E.EOxLayerControl),E.EOxLayerConfig=class extends ft{constructor(){super(...arguments),this._configList={}}_handleInput(t,e){e==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(t.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,e,parseFloat(t.target.value))}_parseConfigs(t){if(!t)return;const e=t.style_;e&&e.color&&e.color[0]==="array"&&(this._configList=e.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",t=>{this._currentLayer=t.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return O`
606
+ `}updated(){this.sortBy=="layerOrder"&&this.renderRoot.querySelectorAll("ul").forEach(e=>{const i=e.dataset.group;v.create(e,{handle:this.unstyled?"summary":".drag-handle",dataIdAttr:"data-layer",filter:".drag-handle.disabled",swapThreshold:.5,animation:150,easing:"cubic-bezier(1, 0, 0, 1)",store:{get:()=>i?[...this.findLayerById(this.layerCollection.getArray(),i).getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse(),set:r=>{r.toArray().reverse().forEach((a,l)=>{if(i){const d=this.findLayerById(this.layerCollection.getArray(),i).getLayers(),h=this.findLayerById(d.getArray(),a);d.remove(h),d.insertAt(l,h)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(l,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},S([pt()],_.EOxLayerControl.prototype,"olMap",2),S([pt()],_.EOxLayerControl.prototype,"layerCollection",2),S([pt()],_.EOxLayerControl.prototype,"layerArray",2),S([pt()],_.EOxLayerControl.prototype,"optionalLayerArray",2),S([pt()],_.EOxLayerControl.prototype,"resizeObserver",2),S([k()],_.EOxLayerControl.prototype,"for",2),S([k()],_.EOxLayerControl.prototype,"layerIdentifier",2),S([k()],_.EOxLayerControl.prototype,"layerTitle",2),S([k()],_.EOxLayerControl.prototype,"sortBy",2),S([k({type:Array})],_.EOxLayerControl.prototype,"layerConfig",2),S([k({type:Boolean})],_.EOxLayerControl.prototype,"externalLayerConfig",2),S([k({type:Boolean})],_.EOxLayerControl.prototype,"unstyled",2),_.EOxLayerControl=S([vi("eox-layercontrol")],_.EOxLayerControl),_.EOxLayerConfig=class extends At{constructor(){super(...arguments),this._configList={}}_handleInput(t,e){e==="opacity"?this._layerControlElement.changeOpacity(this._currentLayer,parseFloat(t.target.value)):this._layerControlElement.changeStyleProperty(this._currentLayer,e,parseFloat(t.target.value))}_parseConfigs(t){if(!t)return;const e=t.style_;e&&e.color&&e.color[0]==="array"&&(this._configList=e.variables)}connectedCallback(){super.connectedCallback(),!this.layerConfig&&!this.layerControl?(this._layerControlElement=document.querySelector(this.for),this._layerControlElement&&(this.layerConfig=this._layerControlElement.layerConfig,this._layerControlElement.addEventListener("layerconfig",t=>{this._currentLayer=t.detail.layer,this._parseConfigs(this._currentLayer),this.requestUpdate()}))):(this._layerControlElement=this.layerControl,this._currentLayer=this.layer,this._parseConfigs(this._currentLayer))}render(){return H`
579
607
  <style>
580
- ${Si}
581
- ${!this.unstyled&&Di}
608
+ ${Xi}
609
+ ${!this.unstyled&&Wi}
582
610
  </style>
583
- ${ri(this._currentLayer,()=>O`
611
+ ${xi(this._currentLayer,()=>H`
584
612
  <div>
585
613
  <slot></slot>
586
- ${this.for?O`layer: ${this._currentLayer.get("name")}`:_}
587
- ${ge(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>O`
614
+ ${this.for?H`layer: ${this._currentLayer.get("name")}`:w}
615
+ ${De(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>H`
588
616
  <div class="slider-control">
589
617
  <div class="slider-property">${t}</div>
590
618
  <input
@@ -592,28 +620,28 @@ li.sortable-ghost {
592
620
  min="0"
593
621
  max="1"
594
622
  step="0.01"
595
- value="${me(this._currentLayer.getOpacity())}"
623
+ value="${Le(this._currentLayer.getOpacity())}"
596
624
  @input=${e=>this._handleInput(e,t)}
597
625
  />
598
626
  </div>
599
627
  `)}
600
- ${Object.keys(this._configList).length>0&&!this.external?O`
601
- <details open="${this.for?!0:_}">
628
+ ${Object.keys(this._configList).length>0&&!this.external?H`
629
+ <details open="${this.for?!0:w}">
602
630
  <summary>Layer config</summary>
603
631
  <ul>
604
- ${ge(Object.keys(this._configList),t=>t,t=>O` <li>
632
+ ${De(Object.keys(this._configList),t=>t,t=>H` <li>
605
633
  <div>${t}</div>
606
634
  <input
607
635
  type="range"
608
636
  min="${["red","green","blue"].includes(t)?1:2e3}"
609
637
  max="${["red","green","blue"].includes(t)?4:5e3}"
610
- value="${me(this._configList[t])}"
638
+ value="${Le(this._configList[t])}"
611
639
  @input=${e=>this._handleInput(e,t)}
612
640
  />
613
641
  </li>`)}
614
642
  </ul>
615
643
  </details>
616
- `:_}
644
+ `:w}
617
645
  </div>
618
646
  `)}
619
- `}},S([M()],E.EOxLayerConfig.prototype,"for",2),S([M({type:Array})],E.EOxLayerConfig.prototype,"layerConfig",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layerControl",2),S([M({type:Object,attribute:!1})],E.EOxLayerConfig.prototype,"layer",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"external",2),S([M({type:Boolean})],E.EOxLayerConfig.prototype,"unstyled",2),S([gt()],E.EOxLayerConfig.prototype,"_currentLayer",2),S([gt()],E.EOxLayerConfig.prototype,"_configList",2),E.EOxLayerConfig=S([Je("eox-layerconfig")],E.EOxLayerConfig),Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
647
+ `}},S([k()],_.EOxLayerConfig.prototype,"for",2),S([k({type:Array})],_.EOxLayerConfig.prototype,"layerConfig",2),S([k({type:Object,attribute:!1})],_.EOxLayerConfig.prototype,"layerControl",2),S([k({type:Object,attribute:!1})],_.EOxLayerConfig.prototype,"layer",2),S([k({type:Boolean})],_.EOxLayerConfig.prototype,"external",2),S([k({type:Boolean})],_.EOxLayerConfig.prototype,"unstyled",2),S([pt()],_.EOxLayerConfig.prototype,"_currentLayer",2),S([pt()],_.EOxLayerConfig.prototype,"_configList",2),_.EOxLayerConfig=S([vi("eox-layerconfig")],_.EOxLayerConfig),Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});