@eodash/eodash 5.0.0-alpha → 5.0.0-alpha.1.1

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.
Files changed (66) hide show
  1. package/bin/app.js +16 -147
  2. package/bin/cli.js +57 -0
  3. package/bin/serverConfig.js +134 -0
  4. package/bin/update.js +17 -0
  5. package/bin/utils.js +33 -0
  6. package/core/App.vue +21 -0
  7. package/core/components/DashboardLayout.vue +58 -0
  8. package/core/components/DynamicWebComponent.vue +68 -0
  9. package/core/components/Footer.vue +31 -0
  10. package/core/components/Header.vue +38 -0
  11. package/core/components/IframeWrapper.vue +11 -0
  12. package/core/components/MobileLayout.vue +79 -0
  13. package/core/composables/DefineConfig.js +44 -0
  14. package/core/composables/DefineWidgets.js +118 -0
  15. package/core/composables/index.js +147 -0
  16. package/core/eodashConfig.js +136 -0
  17. package/core/main.js +4 -0
  18. package/core/plugins/index.js +27 -0
  19. package/core/plugins/router.js +20 -0
  20. package/core/plugins/vuetify.js +27 -0
  21. package/core/render.js +13 -0
  22. package/core/store/Actions.js +28 -0
  23. package/core/store/Keys.js +6 -0
  24. package/core/store/States.js +12 -0
  25. package/core/store/index.js +23 -0
  26. package/core/store/stac.js +61 -0
  27. package/core/types.d.ts +333 -0
  28. package/core/views/Dashboard.vue +49 -0
  29. package/core/vite-env.d.ts +35 -0
  30. package/package.json +20 -21
  31. package/widgets/WidgetsContainer.vue +46 -0
  32. package/dist/.gitkeep +0 -0
  33. package/dist/assets/Dashboard-4233cc52.css +0 -1
  34. package/dist/assets/Dashboard-d7d438a6.js +0 -1
  35. package/dist/assets/DashboardLayout-5ab6c4a5.js +0 -29
  36. package/dist/assets/DashboardLayout-739135c5.css +0 -1
  37. package/dist/assets/DynamicWebComponent-1b7b527a.js +0 -1
  38. package/dist/assets/Footer-0fe1887a.css +0 -1
  39. package/dist/assets/Footer-7e1ca735.js +0 -1
  40. package/dist/assets/Header-9cac598d.css +0 -1
  41. package/dist/assets/Header-ae17296c.js +0 -1
  42. package/dist/assets/IframeWrapper-b2c05ffd.js +0 -1
  43. package/dist/assets/MobileLayout-1b3cb89b.js +0 -1
  44. package/dist/assets/MobileLayout-ad647682.css +0 -1
  45. package/dist/assets/VMain-d6216866.css +0 -1
  46. package/dist/assets/VMain-f6b3f120.js +0 -1
  47. package/dist/assets/WidgetsContainer-cdad3d50.js +0 -1
  48. package/dist/assets/color-6039ab34.js +0 -1
  49. package/dist/assets/eox-chart-3b122ba4.js +0 -142
  50. package/dist/assets/eox-itemfilter-a63da0da.js +0 -981
  51. package/dist/assets/eox-jsonform-98c2af62.js +0 -239
  52. package/dist/assets/eox-layercontrol-f5e35702.js +0 -1126
  53. package/dist/assets/eox-map-7f82b0d4.js +0 -178
  54. package/dist/assets/eox-stacinfo-65a8d8f3.js +0 -388
  55. package/dist/assets/eox-timecontrol-4be63aa2.js +0 -237
  56. package/dist/assets/index-52c9d989.js +0 -34
  57. package/dist/assets/index-5d2400e5.css +0 -5
  58. package/dist/assets/materialdesignicons-webfont-48d3eec6.woff +0 -0
  59. package/dist/assets/materialdesignicons-webfont-861aea05.eot +0 -0
  60. package/dist/assets/materialdesignicons-webfont-bd725a7a.ttf +0 -0
  61. package/dist/assets/materialdesignicons-webfont-e52d60f6.woff2 +0 -0
  62. package/dist/assets/ssrBoot-0b8754a9.css +0 -1
  63. package/dist/assets/ssrBoot-d383eb61.js +0 -1
  64. package/dist/assets/webfontloader-523643f5.js +0 -1
  65. package/dist/index.html +0 -17
  66. package/dist/types/index.d.ts +0 -124
@@ -1,237 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const Ae=globalThis,li=Ae.ShadowRoot&&(Ae.ShadyCSS===void 0||Ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,or=Symbol(),Hi=new WeakMap;let ys=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==or)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o;const t=this.t;if(li&&i===void 0){const e=t!==void 0&&t.length===1;e&&(i=Hi.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Hi.set(t,i))}return i}toString(){return this.cssText}};const ms=i=>new ys(typeof i=="string"?i:i+"",void 0,or),bs=(i,t)=>{if(li)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),a=Ae.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=e.cssText,i.appendChild(r)}},zi=li?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return ms(e)})(i):i;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:$s,defineProperty:_s,getOwnPropertyDescriptor:ws,getOwnPropertyNames:xs,getOwnPropertySymbols:As,getPrototypeOf:Es}=Object,Bt=globalThis,Vi=Bt.trustedTypes,Ss=Vi?Vi.emptyScript:"",Zi=Bt.reactiveElementPolyfillSupport,Qt=(i,t)=>i,Se={toAttribute(i,t){switch(t){case Boolean:i=i?Ss:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},hi=(i,t)=>!$s(i,t),Bi={attribute:!0,type:String,converter:Se,reflect:!1,hasChanged:hi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Bt.litPropertyMetadata??(Bt.litPropertyMetadata=new WeakMap);let zt=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??(this.l=[])).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Bi){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(i,e,t);r!==void 0&&_s(this.prototype,i,r)}}static getPropertyDescriptor(i,t,e){const{get:r,set:a}=ws(this.prototype,i)??{get(){return this[t]},set(h){this[t]=h}};return{get(){return r==null?void 0:r.call(this)},set(h){const d=r==null?void 0:r.call(this);a.call(this,h),this.requestUpdate(i,d,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Bi}static _$Ei(){if(this.hasOwnProperty(Qt("elementProperties")))return;const i=Es(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Qt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qt("properties"))){const t=this.properties,e=[...xs(t),...As(t)];for(const r of e)this.createProperty(r,t[r])}const i=this[Symbol.metadata];if(i!==null){const t=litPropertyMetadata.get(i);if(t!==void 0)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const t=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const r of e)t.unshift(zi(r))}else i!==void 0&&t.push(zi(i));return t}static _$Eu(i,t){const e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t;(this._$EO??(this._$EO=new Set)).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){const i=new Map,t=this.constructor.elementProperties;for(const e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bs(i,this.constructor.elementStyles),i}connectedCallback(){var i;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostConnected)==null?void 0:e.call(t)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var e;const r=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,r);if(a!==void 0&&r.reflect===!0){const h=(((e=r.converter)==null?void 0:e.toAttribute)!==void 0?r.converter:Se).toAttribute(t,r.type);this._$Em=i,h==null?this.removeAttribute(a):this.setAttribute(a,h),this._$Em=null}}_$AK(i,t){var e;const r=this.constructor,a=r._$Eh.get(i);if(a!==void 0&&this._$Em!==a){const h=r.getPropertyOptions(a),d=typeof h.converter=="function"?{fromAttribute:h.converter}:((e=h.converter)==null?void 0:e.fromAttribute)!==void 0?h.converter:Se;this._$Em=a,this[a]=d.fromAttribute(t,h.type),this._$Em=null}}requestUpdate(i,t,e){if(i!==void 0){if(e??(e=this.constructor.getPropertyOptions(i)),!(e.hasChanged??hi)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&(this._$Ej??(this._$Ej=new Set)).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,h]of this._$Ep)this[a]=h;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[a,h]of r)h.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],h)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var a;return(a=r.hostUpdate)==null?void 0:a.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostUpdated)==null?void 0:r.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}};zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Qt("elementProperties")]=new Map,zt[Qt("finalized")]=new Map,Zi==null||Zi({ReactiveElement:zt}),(Bt.reactiveElementVersions??(Bt.reactiveElementVersions=[])).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const Me=globalThis,Le=Me.trustedTypes,ji=Le?Le.createPolicy("lit-html",{createHTML:i=>i}):void 0,ar="$lit$",Et=`lit$${(Math.random()+"").slice(9)}$`,lr="?"+Et,Ms=`<${lr}>`,Dt=document,ee=()=>Dt.createComment(""),ie=i=>i===null||typeof i!="object"&&typeof i!="function",hr=Array.isArray,Ls=i=>hr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ri=`[
14
- \f\r]`,Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wi=/-->/g,qi=/>/g,Ct=RegExp(`>|${ri}(?:([^\\s"'>=/]+)(${ri}*=${ri}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Yi=/'/g,Xi=/"/g,ur=/^(?:script|style|textarea|title)$/i,dr=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),Ee=dr(1),Ki=dr(2),jt=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),Gi=new WeakMap,kt=Dt.createTreeWalker(Dt,129);function cr(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ji!==void 0?ji.createHTML(t):t}const Os=(i,t)=>{const e=i.length-1,r=[];let a,h=t===2?"<svg>":"",d=Jt;for(let A=0;A<e;A++){const p=i[A];let w,N,O=-1,Y=0;for(;Y<p.length&&(d.lastIndex=Y,N=d.exec(p),N!==null);)Y=d.lastIndex,d===Jt?N[1]==="!--"?d=Wi:N[1]!==void 0?d=qi:N[2]!==void 0?(ur.test(N[2])&&(a=RegExp("</"+N[2],"g")),d=Ct):N[3]!==void 0&&(d=Ct):d===Ct?N[0]===">"?(d=a??Jt,O=-1):N[1]===void 0?O=-2:(O=d.lastIndex-N[2].length,w=N[1],d=N[3]===void 0?Ct:N[3]==='"'?Xi:Yi):d===Xi||d===Yi?d=Ct:d===Wi||d===qi?d=Jt:(d=Ct,a=void 0);const j=d===Ct&&i[A+1].startsWith("/>")?" ":"";h+=d===Jt?p+Ms:O>=0?(r.push(w),p.slice(0,O)+ar+p.slice(O)+Et+j):p+Et+(O===-2?A:j)}return[cr(i,h+(i[e]||"<?>")+(t===2?"</svg>":"")),r]};class re{constructor({strings:t,_$litType$:e},r){let a;this.parts=[];let h=0,d=0;const A=t.length-1,p=this.parts,[w,N]=Os(t,e);if(this.el=re.createElement(w,r),kt.currentNode=this.el.content,e===2){const O=this.el.content.firstChild;O.replaceWith(...O.childNodes)}for(;(a=kt.nextNode())!==null&&p.length<A;){if(a.nodeType===1){if(a.hasAttributes())for(const O of a.getAttributeNames())if(O.endsWith(ar)){const Y=N[d++],j=a.getAttribute(O).split(Et),at=/([.?@])?(.*)/.exec(Y);p.push({type:1,index:h,name:at[2],strings:j,ctor:at[1]==="."?ks:at[1]==="?"?Ds:at[1]==="@"?Ps:Oe}),a.removeAttribute(O)}else O.startsWith(Et)&&(p.push({type:6,index:h}),a.removeAttribute(O));if(ur.test(a.tagName)){const O=a.textContent.split(Et),Y=O.length-1;if(Y>0){a.textContent=Le?Le.emptyScript:"";for(let j=0;j<Y;j++)a.append(O[j],ee()),kt.nextNode(),p.push({type:2,index:++h});a.append(O[Y],ee())}}}else if(a.nodeType===8)if(a.data===lr)p.push({type:2,index:h});else{let O=-1;for(;(O=a.data.indexOf(Et,O+1))!==-1;)p.push({type:7,index:h}),O+=Et.length-1}h++}}static createElement(t,e){const r=Dt.createElement("template");return r.innerHTML=t,r}}function Wt(i,t,e=i,r){var a,h;if(t===jt)return t;let d=r!==void 0?(a=e._$Co)==null?void 0:a[r]:e._$Cl;const A=ie(t)?void 0:t._$litDirective$;return(d==null?void 0:d.constructor)!==A&&((h=d==null?void 0:d._$AO)==null||h.call(d,!1),A===void 0?d=void 0:(d=new A(i),d._$AT(i,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=d:e._$Cl=d),d!==void 0&&(t=Wt(i,d._$AS(i,t.values),d,r)),t}class Cs{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,a=((t==null?void 0:t.creationScope)??Dt).importNode(e,!0);kt.currentNode=a;let h=kt.nextNode(),d=0,A=0,p=r[0];for(;p!==void 0;){if(d===p.index){let w;p.type===2?w=new se(h,h.nextSibling,this,t):p.type===1?w=new p.ctor(h,p.name,p.strings,this,t):p.type===6&&(w=new Ts(h,this,t)),this._$AV.push(w),p=r[++A]}d!==(p==null?void 0:p.index)&&(h=kt.nextNode(),d++)}return kt.currentNode=Dt,a}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class se{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,a){this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=a,this._$Cv=(a==null?void 0:a.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Wt(this,t,e),ie(t)?t===it||t==null||t===""?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ls(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==it&&ie(this._$AH)?this._$AA.nextSibling.data=t:this.T(Dt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:r,_$litType$:a}=t,h=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=re.createElement(cr(a.h,a.h[0]),this.options)),a);if(((e=this._$AH)==null?void 0:e._$AD)===h)this._$AH.p(r);else{const d=new Cs(h,this),A=d.u(this.options);d.p(r),this.T(A),this._$AH=d}}_$AC(t){let e=Gi.get(t.strings);return e===void 0&&Gi.set(t.strings,e=new re(t)),e}k(t){hr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,a=0;for(const h of t)a===e.length?e.push(r=new se(this.S(ee()),this.S(ee()),this,this.options)):r=e[a],r._$AI(h),a++;a<e.length&&(this._$AR(r&&r._$AB.nextSibling,a),e.length=a)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const a=t.nextSibling;t.remove(),t=a}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Oe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,a,h){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=a,this.options=h,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=it}_$AI(t,e=this,r,a){const h=this.strings;let d=!1;if(h===void 0)t=Wt(this,t,e,0),d=!ie(t)||t!==this._$AH&&t!==jt,d&&(this._$AH=t);else{const A=t;let p,w;for(t=h[0],p=0;p<h.length-1;p++)w=Wt(this,A[r+p],e,p),w===jt&&(w=this._$AH[p]),d||(d=!ie(w)||w!==this._$AH[p]),w===it?t=it:t!==it&&(t+=(w??"")+h[p+1]),this._$AH[p]=w}d&&!a&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ks extends Oe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}}class Ds extends Oe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==it)}}class Ps extends Oe{constructor(t,e,r,a,h){super(t,e,r,a,h),this.type=5}_$AI(t,e=this){if((t=Wt(this,t,e,0)??it)===jt)return;const r=this._$AH,a=t===it&&r!==it||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,h=t!==it&&(r===it||a);a&&this.element.removeEventListener(this.name,this,r),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ts{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Wt(this,t)}}const Fi=Me.litHtmlPolyfillSupport;Fi==null||Fi(re,se),(Me.litHtmlVersions??(Me.litHtmlVersions=[])).push("3.1.2");const Rs=(i,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let a=r._$litPart$;if(a===void 0){const h=(e==null?void 0:e.renderBefore)??null;r._$litPart$=a=new se(t.insertBefore(ee(),h),h,void 0,e??{})}return a._$AI(i),a};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */class Zt extends zt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Rs(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return jt}}var Ji;Zt._$litElement$=!0,Zt.finalized=!0,(Ji=globalThis.litElementHydrateSupport)==null||Ji.call(globalThis,{LitElement:Zt});const Qi=globalThis.litElementPolyfillSupport;Qi==null||Qi({LitElement:Zt});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */const pr=i=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(i,t)}):customElements.define(i,t)};/**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */const Is={attribute:!0,type:String,converter:Se,reflect:!1,hasChanged:hi},Ns=(i=Is,t,e)=>{const{kind:r,metadata:a}=e;let h=globalThis.litPropertyMetadata.get(a);if(h===void 0&&globalThis.litPropertyMetadata.set(a,h=new Map),h.set(e.name,i),r==="accessor"){const{name:d}=e;return{set(A){const p=t.get.call(this);t.set.call(this,A),this.requestUpdate(d,p,i)},init(A){return A!==void 0&&this.P(d,void 0,i),A}}}if(r==="setter"){const{name:d}=e;return function(A){const p=this[d];t.call(this,A),this.requestUpdate(d,p,i)}}throw Error("Unsupported decorator location: "+r)};function vt(i){return(t,e)=>typeof e=="object"?Ns(i,t,e):((r,a,h)=>{const d=a.hasOwnProperty(h);return a.constructor.createProperty(h,d?{...r,wrapped:!0}:r),d?Object.getOwnPropertyDescriptor(a,h):void 0})(i,t,e)}/**
28
- * @license
29
- * Copyright 2017 Google LLC
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */function Yt(i){return vt({...i,state:!0,attribute:!1})}class Us{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}const Ce=Us,gr={PROPERTYCHANGE:"propertychange"};class Hs{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}const zs=Hs;function tr(){}function ui(i){for(const t in i)delete i[t]}function Vs(i){let t;for(t in i)return!1;return!t}class Zs extends zs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const r=this.listeners_||(this.listeners_={}),a=r[t]||(r[t]=[]);a.includes(e)||a.push(e)}dispatchEvent(t){const e=typeof t=="string",r=e?t:t.type,a=this.listeners_&&this.listeners_[r];if(!a)return;const h=e?new Ce(t):t;h.target||(h.target=this.eventTarget_||this);const d=this.dispatching_||(this.dispatching_={}),A=this.pendingRemovals_||(this.pendingRemovals_={});r in d||(d[r]=0,A[r]=0),++d[r];let p;for(let w=0,N=a.length;w<N;++w)if("handleEvent"in a[w]?p=a[w].handleEvent(h):p=a[w].call(this,h),p===!1||h.propagationStopped){p=!1;break}if(--d[r]===0){let w=A[r];for(delete A[r];w--;)this.removeEventListener(r,tr);delete d[r]}return p}disposeInternal(){this.listeners_&&ui(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return this.listeners_?t?t in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(t,e){if(!this.listeners_)return;const r=this.listeners_[t];if(!r)return;const a=r.indexOf(e);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(r[a]=tr,++this.pendingRemovals_[t]):(r.splice(a,1),r.length===0&&delete this.listeners_[t]))}}const Bs=Zs,fr={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function wt(i,t,e,r,a){if(r&&r!==i&&(e=e.bind(r)),a){const d=e;e=function(){i.removeEventListener(t,e),d.apply(this,arguments)}}const h={target:i,type:t,listener:e};return i.addEventListener(t,e),h}function er(i,t,e,r){return wt(i,t,e,r,!0)}function te(i){i&&i.target&&(i.target.removeEventListener(i.type,i.listener),ui(i))}class ke extends Bs{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(fr.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const r=t.length,a=new Array(r);for(let h=0;h<r;++h)a[h]=wt(this,t[h],e);return a}return wt(this,t,e)}onceInternal(t,e){let r;if(Array.isArray(t)){const a=t.length;r=new Array(a);for(let h=0;h<a;++h)r[h]=er(this,t[h],e)}else r=er(this,t,e);return e.ol_key=r,r}unInternal(t,e){const r=e.ol_key;if(r)js(r);else if(Array.isArray(t))for(let a=0,h=t.length;a<h;++a)this.removeEventListener(t[a],e);else this.removeEventListener(t,e)}}ke.prototype.on;ke.prototype.once;ke.prototype.un;function js(i){if(Array.isArray(i))for(let t=0,e=i.length;t<e;++t)te(i[t]);else te(i)}const Ws=ke;function si(){throw new Error("Unimplemented abstract method.")}let qs=0;function oi(i){return i.ol_uid||(i.ol_uid=String(++qs))}class ir extends Ce{constructor(t,e,r){super(t),this.key=e,this.oldValue=r}}class Ys extends Ws{constructor(t){super(),this.on,this.once,this.un,oi(this),this.values_=null,t!==void 0&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(t,e){let r;r=`change:${t}`,this.hasListener(r)&&this.dispatchEvent(new ir(r,t,e)),r=gr.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new ir(r,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,r){const a=this.values_||(this.values_={});if(r)a[t]=e;else{const h=a[t];a[t]=e,h!==e&&this.notify(t,h)}}setProperties(t,e){for(const r in t)this.set(r,t[r],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const r=this.values_[t];delete this.values_[t],Vs(this.values_)&&(this.values_=null),e||this.notify(t,r)}}}const vr=Ys,W={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};function ai(i,t){if(!i)throw new Error(t)}function Xs(i,t,e){return Math.min(Math.max(i,t),e)}class Ks extends vr{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[W.OPACITY]=t.opacity!==void 0?t.opacity:1,ai(typeof e[W.OPACITY]=="number","Layer opacity must be a number"),e[W.VISIBLE]=t.visible!==void 0?t.visible:!0,e[W.Z_INDEX]=t.zIndex,e[W.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[W.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[W.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[W.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:t===void 0?!0:t},r=this.getZIndex();return e.opacity=Xs(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=r===void 0&&!e.managed?1/0:r,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return si()}getLayerStatesArray(t){return si()}getExtent(){return this.get(W.EXTENT)}getMaxResolution(){return this.get(W.MAX_RESOLUTION)}getMinResolution(){return this.get(W.MIN_RESOLUTION)}getMinZoom(){return this.get(W.MIN_ZOOM)}getMaxZoom(){return this.get(W.MAX_ZOOM)}getOpacity(){return this.get(W.OPACITY)}getSourceState(){return si()}getVisible(){return this.get(W.VISIBLE)}getZIndex(){return this.get(W.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(W.EXTENT,t)}setMaxResolution(t){this.set(W.MAX_RESOLUTION,t)}setMinResolution(t){this.set(W.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(W.MAX_ZOOM,t)}setMinZoom(t){this.set(W.MIN_ZOOM,t)}setOpacity(t){ai(typeof t=="number","Layer opacity must be a number"),this.set(W.OPACITY,t)}setVisible(t){this.set(W.VISIBLE,t)}setZIndex(t){this.set(W.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const Gs=Ks,Vt={ADD:"add",REMOVE:"remove"},rr={LENGTH:"length"};class xe extends Ce{constructor(t,e,r){super(t),this.element=e,this.index=r}}class Fs extends vr{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let r=0,a=this.array_.length;r<a;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,r=t.length;e<r;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let r=0,a=e.length;r<a;++r)t(e[r],r,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(rr.LENGTH)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new xe(Vt.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let r=0,a=e.length;r<a;++r)if(e[r]===t)return this.removeAt(r)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new xe(Vt.REMOVE,e,t)),e}setAt(t,e){const r=this.getLength();if(t>=r){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const a=this.array_[t];this.array_[t]=e,this.dispatchEvent(new xe(Vt.REMOVE,a,t)),this.dispatchEvent(new xe(Vt.ADD,e,t))}updateLength_(){this.set(rr.LENGTH,this.array_.length)}assertUnique_(t,e){for(let r=0,a=this.array_.length;r<a;++r)if(this.array_[r]===t&&r!==e)throw new Error("Duplicate item added to a unique collection")}}const sr=Fs;function Js(){return[1/0,1/0,-1/0,-1/0]}function Qs(i,t,e,r,a){return a?(a[0]=i,a[1]=t,a[2]=e,a[3]=r,a):[i,t,e,r]}function tn(i){return Qs(1/0,1/0,-1/0,-1/0,i)}function en(i,t,e){const r=e||Js();return rn(i,t)?(i[0]>t[0]?r[0]=i[0]:r[0]=t[0],i[1]>t[1]?r[1]=i[1]:r[1]=t[1],i[2]<t[2]?r[2]=i[2]:r[2]=t[2],i[3]<t[3]?r[3]=i[3]:r[3]=t[3]):tn(r),r}function rn(i,t){return i[0]<=t[2]&&i[2]>=t[0]&&i[1]<=t[3]&&i[3]>=t[1]}class Ht extends Ce{constructor(t,e){super(t),this.layer=e}}const ni={LAYERS:"layers"};class di extends Gs{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let r=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(ni.LAYERS,this.handleLayersChanged_),r?Array.isArray(r)?r=new sr(r.slice(),{unique:!0}):ai(typeof r.getArray=="function","Expected `layers` to be an array or a `Collection`"):r=new sr(void 0,{unique:!0}),this.setLayers(r)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(te),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push(wt(t,Vt.ADD,this.handleLayersAdd_,this),wt(t,Vt.REMOVE,this.handleLayersRemove_,this));for(const r in this.listenerKeys_)this.listenerKeys_[r].forEach(te);ui(this.listenerKeys_);const e=t.getArray();for(let r=0,a=e.length;r<a;r++){const h=e[r];this.registerLayerListeners_(h),this.dispatchEvent(new Ht("addlayer",h))}this.changed()}registerLayerListeners_(t){const e=[wt(t,gr.PROPERTYCHANGE,this.handleLayerChange_,this),wt(t,fr.CHANGE,this.handleLayerChange_,this)];t instanceof di&&e.push(wt(t,"addlayer",this.handleLayerGroupAdd_,this),wt(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[oi(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new Ht("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new Ht("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new Ht("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,r=oi(e);this.listenerKeys_[r].forEach(te),delete this.listenerKeys_[r],this.dispatchEvent(new Ht("removelayer",e)),this.changed()}getLayers(){return this.get(ni.LAYERS)}setLayers(t){const e=this.getLayers();if(e){const r=e.getArray();for(let a=0,h=r.length;a<h;++a)this.dispatchEvent(new Ht("removelayer",r[a]))}this.set(ni.LAYERS,t)}getLayersArray(t){return t=t!==void 0?t:[],this.getLayers().forEach(function(e){e.getLayersArray(t)}),t}getLayerStatesArray(t){const e=t!==void 0?t:[],r=e.length;this.getLayers().forEach(function(d){d.getLayerStatesArray(e)});const a=this.getLayerState();let h=a.zIndex;!t&&a.zIndex===void 0&&(h=0);for(let d=r,A=e.length;d<A;d++){const p=e[d];p.opacity*=a.opacity,p.visible=p.visible&&a.visible,p.maxResolution=Math.min(p.maxResolution,a.maxResolution),p.minResolution=Math.max(p.minResolution,a.minResolution),p.minZoom=Math.max(p.minZoom,a.minZoom),p.maxZoom=Math.min(p.maxZoom,a.maxZoom),a.extent!==void 0&&(p.extent!==void 0?p.extent=en(p.extent,a.extent):p.extent=a.extent),p.zIndex===void 0&&(p.zIndex=h)}return e}getSourceState(){return"ready"}}const nr=di;(()=>{var i=Object.defineProperty,t=Math.pow,e=(s,o,u)=>o in s?i(s,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[o]=u,r=(s,o,u)=>(e(s,typeof o!="symbol"?o+"":o,u),u),a=(s,o)=>` ${o&&o.length>0?o.map(u=>`<link rel="stylesheet" href="${u}" />`).join(""):""} <style> ${s} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,h=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",d="pointers-overlap",A="pointers-min-distance",p="pointers-max-distance",w="range-dragging",N="data",O="min",Y="max",j="step",at="round",St="type",ne="theme",oe="rtl",ae="btt",Pt="disabled",le="keyboard-disabled",xt="mousewheel-disabled",$t="slider-width",he="slider-height",Xt="slider-radius",Tt="slider-bg",J="slider-bg-hover",H="slider-bg-fill",Rt="pointer-width",ue="pointer-height",S="pointer-radius",m="pointer-bg",g="pointer-bg-hover",_="pointer-bg-focus",v="pointer-shadow",C="pointer-shadow-hover",k="pointer-shadow-focus",Z="pointer-border",q="pointer-border-hover",Q="pointer-border-focus",tt="animate-onclick",ut="css-links",st="vertical",dt="horizontal",_t=(s,o,u,l,f)=>{let E=o-s;return E===0?u:(l-u)*(f-s)/E+u},ot=s=>!isNaN(parseFloat(s))&&isFinite(s),R=(s,o)=>ot(s)?Number(s):o,yt=(s,o)=>o===0?0:Math.round(s/o)*o,Mt=(s,o=1/0)=>{if(o===1/0)return s;let u=t(10,o);return Math.round(s*u)/u},X=s=>s==null?!1:typeof s=="boolean"?s:s.trim().toLowerCase()==="true",$r=(s,o)=>{s.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:o}}))},_r=(s,o)=>{s.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:o}}))},wr=(s,o)=>{s.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:o}}))},xr=(s,o)=>{s.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:o}}))},Ar=(s,o)=>{if(!o||o.length<=0)return;let u=o.map(f=>ot(f)?R(f,f):f),l={values:u||[]};l.value=u[0],l.value0=u[0],l.value1=u[0];for(let f=1;f<u.length;f++)l[`value${f+1}`]=u[f];s.dispatchEvent(new CustomEvent("change",{detail:l}))},De=(s,o,u)=>{let l=0,f,E,D,y,b=!1,P=(L,B,nt,et,K,G)=>{let ct=l;nt!==void 0&&L>nt&&(L=nt),B!==void 0&&L<B&&(L=B),l=L;let pt=l;return(et===st&&G||et===dt&&K)&&(pt=100-pt),et===st?o.style.top=`${pt}%`:o.style.left=`${pt}%`,ct!==l},I=L=>L===o||o.contains(L),x=(L,B,nt,et)=>{f=L,E=B,D=nt,y=et},z=L=>{b=L,o.classList.toggle("disabled",b),b?o.setAttribute("aria-disabled","true"):o.hasAttribute("aria-disabled")&&o.removeAttribute("aria-disabled")},ft=(L,B)=>{B==null?o.removeAttribute(L):o.setAttribute(L,B)},lt=L=>o.getAttribute(L),M=L=>{if(!b){switch(L.key){case"ArrowLeft":{L.preventDefault(),typeof f=="function"&&f(u);break}case"ArrowRight":{L.preventDefault(),typeof E=="function"&&E(u);break}case"ArrowUp":{L.preventDefault(),typeof D=="function"&&D(u);break}case"ArrowDown":{L.preventDefault(),typeof y=="function"&&y(u);break}}xr(s,L)}},T=()=>{b||$r(s,o)};return o.className=`pointer pointer-${u}`,o.addEventListener("keydown",M),o.addEventListener("click",T),{$pointer:o,get percent(){return l},get disabled(){return b},set disabled(L){z(L)},updatePosition:P,isClicked:I,setCallbacks:x,setAttr:ft,getAttr:lt,destroy:()=>{o.removeEventListener("keydown",M),o.removeEventListener("click",T),o.remove()}}},Er=s=>{if(s==null)return;if(Array.isArray(s))return s;if(s.trim()==="")return;let o=s.split(","),u=[],l=!0;for(let f=0;f<o.length;f++){let E=o[f].trim();E!==""&&(u.push(E),ot(E)||(l=!1))}return l?u.map(f=>Number(f)):u},Sr=(s,o)=>o?o.findIndex(u=>u===s||u.toString().trim()===s.toString().trim()):-1,Mr=s=>({updatePosition:(o,u,l,f)=>{if(u.length<=0)return;let E=u.length===1,D=u[0],y=u[u.length-1];o===st?(s.style.removeProperty("width"),s.style.removeProperty("right"),s.style.removeProperty("left"),E?s.style.height=`${D}%`:s.style.height=`${Math.abs(D-y)}%`,f?(s.style.bottom="0%",E?s.style.top="auto":s.style.top=`${Math.min(100-y,100-D)}%`):(s.style.bottom="auto",E?s.style.top="0%":s.style.top=`${Math.min(D,y)}%`)):(s.style.removeProperty("height"),s.style.removeProperty("top"),s.style.removeProperty("bottom"),E?s.style.width=`${D}%`:s.style.width=`${Math.abs(D-y)}%`,l?(s.style.right="0%",E?s.style.left="auto":s.style.left=`${Math.min(100-y,100-D)}%`):(s.style.right="auto",E?s.style.left="0%":s.style.left=`${Math.min(D,y)}%`))}}),fi="--animate-onclick",Lr="--width",Or="--height",Cr="--panel-bg-border-radius",kr="--panel-bg",Dr="--panel-bg-hover",Pr="--panel-bg-fill",Tr="--pointer-width",Rr="--pointer-height",Ir="--pointer-border-radius",Nr="--pointer-bg",Ur="--pointer-bg-hover",Hr="--pointer-bg-focus",zr="--pointer-shadow",Vr="--pointer-shadow-hover",Zr="--pointer-shadow-focus",Br="--pointer-border",jr="--pointer-border-hover",Wr="--pointer-border-focus",de=(s,o,u)=>{let l=new Map;for(let f of s.attributes){let E=f.nodeName.trim().toLowerCase();if(!o.test(E))continue;let D=E.replace(/\D/g,"").trim(),y=D===""||D==="0"||D==="1"?0:R(D,0)-1,b=u&&typeof u=="function"?u(f.value):f.value;l.set(y,b)}return l},qr=s=>{if(!s)return null;let o=s.getAttribute(ut);if(!o)return null;let u=o.split(";"),l=[];for(let f of u)f.trim()!==""&&l.push(f.trim());return l},vi=[[Lr,$t,"sliderWidth",null],[Or,he,"sliderHeight",null],[Cr,Xt,"sliderRadius",null],[kr,Tt,"sliderBg",null],[Dr,J,"sliderBgHover",null],[Pr,H,"sliderBgFill",null],[Tr,Rt,"pointer#Width",/^pointer([0-9]*)-width$/],[Rr,ue,"pointer#Height",/^pointer([0-9]*)-height$/],[Ir,S,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Nr,m,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Ur,g,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[Hr,_,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[zr,v,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[Vr,C,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Zr,k,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Br,Z,"pointer#Border",/^pointer([0-9]*)-border$/],[jr,q,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Wr,Q,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Yr=(s,o,u)=>{let l=null,f=[],E=new Map,D=(M,T=o)=>{let L=[...T.classList];for(let B of L)B.startsWith(M)&&o.classList.remove(B)},y=()=>{D("shape");let M=o.querySelectorAll(".pointer");for(let T of M)D("shape",T)},b=M=>{l=M,D("theme-"),typeof M=="string"&&o.classList.add(`theme-${M}`)},P=()=>{if(y(),!(f.length<=0)){o.classList.add("shape",`shape-${f[0]}`);for(let M=1;M<f.length;M++){let T=f[M];if(!T)continue;let L=o.querySelector(`.pointer-${M}`);!L||L.classList.add("shape",`shape-${T}`)}}},I=(M,T)=>{f[M]=T,P()},x=()=>{y();let M=de(s,/^pointer([0-9]*)-shape$/);if(!(M.size<=0)){for(let T of M){let L=T[0];f[L]=T[1]}P()}},z=(M,T)=>`${M}-${T}`,ft=(M,T,L)=>{let B=u[L];if(!B)return;let nt=L===0?o:B.$pointer;if(T==null){E.has(z(M,L))&&E.delete(z(M,L)),nt.style.removeProperty(M);return}E.set(z(M,L),T),nt.style.setProperty(M,T)},lt=(M,T)=>E.get(z(M,T));return(()=>{for(let M of vi){let[T,L,B,nt]=M;if(nt){let K=de(s,nt);for(let G of K){let ct=G[0],pt=G[1];ft(T,pt,ct)}}else{let K=s.getAttribute(L);ft(T,K,0)}let et=[];if(B.indexOf("#")===-1)et.push([B,0]);else{et.push([B.replace("#",""),0]),et.push([B.replace("#","0"),0]),et.push([B.replace("#","1"),0]);for(let K=1;K<u.length;K++)et.push([B.replace("#",(K+1).toString()),K])}for(let K of et)try{let G=K[0],ct=K[1];Object.prototype.hasOwnProperty.call(s,G)||Object.defineProperty(s,G,{get(){return lt(T,ct)},set:pt=>{ft(T,pt,ct)}})}catch(G){console.error(G)}}b(s.getAttribute(ne)),x()})(),{setStyle:ft,getStyle:lt,get theme(){return l},set theme(M){b(M)},get pointerShapes(){return f},setPointerShape:I}},It="animate-on-click",yi="range-dragging",Xr=(s,o,u,l)=>{let f=[],E=I=>{for(let x of f)x.update&&typeof x.update=="function"&&x.update(I)},D=()=>{for(let I of f)I.destroy&&typeof I.destroy=="function"&&I.destroy()},y=(I,x)=>{for(let z of f)z.onAttrChange&&typeof z.onAttrChange=="function"&&z.onAttrChange(I,x)},b=I=>{if(I.gettersAndSetters){for(let x of I.gettersAndSetters)if(!(!x.name||!x.attributes))try{Object.prototype.hasOwnProperty.call(s,x.name)||Object.defineProperty(s,x.name,x.attributes)}catch(z){console.error("defineSettersGetters error:",z)}}},P=I=>{var x;if(!I.css)return;let z=(x=s.shadowRoot)==null?void 0:x.querySelector("style");!z||(z.innerHTML+=I.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let I of window.tcRangeSliderPlugins){let x=I();f.push(x),x.init&&typeof x.init=="function"&&(x.init(s,o,u,l),b(x),P(x))}},update:E,onAttrChange:y,destroy:D}},Kr=10,mi=20,Gr=(s,o)=>{let u=new Map,l=/^value([0-9]*)$/;for(let y of s.attributes){let b=y.nodeName.trim().toLowerCase();if(!l.test(b))continue;let P=b.replace("value","").trim(),I=P===""||P==="0"||P==="1"?0:R(P,0)-1,x=ot(y.value)?R(y.value,0):y.value;u.set(I,x)}let f=Math.max(...Array.from(u.keys())),E=[];E.push([De(s,o,0),u.get(0)]);let D=o;for(let y=1;y<=f;y++){let b=o.cloneNode(!0);D.after(b),D=b,E.push([De(s,b,y),u.get(y)])}return E},bi=(s,o,u,l,f,E,D)=>{try{Object.defineProperty(s,l,{configurable:!0,get(){if(!o)return;let y=o.pointers[u];if(!y)return;let b=o.getTextValue(y.percent);return ot(b)?R(b,b):b},set:y=>{o.pointers[u]?o==null||o.setValue(y,u):o==null||o.addPointer(y)}}),Object.defineProperty(s,f,{configurable:!0,get(){var y,b;return(b=(y=o==null?void 0:o.pointers[u])==null?void 0:y.getAttr("aria-label"))!=null?b:void 0},set:y=>{!o||o.setAriaLabel(u,y)}}),Object.defineProperty(s,E,{configurable:!0,get(){var y,b;return(b=(y=o==null?void 0:o.styles)==null?void 0:y.pointerShapes[u])!=null?b:null},set:y=>{!o||!o.styles||o.styles.setPointerShape(u,y)}}),Object.defineProperty(s,D,{configurable:!0,get(){var y;return(y=o==null?void 0:o.pointers[u].disabled)!=null?y:!1},set:y=>{if(!o)return;let b=o==null?void 0:o.pointers[u];!b||(b.disabled=y)}})}catch(y){console.error(y)}},Fr=(s,o)=>{let u=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let l=2;l<Kr;l++)u.push([`value${l}`,`ariaLabel${l}`,`pointer${l}Shape`,`pointer${l}Disabled`,l-1]);for(let l of u)bi(s,o,l[4],l[0],l[1],l[2],l[3])},$i=(s,o,u)=>{var l;let f=(l=u.shadowRoot)==null?void 0:l.querySelector(".container");if(f)for(let E of s)o?f.prepend(E.$pointer):f.append(E.$pointer)},Jr=(s,o)=>{if(!(!o||s.length<=1)){for(let u of s)u.$pointer.style.zIndex=mi.toString();o.$pointer.style.zIndex=(mi*2).toString()}},Pe=0,Kt=100,Nt=2,_i="0.3s",Qr=(s,o,u)=>{let l=u.map(n=>n[0]),f=null,E=null,D=null,y=null,b=Pe,P=Kt,I,x,z=dt,ft=Nt,lt=!1,M=!1,T=!1,L=0,B=1/0,nt=!1,et,K,G=!1,ct=!1,pt=!1,At=_i,wi=[],xi=n=>{G||(n.preventDefault&&n.preventDefault(),Lt(n),window.addEventListener("mousemove",Lt),window.addEventListener("mouseup",ce),_r(s,n))},ce=n=>{G||(et=void 0,K=void 0,window.removeEventListener("mousemove",Lt),window.removeEventListener("mouseup",ce),At&&o.classList.add(It),wr(s,n))},is=(n,c)=>{if(l.length<=0)return;if(l.length===1)return l[0].isClicked(n)&&At&&o.classList.remove(It),l[0];let $=ss(n);if(nt){let U=c,mt=ge(U);mt!==void 0&&(U=yt(U,mt)),$?(et=U,K=0,At&&o.classList.remove(It)):et!==void 0&&(K=U-et,et=U)}if(!rs(n)&&!$){for(let U of l)if(!(!U.isClicked(n)||U.disabled))return At&&o.classList.remove(It),U;for(let U of l)if(f===U)return U}let V=1/0,F=null;for(let U of l){if(U.disabled)continue;let mt=Math.abs(c-U.percent);mt<V&&(V=mt,F=U)}return F},Ai=()=>l.findIndex(n=>f===n&&!n.disabled),Lt=n=>{let c;if(z===st){let{height:V,top:F}=o.getBoundingClientRect(),U=n.type.indexOf("mouse")!==-1?n.clientY:n.touches[0].clientY;c=Math.min(Math.max(0,U-F),V)*100/V}else{let{width:V,left:F}=o.getBoundingClientRect(),U=n.type.indexOf("mouse")!==-1?n.clientX:n.touches[0].clientX;c=Math.min(Math.max(0,U-F),V)*100/V}if((lt||M)&&(c=100-c),f=is(n.target,c),f&&Jr(l,f),nt&&l.length>1&&K!==void 0){let V=l[0],F=l[l.length-1],U=V.percent+K<0,mt=F.percent+K>100;if(U||mt)return;for(let we=0;we<l.length;we++)gt(we,l[we].percent+K);return}let $=Ai();$!==-1&&(gt($,c),f==null||f.$pointer.focus())},pe=n=>{if(G||document.activeElement!==s||f!=null&&f.disabled)return;n.stopPropagation(),n.preventDefault();let c=n.deltaY<0,$=lt||M,V=c?!$:$,F=Ai();F!==-1&&(V?Gt(F,l[F].percent):Ft(F,l[F].percent))},Ei=n=>{G||ct||(z===st?M?gt(n,100):gt(n,0):lt?Ft(n,l[n].percent):Gt(n,l[n].percent))},Si=n=>{G||ct||(z===st?M?gt(n,0):gt(n,100):lt?Gt(n,l[n].percent):Ft(n,l[n].percent))},Mi=n=>{G||ct||(z===st?M?Ft(n,l[n].percent):Gt(n,l[n].percent):lt?gt(n,100):gt(n,0))},Li=n=>{G||ct||(z===st?M?Gt(n,l[n].percent):Ft(n,l[n].percent):lt?gt(n,0):gt(n,100))},rs=n=>n.classList.contains("panel"),ss=n=>n.classList.contains("panel-fill"),Gt=(n,c)=>{if(c===void 0)return;let $=ge(c);$==null&&($=1),c-=$,c<0&&(c=0),gt(n,c)},Ft=(n,c)=>{if(c===void 0)return;let $=ge(c);$==null&&($=1),c+=$,c>100&&(c=100),gt(n,c)},Ot=()=>{!y||y.update({percents:Oi(),values:Ci(),$pointers:ki(),min:Di(),max:Pi(),data:Ie(),step:Re(),round:Ue(),type:Ne(),textMin:fe(),textMax:ve(),rightToLeft:Ve(),bottomToTop:Ze(),pointersOverlap:qe(),pointersMinDistance:He(),pointersMaxDistance:ze(),rangeDragging:Ye(),disabled:Be(),keyboardDisabled:je(),mousewheelDisabled:We()})},ns=()=>{Ot()},os=n=>{if(!(T||l.length<=1||P===b))if(n===0){let c=B*100/(P-b);return Math.max(0,l[n+1].percent-c)}else{let c=L*100/(P-b);return Math.min(l[n-1].percent+c,100)}},as=n=>{if(!(T||l.length<=1||P===b))if(n===l.length-1){let c=B*100/(P-b);return Math.min(l[n-1].percent+c,100)}else{let c=L*100/(P-b);return Math.max(0,l[n+1].percent-c)}},ge=n=>{let c;if(typeof I=="function"){let $=_t(0,100,b,P,n);c=I($,n)}else c=I;if(ot(c)){let $=P-b;return c=$===0?0:c*100/$,c}},Ut=n=>{if(n===void 0)return;let c=_t(0,100,b,P,n);return x!==void 0?x[Math.round(c)]:Mt(c,ft)},fe=()=>x!==void 0?x[b]:b,ve=()=>x!==void 0?x[P]:P,Re=()=>I,ls=n=>{var c;return n<=0||T?fe():(c=Ut(l[n-1].percent))!=null?c:""},hs=n=>{var c;return l.length<=1||n>=l.length-1||T?ve():(c=Ut(l[n+1].percent))!=null?c:""},Oi=()=>l.map(n=>n.percent),Ci=()=>l.map(n=>Ut(n.percent)),ki=()=>l.map(n=>n.$pointer),Di=()=>b,Pi=()=>P,Ie=()=>x,Ne=()=>z,Ue=()=>ft,He=()=>L,ze=()=>B,us=n=>wi[n],Ve=()=>lt,Ze=()=>M,Be=()=>G,je=()=>ct,We=()=>pt,qe=()=>T,Ye=()=>nt,gt=(n,c)=>{if(c===void 0)return;let $=ge(c);$!==void 0&&(c=yt(c,$));let V=l[n];if(!V)return;let F=V.updatePosition(c,os(n),as(n),z,lt,M);E==null||E.updatePosition(z,l.map(U=>U.percent),lt,M),Ot();for(let U of l){let mt=Ut(U.percent);mt!==void 0&&(U.setAttr("aria-valuenow",mt.toString()),U.setAttr("aria-valuetext",mt.toString()))}cs(),F&&Ar(s,l.map(U=>Ut(U.percent)))},bt=()=>{for(let n=0;n<l.length;n++)gt(n,l[n].percent)},ds=(n,c)=>{b=x!==void 0?0:R(n,Pe),P=x!==void 0?x.length-1:R(c,Kt),ye(b),me(P)},cs=()=>{var n,c;for(let $=0;$<l.length;$++){let V=l[$];V.setAttr("aria-valuemin",((n=ls($))!=null?n:"").toString()),V.setAttr("aria-valuemax",((c=hs($))!=null?c:"").toString())}},ye=n=>{b=R(n,Pe),b>P&&(P=b+Kt),bt()},me=n=>{P=R(n,Kt),P<b&&(P=b+Kt),bt()},Ti=n=>{T=!0;for(let c=0;c<n.length;c++)be(n[c],c);T=!1;for(let c=0;c<n.length;c++)be(n[c],c)},be=(n,c)=>{let $;x!==void 0?($=n==null?0:Sr(n,x),$===-1&&($=0)):($=R(n,b),$<b&&($=b),$>P&&($=P));let V=_t(b,P,0,100,$);gt(c,V)},$e=n=>{if(n==null){I=void 0;return}if(typeof n=="function"){I=n,bt();return}if(ot(n)){I=R(n,1);let c=Math.abs(P-b);I>c&&(I=void 0),bt();return}I=void 0},Xe=n=>{T=n,bt()},Ke=n=>{(!ot(n)||n<0)&&(n=0),L=n},Ge=n=>{(!ot(n)||n<0)&&(n=1/0),B=n},Fe=n=>{G=n,o.classList.toggle("disabled",G),G?o.setAttribute("aria-disabled","true"):o.hasAttribute("aria-disabled")&&o.removeAttribute("aria-disabled")},Ri=n=>{ct=n},Ii=n=>{pt=n,pt?document.removeEventListener("wheel",pe):document.addEventListener("wheel",pe,{passive:!1})},Je=n=>{if(n==null){x=void 0;return}if(x=Er(n),x===void 0||x.length<=0){x=void 0;return}ye(0),me(x.length-1),I===void 0&&$e(1)},Qe=n=>{var c;typeof n=="string"?z=n.trim().toLowerCase()===st?st:dt:z=dt;let $=(c=s.shadowRoot)==null?void 0:c.querySelector(".range-slider-box");if(!$)return;$.className=`range-slider-box type-${z}`,bt();let V=z===st?"vertical":"horizontal";for(let F of l)F.setAttr("aria-orientation",V)},ti=n=>{lt=n,l.length>1&&$i(l,lt,s),bt(),Ot()},ei=n=>{M=n,l.length>1&&$i(l,M,s),bt(),Ot()},ii=n=>{ft=R(n,Nt),ft<0&&(ft=Nt),Ot()},Ni=n=>{n==null||n.toString().trim().toLowerCase()==="false"?(At=void 0,o.style.removeProperty(fi),o.classList.remove(It)):(At=n.toString(),o.style.setProperty(fi,At),o.classList.add(It))},Ui=(n,c)=>{let $=l[n];!$||($.setAttr("aria-label",c),wi[n]=c)},_e=n=>{if(et=void 0,l.length<=1){nt=!1,o.classList.remove(yi);return}nt=n,o.classList.toggle(yi,nt)},ps=()=>{Fe(X(s.getAttribute(Pt))),ct=X(s.getAttribute(le)),pt=X(s.getAttribute(xt));let n=de(s,/^pointer([0-9]*)-disabled$/,c=>X(c));for(let c of n){let $=c[0];!l[$]||(l[$].disabled=c[1])}},gs=()=>{let n=de(s,/^aria-label([0-9]*)$/);for(let c of n){let $=c[0];Ui($,c[1])}},fs=n=>{let c=l.length,$=l[c-1].$pointer,V=$.cloneNode(!0);$.after(V);let F=De(s,V,c);return F.setCallbacks(Ei,Si,Mi,Li),l.push(F),be(n,c),bt(),Ot(),c},vs=()=>{let n=l.length,c=l[n-1];return c?(c.destroy(),l.pop(),l.length<=1&&_e(!1),bt(),Ot(),n-1):-1};return(()=>{var n,c;for(let V of l)V.setCallbacks(Ei,Si,Mi,Li);let $=(n=s.shadowRoot)==null?void 0:n.querySelector(".panel-fill");$&&(E=Mr($)),Qe(s.getAttribute(St)),ti(X(s.getAttribute(oe))),ei(X(s.getAttribute(ae))),ds(s.getAttribute(O),s.getAttribute(Y)),$e(s.getAttribute(j)),Je(s.getAttribute(N)),Ti(u.map(V=>V[1])),Xe(X(s.getAttribute(d))),Ke(R(s.getAttribute(A),0)),Ge(R(s.getAttribute(p),1/0)),_e(X(s.getAttribute(w))),ii(R(s.getAttribute(at),Nt)),ps(),gs(),D=Yr(s,o,l),Ni((c=s.getAttribute(tt))!=null?c:_i),o.addEventListener("mousedown",xi),o.addEventListener("mouseup",ce),o.addEventListener("touchmove",Lt),o.addEventListener("touchstart",Lt),pt||document.addEventListener("wheel",pe,{passive:!1}),y=Xr(s,ns,{setValues:Ti,setMin:ye,setMax:me,setStep:$e,setPointersOverlap:Xe,setPointersMinDistance:Ke,setPointersMaxDistance:Ge,setDisabled:Fe,setType:Qe,setRightToLeft:ti,setBottomToTop:ei,setRound:ii,setKeyboardDisabled:Ri,setMousewheelDisabled:Ii,setRangeDragging:_e,setData:Je},{getPercents:Oi,getValues:Ci,getPointerElements:ki,getMin:Di,getMax:Pi,getStep:Re,getData:Ie,getType:Ne,getRound:Ue,getTextMin:fe,getTextMax:ve,isRightToLeft:Ve,isBottomToTop:Ze,isDisabled:Be,isKeyboardDisabled:je,isMousewheelDisabled:We,isPointersOverlap:qe,isRangeDraggingEnabled:Ye,getPointersMinDistance:He,getPointersMaxDistance:ze}),y.init()})(),{get pointers(){return l},get styles(){return D},get pluginsManager(){return y},get min(){return fe()},get max(){return ve()},get step(){return Re()},get pointersOverlap(){return qe()},set pointersOverlap(n){Xe(n)},get pointersMinDistance(){return He()},set pointersMinDistance(n){Ke(n)},get pointersMaxDistance(){return ze()},set pointersMaxDistance(n){Ge(n)},get disabled(){return Be()},set disabled(n){Fe(n)},get data(){return Ie()},get type(){return Ne()},set type(n){Qe(n)},get rightToLeft(){return Ve()},set rightToLeft(n){ti(n)},get bottomToTop(){return Ze()},set bottomToTop(n){ei(n)},get round(){return Ue()},set round(n){ii(n)},get animateOnClick(){return At},set animateOnClick(n){Ni(n)},get keyboardDisabled(){return je()},set keyboardDisabled(n){Ri(n)},get mousewheelDisabled(){return We()},set mousewheelDisabled(n){Ii(n)},get rangeDragging(){return Ye()},set rangeDragging(n){_e(n)},setMin:ye,setMax:me,setValue:be,setStep:$e,setData:Je,getTextValue:Ut,setAriaLabel:Ui,getAriaLabel:us,addPointer:fs,removePointer:vs,destroy:()=>{o.removeEventListener("mousedown",xi),o.removeEventListener("mouseup",ce),o.removeEventListener("touchmove",Lt),o.removeEventListener("touchstart",Lt),document.removeEventListener("wheel",pe);for(let n of l)n.destroy();y==null||y.destroy()}}},ts=(s,o,u)=>{let l=vi.find(([y,b,P,I])=>b.replace("#","")===o.replace(/\d+/g,""));if(l&&s.styles){let[y,b,P,I]=l,x=o.replace(/\D/g,"").trim(),z=x===""||x==="0"||x==="1"?0:R(x,0)-1;s.styles.setStyle(y,u,z);return}switch(s&&s.pluginsManager&&s.pluginsManager.onAttrChange(o,u),o){case O:{s.setMin(u);break}case Y:{s.setMax(u);break}case j:{s.setStep(u);break}case d:{s.pointersOverlap=X(u);break}case A:{s.pointersMinDistance=R(u,0);break}case w:{s.rangeDragging=X(u);break}case p:{s.pointersMaxDistance=R(u,1/0);break}case Pt:{s.disabled=X(u);break}case le:{s.keyboardDisabled=X(u);break}case xt:{s.mousewheelDisabled=X(u);break}case N:{s.setData(u);break}case St:{s.type=u;break}case oe:{s.rightToLeft=X(u);break}case ae:{s.bottomToTop=X(u);break}case at:{s.round=R(u,Nt);break}case ne:{s.styles&&(s.styles.theme=u);break}case tt:{s.animateOnClick=u;break}}let f=null;if(/^value([0-9]*)$/.test(o)&&(f="value"),/^pointer([0-9]*)-disabled$/.test(o)&&(f="pointer-disabled"),/^aria-label([0-9]*)$/.test(o)&&(f="aria-label"),/^pointer([0-9]*)-shape$/.test(o)&&(f="pointer-shape"),!f)return;let E=o.replace(/\D/g,"").trim(),D=E===""||E==="0"||E==="1"?0:R(E,0)-1;switch(f){case"value":{s.setValue(u,D);break}case"pointer-disabled":{let y=s==null?void 0:s.pointers[D];if(!y)return;y.disabled=X(u);break}case"aria-label":{s.setAriaLabel(D,u);break}case"pointer-shape":{s.styles&&s.styles.setPointerShape(D,u);break}}},es=class extends HTMLElement{constructor(){super(),r(this,"slider"),r(this,"_externalCSSList",[]),r(this,"_observer",null),this.attachShadow({mode:"open"})}set step(s){this.slider&&this.slider.setStep(s)}get step(){var s;return(s=this.slider)==null?void 0:s.step}set disabled(s){this.slider&&(this.slider.disabled=s)}get disabled(){var s,o;return(o=(s=this.slider)==null?void 0:s.disabled)!=null?o:!1}set data(s){var o;(o=this.slider)==null||o.setData(s)}get data(){var s;return(s=this.slider)==null?void 0:s.data}set min(s){var o;(o=this.slider)==null||o.setMin(s)}get min(){var s;return(s=this.slider)==null?void 0:s.min}set max(s){var o;(o=this.slider)==null||o.setMax(s)}get max(){var s;return(s=this.slider)==null?void 0:s.max}set round(s){!this.slider||(this.slider.round=s)}get round(){var s,o;return(o=(s=this.slider)==null?void 0:s.round)!=null?o:Nt}set type(s){!this.slider||(this.slider.type=s??dt)}get type(){var s;return((s=this.slider)==null?void 0:s.type)||dt}set pointersOverlap(s){!this.slider||(this.slider.pointersOverlap=s)}get pointersOverlap(){var s,o;return(o=(s=this.slider)==null?void 0:s.pointersOverlap)!=null?o:!1}set pointersMinDistance(s){!this.slider||(this.slider.pointersMinDistance=s)}get pointersMinDistance(){var s,o;return(o=(s=this.slider)==null?void 0:s.pointersMinDistance)!=null?o:0}set pointersMaxDistance(s){!this.slider||(this.slider.pointersMaxDistance=s)}get pointersMaxDistance(){var s,o;return(o=(s=this.slider)==null?void 0:s.pointersMaxDistance)!=null?o:1/0}set theme(s){!this.slider||!this.slider.styles||(this.slider.styles.theme=s)}get theme(){var s,o,u;return(u=(o=(s=this.slider)==null?void 0:s.styles)==null?void 0:o.theme)!=null?u:null}set rtl(s){!this.slider||(this.slider.rightToLeft=s)}get rtl(){var s,o;return(o=(s=this.slider)==null?void 0:s.rightToLeft)!=null?o:!1}set btt(s){!this.slider||(this.slider.bottomToTop=s)}get btt(){var s,o;return(o=(s=this.slider)==null?void 0:s.bottomToTop)!=null?o:!1}set keyboardDisabled(s){!this.slider||(this.slider.keyboardDisabled=s)}get keyboardDisabled(){var s,o;return(o=(s=this.slider)==null?void 0:s.keyboardDisabled)!=null?o:!1}set mousewheelDisabled(s){!this.slider||(this.slider.mousewheelDisabled=s)}get mousewheelDisabled(){var s,o;return(o=(s=this.slider)==null?void 0:s.mousewheelDisabled)!=null?o:!1}set animateOnClick(s){!this.slider||(this.slider.animateOnClick=s)}get animateOnClick(){var s;return(s=this.slider)==null?void 0:s.animateOnClick}get rangeDragging(){var s,o;return(o=(s=this.slider)==null?void 0:s.rangeDragging)!=null?o:!1}set rangeDragging(s){this.slider&&(this.slider.rangeDragging=X(s))}get externalCSSList(){return this._externalCSSList}addPointer(s){var o,u;if(!this.slider)return;let l=(u=(o=this.slider)==null?void 0:o.addPointer(s))!=null?u:0;bi(this,this.slider,l,`value${l+1}`,`ariaLabel${l+1}`,`pointerShape${l+1}`,`pointer${l+1}Disabled`)}removePointer(){var s;!this.slider||(s=this.slider)==null||s.removePointer()}addCSS(s){if(!this.shadowRoot)return;let o=document.createElement("style");o.textContent=s,this.shadowRoot.appendChild(o)}connectedCallback(){var s,o;if(!this.shadowRoot)return;this._externalCSSList=qr(this),this.shadowRoot.innerHTML=a(h,this._externalCSSList);let u=(s=this.shadowRoot)==null?void 0:s.querySelector(".pointer");if(!u)return;let l=(o=this.shadowRoot)==null?void 0:o.getElementById("range-slider");if(!l)return;let f=Gr(this,u);this.slider=Qr(this,l,f),Fr(this,this.slider),this._observer=new MutationObserver(E=>{E.forEach(D=>{var y;if(!this.slider||D.type!=="attributes")return;let b=D.attributeName;!b||ts(this.slider,b,(y=this.getAttribute(b))!=null?y:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},Te=es;window.tcRangeSlider=Te,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Te),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Te{})})();const sn=`
32
- :host {
33
- display: block;
34
- }
35
- `,nn=`
36
- button,
37
- .button {
38
- /* TODO: why does this only work here and not from :root? */
39
- --primary-color: #004170;
40
- --primary-color-hover: #004170CC;
41
- --error-color: #FF5252;
42
-
43
- display: inline-flex;
44
- position: relative;
45
- align-items: center;
46
- color: #fff;
47
- border-width: 0;
48
- outline: none;
49
- border-radius: 4px;
50
- padding: 16px;
51
- height: 36px;
52
- cursor: pointer;
53
- font-family: inherit;
54
- font-size: 0.875rem;
55
- text-transform: uppercase;
56
- letter-spacing: 1.25px;
57
- font-weight: 500;
58
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
59
- transition-property: box-shadow, transform, opacity, background;
60
- transition-duration: 0.28s;
61
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
62
- }
63
-
64
- button:hover:not([disabled]):not(.icon),
65
- .button:hover:not([disabled]):not(.icon) {
66
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
67
- background: var(--primary-color-hover);
68
- }
69
-
70
- button, button:active,
71
- .button, .button:active {
72
- background: var(--primary-color);
73
- }
74
-
75
- button[disabled],
76
- .button[disabled] {
77
- opacity: 0.5;
78
- }
79
-
80
- button.outline,
81
- .button.outline {
82
- background: transparent;
83
- box-shadow: none;
84
- color: var(--primary-color);
85
- outline: 1px solid var(--primary-color);
86
- }
87
-
88
- button.outline:hover,
89
- .button.outline:hover {
90
- background: transparent;
91
- }
92
-
93
- button.icon,
94
- .button.icon {
95
- background: transparent;
96
- border: none;
97
- box-shadow: none;
98
- padding: 0;
99
- border-radius: 50%;
100
- width: 24px;
101
- height: 24px;
102
- text-indent: -9999px;
103
- }
104
-
105
- button.icon-text,
106
- .button.icon-text {
107
- text-indent: 26px;
108
- }
109
-
110
- button.icon:before, button.icon-text:before,
111
- .button.icon:before, .button.icon-text:before {
112
- position: absolute;
113
- text-indent: 0;
114
- line-height: initial;
115
- }
116
-
117
- button.icon:before,
118
- .button.icon:before {
119
- width: 24px;
120
- height: 24px;
121
- margin-right: 0;
122
- }
123
-
124
- button.icon-text:before,
125
- .button.icon-text:before {
126
- width: 18px;
127
- height: 18px;
128
- }
129
-
130
- button.small,
131
- .button.small {
132
- height: 28px;
133
- padding: 12.4px;
134
- font-size: .75rem;
135
- }
136
- `,on=`
137
- * {
138
- font-family: Roboto, sans-serif;
139
- }
140
-
141
- ${nn}
142
-
143
- button.icon-text.play:before {
144
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Eplay%3C/title%3E%3Cpath d='M8,5.14V19.14L19,12.14L8,5.14Z' fill='%23fff' /%3E%3C/svg%3E");
145
- }
146
-
147
- button.icon-text.pause:before {
148
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Epause%3C/title%3E%3Cpath d='M14,19H18V5H14M6,19H10V5H6V19Z' fill='%23fff' /%3E%3C/svg%3E");
149
- }
150
-
151
- button.icon.previous:before {
152
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Earrow-left-drop-circle%3C/title%3E%3Cpath d='M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M14,7L9,12L14,17V7Z' fill='%23004170' /%3E%3C/svg%3E");
153
- }
154
-
155
- button.icon.next:before {
156
- content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctitle%3Earrow-right-drop-circle%3C/title%3E%3Cpath d='M2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12M10,17L15,12L10,7V17Z' fill='%23004170' /%3E%3C/svg%3E");
157
- }
158
- `;var ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var yr={exports:{}};(function(i,t){(function(e,r){i.exports=r()})(ci,function(){var e=1e3,r=6e4,a=36e5,h="millisecond",d="second",A="minute",p="hour",w="day",N="week",O="month",Y="quarter",j="year",at="date",St="Invalid Date",ne=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,oe=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var m=["th","st","nd","rd"],g=S%100;return"["+S+(m[(g-20)%10]||m[g]||m[0])+"]"}},Pt=function(S,m,g){var _=String(S);return!_||_.length>=m?S:""+Array(m+1-_.length).join(g)+S},le={s:Pt,z:function(S){var m=-S.utcOffset(),g=Math.abs(m),_=Math.floor(g/60),v=g%60;return(m<=0?"+":"-")+Pt(_,2,"0")+":"+Pt(v,2,"0")},m:function S(m,g){if(m.date()<g.date())return-S(g,m);var _=12*(g.year()-m.year())+(g.month()-m.month()),v=m.clone().add(_,O),C=g-v<0,k=m.clone().add(_+(C?-1:1),O);return+(-(_+(g-v)/(C?v-k:k-v))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:O,y:j,w:N,d:w,D:at,h:p,m:A,s:d,ms:h,Q:Y}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},xt="en",$t={};$t[xt]=ae;var he="$isDayjsObject",Xt=function(S){return S instanceof Rt||!(!S||!S[he])},Tt=function S(m,g,_){var v;if(!m)return xt;if(typeof m=="string"){var C=m.toLowerCase();$t[C]&&(v=C),g&&($t[C]=g,v=C);var k=m.split("-");if(!v&&k.length>1)return S(k[0])}else{var Z=m.name;$t[Z]=m,v=Z}return!_&&v&&(xt=v),v||!_&&xt},J=function(S,m){if(Xt(S))return S.clone();var g=typeof m=="object"?m:{};return g.date=S,g.args=arguments,new Rt(g)},H=le;H.l=Tt,H.i=Xt,H.w=function(S,m){return J(S,{locale:m.$L,utc:m.$u,x:m.$x,$offset:m.$offset})};var Rt=function(){function S(g){this.$L=Tt(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[he]=!0}var m=S.prototype;return m.parse=function(g){this.$d=function(_){var v=_.date,C=_.utc;if(v===null)return new Date(NaN);if(H.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var k=v.match(ne);if(k){var Z=k[2]-1||0,q=(k[7]||"0").substring(0,3);return C?new Date(Date.UTC(k[1],Z,k[3]||1,k[4]||0,k[5]||0,k[6]||0,q)):new Date(k[1],Z,k[3]||1,k[4]||0,k[5]||0,k[6]||0,q)}}return new Date(v)}(g),this.init()},m.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},m.$utils=function(){return H},m.isValid=function(){return this.$d.toString()!==St},m.isSame=function(g,_){var v=J(g);return this.startOf(_)<=v&&v<=this.endOf(_)},m.isAfter=function(g,_){return J(g)<this.startOf(_)},m.isBefore=function(g,_){return this.endOf(_)<J(g)},m.$g=function(g,_,v){return H.u(g)?this[_]:this.set(v,g)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(g,_){var v=this,C=!!H.u(_)||_,k=H.p(g),Z=function(ot,R){var yt=H.w(v.$u?Date.UTC(v.$y,R,ot):new Date(v.$y,R,ot),v);return C?yt:yt.endOf(w)},q=function(ot,R){return H.w(v.toDate()[ot].apply(v.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(R)),v)},Q=this.$W,tt=this.$M,ut=this.$D,st="set"+(this.$u?"UTC":"");switch(k){case j:return C?Z(1,0):Z(31,11);case O:return C?Z(1,tt):Z(0,tt+1);case N:var dt=this.$locale().weekStart||0,_t=(Q<dt?Q+7:Q)-dt;return Z(C?ut-_t:ut+(6-_t),tt);case w:case at:return q(st+"Hours",0);case p:return q(st+"Minutes",1);case A:return q(st+"Seconds",2);case d:return q(st+"Milliseconds",3);default:return this.clone()}},m.endOf=function(g){return this.startOf(g,!1)},m.$set=function(g,_){var v,C=H.p(g),k="set"+(this.$u?"UTC":""),Z=(v={},v[w]=k+"Date",v[at]=k+"Date",v[O]=k+"Month",v[j]=k+"FullYear",v[p]=k+"Hours",v[A]=k+"Minutes",v[d]=k+"Seconds",v[h]=k+"Milliseconds",v)[C],q=C===w?this.$D+(_-this.$W):_;if(C===O||C===j){var Q=this.clone().set(at,1);Q.$d[Z](q),Q.init(),this.$d=Q.set(at,Math.min(this.$D,Q.daysInMonth())).$d}else Z&&this.$d[Z](q);return this.init(),this},m.set=function(g,_){return this.clone().$set(g,_)},m.get=function(g){return this[H.p(g)]()},m.add=function(g,_){var v,C=this;g=Number(g);var k=H.p(_),Z=function(tt){var ut=J(C);return H.w(ut.date(ut.date()+Math.round(tt*g)),C)};if(k===O)return this.set(O,this.$M+g);if(k===j)return this.set(j,this.$y+g);if(k===w)return Z(1);if(k===N)return Z(7);var q=(v={},v[A]=r,v[p]=a,v[d]=e,v)[k]||1,Q=this.$d.getTime()+g*q;return H.w(Q,this)},m.subtract=function(g,_){return this.add(-1*g,_)},m.format=function(g){var _=this,v=this.$locale();if(!this.isValid())return v.invalidDate||St;var C=g||"YYYY-MM-DDTHH:mm:ssZ",k=H.z(this),Z=this.$H,q=this.$m,Q=this.$M,tt=v.weekdays,ut=v.months,st=v.meridiem,dt=function(R,yt,Mt,X){return R&&(R[yt]||R(_,C))||Mt[yt].slice(0,X)},_t=function(R){return H.s(Z%12||12,R,"0")},ot=st||function(R,yt,Mt){var X=R<12?"AM":"PM";return Mt?X.toLowerCase():X};return C.replace(oe,function(R,yt){return yt||function(Mt){switch(Mt){case"YY":return String(_.$y).slice(-2);case"YYYY":return H.s(_.$y,4,"0");case"M":return Q+1;case"MM":return H.s(Q+1,2,"0");case"MMM":return dt(v.monthsShort,Q,ut,3);case"MMMM":return dt(ut,Q);case"D":return _.$D;case"DD":return H.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return dt(v.weekdaysMin,_.$W,tt,2);case"ddd":return dt(v.weekdaysShort,_.$W,tt,3);case"dddd":return tt[_.$W];case"H":return String(Z);case"HH":return H.s(Z,2,"0");case"h":return _t(1);case"hh":return _t(2);case"a":return ot(Z,q,!0);case"A":return ot(Z,q,!1);case"m":return String(q);case"mm":return H.s(q,2,"0");case"s":return String(_.$s);case"ss":return H.s(_.$s,2,"0");case"SSS":return H.s(_.$ms,3,"0");case"Z":return k}return null}(R)||k.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(g,_,v){var C,k=this,Z=H.p(_),q=J(g),Q=(q.utcOffset()-this.utcOffset())*r,tt=this-q,ut=function(){return H.m(k,q)};switch(Z){case j:C=ut()/12;break;case O:C=ut();break;case Y:C=ut()/3;break;case N:C=(tt-Q)/6048e5;break;case w:C=(tt-Q)/864e5;break;case p:C=tt/a;break;case A:C=tt/r;break;case d:C=tt/e;break;default:C=tt}return v?C:H.a(C)},m.daysInMonth=function(){return this.endOf(O).$D},m.$locale=function(){return $t[this.$L]},m.locale=function(g,_){if(!g)return this.$L;var v=this.clone(),C=Tt(g,_,!0);return C&&(v.$L=C),v},m.clone=function(){return H.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},S}(),ue=Rt.prototype;return J.prototype=ue,[["$ms",h],["$s",d],["$m",A],["$H",p],["$W",w],["$M",O],["$y",j],["$D",at]].forEach(function(S){ue[S[1]]=function(m){return this.$g(m,S[0],S[1])}}),J.extend=function(S,m){return S.$i||(S(m,Rt,J),S.$i=!0),J},J.locale=Tt,J.isDayjs=Xt,J.unix=function(S){return J(1e3*S)},J.en=$t[xt],J.Ls=$t,J.p={},J})})(yr);var an=yr.exports;const gi=pi(an);var mr={exports:{}};(function(i,t){(function(e,r){i.exports=r()})(ci,function(){return function(e,r,a){r.prototype.dayOfYear=function(h){var d=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return h==null?d:this.add(h-d,"day")}}})})(mr);var ln=mr.exports;const hn=pi(ln);var br={exports:{}};(function(i,t){(function(e,r){i.exports=r()})(ci,function(){var e="day";return function(r,a,h){var d=function(w){return w.add(4-w.isoWeekday(),e)},A=a.prototype;A.isoWeekYear=function(){return d(this).year()},A.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var N,O,Y,j,at=d(this),St=(N=this.isoWeekYear(),O=this.$u,Y=(O?h.utc:h)().year(N).startOf("year"),j=4-Y.isoWeekday(),Y.isoWeekday()>4&&(j+=7),Y.add(j,e));return at.diff(St,"week")+1},A.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var p=A.startOf;A.startOf=function(w,N){var O=this.$utils(),Y=!!O.u(N)||N;return O.p(w)==="isoweek"?Y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):p.bind(this)(w,N)}}})})(br);var un=br.exports;const dn=pi(un);var cn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,rt=(i,t,e,r)=>{for(var a=r>1?void 0:r?pn(t,e):t,h=i.length-1,d;h>=0;h--)(d=i[h])&&(a=(r?d(t,e,a):d(a))||a);return r&&a&&cn(t,e,a),a};gi.extend(hn);gi.extend(dn);let ht=class extends Zt{constructor(){super(...arguments),this.animationValues=[],this._newTimeIndex=0}next(){this._updateStep(1)}previous(){this._updateStep(-1)}playAnimation(i){i?this._animationInterval=setInterval(()=>this._updateStep(1),500):clearInterval(this._animationInterval),this._isAnimationPlaying=i,this.requestUpdate()}setConfig(i){this.layer=i.layer??this.layer,this.animationProperty=i.animationProperty??this.animationProperty,this.animationValues=i.animationValues??this.animationValues,this.requestUpdate(),this._updateStep(0)}get currentTime(){return this.animationValues[this._newTimeIndex]}set currentTime(i){const t=this.animationValues.findIndex(e=>e===i);t>-1?this._newTimeIndex=t:console.error(`Unable to find time "${i}" in available times!`)}_updateStep(i=1){this._newTimeIndex=this._newTimeIndex+i,this._newTimeIndex>this.animationValues.length-1&&(this._newTimeIndex=0),this._newTimeIndex<0&&(this._newTimeIndex=this.animationValues.length-1),this._animationSource.updateParams({[this.animationProperty]:this.animationValues[this._newTimeIndex]}),this.requestUpdate()}getFlatLayersArray(i){const t=[];t.push(...i);let e=t.filter(r=>r instanceof nr);for(;e.length;){const r=[];for(let a=0,h=e.length;a<h;a++){const d=e[a].getLayers().getArray();t.push(...d),r.push(...d.filter(A=>A instanceof nr))}e=r}return t}render(){const i=document.querySelector(this.for),t=i.map||i;return t.once("loadend",()=>{if(!this._originalParams){const e=this.getFlatLayersArray(t.getLayers().getArray()).find(r=>r.get("id")===this.layer);this._animationSource=e.getSource(),this._originalParams=this._animationSource.getParams()}}),Ee`
159
- <style>
160
- ${sn}
161
- ${!this.unstyled&&on}
162
- </style>
163
- <main>
164
- <div id="controls" part="controls">
165
- <button
166
- part="previous"
167
- class="icon previous"
168
- @click="${()=>this.previous()}"
169
- >
170
- <
171
- </button>
172
- <button part="next" class="icon next" @click="${()=>this.next()}">
173
- >
174
- </button>
175
- ${this.disablePlay?it:Ee`
176
- <button
177
- part="play"
178
- class="icon-text ${this._isAnimationPlaying?"pause":"play"}"
179
- @click="${()=>this.playAnimation(!this._isAnimationPlaying)}"
180
- >
181
- ${this._isAnimationPlaying?"Pause":"Play"}
182
- </button>
183
- `}
184
- ${this.slider?Ee`
185
- <div class="slider-col">
186
- <tc-range-slider
187
- data="${this.animationValues}"
188
- part="slider"
189
- value="${this.animationValues[this._newTimeIndex]}"
190
- style="display: inline-block;"
191
- @change="${e=>this._updateStep(this.animationValues.findIndex(r=>r===e.detail.value)-this._newTimeIndex)}"
192
- ></tc-range-slider>
193
-
194
- <eox-sliderticks
195
- width="300"
196
- .times="${this.animationValues}"
197
- ></eox-sliderticks>
198
- </div>
199
- `:""}
200
-
201
- <span part="current"
202
- >${this.animationValues[this._newTimeIndex]}</span
203
- >
204
- </div>
205
- </main>
206
- `}};rt([vt({attribute:"animation-property"})],ht.prototype,"animationProperty",2);rt([vt({attribute:"animation-values",type:Array})],ht.prototype,"animationValues",2);rt([vt()],ht.prototype,"for",2);rt([vt()],ht.prototype,"layer",2);rt([vt({type:Boolean})],ht.prototype,"slider",2);rt([vt()],ht.prototype,"_originalParams",2);rt([vt({attribute:"disable-play",type:Boolean})],ht.prototype,"disablePlay",2);rt([vt({attribute:"current-time"})],ht.prototype,"currentTime",1);rt([Yt()],ht.prototype,"_animationInterval",2);rt([Yt()],ht.prototype,"_animationSource",2);rt([Yt()],ht.prototype,"_isAnimationPlaying",2);rt([Yt()],ht.prototype,"_newTimeIndex",2);rt([vt({type:Boolean})],ht.prototype,"unstyled",2);ht=rt([pr("eox-timecontrol")],ht);let qt=class extends Zt{constructor(){super(...arguments),this.width=0,this.times=[],this.height=6,this.svgWidth=0}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.handleResize.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.handleResize.bind(this)),super.disconnectedCallback()}firstUpdated(){this.handleResize()}handleResize(){this.svgWidth=this.shadowRoot.querySelector("svg").clientWidth,this.height=this.shadowRoot.querySelector("svg").clientHeight}get lines(){const i=this.numLines>this.width/2?this.width/2:this.numLines,t=this.width/(i-1);return Array.from({length:this.numLines},(e,r)=>r*t)}get numLines(){return this.times?this.times.length:0}get yearMarks(){const i=[];let t=null;return this.lines.forEach((e,r)=>{const a=gi(this.times[r]).year();(r===0||a!==t)&&i.push({label:a,position:e}),t=a}),i.filter((e,r)=>{const a=i[r+1];return!(a&&a.position-e.position<25)})}isYearLine(i){return this.yearMarks.some(t=>Math.abs(t.position-i)<1)}render(){return Ee`
207
- <div class="fill-width" style="margin-top: 3px;">
208
- <svg
209
- style="width: ${this.width}px; height: 30px;"
210
- viewBox="-1 0 ${this.width+2} ${this.height}"
211
- >
212
- ${this.lines.map((i,t)=>Ki`
213
- <line
214
- key=${t}
215
- x1=${i}
216
- y1="0"
217
- x2=${i}
218
- y2=${this.isYearLine(i)?12:6}
219
- stroke=${this.isYearLine(i)?"#222":"#7596A2"}
220
- stroke-width=${this.isYearLine(i),1}
221
- ></line>
222
- `)}
223
- ${this.yearMarks.map((i,t)=>Ki`
224
- <text
225
- key=${`y${t}`}
226
- x=${i.position}
227
- y=${this.height-1}
228
- fill="#555"
229
- font-size="13"
230
- font-weight="500"
231
- >
232
- ${i.label}
233
- </text>
234
- `)}
235
- </svg>
236
- </div>
237
- `}};rt([vt({type:Number})],qt.prototype,"width",2);rt([vt({type:Array})],qt.prototype,"times",2);rt([Yt()],qt.prototype,"height",2);rt([Yt()],qt.prototype,"svgWidth",2);qt=rt([pr("eox-sliderticks")],qt);export{ht as EOxTimeControl,qt as SliderTicks};