@eox/layercontrol 0.6.7 → 0.6.9

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.
@@ -2,29 +2,29 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
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;/**
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 qi=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 Ki=n=>new qi(typeof n=="string"?n:n+"",void 0,Ge),Qi=(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 Ki(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
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 _t=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),d=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]=d.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){}};_t[we]=!0,_t.elementProperties=new Map,_t.elementStyles=[],_t.shadowRootOptions={mode:"open"},Qe==null||Qe({ReactiveElement:_t}),((be=Jt.reactiveElementVersions)!==null&&be!==void 0?be:Jt.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var be;const Jt=window,Ke=Jt.trustedTypes,Ji=Ke?Ke.emptyScript:"",Qe=Jt.reactiveElementPolyfillSupport,_e={toAttribute(n,t){switch(t){case Boolean:n=n?Ji: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),Ee={attribute:!0,type:String,converter:_e,reflect:!1,hasChanged:Je},we="finalized";let Et=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=Ee){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)||Ee}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 Qi(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=Ee){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:_e).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),d=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:_e;this._$El=o,this[o]=d.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){}};Et[we]=!0,Et.elementProperties=new Map,Et.elementStyles=[],Et.shadowRootOptions={mode:"open"},Qe==null||Qe({ReactiveElement:Et}),((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 xe;const te=window,wt=te.trustedTypes,ti=wt?wt.createPolicy("lit-html",{createHTML:n=>n}):void 0,ee="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Ce="?"+Q,Ji=`<${Ce}>`,dt=document,Lt=()=>dt.createComment(""),Ht=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=`[
13
+ */var xe;const te=window,wt=te.trustedTypes,ti=wt?wt.createPolicy("lit-html",{createHTML:n=>n}):void 0,ee="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Ce="?"+Q,tn=`<${Ce}>`,dt=document,Lt=()=>dt.createComment(""),Ht=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
14
  \f\r]`,It=/<(?:(!--|\/[^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,li=/^(?:script|style|textarea|title)$/i,tn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),H=tn(1),Y=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),si=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=It;for(let l=0;l<e;l++){const s=n[l];let c,u,p=-1,g=0;for(;g<s.length&&(a.lastIndex=g,u=a.exec(s),u!==null);)g=a.lastIndex,a===It?u[1]==="!--"?a=ni:u[1]!==void 0?a=ri:u[2]!==void 0?(li.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=ut):u[3]!==void 0&&(a=ut):a===ut?u[0]===">"?(a=r??It,p=-1):u[1]===void 0?p=-2:(p=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?ut:u[3]==='"'?ai:oi):a===ai||a===oi?a=ut:a===ni||a===ri?a=It:(a=ut,r=void 0);const f=a===ut&&n[l+1].startsWith("/>")?" ":"";o+=a===It?s+Ji:p>=0?(i.push(c),s.slice(0,p)+ee+s.slice(p)+Q+f):s+Q+(p===-2?(i.push(void 0),l):f)}const d=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(d):d,i]};class Mt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const d=t.length-1,l=this.parts,[s,c]=di(t,e);if(this.el=Mt.createElement(s,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&&l.length<d;){if(r.nodeType===1){if(r.hasAttributes()){const u=[];for(const p of r.getAttributeNames())if(p.endsWith(ee)||p.startsWith(Q)){const g=c[a++];if(u.push(p),g!==void 0){const f=r.getAttribute(g.toLowerCase()+ee).split(Q),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:y[2],strings:f,ctor:y[1]==="."?ci:y[1]==="?"?hi:y[1]==="@"?pi:Pt})}else l.push({type:6,index:o})}for(const p of u)r.removeAttribute(p)}if(li.test(r.tagName)){const u=r.textContent.split(Q),p=u.length-1;if(p>0){r.textContent=wt?wt.emptyScript:"";for(let g=0;g<p;g++)r.append(u[g],Lt()),ct.nextNode(),l.push({type:2,index:++o});r.append(u[p],Lt())}}}else if(r.nodeType===8)if(r.data===Ce)l.push({type:2,index:o});else{let u=-1;for(;(u=r.data.indexOf(Q,u+1))!==-1;)l.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,d;if(t===Y)return t;let l=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const s=Ht(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==s&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),s===void 0?l=void 0:(l=new s(n),l._$AT(n,e,i)),i!==void 0?((a=(d=e)._$Co)!==null&&a!==void 0?a:d._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=ht(n,l._$AS(n,t.values),l,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(),d=0,l=0,s=r[0];for(;s!==void 0;){if(d===s.index){let c;s.type===2?c=new xt(a,a.nextSibling,this,t):s.type===1?c=new s.ctor(a,s.name,s.strings,this,t):s.type===6&&(c=new fi(a,this,t)),this._$AV.push(c),s=r[++l]}d!==(s==null?void 0:s.index)&&(a=ct.nextNode(),d++)}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 xt{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=ht(this,t,e),Ht(t)?t===_||t==null||t===""?(this._$AH!==_&&this._$AR(),this._$AH=_):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!==_&&Ht(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),d=a.u(this.options);a.v(i),this.$(d),this._$AH=a}}_$AC(t){let e=si.get(t.strings);return e===void 0&&si.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 xt(this.k(Lt()),this.k(Lt()),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 Pt{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=ht(this,t,e,0),a=!Ht(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const d=t;let l,s;for(t=o[0],l=0;l<o.length-1;l++)s=ht(this,d[i+l],e,l),s===Y&&(s=this._$AH[l]),a||(a=!Ht(s)||s!==this._$AH[l]),s===_?t=_:t!==_&&(t+=(s??"")+o[l+1]),this._$AH[l]=s}a&&!r&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ci extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const en=wt?wt.emptyScript:"";class hi extends Pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,en):this.element.removeAttribute(this.name)}}class pi extends Pt{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:_)===Y)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 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:xt,V:Pt,H:hi,N:pi,U:ci,F:fi},gi=te.litHtmlPolyfillSupport;gi==null||gi(Mt,xt),((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 d=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new xt(t.insertBefore(Lt(),d),d,void 0,e??{})}return a._$AI(n),a};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),oi=/'/g,ai=/"/g,si=/^(?:script|style|textarea|title)$/i,en=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),L=en(1),Y=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),li=new WeakMap,ct=dt.createTreeWalker(dt,129,null,!1);function di(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ti!==void 0?ti.createHTML(t):t}const ui=(n,t)=>{const e=n.length-1,i=[];let r,o=t===2?"<svg>":"",a=It;for(let d=0;d<e;d++){const s=n[d];let l,u,c=-1,p=0;for(;p<s.length&&(a.lastIndex=p,u=a.exec(s),u!==null);)p=a.lastIndex,a===It?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??It,c=-1):u[1]===void 0?c=-2:(c=a.lastIndex-u[2].length,l=u[1],a=u[3]===void 0?ut:u[3]==='"'?ai:oi):a===ai||a===oi?a=ut:a===ni||a===ri?a=It:(a=ut,r=void 0);const f=a===ut&&n[d+1].startsWith("/>")?" ":"";o+=a===It?s+tn:c>=0?(i.push(l),s.slice(0,c)+ee+s.slice(c)+Q+f):s+Q+(c===-2?(i.push(void 0),d):f)}return[di(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class Mt{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,a=0;const d=t.length-1,s=this.parts,[l,u]=ui(t,e);if(this.el=Mt.createElement(l,i),ct.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(r=ct.nextNode())!==null&&s.length<d;){if(r.nodeType===1){if(r.hasAttributes()){const c=[];for(const p of r.getAttributeNames())if(p.endsWith(ee)||p.startsWith(Q)){const f=u[a++];if(c.push(p),f!==void 0){const g=r.getAttribute(f.toLowerCase()+ee).split(Q),y=/([.?@])?(.*)/.exec(f);s.push({type:1,index:o,name:y[2],strings:g,ctor:y[1]==="."?hi:y[1]==="?"?pi:y[1]==="@"?fi:Pt})}else s.push({type:6,index:o})}for(const p of c)r.removeAttribute(p)}if(si.test(r.tagName)){const c=r.textContent.split(Q),p=c.length-1;if(p>0){r.textContent=wt?wt.emptyScript:"";for(let f=0;f<p;f++)r.append(c[f],Lt()),ct.nextNode(),s.push({type:2,index:++o});r.append(c[p],Lt())}}}else if(r.nodeType===8)if(r.data===Ce)s.push({type:2,index:o});else{let c=-1;for(;(c=r.data.indexOf(Q,c+1))!==-1;)s.push({type:7,index:o}),c+=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,d;if(t===Y)return t;let s=i!==void 0?(r=e._$Co)===null||r===void 0?void 0:r[i]:e._$Cl;const l=Ht(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((o=s==null?void 0:s._$AO)===null||o===void 0||o.call(s,!1),l===void 0?s=void 0:(s=new l(n),s._$AT(n,e,i)),i!==void 0?((a=(d=e)._$Co)!==null&&a!==void 0?a:d._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=ht(n,s._$AS(n,t.values),s,i)),t}class ci{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(),d=0,s=0,l=r[0];for(;l!==void 0;){if(d===l.index){let u;l.type===2?u=new xt(a,a.nextSibling,this,t):l.type===1?u=new l.ctor(a,l.name,l.strings,this,t):l.type===6&&(u=new gi(a,this,t)),this._$AV.push(u),l=r[++s]}d!==(l==null?void 0:l.index)&&(a=ct.nextNode(),d++)}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 xt{constructor(t,e,i,r){var o;this.type=2,this._$AH=E,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),Ht(t)?t===E||t==null||t===""?(this._$AH!==E&&this._$AR(),this._$AH=E):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!==E&&Ht(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(di(r.h,r.h[0]),this.options)),r);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const a=new ci(o,this),d=a.u(this.options);a.v(i),this.$(d),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 xt(this.k(Lt()),this.k(Lt()),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 Pt{constructor(t,e,i,r,o){this.type=1,this._$AH=E,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=E}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=!Ht(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const d=t;let s,l;for(t=o[0],s=0;s<o.length-1;s++)l=ht(this,d[i+s],e,s),l===Y&&(l=this._$AH[s]),a||(a=!Ht(l)||l!==this._$AH[s]),l===E?t=E:t!==E&&(t+=(l??"")+o[s+1]),this._$AH[s]=l}a&&!r&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class hi extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const nn=wt?wt.emptyScript:"";class pi extends Pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,nn):this.element.removeAttribute(this.name)}}class fi extends Pt{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:E)===Y)return;const r=this._$AH,o=t===E&&r!==E||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==E&&(r===E||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 gi{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 rn={O:ee,P:Q,A:Ce,C:1,M:ui,L:ci,R:ii,D:ht,I:xt,V:Pt,H:pi,N:fi,U:hi,F:gi},mi=te.litHtmlPolyfillSupport;mi==null||mi(Mt,xt),((xe=te.litHtmlVersions)!==null&&xe!==void 0?xe:te.litHtmlVersions=[]).push("2.8.0");const on=(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 d=(r=e==null?void 0:e.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=a=new xt(t.insertBefore(Lt(),d),d,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 $e,Se;let Ct=class extends _t{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}};Ct.finalized=!0,Ct._$litElement$=!0,($e=globalThis.litElementHydrateSupport)===null||$e===void 0||$e.call(globalThis,{LitElement:Ct});const mi=globalThis.litElementPolyfillSupport;mi==null||mi({LitElement:Ct}),((Se=globalThis.litElementVersions)!==null&&Se!==void 0?Se:globalThis.litElementVersions=[]).push("3.3.2");/**
19
+ */var $e,Se;let Ct=class extends Et{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=on(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}};Ct.finalized=!0,Ct._$litElement$=!0,($e=globalThis.litElementHydrateSupport)===null||$e===void 0||$e.call(globalThis,{LitElement:Ct});const vi=globalThis.litElementPolyfillSupport;vi==null||vi({LitElement:Ct}),((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 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);/**
23
+ */const yi=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 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)}/**
27
+ */const an=(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)}},sn=(n,t,e)=>{t.constructor.createProperty(e,n)};function k(n){return(t,e)=>e!==void 0?sn(n,t,e):an(n,t)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
@@ -36,28 +36,28 @@
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const pt={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)}}/**
39
+ */const pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},bi=n=>(...t)=>({_$litDirective$:n,values:t});class _i{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:ln}=nn,sn=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),d=r.insertBefore(Ei(),o);e=new ln(a,d,n,n.options)}else{const a=e._$AB.nextSibling,d=e._$AM,l=d!==n;if(l){let s;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(s=n._$AU)!==d._$AU&&e._$AP(s)}if(a!==o||l){let s=e._$AA;for(;s!==a;){const c=s.nextSibling;r.insertBefore(s,o),s=c}}}return e},ft=(n,t,e=n)=>(n._$AI(t,e),n),dn={},_i=(n,t=dn)=>n._$AH=t,un=n=>n._$AH,De=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:ln}=rn,dn=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),d=r.insertBefore(Ei(),o);e=new ln(a,d,n,n.options)}else{const a=e._$AB.nextSibling,d=e._$AM,s=d!==n;if(s){let l;(i=e._$AQ)===null||i===void 0||i.call(e,n),e._$AM=n,e._$AP!==void 0&&(l=n._$AU)!==d._$AU&&e._$AP(l)}if(a!==o||s){let l=e._$AA;for(;l!==a;){const u=l.nextSibling;r.insertBefore(l,o),l=u}}}return e},ft=(n,t,e=n)=>(n._$AI(t,e),n),un={},wi=(n,t=un)=>n._$AH=t,cn=n=>n._$AH,De=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 wi=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},Oe=yi(class extends bi{constructor(n){if(super(n),n.type!==pt.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 d of n)r[a]=i?i(d,a):a,o[a]=e(d,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:d}=this.dt(t,e,i);if(!Array.isArray(o))return this.ht=d,a;const l=(r=this.ht)!==null&&r!==void 0?r:this.ht=[],s=[];let c,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(l[p]===d[f])s[f]=ft(o[p],a[f]),p++,f++;else if(l[g]===d[y])s[y]=ft(o[g],a[y]),g--,y--;else if(l[p]===d[y])s[y]=ft(o[p],a[y]),Nt(n,s[y+1],o[p]),p++,y--;else if(l[g]===d[f])s[f]=ft(o[g],a[f]),Nt(n,o[p],o[g]),g--,f++;else if(c===void 0&&(c=wi(d,f,y),u=wi(l,p,g)),c.has(l[p]))if(c.has(l[g])){const S=u.get(d[f]),F=S!==void 0?o[S]:null;if(F===null){const L=Nt(n,o[p]);ft(L,a[f]),s[f]=L}else s[f]=ft(F,a[f]),Nt(n,o[p],F),o[S]=null;f++}else De(o[g]),g--;else De(o[p]),p++;for(;f<=y;){const S=Nt(n,s[y+1]);ft(S,a[f]),s[f++]=S}for(;p<=g;){const S=o[p++];S!==null&&De(S)}return this.ht=d,_i(n,s),Y}});/**
47
+ */const xi=(n,t,e)=>{const i=new Map;for(let r=t;r<=e;r++)i.set(n[r],r);return i},Oe=bi(class extends _i{constructor(n){if(super(n),n.type!==pt.CHILD)throw Error("repeat() can only be used in text expressions")}ct(n,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);const r=[],o=[];let a=0;for(const d of n)r[a]=i?i(d,a):a,o[a]=e(d,a),a++;return{values:o,keys:r}}render(n,t,e){return this.ct(n,t,e).values}update(n,[t,e,i]){var r;const o=cn(n),{values:a,keys:d}=this.ct(t,e,i);if(!Array.isArray(o))return this.ut=d,a;const s=(r=this.ut)!==null&&r!==void 0?r:this.ut=[],l=[];let u,c,p=0,f=o.length-1,g=0,y=a.length-1;for(;p<=f&&g<=y;)if(o[p]===null)p++;else if(o[f]===null)f--;else if(s[p]===d[g])l[g]=ft(o[p],a[g]),p++,g++;else if(s[f]===d[y])l[y]=ft(o[f],a[y]),f--,y--;else if(s[p]===d[y])l[y]=ft(o[p],a[y]),Nt(n,l[y+1],o[p]),p++,y--;else if(s[f]===d[g])l[g]=ft(o[f],a[g]),Nt(n,o[p],o[f]),f--,g++;else if(u===void 0&&(u=xi(d,g,y),c=xi(s,p,f)),u.has(s[p]))if(u.has(s[f])){const S=c.get(d[g]),F=S!==void 0?o[S]:null;if(F===null){const H=Nt(n,o[p]);ft(H,a[g]),l[g]=H}else l[g]=ft(F,a[g]),Nt(n,o[p],F),o[S]=null;g++}else De(o[f]),f--;else De(o[p]),p++;for(;g<=y;){const S=Nt(n,l[y+1]);ft(S,a[g]),l[g++]=S}for(;p<=f;){const S=o[p++];S!==null&&De(S)}return this.ut=d,wi(n,l),Y}});/**
48
48
  * @license
49
49
  * Copyright 2020 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const Le=yi(class extends bi{constructor(n){if(super(n),n.type!==pt.PROPERTY&&n.type!==pt.ATTRIBUTE&&n.type!==pt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!sn(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===Y||t===_)return t;const e=n.element,i=n.name;if(n.type===pt.PROPERTY){if(t===e[i])return Y}else if(n.type===pt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return Y}else if(n.type===pt.ATTRIBUTE&&e.getAttribute(i)===t+"")return Y;return _i(n),t}});/**
51
+ */const Le=bi(class extends _i{constructor(n){if(super(n),n.type!==pt.PROPERTY&&n.type!==pt.ATTRIBUTE&&n.type!==pt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dn(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[t]){if(t===Y||t===E)return t;const e=n.element,i=n.name;if(n.type===pt.PROPERTY){if(t===e[i])return Y}else if(n.type===pt.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(i))return Y}else if(n.type===pt.ATTRIBUTE&&e.getAttribute(i)===t+"")return Y;return wi(n),t}});/**
52
52
  * @license
53
53
  * Copyright 2021 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */function xi(n,t,e){return n?t():e==null?void 0:e()}/**!
55
+ */function Ci(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 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),Ti={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!et&&Ti)}function E(n,t,e){n.removeEventListener(t,e,!et&&Ti)}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 Di=/\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(Di," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Di," ")}}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 At(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 Oi(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 O(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,d,l,s,c,u;if(n!==window&&n.parentNode&&n!==q()?(o=n.getBoundingClientRect(),a=o.top,d=o.left,l=o.bottom,s=o.right,c=o.height,u=o.width):(a=0,d=0,l=window.innerHeight,s=window.innerWidth,c=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")),d-=p.left+parseInt(m(r,"border-left-width")),l=a+o.height,s=d+o.width;break}while(r=r.parentNode);if(i&&n!==window){var g=At(r||n),f=g&&g.a,y=g&&g.d;g&&(a/=y,d/=f,u/=f,c/=y,l=a+c,s=d+u)}return{top:a,left:d,bottom:l,right:s,width:u,height:c}}}function Li(n,t,e){for(var i=rt(n,!0),r=O(n)[t];i;){var o=O(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 $t(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=At(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 Mi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function Pi(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:O(r)});var o=G({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=At(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(d){var l=0,s=d.target,c=s.fromRect,u=O(s),p=s.prevFromRect,g=s.prevToRect,f=d.rect,y=At(s,!0);y&&(u.top-=y.f,u.left-=y.e),s.toRect=u,s.thisAnimationDuration&&Ie(p,u)&&!Ie(c,u)&&(f.top-u.top)/(f.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(l=_n(f,p,g,r.options)),Ie(u,c)||(s.prevFromRect=c,s.prevToRect=u,l||(l=r.options.animation),r.animate(s,f,u,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(s.animationResetTimer),s.animationResetTimer=setTimeout(function(){s.animationTime=0,s.prevFromRect=null,s.fromRect=null,s.prevToRect=null,s.thisAnimationDuration=null},l),s.thisAnimationDuration=l)}),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 d=At(this.el),l=d&&d.a,s=d&&d.d,c=(r.left-o.left)/(l||1),u=(r.top-o.top)/(s||1);i.animatingX=!!c,i.animatingY=!!u,m(i,"transform","translate3d("+c+"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 St=[],Me={initializeByDefault:!0},Ft={mount:function(t){for(var e in Me)Me.hasOwnProperty(e)&&!(e in t)&&(t[e]=Me[e]);St.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),St.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";St.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){St.forEach(function(d){var l=d.pluginName;if(!(!t.options[l]&&!d.initializeByDefault)){var s=new d(t,e,t.options);s.sortable=t,s.options=t.options,t[l]=s,J(i,s.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 St.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 St.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,d=n.fromEl,l=n.oldIndex,s=n.newIndex,c=n.oldDraggableIndex,u=n.newDraggableIndex,p=n.originalEvent,g=n.putSortable,f=n.extraEventProperties;if(t=t||e&&e[B],!!t){var y,S=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=d||e,y.item=r||e,y.clone=o,y.oldIndex=l,y.newIndex=s,y.oldDraggableIndex=c,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),S[F]&&S[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:h,parentEl:$,ghostEl:b,rootEl:C,nextEl:gt,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(d){P({sortable:e,name:d,originalEvent:r})}},o))};function P(n){wn(G({putSortable:I,cloneEl:A,targetEl:h,rootEl:C,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at},n))}var h,$,b,C,gt,re,A,ot,Tt,R,Ut,at,oe,I,Dt=!1,ae=!1,le=[],mt,X,Pe,ke,ki,Ni,zt,Ot,jt,Yt=!1,se=!1,de,M,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=$t(t,0,e),a=$t(t,1,e),d=o&&m(o),l=a&&m(a),s=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+O(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(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&&d.float&&d.float!=="none"){var u=d.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return o&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||s>=r&&i[Vi]==="none"||a&&i[Vi]==="none"&&s+c>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,d=i?e.left:e.top,l=i?e.right:e.bottom,s=i?e.width:e.height;return r===d||o===l||r+a/2===d+s/2},$n=function(t,e){var i;return le.some(function(r){var o=r[B].options.emptyInsertThreshold;if(!(!o||He(r))){var a=O(r),d=t>=a.left-o&&t<=a.right+o,l=e>=a.top-o&&e<=a.bottom+o;if(d&&l)return i=r}}),i},Fi=function(t){function e(o,a){return function(d,l,s,c){var u=d.options.group.name&&l.options.group.name&&d.options.group.name===l.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(d,l,s,c),a)(d,l,s,c);var p=(a?d:l).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 vt=function(t){if(h){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){h&&h.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,d){a.setData("Text",d.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?w(n,"pointerdown",this._onTapStart):(w(n,"mousedown",this._onTapStart),w(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(n,"dragover",this),w(n,"dragenter",this)),le.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&&(Ot=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,d=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(d||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=r.filter;if(Pn(i),!h&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!s.isContentEditable&&!(!this.nativeDraggable&&Bt&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Z(l,r.draggable,i,!1),!(l&&l.animated)&&re!==l)){if(Tt=j(l),Ut=j(l,r.draggable),typeof c=="function"){if(c.call(this,t,l,this)){P({sortable:e,rootEl:s,name:"filter",targetEl:l,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=Z(s,u.trim(),i,!1),u)return P({sortable:e,rootEl:u,name:"filter",targetEl:l,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Z(s,r.handle,i,!1)||this._prepareDragStart(t,d,l)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,d=o.ownerDocument,l;if(i&&!h&&i.parentNode===o){var s=O(i);if(C=o,h=i,$=h.parentNode,gt=h.nextSibling,re=i,oe=a.group,v.dragged=h,mt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},ki=mt.clientX-s.left,Ni=mt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",l=function(){if(N("delayEnded",r,{evt:t}),v.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ai&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),P({sortable:r,name:"choose",originalEvent:t}),V(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){Oi(h,c.trim(),Be)}),w(d,"dragover",vt),w(d,"mousemove",vt),w(d,"touchmove",vt),w(d,"mouseup",r._onDrop),w(d,"touchend",r._onDrop),w(d,"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||!(Vt||et))){if(v.eventCanceled){this._onDrop();return}w(d,"mouseup",r._disableDelayedDrag),w(d,"touchend",r._disableDelayedDrag),w(d,"touchcancel",r._disableDelayedDrag),w(d,"mousemove",r._delayedDragTouchMoveHandler),w(d,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&w(d,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){h&&Be(h),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?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(h,"dragend",this),w(C,"dragstart",this._onDragStart));try{document.selection?fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Dt=!1,C&&h){N("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Sn);var i=this.options;!t&&V(h,i.dragClass,!1),V(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),P({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(h.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(mt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&At(b,!0),d=b&&a&&a.a,l=b&&a&&a.d,s=he&&M&&Hi(M),c=(o.clientX-mt.clientX+r.x)/(d||1)+(s?s[0]-Ne[0]:0)/(d||1),u=(o.clientY-mt.clientY+r.y)/(l||1)+(s?s[1]-Ne[1]:0)/(l||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+=c-(Pe||0),a.f+=u-(ke||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,")");m(b,"webkitTransform",p),m(b,"mozTransform",p),m(b,"msTransform",p),m(b,"transform",p),Pe=c,ke=u,X=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:C,e=O(h,!0,he,!0,t),i=this.options;if(he){for(M=t;m(M,"position")==="static"&&m(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=q(),Ne=Hi(M)}b=h.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=Pi(h),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,h),i._hideClone(),P({sortable:i,name:"clone"}))}),!e&&V(h,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,h)),w(document,"drop",i),m(h,"transform","translateZ(0)")),Dt=!0,i._dragStartId=fe(i._dragStarted.bind(i,e,t)),w(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,d=this.options,l=d.group,s=v.active,c=oe===l,u=d.sort,p=I||s,g,f=this,y=!1;if(Ve)return;function S(Qt,Bn){N(Qt,f,G({evt:t,isOwner:c,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,h,r,Gi,O(Gi),t,Rn)},changed:W},Bn))}function F(){S("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function L(Qt){return S("dragOverCompleted",{insertion:Qt}),Qt&&(c?s._hideClone():s._showClone(f),f!==p&&(V(h,I?I.options.ghostClass:s.options.ghostClass,!1),V(h,d.ghostClass,!0)),I!==f&&f!==v.active?I=f:f===v.active&&I&&(I=null),p===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){S("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Ot=null),!d.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[B]._isOutsideThisEl(t.target),!Qt&&vt(t)),!d.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function W(){R=j(h),at=j(h,d.draggable),P({sortable:f,name:"change",toEl:e,newIndex:R,newDraggableIndex:at,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Z(i,d.draggable,e,!0),S("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return L(!1);if(ae=!1,s&&!d.disabled&&(c?u||(a=$!==C):I===this||(this.lastPutMode=oe.checkPull(this,s,h,t))&&l.checkPut(this,s,h,t))){if(g=this._getDirection(t,i)==="vertical",r=O(h),S("dragOverValid"),v.eventCanceled)return y;if(a)return $=C,F(),this._hideClone(),S("revert"),v.eventCanceled||(gt?C.insertBefore(h,gt):C.appendChild(h)),L(!0);var U=He(e,d.draggable);if(!U||Ln(t,g,this)&&!U.animated){if(U===h)return L(!1);if(U&&e===t.target&&(i=U),i&&(o=O(i)),pe(C,e,h,r,i,o,t,!!i)!==!1)return F(),U&&U.nextSibling?e.insertBefore(h,U.nextSibling):e.appendChild(h),$=e,W(),L(!0)}else if(U&&On(t,g,this)){var yt=$t(e,0,d,!0);if(yt===h)return L(!1);if(i=yt,o=O(i),pe(C,e,h,r,i,o,t,!1)!==!1)return F(),e.insertBefore(h,yt),$=e,W(),L(!0)}else if(i.parentNode===e){o=O(i);var K=0,bt,Gt=h.parentNode!==e,z=!An(h.animated&&h.toRect||r,i.animated&&i.toRect||o,g),Zt=g?"top":"left",lt=Li(i,"top","top")||Li(h,"top","top"),qt=lt?lt.scrollTop:void 0;Ot!==i&&(bt=o[Zt],Yt=!1,se=!z&&d.invertSwap||Gt),K=Hn(t,i,o,g,z?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,se,Ot===i);var it;if(K!==0){var Et=j(h);do Et-=K,it=$.children[Et];while(it&&(m(it,"display")==="none"||it===b))}if(K===0||it===i)return L(!1);Ot=i,jt=K;var Kt=i.nextElementSibling,st=!1;st=K===1;var ve=pe(C,e,h,r,i,o,t,st);if(ve!==!1)return(ve===1||ve===-1)&&(st=ve===1),Ve=!0,setTimeout(Dn,30),F(),st&&!Kt?e.appendChild(h):i.parentNode.insertBefore(h,st?Kt:i),lt&&Mi(lt,0,qt-lt.scrollTop),$=h.parentNode,bt!==void 0&&!se&&(de=Math.abs(bt-O(i)[Zt])),W(),L(!0)}if(e.contains(h))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",vt),E(document,"mousemove",vt),E(document,"touchmove",vt)},_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(h),at=j(h,i.draggable),N("drop",this,{evt:t}),$=h&&h.parentNode,R=j(h),at=j(h,i.draggable),v.eventCanceled){this._nulling();return}Dt=!1,se=!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(h,"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),h&&(this.nativeDraggable&&E(h,"dragend",this),Be(h),h.style["will-change"]="",zt&&!Dt&&V(h,I?I.options.ghostClass:this.options.ghostClass,!1),V(h,this.options.chosenClass,!1),P({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==$?(R>=0&&(P({rootEl:$,name:"add",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"remove",toEl:$,originalEvent:t}),P({rootEl:$,name:"sort",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),I&&I.save()):R!==Tt&&R>=0&&(P({sortable:this,name:"update",toEl:$,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),v.active&&((R==null||R===-1)&&(R=Tt,at=Ut),P({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),C=h=$=b=gt=A=re=ot=mt=X=zt=R=at=Tt=Ut=Ot=jt=I=oe=v.dragged=v.ghost=v.clone=v.active=null,ue.forEach(function(t){t.checked=!0}),ue.length=Pe=ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Tn(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)||Mn(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(o,a){var d=r.children[a];Z(d,this.options.draggable,r,!1)&&(i[o]=d)},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(),le.splice(le.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;h.parentNode==C&&!this.options.group.revertClone?C.insertBefore(A,h):gt?C.insertBefore(A,gt):C.appendChild(A),this.options.group.revertClone&&this.animate(h,A),m(A,"display",""),ot=!1}}};function Tn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function pe(n,t,e,i,r,o,a,d){var l,s=n[B],c=s.options.onMove,u;return window.CustomEvent&&!et&&!Vt?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=n,l.dragged=e,l.draggedRect=i,l.related=r||t,l.relatedRect=o||O(t),l.willInsertAfter=d,l.originalEvent=a,n.dispatchEvent(l),c&&(u=c.call(s,l,a)),u}function Be(n){n.draggable=!1}function Dn(){Ve=!1}function On(n,t,e){var i=O($t(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=O(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,d){var l=i?n.clientY:n.clientX,s=i?e.height:e.width,c=i?e.top:e.left,u=i?e.bottom:e.right,p=!1;if(!a){if(d&&de<s*r){if(!Yt&&(jt===1?l>c+s*o/2:l<u-s*o/2)&&(Yt=!0),Yt)p=!0;else if(jt===1?l<c+de:l>u-de)return-jt}else if(l>c+s*(1-r)/2&&l<u-s*(1-r)/2)return In(t)}return p=p||a,p&&(l<c+s*o/2||l>u-s*o/2)?l>c+s/2?1:-1:0}function In(n){return j(h)<j(n)?1:-1}function Mn(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 Pn(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&&w(document,"touchmove",function(n){(v.active||Dt)&&n.cancelable&&n.preventDefault()}),v.utils={on:w,off:E,css:m,find:Oi,is:function(t,e){return!!Z(t,e,t,!1)},extend:vn,throttle:Ii,closest:Z,toggleClass:V,clone:Pi,index:j,nextTick:fe,cancelNextTick:Re,detectDirection:Ri,getChild:$t},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?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(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,d=document.elementFromPoint(o,a);if(ge=e,i||this.options.forceAutoScrollFallback||Vt||et||Bt){Ye(e,this.options,d,i);var l=rt(d,!0);Ue&&(!Wt||o!==ze||a!==je)&&(Wt&&ji(),Wt=setInterval(function(){var s=rt(document.elementFromPoint(o,a),!0);s!==l&&(l=s,me()),Ye(e,r.options,s,i)},10),ze=o,je=a)}else{if(!this.options.bubbleScroll||rt(d,!0)===q()){me();return}Ye(e,this.options,rt(d,!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,d=t.scrollSpeed,l=q(),s=!1,c;Fe!==e&&(Fe=e,me(),Xt=t.scroll,c=t.scrollFn,Xt===!0&&(Xt=rt(e,!0)));var u=0,p=Xt;do{var g=p,f=O(g),y=f.top,S=f.bottom,F=f.left,L=f.right,W=f.width,U=f.height,yt=void 0,K=void 0,bt=g.scrollWidth,Gt=g.scrollHeight,z=m(g),Zt=g.scrollLeft,lt=g.scrollTop;g===l?(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var qt=yt&&(Math.abs(L-r)<=a&&Zt+W<bt)-(Math.abs(F-r)<=a&&!!Zt),it=K&&(Math.abs(S-o)<=a&&lt+U<Gt)-(Math.abs(y-o)<=a&&!!lt);if(!T[u])for(var Et=0;Et<=u;Et++)T[Et]||(T[Et]={});(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)&&(s=!0,T[u].pid=setInterval(function(){i&&this.layer===0&&v.active._onTouchMove(ge);var Kt=T[this.layer].vy?T[this.layer].vy*d:0,st=T[this.layer].vx?T[this.layer].vx*d:0;typeof c=="function"&&c.call(v.dragged.parentNode[B],st,Kt,n,ge,T[this.layer].el)!=="continue"||Mi(T[this.layer].el,st,Kt)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=rt(p,!1)));Ue=s}},30),Yi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,d=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=i||o;d();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.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=$t(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=`
60
+ */function Ai(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?Ai(Object(e),!0).forEach(function(i){hn(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Ai(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 hn(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 pn(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 fn(n,t){if(n==null)return{};var e=pn(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 gn="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),$i=tt(/firefox/i),Bt=tt(/safari/i)&&!tt(/chrome/i)&&!tt(/android/i),Si=tt(/iP(ad|od|hone)/i),Ti=tt(/chrome/i)&&tt(/android/i),Di={capture:!1,passive:!1};function w(n,t,e){n.addEventListener(t,e,!et&&Di)}function _(n,t,e){n.removeEventListener(t,e,!et&&Di)}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 mn(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=mn(n))}return null}var Oi=/\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(Oi," ").replace(" "+t+" "," ");n.className=(i+(e?" "+t:"")).replace(Oi," ")}}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 At(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 Li(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 O(n,t,e,i,r){if(!(!n.getBoundingClientRect&&n!==window)){var o,a,d,s,l,u,c;if(n!==window&&n.parentNode&&n!==q()?(o=n.getBoundingClientRect(),a=o.top,d=o.left,s=o.bottom,l=o.right,u=o.height,c=o.width):(a=0,d=0,s=window.innerHeight,l=window.innerWidth,u=window.innerHeight,c=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")),d-=p.left+parseInt(m(r,"border-left-width")),s=a+o.height,l=d+o.width;break}while(r=r.parentNode);if(i&&n!==window){var f=At(r||n),g=f&&f.a,y=f&&f.d;f&&(a/=y,d/=g,c/=g,u/=y,s=a+u,l=d+c)}return{top:a,left:d,bottom:s,right:l,width:c,height:u}}}function Hi(n,t,e){for(var i=rt(n,!0),r=O(n)[t];i;){var o=O(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 $t(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 Ii(n){var t=0,e=0,i=q();if(n)do{var r=At(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 vn(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 yn(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 Mi(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 bn(){clearTimeout(Rt),Rt=void 0}function Pi(n,t,e){n.scrollLeft+=t,n.scrollTop+=e}function ki(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 _n(){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:O(r)});var o=G({},n[n.length-1].rect);if(r.thisAnimationDuration){var a=At(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(vn(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(d){var s=0,l=d.target,u=l.fromRect,c=O(l),p=l.prevFromRect,f=l.prevToRect,g=d.rect,y=At(l,!0);y&&(c.top-=y.f,c.left-=y.e),l.toRect=c,l.thisAnimationDuration&&Ie(p,c)&&!Ie(u,c)&&(g.top-c.top)/(g.left-c.left)===(u.top-c.top)/(u.left-c.left)&&(s=wn(g,p,f,r.options)),Ie(c,u)||(l.prevFromRect=u,l.prevToRect=c,s||(s=r.options.animation),r.animate(l,g,c,s)),s&&(o=!0,a=Math.max(a,s),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},s),l.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 d=At(this.el),s=d&&d.a,l=d&&d.d,u=(r.left-o.left)/(s||1),c=(r.top-o.top)/(l||1);i.animatingX=!!u,i.animatingY=!!c,m(i,"transform","translate3d("+u+"px,"+c+"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 wn(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 St=[],Me={initializeByDefault:!0},Ft={mount:function(t){for(var e in Me)Me.hasOwnProperty(e)&&!(e in t)&&(t[e]=Me[e]);St.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),St.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var o=t+"Global";St.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){St.forEach(function(d){var s=d.pluginName;if(!(!t.options[s]&&!d.initializeByDefault)){var l=new d(t,e,t.options);l.sortable=t,l.options=t.options,t[s]=l,J(i,l.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 St.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 St.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[e]=="function"&&(r=o.optionListeners[e].call(t[o.pluginName],i))}),r}};function xn(n){var t=n.sortable,e=n.rootEl,i=n.name,r=n.targetEl,o=n.cloneEl,a=n.toEl,d=n.fromEl,s=n.oldIndex,l=n.newIndex,u=n.oldDraggableIndex,c=n.newDraggableIndex,p=n.originalEvent,f=n.putSortable,g=n.extraEventProperties;if(t=t||e&&e[B],!!t){var y,S=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=d||e,y.item=r||e,y.clone=o,y.oldIndex=s,y.newIndex=l,y.oldDraggableIndex=u,y.newDraggableIndex=c,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var H=G(G({},g),Ft.getEventProperties(i,t));for(var W in H)y[W]=H[W];e&&e.dispatchEvent(y),S[F]&&S[F].call(t,y)}}var Cn=["evt"],N=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,o=fn(i,Cn);Ft.pluginEvent.bind(v)(t,e,G({dragEl:h,parentEl:$,ghostEl:b,rootEl:C,nextEl:gt,lastDownEl:re,cloneEl:A,cloneHidden:ot,dragStarted:zt,putSortable:I,activeSortable:v.active,originalEvent:r,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at,hideGhostForTarget:zi,unhideGhostForTarget:ji,cloneNowHidden:function(){ot=!0},cloneNowShown:function(){ot=!1},dispatchSortableEvent:function(d){P({sortable:e,name:d,originalEvent:r})}},o))};function P(n){xn(G({putSortable:I,cloneEl:A,targetEl:h,rootEl:C,oldIndex:Tt,oldDraggableIndex:Ut,newIndex:R,newDraggableIndex:at},n))}var h,$,b,C,gt,re,A,ot,Tt,R,Ut,at,oe,I,Dt=!1,ae=!1,se=[],mt,X,Pe,ke,Ni,Vi,zt,Ot,jt,Yt=!1,le=!1,de,M,Ne=[],Ve=!1,ue=[],ce=typeof document<"u",he=Si,Bi=Vt||et?"cssFloat":"float",An=ce&&!Ti&&!Si&&"draggable"in document.createElement("div"),Ri=function(){if(ce){if(et)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),Fi=function(t,e){var i=m(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),o=$t(t,0,e),a=$t(t,1,e),d=o&&m(o),s=a&&m(a),l=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+O(o).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(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&&d.float&&d.float!=="none"){var c=d.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return o&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||l>=r&&i[Bi]==="none"||a&&i[Bi]==="none"&&l+u>r)?"vertical":"horizontal"},$n=function(t,e,i){var r=i?t.left:t.top,o=i?t.right:t.bottom,a=i?t.width:t.height,d=i?e.left:e.top,s=i?e.right:e.bottom,l=i?e.width:e.height;return r===d||o===s||r+a/2===d+l/2},Sn=function(t,e){var i;return se.some(function(r){var o=r[B].options.emptyInsertThreshold;if(!(!o||He(r))){var a=O(r),d=t>=a.left-o&&t<=a.right+o,s=e>=a.top-o&&e<=a.bottom+o;if(d&&s)return i=r}}),i},Ui=function(t){function e(o,a){return function(d,s,l,u){var c=d.options.group.name&&s.options.group.name&&d.options.group.name===s.options.group.name;if(o==null&&(a||c))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return e(o(d,s,l,u),a)(d,s,l,u);var p=(a?d: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},zi=function(){!Ri&&b&&m(b,"display","none")},ji=function(){!Ri&&b&&m(b,"display","")};ce&&!Ti&&document.addEventListener("click",function(n){if(ae)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),ae=!1,!1},!0);var vt=function(t){if(h){t=t.touches?t.touches[0]:t;var e=Sn(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)}}},Tn=function(t){h&&h.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 Fi(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,d){a.setData("Text",d.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]);Ui(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:An,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(n,"pointerdown",this._onTapStart):(w(n,"mousedown",this._onTapStart),w(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(n,"dragover",this),w(n,"dragenter",this)),se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,_n())}v.prototype={constructor:v,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ot=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,d=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(d||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=r.filter;if(kn(i),!h&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||r.disabled)&&!l.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 u=="function"){if(u.call(this,t,s,this)){P({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),N("filter",e,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=Z(l,c.trim(),i,!1),c)return P({sortable:e,rootEl:c,name:"filter",targetEl:s,fromEl:i,toEl:i}),N("filter",e,{evt:t}),!0}),u)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Z(l,r.handle,i,!1)||this._prepareDragStart(t,d,s)}}},_prepareDragStart:function(t,e,i){var r=this,o=r.el,a=r.options,d=o.ownerDocument,s;if(i&&!h&&i.parentNode===o){var l=O(i);if(C=o,h=i,$=h.parentNode,gt=h.nextSibling,re=i,oe=a.group,v.dragged=h,mt={target:h,clientX:(e||t).clientX,clientY:(e||t).clientY},Ni=mt.clientX-l.left,Vi=mt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,h.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:t}),v.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!$i&&r.nativeDraggable&&(h.draggable=!0),r._triggerDragStart(t,e),P({sortable:r,name:"choose",originalEvent:t}),V(h,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){Li(h,u.trim(),Be)}),w(d,"dragover",vt),w(d,"mousemove",vt),w(d,"touchmove",vt),w(d,"mouseup",r._onDrop),w(d,"touchend",r._onDrop),w(d,"touchcancel",r._onDrop),$i&&this.nativeDraggable&&(this.options.touchStartThreshold=4,h.draggable=!0),N("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vt||et))){if(v.eventCanceled){this._onDrop();return}w(d,"mouseup",r._disableDelayedDrag),w(d,"touchend",r._disableDelayedDrag),w(d,"touchcancel",r._disableDelayedDrag),w(d,"mousemove",r._delayedDragTouchMoveHandler),w(d,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&w(d,"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&&Be(h),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):e?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(h,"dragend",this),w(C,"dragstart",this._onDragStart));try{document.selection?fe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(Dt=!1,C&&h){N("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Tn);var i=this.options;!t&&V(h,i.dragClass,!1),V(h,i.ghostClass,!0),v.active=this,t&&this._appendGhost(),P({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(X){this._lastX=X.clientX,this._lastY=X.clientY,zi();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(h.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);ji()}},_onTouchMove:function(t){if(mt){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=b&&At(b,!0),d=b&&a&&a.a,s=b&&a&&a.d,l=he&&M&&Ii(M),u=(o.clientX-mt.clientX+r.x)/(d||1)+(l?l[0]-Ne[0]:0)/(d||1),c=(o.clientY-mt.clientY+r.y)/(s||1)+(l?l[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+=u-(Pe||0),a.f+=c-(ke||0)):a={a:1,b:0,c:0,d:1,e:u,f:c};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),Pe=u,ke=c,X=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!b){var t=this.options.fallbackOnBody?document.body:C,e=O(h,!0,he,!0,t),i=this.options;if(he){for(M=t;m(M,"position")==="static"&&m(M,"transform")==="none"&&M!==document;)M=M.parentNode;M!==document.body&&M!==document.documentElement?(M===document&&(M=q()),e.top+=M.scrollTop,e.left+=M.scrollLeft):M=q(),Ne=Ii(M)}b=h.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",Ni/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}),v.eventCanceled){this._onDrop();return}N("setupClone",this),v.eventCanceled||(A=ki(h),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,h),i._hideClone(),P({sortable:i,name:"clone"}))}),!e&&V(h,o.dragClass,!0),e?(ae=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_(document,"mouseup",i._onDrop),_(document,"touchend",i._onDrop),_(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(i,r,h)),w(document,"drop",i),m(h,"transform","translateZ(0)")),Dt=!0,i._dragStartId=fe(i._dragStarted.bind(i,e,t)),w(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,d=this.options,s=d.group,l=v.active,u=oe===s,c=d.sort,p=I||l,f,g=this,y=!1;if(Ve)return;function S(Qt,Rn){N(Qt,g,G({evt:t,isOwner:u,axis:f?"vertical":"horizontal",revert:a,dragRect:r,targetRect:o,canSort:c,fromSortable:p,target:i,completed:H,onMove:function(Zi,Fn){return pe(C,e,h,r,Zi,O(Zi),t,Fn)},changed:W},Rn))}function F(){S("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function H(Qt){return S("dragOverCompleted",{insertion:Qt}),Qt&&(u?l._hideClone():l._showClone(g),g!==p&&(V(h,I?I.options.ghostClass:l.options.ghostClass,!1),V(h,d.ghostClass,!0)),I!==g&&g!==v.active?I=g:g===v.active&&I&&(I=null),p===g&&(g._ignoreWhileAnimating=i),g.animateAll(function(){S("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===h&&!h.animated||i===e&&!i.animated)&&(Ot=null),!d.dragoverBubble&&!t.rootEl&&i!==document&&(h.parentNode[B]._isOutsideThisEl(t.target),!Qt&&vt(t)),!d.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function W(){R=j(h),at=j(h,d.draggable),P({sortable:g,name:"change",toEl:e,newIndex:R,newDraggableIndex:at,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Z(i,d.draggable,e,!0),S("dragOver"),v.eventCanceled)return y;if(h.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||g._ignoreWhileAnimating===i)return H(!1);if(ae=!1,l&&!d.disabled&&(u?c||(a=$!==C):I===this||(this.lastPutMode=oe.checkPull(this,l,h,t))&&s.checkPut(this,l,h,t))){if(f=this._getDirection(t,i)==="vertical",r=O(h),S("dragOverValid"),v.eventCanceled)return y;if(a)return $=C,F(),this._hideClone(),S("revert"),v.eventCanceled||(gt?C.insertBefore(h,gt):C.appendChild(h)),H(!0);var U=He(e,d.draggable);if(!U||Hn(t,f,this)&&!U.animated){if(U===h)return H(!1);if(U&&e===t.target&&(i=U),i&&(o=O(i)),pe(C,e,h,r,i,o,t,!!i)!==!1)return F(),U&&U.nextSibling?e.insertBefore(h,U.nextSibling):e.appendChild(h),$=e,W(),H(!0)}else if(U&&Ln(t,f,this)){var yt=$t(e,0,d,!0);if(yt===h)return H(!1);if(i=yt,o=O(i),pe(C,e,h,r,i,o,t,!1)!==!1)return F(),e.insertBefore(h,yt),$=e,W(),H(!0)}else if(i.parentNode===e){o=O(i);var K=0,bt,Gt=h.parentNode!==e,z=!$n(h.animated&&h.toRect||r,i.animated&&i.toRect||o,f),Zt=f?"top":"left",st=Hi(i,"top","top")||Hi(h,"top","top"),qt=st?st.scrollTop:void 0;Ot!==i&&(bt=o[Zt],Yt=!1,le=!z&&d.invertSwap||Gt),K=In(t,i,o,f,z?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,le,Ot===i);var it;if(K!==0){var _t=j(h);do _t-=K,it=$.children[_t];while(it&&(m(it,"display")==="none"||it===b))}if(K===0||it===i)return H(!1);Ot=i,jt=K;var Kt=i.nextElementSibling,lt=!1;lt=K===1;var ve=pe(C,e,h,r,i,o,t,lt);if(ve!==!1)return(ve===1||ve===-1)&&(lt=ve===1),Ve=!0,setTimeout(On,30),F(),lt&&!Kt?e.appendChild(h):i.parentNode.insertBefore(h,lt?Kt:i),st&&Pi(st,0,qt-st.scrollTop),$=h.parentNode,bt!==void 0&&!le&&(de=Math.abs(bt-O(i)[Zt])),W(),H(!0)}if(e.contains(h))return H(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",vt),_(document,"mousemove",vt),_(document,"touchmove",vt)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(R=j(h),at=j(h,i.draggable),N("drop",this,{evt:t}),$=h&&h.parentNode,R=j(h),at=j(h,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&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bt&&m(document.body,"user-select",""),m(h,"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),h&&(this.nativeDraggable&&_(h,"dragend",this),Be(h),h.style["will-change"]="",zt&&!Dt&&V(h,I?I.options.ghostClass:this.options.ghostClass,!1),V(h,this.options.chosenClass,!1),P({sortable:this,name:"unchoose",toEl:$,newIndex:null,newDraggableIndex:null,originalEvent:t}),C!==$?(R>=0&&(P({rootEl:$,name:"add",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"remove",toEl:$,originalEvent:t}),P({rootEl:$,name:"sort",toEl:$,fromEl:C,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),I&&I.save()):R!==Tt&&R>=0&&(P({sortable:this,name:"update",toEl:$,originalEvent:t}),P({sortable:this,name:"sort",toEl:$,originalEvent:t})),v.active&&((R==null||R===-1)&&(R=Tt,at=Ut),P({sortable:this,name:"end",toEl:$,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),C=h=$=b=gt=A=re=ot=mt=X=zt=R=at=Tt=Ut=Ot=jt=I=oe=v.dragged=v.ghost=v.clone=v.active=null,ue.forEach(function(t){t.checked=!0}),ue.length=Pe=ke=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":h&&(this._onDragOver(t),Dn(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 d=r.children[a];Z(d,this.options.draggable,r,!1)&&(i[o]=d)},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"&&Ui(i)},destroy:function(){N("destroy",this);var t=this.el;t[B]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),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;h.parentNode==C&&!this.options.group.revertClone?C.insertBefore(A,h):gt?C.insertBefore(A,gt):C.appendChild(A),this.options.group.revertClone&&this.animate(h,A),m(A,"display",""),ot=!1}}};function Dn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function pe(n,t,e,i,r,o,a,d){var s,l=n[B],u=l.options.onMove,c;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||O(t),s.willInsertAfter=d,s.originalEvent=a,n.dispatchEvent(s),u&&(c=u.call(l,s,a)),c}function Be(n){n.draggable=!1}function On(){Ve=!1}function Ln(n,t,e){var i=O($t(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 Hn(n,t,e){var i=O(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 In(n,t,e,i,r,o,a,d){var s=i?n.clientY:n.clientX,l=i?e.height:e.width,u=i?e.top:e.left,c=i?e.bottom:e.right,p=!1;if(!a){if(d&&de<l*r){if(!Yt&&(jt===1?s>u+l*o/2:s<c-l*o/2)&&(Yt=!0),Yt)p=!0;else if(jt===1?s<u+de:s>c-de)return-jt}else if(s>u+l*(1-r)/2&&s<c-l*(1-r)/2)return Mn(t)}return p=p||a,p&&(s<u+l*o/2||s>c-l*o/2)?s>u+l/2?1:-1:0}function Mn(n){return j(h)<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 kn(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&&w(document,"touchmove",function(n){(v.active||Dt)&&n.cancelable&&n.preventDefault()}),v.utils={on:w,off:_,css:m,find:Li,is:function(t,e){return!!Z(t,e,t,!1)},extend:yn,throttle:Mi,closest:Z,toggleClass:V,clone:ki,index:j,nextTick:fe,cancelNextTick:Re,detectDirection:Fi,getChild:$t},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=gn;var T=[],Xt,Fe,Ue=!1,ze,je,ge,Wt;function Nn(){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?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):i.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),Yi(),me(),bn()},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,d=document.elementFromPoint(o,a);if(ge=e,i||this.options.forceAutoScrollFallback||Vt||et||Bt){Ye(e,this.options,d,i);var s=rt(d,!0);Ue&&(!Wt||o!==ze||a!==je)&&(Wt&&Yi(),Wt=setInterval(function(){var l=rt(document.elementFromPoint(o,a),!0);l!==s&&(s=l,me()),Ye(e,r.options,l,i)},10),ze=o,je=a)}else{if(!this.options.bubbleScroll||rt(d,!0)===q()){me();return}Ye(e,this.options,rt(d,!1),!1)}}},J(n,{pluginName:"scroll",initializeByDefault:!0})}function me(){T.forEach(function(n){clearInterval(n.pid)}),T=[]}function Yi(){clearInterval(Wt)}var Ye=Mi(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,d=t.scrollSpeed,s=q(),l=!1,u;Fe!==e&&(Fe=e,me(),Xt=t.scroll,u=t.scrollFn,Xt===!0&&(Xt=rt(e,!0)));var c=0,p=Xt;do{var f=p,g=O(f),y=g.top,S=g.bottom,F=g.left,H=g.right,W=g.width,U=g.height,yt=void 0,K=void 0,bt=f.scrollWidth,Gt=f.scrollHeight,z=m(f),Zt=f.scrollLeft,st=f.scrollTop;f===s?(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(yt=W<bt&&(z.overflowX==="auto"||z.overflowX==="scroll"),K=U<Gt&&(z.overflowY==="auto"||z.overflowY==="scroll"));var qt=yt&&(Math.abs(H-r)<=a&&Zt+W<bt)-(Math.abs(F-r)<=a&&!!Zt),it=K&&(Math.abs(S-o)<=a&&st+U<Gt)-(Math.abs(y-o)<=a&&!!st);if(!T[c])for(var _t=0;_t<=c;_t++)T[_t]||(T[_t]={});(T[c].vx!=qt||T[c].vy!=it||T[c].el!==f)&&(T[c].el=f,T[c].vx=qt,T[c].vy=it,clearInterval(T[c].pid),(qt!=0||it!=0)&&(l=!0,T[c].pid=setInterval(function(){i&&this.layer===0&&v.active._onTouchMove(ge);var Kt=T[this.layer].vy?T[this.layer].vy*d:0,lt=T[this.layer].vx?T[this.layer].vx*d:0;typeof u=="function"&&u.call(v.dragged.parentNode[B],lt,Kt,n,ge,T[this.layer].el)!=="continue"||Pi(T[this.layer].el,lt,Kt)}.bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==s&&(p=rt(p,!1)));Ue=l}},30),Xi=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,d=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=i||o;d();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(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=$t(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},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:Xi},J(We,{pluginName:"removeOnSpill"}),v.mount(new Nn),v.mount(We,Xe);const Wi=`
61
61
  :host {
62
62
  display: block;
63
63
  overflow-y: auto;
@@ -70,7 +70,7 @@
70
70
  ul[data-group] {
71
71
  padding-inline-start: 40px;
72
72
  }
73
- `,Wi=`
73
+ `,Gi=`
74
74
  * {
75
75
  font-family: Roboto, sans-serif;
76
76
  }
@@ -83,6 +83,7 @@ button {
83
83
  --error-color: #FF5252;
84
84
 
85
85
  display: inline-flex;
86
+ position: relative;
86
87
  align-items: center;
87
88
  color: #fff;
88
89
  border-width: 0;
@@ -544,100 +545,100 @@ li.sortable-drag {
544
545
  }
545
546
  li.sortable-ghost {
546
547
  }
547
- `;var Nn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,D=(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};x.EOxLayerControl=class extends Ct{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,d,l)=>{r=[...r,...a.filter(c=>c.get(d)===l)];const s=a.filter(c=>c.getLayers);return s.length>0&&s.forEach(c=>o(c.getLayers().getArray(),d,l)),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,r)=>{i.forEach(o=>{r&&o.set("_group_id",r),o.get(this.layerIdentifier)||o.set(this.layerIdentifier,o.ol_uid),o.get(this.layerTitle)||o.set(this.layerTitle,`layer ${o.ol_uid}`),o.getLayers&&e(o.getLayers().getArray(),o.get("id")||o.ol_uid)})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0)}_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 d;const t=document.querySelector(this.for);if(t&&(t.map?this.olMap=t.map:this.olMap=t),!this.olMap)return _;const e=this.olMap.getLayers();this._updateControl(e);const i=l=>{l.on("change:length",()=>{this._currentlySorting||setTimeout(()=>{this._updateControl(l)})})};i(e);const r=l=>{l.getArray().forEach(s=>{if(s.getLayers){const c=s.getLayers();i(c),r(c)}})};r(e);const o=(l,s,c)=>{var u;return H`
548
- <details open="${l.get("layerControlExpanded")?!0:_}">
548
+ `;var Vn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,D=(n,t,e,i)=>{for(var r=i>1?void 0:i?Bn(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&&Vn(t,e,r),r};x.EOxLayerControl=class extends Ct{constructor(){super(...arguments),this.for="eox-map",this.layerIdentifier="id",this.layerTitle="title",this.sortBy="layerOrder",this.layerConfig=["opacity"],this.externalLayerConfig=void 0,this.resetLayers=!1,this.filterLayers=(t,e,i)=>{let r=[];const o=(a,d,s)=>{r=[...r,...a.filter(u=>u.get(d)===s)];const l=a.filter(u=>u.getLayers);return l.length>0&&l.forEach(u=>o(u.getLayers().getArray(),d,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,r)=>{i.forEach(o=>{r&&o.set("_group_id",r),o.get(this.layerIdentifier)||o.set(this.layerIdentifier,o.ol_uid),o.get(this.layerTitle)||o.set(this.layerTitle,`layer ${o.ol_uid}`),o.getLayers&&e(o.getLayers().getArray(),o.get("id")||o.ol_uid)})};e(t.getArray()),this.layerCollection=t,this.optionalLayerArray=this.filterLayers(t.getArray(),"layerControlOptional",!0)}_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 d;const t=document.querySelector(this.for);if(t&&(t.map?this.olMap=t.map:this.olMap=t),!this.olMap)return E;const e=this.olMap.getLayers();this._updateControl(e);const i=s=>{s.on("change:length",()=>{this._currentlySorting||(this.resetLayers=!0,this._updateControl(s),setTimeout(()=>{this.resetLayers=!1,this._updateControl(s)}))})};i(e);const r=s=>{s.getArray().forEach(l=>{if(l.getLayers){const u=l.getLayers();i(u),r(u)}})};r(e);const o=(s,l,u)=>{var c;return L`
549
+ <details open="${s.get("layerControlExpand")?!0:E}">
549
550
  <summary>
550
551
  <div class="layer">
551
552
  <div class="left">
552
553
  <input
553
- type="${l.get("layerControlExclusive")?"radio":"checkbox"}"
554
- .checked="${Le(l.getVisible())}"
555
- @click=${()=>{this.toggleLayerVisibility(l,s)}}
554
+ type="${s.get("layerControlExclusive")?"radio":"checkbox"}"
555
+ .checked="${Le(s.getVisible())}"
556
+ @click=${()=>{this.toggleLayerVisibility(s,l)}}
556
557
  />
557
558
  <span class="title"
558
559
  ><span
559
- >${l.get(this.layerTitle)||`${l.get(this.layerIdentifier)}`}</span
560
+ >${s.get(this.layerTitle)||`${s.get(this.layerIdentifier)}`}</span
560
561
  >
561
562
  </span>
562
563
  </div>
563
564
  <div class="right">
564
- ${this.sortBy==="layerOrder"&&!this.unstyled?H` <div
565
- class="drag-handle ${l.get("layerControlDisable")?"disabled":""}"
565
+ ${this.sortBy==="layerOrder"&&!this.unstyled?L` <div
566
+ class="drag-handle ${s.get("layerControlDisable")?"disabled":""}"
566
567
  >
567
568
  <span>=</span>
568
- </div>`:_}
569
+ </div>`:E}
569
570
  </div>
570
571
  </div>
571
572
  </summary>
572
- ${this.layerConfig?H`
573
+ ${this.layerConfig?L`
573
574
  <eox-layerconfig
574
575
  .layerConfig="${this.layerConfig}"
575
576
  .layerControl="${this}"
576
- .layer=${l}
577
+ .layer=${s}
577
578
  .external=${this.externalLayerConfig}
578
579
  .unstyled="${this.unstyled}"
579
- @removeLayer=${()=>{c.remove(l);const p=this.renderRoot.querySelector(`[data-layer='${l.get(this.layerIdentifier)}'`);p.parentNode.removeChild(p)}}
580
+ @removeLayer=${()=>{var f;((f=this.optionalLayerArray)==null?void 0:f.length)>0?(s.set("layerControlOptional",!0),s.setVisible(!1),this.requestUpdate()):u.remove(s);const p=this.renderRoot.querySelector(`[data-layer='${s.get(this.layerIdentifier)}'`);p.parentNode.removeChild(p)}}
580
581
  ></eox-layerconfig>
581
- `:_}
582
- ${this.externalLayerConfig&&((u=l.style_)!=null&&u.color)?H`
583
- <button @click=${()=>this._emitLayerconfig(l)}>
582
+ `:E}
583
+ ${this.externalLayerConfig&&((c=s.style_)!=null&&c.color)?L`
584
+ <button @click=${()=>this._emitLayerconfig(s)}>
584
585
  configure
585
586
  </button>
586
- `:_}
587
- ${l.getLayers?H`
588
- ${a(this.preFilterLayers([...l.getLayers().getArray()].reverse()),l.get(this.layerIdentifier),l.getLayers())}
589
- `:_}
587
+ `:E}
588
+ ${s.getLayers?L`
589
+ ${a(this.preFilterLayers([...s.getLayers().getArray()].reverse()),s.get(this.layerIdentifier),s.getLayers())}
590
+ `:E}
590
591
  </details>
591
- `},a=(l,s,c)=>H`
592
- <ul data-group="${s??_}">
593
- ${Oe(l,u=>u.get(this.layerIdentifier),u=>{var p;return H`
594
- <li
595
- data-layer="${u.get(this.layerIdentifier)}"
596
- data-disabled="${u.get("layerControlDisable")||_}"
597
- data-type="${this.getLayerType(u,this.olMap)}"
598
- data-layerconfig="${((p=this.layerConfig)==null?void 0:p.length)>0}"
599
- >
600
- ${o(u,s,c)}
601
- </li>
602
- `})}
603
- </ul>
604
- `;return H`
592
+ `},a=(s,l,u)=>this.resetLayers?L``:L`
593
+ <ul data-group="${l??E}">
594
+ ${Oe(s,c=>c.get(this.layerIdentifier),c=>{var p;return L`
595
+ <li
596
+ data-layer="${c.get(this.layerIdentifier)}"
597
+ data-disabled="${c.get("layerControlDisable")||E}"
598
+ data-type="${this.getLayerType(c,this.olMap)}"
599
+ data-layerconfig="${((p=this.layerConfig)==null?void 0:p.length)>0}"
600
+ >
601
+ ${o(c,l,u)}
602
+ </li>
603
+ `})}
604
+ </ul>
605
+ `;return L`
605
606
  <style>
606
- ${Xi}
607
- ${!this.unstyled&&Wi}
607
+ ${Wi}
608
+ ${!this.unstyled&&Gi}
608
609
  </style>
609
610
  <div>
610
611
  <slot></slot>
611
- ${this.layerCollection.getArray().length>10?H`<input type="text" placeholder="Find layer" />`:_}
612
+ ${this.layerCollection.getArray().length>10?L`<input type="text" placeholder="Find layer" />`:E}
612
613
  <div class="layers">
613
614
  ${a(this.preFilterLayers(e.getArray()),null,this.layerCollection)}
614
615
  </div>
615
- ${xi(((d=this.optionalLayerArray)==null?void 0:d.length)>0,()=>H`
616
+ ${Ci(((d=this.optionalLayerArray)==null?void 0:d.length)>0,()=>L`
616
617
  <label for="optional">Optional layers</label>
617
618
 
618
619
  <select name="optional" data-cy="optionalLayers">
619
620
  <option disabled selected value>
620
621
  -- select an optional layer to add --
621
622
  </option>
622
- ${this.optionalLayerArray.map(l=>H`
623
- <option value="${l.get(this.layerIdentifier)}">
624
- ${l.get(this.layerTitle)||`layer ${l.get(this.layerIdentifier)}`}
623
+ ${this.optionalLayerArray.map(s=>L`
624
+ <option value="${s.get(this.layerIdentifier)}">
625
+ ${s.get(this.layerTitle)||`layer ${s.get(this.layerIdentifier)}`}
625
626
  </option>
626
627
  `)}
627
628
  </select>
628
629
  <button
629
- @click="${()=>{const l=this.optionalLayerArray.find(s=>s.get(this.layerIdentifier)===this.shadowRoot.querySelector("select[name=optional]").value);if(l.get("_group_id")){const s=this.findLayerById(this.layerCollection.getArray(),l.get("_group_id"));s.getLayers().remove(l),s.getLayers().insertAt(s.getLayers().getLength(),l)}else this.layerCollection.remove(l),this.layerCollection.insertAt(this.layerCollection.getLength(),l);l.set("layerControlOptional",!1),l.setVisible(!0)}}"
630
+ @click="${()=>{const s=this.optionalLayerArray.find(l=>l.get(this.layerIdentifier)===this.shadowRoot.querySelector("select[name=optional]").value);if(s.get("_group_id")){const l=this.findLayerById(this.layerCollection.getArray(),s.get("_group_id"));l.getLayers().remove(s),l.getLayers().insertAt(l.getLayers().getLength(),s)}else this.layerCollection.remove(s),this.layerCollection.insertAt(this.layerCollection.getLength(),s);s.set("layerControlOptional",!1),s.setVisible(!0)}}"
630
631
  >
631
632
  add
632
633
  </button>
633
634
  `)}
634
635
  </div>
635
- `}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:()=>{if(i){const r=this.findLayerById(this.layerCollection.getArray(),i);return r?[...r.getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():void 0}else return[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse()},set:r=>{r.toArray().reverse().forEach((a,d)=>{if(i){const l=this.findLayerById(this.layerCollection.getArray(),i);if(!l)return;const s=l.getLayers(),c=this.findLayerById(s.getArray(),a);s.remove(c),s.insertAt(d,c)}else{const l=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(l),this.layerCollection.insertAt(d,l)}})}},onMove:r=>!r.related.dataset.disabled})})}},D([kt()],x.EOxLayerControl.prototype,"olMap",2),D([kt()],x.EOxLayerControl.prototype,"layerCollection",2),D([kt()],x.EOxLayerControl.prototype,"optionalLayerArray",2),D([k()],x.EOxLayerControl.prototype,"for",2),D([k()],x.EOxLayerControl.prototype,"layerIdentifier",2),D([k()],x.EOxLayerControl.prototype,"layerTitle",2),D([k()],x.EOxLayerControl.prototype,"sortBy",2),D([k({type:Array})],x.EOxLayerControl.prototype,"layerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"externalLayerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"unstyled",2),x.EOxLayerControl=D([vi("eox-layercontrol")],x.EOxLayerControl),x.EOxLayerConfig=class extends Ct{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`
636
+ `}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:()=>{if(i){const r=this.findLayerById(this.layerCollection.getArray(),i);return r?[...r.getLayers().getArray().map(a=>a.get(this.layerIdentifier))].reverse():void 0}else return[...this.layerCollection.getArray().map(r=>r.get(this.layerIdentifier))].reverse()},set:r=>{r.toArray().reverse().forEach((a,d)=>{if(i){const s=this.findLayerById(this.layerCollection.getArray(),i);if(!s)return;const l=s.getLayers(),u=this.findLayerById(l.getArray(),a);l.remove(u),l.insertAt(d,u)}else{const s=this.findLayerById(this.layerCollection.getArray(),a);this.layerCollection.remove(s),this.layerCollection.insertAt(d,s)}})}},onMove:r=>!r.related.dataset.disabled})})}},D([kt()],x.EOxLayerControl.prototype,"olMap",2),D([kt()],x.EOxLayerControl.prototype,"layerCollection",2),D([kt()],x.EOxLayerControl.prototype,"optionalLayerArray",2),D([k()],x.EOxLayerControl.prototype,"for",2),D([k()],x.EOxLayerControl.prototype,"layerIdentifier",2),D([k()],x.EOxLayerControl.prototype,"layerTitle",2),D([k()],x.EOxLayerControl.prototype,"sortBy",2),D([k({type:Array})],x.EOxLayerControl.prototype,"layerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"externalLayerConfig",2),D([k({type:Boolean})],x.EOxLayerControl.prototype,"unstyled",2),x.EOxLayerControl=D([yi("eox-layercontrol")],x.EOxLayerControl),x.EOxLayerConfig=class extends Ct{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 L`
636
637
  <style>
637
- ${Xi}
638
- ${!this.unstyled&&Wi}
638
+ ${Wi}
639
+ ${!this.unstyled&&Gi}
639
640
  </style>
640
- ${xi(this._currentLayer,()=>H`
641
+ ${Ci(this._currentLayer,()=>L`
641
642
  <div>
642
643
  <slot></slot>
643
644
  <div class="slider-control">
@@ -647,8 +648,8 @@ li.sortable-ghost {
647
648
  @click="${()=>this.dispatchEvent(new CustomEvent("removeLayer"))}"
648
649
  ></button>
649
650
  </div>
650
- ${this.for?H`layer: ${this._currentLayer.get("name")}`:_}
651
- ${Oe(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>H`
651
+ ${this.for?L`layer: ${this._currentLayer.get("name")}`:E}
652
+ ${Oe(this.layerConfig.filter(t=>this.for?t!=="opacity":!0),t=>t,t=>L`
652
653
  <div class="slider-control">
653
654
  <div class="slider-property">${t}</div>
654
655
  <input
@@ -661,11 +662,11 @@ li.sortable-ghost {
661
662
  />
662
663
  </div>
663
664
  `)}
664
- ${Object.keys(this._configList).length>0&&!this.external?H`
665
- <details open="${this.for?!0:_}">
665
+ ${Object.keys(this._configList).length>0&&!this.external?L`
666
+ <details open="${this.for?!0:E}">
666
667
  <summary>Layer config</summary>
667
668
  <ul>
668
- ${Oe(Object.keys(this._configList),t=>t,t=>H` <li>
669
+ ${Oe(Object.keys(this._configList),t=>t,t=>L` <li>
669
670
  <div>${t}</div>
670
671
  <input
671
672
  type="range"
@@ -677,7 +678,7 @@ li.sortable-ghost {
677
678
  </li>`)}
678
679
  </ul>
679
680
  </details>
680
- `:_}
681
+ `:E}
681
682
  </div>
682
683
  `)}
683
- `}},D([k()],x.EOxLayerConfig.prototype,"for",2),D([k({type:Array})],x.EOxLayerConfig.prototype,"layerConfig",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layerControl",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layer",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"external",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"unstyled",2),D([kt()],x.EOxLayerConfig.prototype,"_currentLayer",2),D([kt()],x.EOxLayerConfig.prototype,"_configList",2),x.EOxLayerConfig=D([vi("eox-layerconfig")],x.EOxLayerConfig),Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
684
+ `}},D([k()],x.EOxLayerConfig.prototype,"for",2),D([k({type:Array})],x.EOxLayerConfig.prototype,"layerConfig",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layerControl",2),D([k({type:Object,attribute:!1})],x.EOxLayerConfig.prototype,"layer",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"external",2),D([k({type:Boolean})],x.EOxLayerConfig.prototype,"unstyled",2),D([kt()],x.EOxLayerConfig.prototype,"_currentLayer",2),D([kt()],x.EOxLayerConfig.prototype,"_configList",2),x.EOxLayerConfig=D([yi("eox-layerconfig")],x.EOxLayerConfig),Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/eslint-config": "^1.0.0",
@@ -23,7 +23,6 @@
23
23
  ],
24
24
  "main": "./dist/eox-layercontrol.js",
25
25
  "scripts": {
26
- "start": "vite",
27
26
  "build": "tsc && vite build",
28
27
  "watch": "tsc && vite build --watch",
29
28
  "format": "prettier --write .",