@phatvu/web-component-poc 1.0.2 → 1.0.3

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 (30) hide show
  1. package/dist/cjs/{fast-carousel.cjs.entry.js → fast-button_3.cjs.entry.js} +210 -3
  2. package/dist/cjs/{index-C756SOR-.js → index-B2BTpdbN.js} +373 -114
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/web-component-poc.cjs.js +2 -2
  5. package/dist/collection/components/button/button.js +2 -3
  6. package/dist/collection/components/fast-carousel/carousel.js +2 -3
  7. package/dist/components/fast-button.js +1 -1
  8. package/dist/components/fast-carousel.js +1 -1
  9. package/dist/components/index.js +1 -1
  10. package/dist/components/jobs-list-only-ui.js +1 -1
  11. package/dist/components/p-UM9TUfe3.js +1 -0
  12. package/dist/esm/{fast-carousel.entry.js → fast-button_3.entry.js} +209 -4
  13. package/dist/esm/{index-D7_MJBO8.js → index-Dk5CvWmb.js} +373 -114
  14. package/dist/esm/loader.js +3 -3
  15. package/dist/esm/web-component-poc.js +3 -3
  16. package/dist/web-component-poc/p-3d68d559.entry.js +1 -0
  17. package/dist/web-component-poc/p-Dk5CvWmb.js +2 -0
  18. package/dist/web-component-poc/web-component-poc.esm.js +1 -1
  19. package/hydrate/index.js +15 -506
  20. package/hydrate/index.mjs +15 -506
  21. package/package.json +1 -1
  22. package/dist/cjs/fast-button_2.cjs.entry.js +0 -211
  23. package/dist/components/p-Cw2MJ5l2.js +0 -1
  24. package/dist/esm/fast-button_2.entry.js +0 -208
  25. package/dist/web-component-poc/index-xE9n11HX.js.map +0 -1
  26. package/dist/web-component-poc/index.esm.js.map +0 -1
  27. package/dist/web-component-poc/p-0bc6d45d.entry.js +0 -1
  28. package/dist/web-component-poc/p-8ab359cc.entry.js +0 -1
  29. package/dist/web-component-poc/p-D7_MJBO8.js +0 -2
  30. package/dist/web-component-poc/web-component-poc.esm.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C756SOR-.js');
3
+ var index = require('./index-B2BTpdbN.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  const defineCustomElements = async (win, options) => {
7
7
  if (typeof window === 'undefined') return undefined;
8
8
  await appGlobals.globalScripts();
9
- return index.bootstrapLazy([["fast-button_2.cjs",[[769,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[512,"jobs-list-only-ui",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}]]],["fast-carousel.cjs",[[769,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}]]]], options);
9
+ return index.bootstrapLazy([["fast-button_3.cjs",[[772,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[772,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}],[512,"jobs-list-only-ui",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-C756SOR-.js');
3
+ var index = require('./index-B2BTpdbN.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["fast-button_2.cjs",[[769,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[512,"jobs-list-only-ui",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}]]],["fast-carousel.cjs",[[769,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}]]]], options);
22
+ return index.bootstrapLazy([["fast-button_3.cjs",[[772,"fast-button",{"variant":[1],"type":[1],"disabled":[4]}],[772,"fast-carousel",{"items":[1],"loop":[4],"class":[1],"controlClass":[1,"control-class"],"slideClass":[1,"slide-class"],"itemClass":[1,"item-class"],"scrollPrev":[64],"scrollNext":[64],"goToSlide":[64],"getEmbla":[64]}],[512,"jobs-list-only-ui",{"mockData":[4,"mock-data"],"jobs":[1],"loading":[4],"totalJob":[2,"total-job"],"noResultsLine1":[1,"no-results-line-1"],"noResultsLine2":[1,"no-results-line-2"],"applyButtonText":[1,"apply-button-text"],"showBrand":[4,"show-brand"],"showReference":[4,"show-reference"],"showEmploymentType":[4,"show-employment-type"],"streetFormat":[1,"street-format"],"multiLocationText":[1,"multi-location-text"],"remoteLocationText":[1,"remote-location-text"],"enableKilometers":[4,"enable-kilometers"],"rootClass":[1,"root-class"],"showSuggestions":[4,"show-suggestions"],"clearResultSuggestionsTitleText":[1,"clear-result-suggestions-title-text"],"clearResultSuggestionsLine1":[1,"clear-result-suggestions-line-1"],"clearResultSuggestionsLine2":[1,"clear-result-suggestions-line-2"],"clearResultSuggestionsLine3":[1,"clear-result-suggestions-line-3"],"clearResultSuggestionsLine4":[1,"clear-result-suggestions-line-4"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -25,14 +25,13 @@ export class CustomButton {
25
25
  this.buttonClick.emit(e);
26
26
  };
27
27
  render() {
28
- return (h("button", { key: 'b373f44e11e651d0371ce3cade98b4650ccdd727', type: this.type, class: {
28
+ return (h("button", { key: '3b74909afe4e305dfd38f0b07657202e3d5bfccd', type: this.type, class: {
29
29
  'custom-button': true,
30
30
  [`custom-button--${this.variant}`]: true,
31
31
  'custom-button--disabled': this.disabled,
32
- }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '2a046bc70af051c04f4549def87dac7044b41e04' })));
32
+ }, disabled: this.disabled, onClick: this.handleClick }, h("slot", { key: '49845d350e4665c5c66e30bd9262f788eaaa1e20' })));
33
33
  }
34
34
  static get is() { return "fast-button"; }
35
- static get encapsulation() { return "shadow"; }
36
35
  static get originalStyleUrls() {
37
36
  return {
38
37
  "$": ["button.css"]
@@ -220,16 +220,15 @@ export class AppCarousel {
220
220
  render() {
221
221
  const itemsArray = this.getItemsArray();
222
222
  const useItems = itemsArray !== undefined && itemsArray.length > 0;
223
- return (h("div", { key: '313c58e9c1ea3b9c0d0fd4b9d6354336682d9353', class: `carousel ${this.class || ''}`.trim() }, h("div", { key: '14ad75526a24ed38df053fa221e2fafef6d532ed', class: `carousel__viewport ${this.slideClass || ''}`.trim(), ref: (el) => (this.viewportRef = el) }, h("div", { key: '1d3a771598c382592b789289494f2439fea56918', class: "carousel__container", ref: (el) => (this.containerRef = el) }, useItems && itemsArray
223
+ return (h("div", { key: '3a2ea6c339bf0fe656e5a333789df7a37156b5dc', class: `carousel ${this.class || ''}`.trim() }, h("div", { key: '0a73b925095ae3188e5e40b024bc250e4c183894', class: `carousel__viewport ${this.slideClass || ''}`.trim(), ref: (el) => (this.viewportRef = el) }, h("div", { key: '7fc3b5a72e386f7fa21702aeb363e08da1b728cf', class: "carousel__container", ref: (el) => (this.containerRef = el) }, useItems && itemsArray
224
224
  ? itemsArray.map((item, i) => (h("div", { key: i, class: `carousel__slide ${this.itemClass || ''}`.trim() }, typeof item === 'object' &&
225
225
  item !== null &&
226
226
  'content' in item
227
227
  ? item.content
228
228
  : String(item))))
229
- : null)), !useItems && (h("div", { key: 'cdecd3275ac3c5ffe7a0f46153d3e59ad0d4ba9d', style: { display: 'none' }, "aria-hidden": "true" }, h("slot", { key: '450dd5b90f20166a4d6ef4a0d46d208ad47bbf4b', ref: (el) => (this.slotRef = el) }))), h("div", { key: 'ad4eab3f45204170308d8021799d227eaff36d71', class: `carousel__controls ${this.controlClass || ''}`.trim() }, h("button", { key: '1a4ef7209ea768a55892f4d928da3f6100faab4b', type: "button", "aria-label": "Previous", class: "carousel__prev", ref: (el) => (this.prevBtnRef = el) }, h("svg", { key: '7d579cb030149947791db565bc1520ef2707c360', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { key: 'fdca1a876d4967c39286bddba6122351fbf0d925', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.75 19.5L8.25 12l7.5-7.5" }))), h("div", { key: '4d9a30f1988f2ce04f271967f1dd39c5287273f2', class: "carousel__dots", ref: (el) => (this.dotsRef = el) }), h("button", { key: 'c8bc7787821f3277c6d038e3ff1240b3ce936825', type: "button", "aria-label": "Next", class: "carousel__next", ref: (el) => (this.nextBtnRef = el) }, h("svg", { key: 'e6e4eff954b1b08711cc843de558e00a8257e9f8', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { key: '37b394093f327bdc46f8da1dcf78ec609a585a0a', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M8.25 4.5l7.5 7.5-7.5 7.5" }))))));
229
+ : null)), !useItems && (h("div", { key: 'dee2fc91470728c136c9853cd74ae350ad3c5676', style: { display: 'none' }, "aria-hidden": "true" }, h("slot", { key: '35dd47c03a1b9b6b73d845252c3d0482590f7da2', ref: (el) => (this.slotRef = el) }))), h("div", { key: 'df639ad86ae8533f1dc15eed30afb70d99e36e1a', class: `carousel__controls ${this.controlClass || ''}`.trim() }, h("button", { key: 'c17c0ea9bf023b5d2621e558c957d92b13425584', type: "button", "aria-label": "Previous", class: "carousel__prev", ref: (el) => (this.prevBtnRef = el) }, h("svg", { key: '5125abcae0b08ee72106d511b4c24c2d0f24187b', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { key: '9b7f28be56f451ad14de226d7163a5587a1cd9e6', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M15.75 19.5L8.25 12l7.5-7.5" }))), h("div", { key: '9939d3496092a3f319efac9132cec8097c83b497', class: "carousel__dots", ref: (el) => (this.dotsRef = el) }), h("button", { key: 'a0b1228f6df0065885f1d272386283926e78464b', type: "button", "aria-label": "Next", class: "carousel__next", ref: (el) => (this.nextBtnRef = el) }, h("svg", { key: 'e00c92cc0485f41a30e97d5d0466aaee48a64998', class: "carousel__icon", "stroke-width": "1.5", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true" }, h("path", { key: 'a35c46fdbd1cd333d3e6f76590f45dd837546165', "stroke-linecap": "round", "stroke-linejoin": "round", d: "M8.25 4.5l7.5 7.5-7.5 7.5" }))))));
230
230
  }
231
231
  static get is() { return "fast-carousel"; }
232
- static get encapsulation() { return "shadow"; }
233
232
  static get originalStyleUrls() {
234
233
  return {
235
234
  "$": ["carousel.css"]
@@ -1 +1 @@
1
- import{t,p as o,H as s,c as n,h as e}from"./p-Cw2MJ5l2.js";const c=o(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.buttonClick=n(this,"buttonClick")}variant="primary";type="button";disabled=!1;buttonClick;handleClick=t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.buttonClick.emit(t)};render(){return e("button",{key:"b373f44e11e651d0371ce3cade98b4650ccdd727",type:this.type,class:{"custom-button":!0,["custom-button--"+this.variant]:!0,"custom-button--disabled":this.disabled},disabled:this.disabled,onClick:this.handleClick},e("slot",{key:"2a046bc70af051c04f4549def87dac7044b41e04"}))}static get style(){return":host{display:inline-block}.custom-button{display:inline-flex;align-items:center;justify-content:center;padding:0.5rem 1rem;font-family:inherit;font-size:0.875rem;font-weight:500;line-height:1.25;border:none;border-radius:0.375rem;cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease}.custom-button:focus{outline:2px solid var(--custom-button-focus-ring, #2563eb);outline-offset:2px}.custom-button:focus:not(:focus-visible){outline:none}.custom-button--primary{background-color:var(--custom-button-primary-bg, #2563eb);color:var(--custom-button-primary-color, #fff)}.custom-button--primary:hover:not(.custom-button--disabled){background-color:var(--custom-button-primary-hover-bg, #1d4ed8)}.custom-button--primary:active:not(.custom-button--disabled){background-color:var(--custom-button-primary-active-bg, #1e40af)}.custom-button--secondary{background-color:var(--custom-button-secondary-bg, #e5e7eb);color:var(--custom-button-secondary-color, #1f2937)}.custom-button--secondary:hover:not(.custom-button--disabled){background-color:var(--custom-button-secondary-hover-bg, #d1d5db)}.custom-button--secondary:active:not(.custom-button--disabled){background-color:var(--custom-button-secondary-active-bg, #9ca3af)}.custom-button--text{background-color:transparent;color:var(--custom-button-text-color, #2563eb)}.custom-button--text:hover:not(.custom-button--disabled){background-color:var(--custom-button-text-hover-bg, rgba(37, 99, 235, 0.08))}.custom-button--text:active:not(.custom-button--disabled){background-color:var(--custom-button-text-active-bg, rgba(37, 99, 235, 0.12))}.custom-button--disabled,.custom-button:disabled{opacity:0.6;cursor:not-allowed}"}},[769,"fast-button",{variant:[1],type:[1],disabled:[4]}]);function u(){"undefined"!=typeof customElements&&["fast-button"].forEach((o=>{"fast-button"===o&&(customElements.get(t(o))||customElements.define(t(o),c))}))}u();const r=c,a=u;export{r as FastButton,a as defineCustomElement}
1
+ import{t,p as o,H as e,c as n,h as s}from"./p-UM9TUfe3.js";const u=o(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.buttonClick=n(this,"buttonClick")}variant="primary";type="button";disabled=!1;buttonClick;handleClick=t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.buttonClick.emit(t)};render(){return s("button",{key:"3b74909afe4e305dfd38f0b07657202e3d5bfccd",type:this.type,class:{"custom-button":!0,["custom-button--"+this.variant]:!0,"custom-button--disabled":this.disabled},disabled:this.disabled,onClick:this.handleClick},s("slot",{key:"49845d350e4665c5c66e30bd9262f788eaaa1e20"}))}static get style(){return":host{display:inline-block}.custom-button{display:inline-flex;align-items:center;justify-content:center;padding:0.5rem 1rem;font-family:inherit;font-size:0.875rem;font-weight:500;line-height:1.25;border:none;border-radius:0.375rem;cursor:pointer;transition:background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease}.custom-button:focus{outline:2px solid var(--custom-button-focus-ring, #2563eb);outline-offset:2px}.custom-button:focus:not(:focus-visible){outline:none}.custom-button--primary{background-color:var(--custom-button-primary-bg, #2563eb);color:var(--custom-button-primary-color, #fff)}.custom-button--primary:hover:not(.custom-button--disabled){background-color:var(--custom-button-primary-hover-bg, #1d4ed8)}.custom-button--primary:active:not(.custom-button--disabled){background-color:var(--custom-button-primary-active-bg, #1e40af)}.custom-button--secondary{background-color:var(--custom-button-secondary-bg, #e5e7eb);color:var(--custom-button-secondary-color, #1f2937)}.custom-button--secondary:hover:not(.custom-button--disabled){background-color:var(--custom-button-secondary-hover-bg, #d1d5db)}.custom-button--secondary:active:not(.custom-button--disabled){background-color:var(--custom-button-secondary-active-bg, #9ca3af)}.custom-button--text{background-color:transparent;color:var(--custom-button-text-color, #2563eb)}.custom-button--text:hover:not(.custom-button--disabled){background-color:var(--custom-button-text-hover-bg, rgba(37, 99, 235, 0.08))}.custom-button--text:active:not(.custom-button--disabled){background-color:var(--custom-button-text-active-bg, rgba(37, 99, 235, 0.12))}.custom-button--disabled,.custom-button:disabled{opacity:0.6;cursor:not-allowed}"}},[772,"fast-button",{variant:[1],type:[1],disabled:[4]}]);function c(){"undefined"!=typeof customElements&&["fast-button"].forEach((o=>{"fast-button"===o&&(customElements.get(t(o))||customElements.define(t(o),u))}))}c();const r=u,a=c;export{r as FastButton,a as defineCustomElement}
@@ -1 +1 @@
1
- import{t as n,p as t,H as e,h as o}from"./p-Cw2MJ5l2.js";function r(n){return"number"==typeof n}function i(n){return"string"==typeof n}function s(n){return"boolean"==typeof n}function c(n){return"[object Object]"===Object.prototype.toString.call(n)}function u(n){return Math.abs(n)}function l(n){return Math.sign(n)}function a(n,t){return u(n-t)}function f(n){return m(n).map(Number)}function d(n){return n[h(n)]}function h(n){return Math.max(0,n.length-1)}function p(n,t){return t===h(n)}function g(n,t=0){return Array.from(Array(n),((n,e)=>t+e))}function m(n){return Object.keys(n)}function b(n,t){return[n,t].reduce(((n,t)=>(m(t).forEach((e=>{const o=n[e],r=t[e],i=c(o)&&c(r);n[e]=i?b(o,r):r})),n)),{})}function y(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function v(){let n=[];const t={add:function(e,o,r,i={passive:!0}){let s;if("addEventListener"in e)e.addEventListener(o,r,i),s=()=>e.removeEventListener(o,r,i);else{const n=e;n.addListener(r),s=()=>n.removeListener(r)}return n.push(s),t},clear:function(){n=n.filter((n=>n()))}};return t}function x(n=0,t=0){const e=u(n-t);function o(t){return t<n}function r(n){return n>t}function i(n){return o(n)||r(n)}return{length:e,max:t,min:n,constrain:function(e){return i(e)?o(e)?n:t:e},reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function _(n,t,e){const{constrain:o}=x(0,n),r=n+1;let i=s(t);function s(n){return e?u((r+n)%r):o(n)}function c(){return i}function l(){return _(n,c(),e)}const a={get:c,set:function(n){return i=s(n),a},add:function(n){return l().set(c()+n)},clone:l};return a}function k(n,t,e,o,r,i,c,f,d,h,p,g,m,b,_,k,w,S,C){const{cross:E,direction:L}=n,M=["INPUT","SELECT","TEXTAREA"],I={passive:!1},T=v(),A=v(),N=x(50,225).constrain(b.measure(20)),R={mouse:300,touch:400},z={mouse:500,touch:600},O=_?43:25;let j=!1,B=0,F=0,D=!1,P=!1,H=!1,G=!1;function V(n){if(!y(n,o)&&n.touches.length>=2)return W(n);const t=i.readPoint(n),e=i.readPoint(n,E),s=a(t,B),c=a(e,F);if(!P&&!G){if(!n.cancelable)return W(n);if(P=s>c,!P)return W(n)}const u=i.pointerMove(n);s>k&&(H=!0),h.useFriction(.3).useDuration(.75),f.start(),r.add(L(u)),n.preventDefault()}function W(n){const t=p.byDistance(0,!1).index!==g.get(),e=i.pointerUp(n)*(_?z:R)[G?"mouse":"touch"],o=function(n,t){const e=g.add(-1*l(n)),o=p.byDistance(n,!_).distance;return _||u(n)<N?o:w&&t?.5*o:p.byIndex(e.get(),0).distance}(L(e),t),r=function(n,t){if(0===n||0===t)return 0;if(u(n)<=u(t))return 0;const e=a(u(n),u(t));return u(e/n)}(e,o),s=O-10*r,c=S+r/50;P=!1,D=!1,A.clear(),h.useDuration(s).useFriction(c),d.distance(o,!_),G=!1,m.emit("pointerUp")}function U(n){H&&(n.stopPropagation(),n.preventDefault(),H=!1)}return{init:function(n){if(!C)return;function u(u){(s(C)||C(n,u))&&function(n){const s=y(n,o);G=s,H=_&&s&&!n.buttons&&j,j=a(r.get(),c.get())>=2,s&&0!==n.button||function(n){return M.includes(n.nodeName||"")}(n.target)||(D=!0,i.pointerDown(n),h.useFriction(0).useDuration(0),r.set(c),function(){const n=G?e:t;A.add(n,"touchmove",V,I).add(n,"touchend",W).add(n,"mousemove",V,I).add(n,"mouseup",W)}(),B=i.readPoint(n),F=i.readPoint(n,E),m.emit("pointerDown"))}(u)}const l=t;T.add(l,"dragstart",(n=>n.preventDefault()),I).add(l,"touchmove",(()=>{}),I).add(l,"touchend",(()=>{})).add(l,"touchstart",u).add(l,"mousedown",u).add(l,"touchcancel",W).add(l,"contextmenu",W).add(l,"click",U,!0)},destroy:function(){T.clear(),A.clear()},pointerDown:function(){return D}}}function w(n,t){let e,o;function r(n){return n.timeStamp}function i(e,o){const r="client"+("x"===(o||n.scroll)?"X":"Y");return(y(e,t)?e:e.touches[0])[r]}return{pointerDown:function(n){return e=n,o=n,i(n)},pointerMove:function(n){const t=i(n)-i(o),s=r(n)-r(e)>170;return o=n,s&&(e=n),t},pointerUp:function(n){if(!e||!o)return 0;const t=i(o)-i(e),s=r(n)-r(e),c=r(n)-r(o)>170,l=t/s;return s&&!c&&u(l)>.1?l:0},readPoint:i}}function S(n,t,e,o,r,i,c){const l=[n].concat(o);let a,f,d=[],h=!1;function p(n){return r.measureSize(c.measure(n))}return{init:function(r){i&&(f=p(n),d=o.map(p),a=new ResizeObserver((e=>{(s(i)||i(r,e))&&function(e){for(const i of e){if(h)return;const e=i.target===n,s=o.indexOf(i.target),c=e?f:d[s];if(u(p(e?n:o[s])-c)>=.5){r.reInit(),t.emit("resize");break}}}(e)})),e.requestAnimationFrame((()=>{l.forEach((n=>a.observe(n)))})))},destroy:function(){h=!0,a&&a.disconnect()}}}function C(n,t,e,o,r){const i=r.measure(10),s=r.measure(50),c=x(.1,.99);let l=!1;function a(){return!l&&!!n.reachedAny(e.get())&&!!n.reachedAny(t.get())}return{shouldConstrain:a,constrain:function(r){if(!a())return;const l=n.reachedMin(t.get())?"min":"max",f=u(n[l]-t.get()),d=e.get()-t.get(),h=c.constrain(f/s);e.subtract(d*h),!r&&u(d)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(n){l=!n}}}function E(n,t,e,o){const r=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=x(r,i);return{loop:function(t){if(!function(n){return 1===n?c(e.get()):-1===n&&s(e.get())}(t))return;const r=n*(-1*t);o.forEach((n=>n.add(r)))}}}function L(n){let t=n;function e(n){return r(n)?n:n.get()}return{get:function(){return t},set:function(n){t=e(n)},add:function(n){t+=e(n)},subtract:function(n){t-=e(n)}}}function M(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},o=t.style;let r=null,i=!1;return{clear:function(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const s=function(n){return Math.round(100*n)/100}(n.direction(t));s!==r&&(o.transform=e(s),r=s)},toggleActive:function(n){i=!n}}}function I(n,t,e,o,r,i,s,c,u){const l=f(r),a=p(h(f(r).reverse(),s[0]),e,!1).concat(p(h(l,t-s[0]-1),-e,!0));function d(n,t){return n.reduce(((n,t)=>n-r[t]),t)}function h(n,t){return n.reduce(((n,e)=>d(n,t)>0?n.concat([e]):n),[])}function p(r,s,l){const a=function(n){return i.map(((e,r)=>({start:e-o[r]+.5+n,end:e+t-.5+n})))}(s);return r.map((t=>{const o=l?0:-e,r=l?e:0,i=a[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:L(-1),translate:M(n,u[t]),target:()=>c.get()>i?o:r}}))}return{canLoop:function(){return a.every((({index:n})=>d(l.filter((t=>t!==n)),t)<=.1))},clear:function(){a.forEach((n=>n.translate.clear()))},loop:function(){a.forEach((n=>{const{target:t,translate:e,slideLocation:o}=n,r=t();r!==o.get()&&(e.to(r),o.set(r))}))},loopPoints:a}}function T(n,t,e){let o,r=!1;return{init:function(i){e&&(o=new MutationObserver((n=>{r||(s(e)||e(i,n))&&function(n){for(const e of n)if("childList"===e.type){i.reInit(),t.emit("slidesChanged");break}}(n)})),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),r=!0}}}function A(n,t,e,o,c,b,y){const{align:A,axis:N,direction:R,startIndex:z,loop:O,duration:j,dragFree:B,dragThreshold:F,inViewThreshold:D,slidesToScroll:P,skipSnaps:H,containScroll:G,watchResize:V,watchSlides:W,watchDrag:U,watchFocus:q}=b,J={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:o,offsetHeight:r}=n;return{top:t,right:e+o,bottom:t+r,left:e,width:o,height:r}}},Q=J.measure(t),X=e.map(J.measure),$=function(n,t){const e="rtl"===t,o="y"===n,r=!o&&e?-1:1;return{scroll:o?"y":"x",cross:o?"x":"y",startEdge:o?"top":e?"right":"left",endEdge:o?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return o?t:e},direction:function(n){return n*r}}}(N,R),Y=$.measureSize(Q),K=function(n){return{measure:function(t){return n*(t/100)}}}(Y),Z=function(n,t){const e={start:function(){return 0},center:function(n){return o(n)/2},end:o};function o(n){return t-n}return{measure:function(o,r){return i(n)?e[n](o):n(t,o,r)}}}(A,Y),nn=!O&&!!G,tn=O||!!G,{slideSizes:en,slideSizesWithGaps:on,startGap:rn,endGap:sn}=function(n,t,e,o,r,i){const{measureSize:s,startEdge:c,endEdge:l}=n,a=e[0]&&r,f=a?u(t[c]-e[0][c]):0,h=function(){if(!a)return 0;const n=i.getComputedStyle(d(o));return parseFloat(n.getPropertyValue("margin-"+l))}(),g=e.map(s),m=e.map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g[t]+f:r?g[t]+h:e[t+1][c]-n[c]})).map(u);return{slideSizes:g,slideSizesWithGaps:m,startGap:f,endGap:h}}($,Q,X,e,tn,c),cn=function(n,t,e,o,i,s,c,l,a){const{startEdge:p,endEdge:g,direction:m}=n,b=r(e);return{groupSlides:function(n){return b?function(n,t){return f(n).filter((n=>n%t==0)).map((e=>n.slice(e,e+t)))}(n,e):function(n){return n.length?f(n).reduce(((e,r,f)=>{const b=d(e)||0,y=0===b,v=r===h(n),x=i[p]-s[b][p],_=i[p]-s[r][g],k=!o&&y?m(c):0,w=u(_-(!o&&v?m(l):0)-(x+k));return f&&w>t+a&&e.push(r),v&&e.push(n.length),e}),[]).map(((t,e,o)=>n.slice(Math.max(o[e-1]||0),t))):[]}(n)}}}($,Y,P,O,Q,X,rn,sn,2),{snaps:un,snapsAligned:ln}=function(n,t,e,o,r){const{startEdge:i,endEdge:s}=n,{groupSlides:c}=r,l=c(o).map((n=>d(n)[s]-n[0][i])).map(u).map(t.measure),a=o.map((n=>e[i]-n[i])).map((n=>-u(n))),f=c(a).map((n=>n[0])).map(((n,t)=>n+l[t]));return{snaps:a,snapsAligned:f}}($,Z,Q,X,cn),an=-d(un)+d(on),{snapsContained:fn,scrollContainLimit:dn}=function(n,t,e,o){const r=x(-t+n,0),i=e.map(((n,t)=>{const{min:o,max:i}=r,s=r.constrain(n),u=!t,l=p(e,t);return u?i:l||c(o,s)?o:c(i,s)?i:s})).map((n=>parseFloat(n.toFixed(3)))),s=function(){const n=i[0],t=d(i);return x(i.lastIndexOf(n),i.indexOf(t)+1)}();function c(n,t){return a(n,t)<=1}return{snapsContained:function(){if(t<=n+2)return[r.max];if("keepSnaps"===o)return i;const{min:e,max:c}=s;return i.slice(e,c)}(),scrollContainLimit:s}}(Y,an,ln,G),hn=nn?fn:ln,{limit:pn}=function(n,t,e){const o=t[0];return{limit:x(e?o-n:d(t),o)}}(an,hn,O),gn=_(h(hn),z,O),mn=gn.clone(),bn=f(e),yn=function(n,t,e,o){const r=v(),i=1e3/60;let s=null,c=0,u=0;function l(n){if(!u)return;s||(s=n,e(),e());const r=n-s;for(s=n,c+=r;c>=i;)e(),c-=i;o(c/i),u&&(u=t.requestAnimationFrame(l))}function a(){t.cancelAnimationFrame(u),s=null,c=0,u=0}return{init:function(){r.add(n,"visibilitychange",(()=>{n.hidden&&(s=null,c=0)}))},destroy:function(){a(),r.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:a,update:e,render:o}}(o,c,(()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:o}})=>{o||e.constrain(n.pointerDown()),t.seek()})(Nn)),(n=>(({scrollBody:n,translate:t,location:e,offsetLocation:o,previousLocation:r,scrollLooper:i,slideLooper:s,dragHandler:c,animation:u,eventHandler:l,scrollBounds:a,options:{loop:f}},d)=>{const h=n.settled(),p=!a.shouldConstrain(),g=f?h:h&&p,m=g&&!c.pointerDown();m&&u.stop();const b=e.get()*d+r.get()*(1-d);o.set(b),f&&(i.loop(n.direction()),s.loop()),t.to(o.get()),m&&l.emit("settle"),g||l.emit("scroll")})(Nn,n))),vn=hn[gn.get()],xn=L(vn),_n=L(vn),kn=L(vn),wn=L(vn),Sn=function(n,t,e,o,r){let i=0,s=0,c=r,a=.68,f=n.get(),d=0;function h(n){return c=n,g}function p(n){return a=n,g}const g={direction:function(){return s},duration:function(){return c},velocity:function(){return i},seek:function(){const t=o.get()-n.get();let r=0;return c?(e.set(n),i+=t/c,i*=a,f+=i,n.add(i),r=f-d):(i=0,e.set(o),n.set(o),r=t),s=l(r),d=f,g},settled:function(){return u(o.get()-t.get())<.001},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return h(r)},useFriction:p,useDuration:h};return g}(xn,kn,_n,wn,j),Cn=function(n,t,e,o,r){const{reachedAny:i,removeOffset:s,constrain:c}=o;function a(n){return n.concat().sort(((n,t)=>u(n)-u(t)))[0]}function f(t,o){const r=[t,t+e,t-e];if(!n)return t;if(!o)return a(r);const i=r.filter((n=>l(n)===o));return i.length?a(i):d(r)-e}return{byDistance:function(e,o){const l=r.get()+e,{index:a,distance:d}=function(e){const o=n?s(e):c(e),r=t.map(((n,t)=>({diff:f(n-o,0),index:t}))).sort(((n,t)=>u(n.diff)-u(t.diff))),{index:i}=r[0];return{index:i,distance:o}}(l),h=!n&&i(l);return!o||h?{index:a,distance:e}:{index:a,distance:e+f(t[a]-d,0)}},byIndex:function(n,e){return{index:n,distance:f(t[n]-r.get(),e)}},shortcut:f}}(O,hn,an,pn,wn),En=function(n,t,e,o,r,i,s){function c(r){const c=r.distance,u=r.index!==t.get();i.add(c),c&&(o.duration()?n.start():(n.update(),n.render(1),n.update())),u&&(e.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(n,t){c(r.byDistance(n,t))},index:function(n,e){const o=t.clone().set(n);c(r.byIndex(o.get(),e))}}}(yn,gn,mn,Sn,Cn,wn,y),Ln=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(pn),Mn=v(),In=function(n,t,e,o){const r={};let i,s=null,c=null,u=!1;return{init:function(){i=new IntersectionObserver((n=>{u||(n.forEach((n=>{const e=t.indexOf(n.target);r[e]=n})),s=null,c=null,e.emit("slidesInView"))}),{root:n.parentElement,threshold:o}),t.forEach((n=>i.observe(n)))},destroy:function(){i&&i.disconnect(),u=!0},get:function(n=!0){if(n&&s)return s;if(!n&&c)return c;const t=function(n){return m(r).reduce(((t,e)=>{const o=parseInt(e),{isIntersecting:i}=r[o];return(n&&i||!n&&!i)&&t.push(o),t}),[])}(n);return n&&(s=t),n||(c=t),t}}}(t,e,y,D),{slideRegistry:Tn}=function(n,t,e,o,r,i){const{groupSlides:s}=r,{min:c,max:u}=o;return{slideRegistry:function(){const o=s(i);return 1===e.length?[i]:n&&"keepSnaps"!==t?o.slice(c,u).map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g(d(e[0])+1):r?g(h(i)-d(e)[0]+1,d(e)[0]):n})):o}()}}(nn,G,hn,dn,cn,bn),An=function(n,t,e,o,i,c,u,l){const a={passive:!0,capture:!0};let f=0;function d(n){"Tab"===n.code&&(f=(new Date).getTime())}return{init:function(h){l&&(c.add(document,"keydown",d,!1),t.forEach(((t,d)=>{c.add(t,"focus",(t=>{(s(l)||l(h,t))&&function(t){if((new Date).getTime()-f>10)return;u.emit("slideFocusStart"),n.scrollLeft=0;const s=e.findIndex((n=>n.includes(t)));r(s)&&(i.useDuration(0),o.index(s,0),u.emit("slideFocus"))}(d)}),a)})))}}}(n,e,Tn,En,Sn,Mn,y,q),Nn={ownerDocument:o,ownerWindow:c,eventHandler:y,containerRect:Q,slideRects:X,animation:yn,axis:$,dragHandler:k($,n,o,c,wn,w($,c),xn,yn,En,Sn,Cn,gn,y,K,B,F,H,.68,U),eventStore:Mn,percentOfView:K,index:gn,indexPrevious:mn,limit:pn,location:xn,offsetLocation:kn,previousLocation:_n,options:b,resizeHandler:S(t,y,c,e,$,V,J),scrollBody:Sn,scrollBounds:C(pn,kn,wn,Sn,K),scrollLooper:E(an,pn,kn,[xn,kn,_n,wn]),scrollProgress:Ln,scrollSnapList:hn.map(Ln.get),scrollSnaps:hn,scrollTarget:Cn,scrollTo:En,slideLooper:I($,Y,an,en,on,un,hn,kn,e),slideFocus:An,slidesHandler:T(t,y,W),slidesInView:In,slideIndexes:bn,slideRegistry:Tn,slidesToScroll:cn,target:wn,translate:M($,t)};return Nn}const N={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function R(n){function t(n,t){return b(n,t||{})}return{mergeOptions:t,optionsAtMedia:function(e){const o=e.breakpoints||{},r=m(o).filter((t=>n.matchMedia(t).matches)).map((n=>o[n])).reduce(((n,e)=>t(n,e)),{});return t(e,r)},optionsMediaQueries:function(t){return t.map((n=>m(n.breakpoints||{}))).reduce(((n,t)=>n.concat(t)),[]).map(n.matchMedia)}}}function z(n,t,e){const o=n.ownerDocument,r=o.defaultView,s=R(r),c=function(n){let t=[];return{init:function(e,o){return t=o.filter((({options:t})=>!1!==n.optionsAtMedia(t).active)),t.forEach((t=>t.init(e,n))),o.reduce(((n,t)=>Object.assign(n,{[t.name]:t})),{})},destroy:function(){t=t.filter((n=>n.destroy()))}}}(s),u=v(),l=function(){let n,t={};function e(n){return t[n]||[]}const o={init:function(t){n=t},emit:function(t){return e(t).forEach((e=>e(n,t))),o},off:function(n,r){return t[n]=e(n).filter((n=>n!==r)),o},on:function(n,r){return t[n]=e(n).concat([r]),o},clear:function(){t={}}};return o}(),{mergeOptions:a,optionsAtMedia:f,optionsMediaQueries:d}=s,{on:h,off:p,emit:g}=l,m=M;let b,y,x,_,k=!1,w=a(N,z.globalOptions),S=a(w),C=[];function E(t){const e=A(n,x,_,o,r,t,l);return t.loop&&!e.slideLooper.canLoop()?E(Object.assign({},t,{loop:!1})):e}function L(t,e){k||(w=a(w,t),S=f(w),C=e||C,function(){const{container:t,slides:e}=S,o=i(t)?n.querySelector(t):t;x=o||n.children[0];const r=i(e)?x.querySelectorAll(e):e;_=[].slice.call(r||x.children)}(),b=E(S),d([w,...C.map((({options:n})=>n))]).forEach((n=>u.add(n,"change",M))),S.active&&(b.translate.to(b.location.get()),b.animation.init(),b.slidesInView.init(),b.slideFocus.init(j),b.eventHandler.init(j),b.resizeHandler.init(j),b.slidesHandler.init(j),b.options.loop&&b.slideLooper.loop(),x.offsetParent&&_.length&&b.dragHandler.init(j),y=c.init(j,C)))}function M(n,t){const e=O();I(),L(a({startIndex:e},n),t),l.emit("reInit")}function I(){b.dragHandler.destroy(),b.eventStore.clear(),b.translate.clear(),b.slideLooper.clear(),b.resizeHandler.destroy(),b.slidesHandler.destroy(),b.slidesInView.destroy(),b.animation.destroy(),c.destroy(),u.clear()}function T(n,t,e){S.active&&!k&&(b.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),b.scrollTo.index(n,e||0))}function O(){return b.index.get()}const j={canScrollNext:function(){return b.index.add(1).get()!==O()},canScrollPrev:function(){return b.index.add(-1).get()!==O()},containerNode:function(){return x},internalEngine:function(){return b},destroy:function(){k||(k=!0,u.clear(),I(),l.emit("destroy"),l.clear())},off:p,on:h,emit:g,plugins:function(){return y},previousScrollSnap:function(){return b.indexPrevious.get()},reInit:m,rootNode:function(){return n},scrollNext:function(n){T(b.index.add(1).get(),n,-1)},scrollPrev:function(n){T(b.index.add(-1).get(),n,1)},scrollProgress:function(){return b.scrollProgress.get(b.offsetLocation.get())},scrollSnapList:function(){return b.scrollSnapList},scrollTo:T,selectedScrollSnap:O,slideNodes:function(){return _},slidesInView:function(){return b.slidesInView.get()},slidesNotInView:function(){return b.slidesInView.get(!1)}};return L(t,e),setTimeout((()=>l.emit("init")),0),j}z.globalOptions=void 0;const O=t(class extends e{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow()}get el(){return this}items;loop=!0;class;controlClass;slideClass;itemClass;viewportRef;containerRef;slotRef;prevBtnRef;nextBtnRef;dotsRef;embla=null;movedNodes=[];prevClickHandler=null;nextClickHandler=null;dotClickHandlers=[];slotNodesMoved=!1;async scrollPrev(){this.embla?.scrollPrev()}async scrollNext(){this.embla?.scrollNext()}async goToSlide(n){this.embla?.scrollTo(n)}async getEmbla(){return this.embla}moveSlotNodesIntoContainer(){if(!this.slotRef||!this.containerRef||this.slotNodesMoved)return;const n=this.slotRef.assignedNodes().filter((n=>n.nodeType===Node.ELEMENT_NODE));0!==n.length&&(this.movedNodes=[],n.forEach((n=>{this.containerRef.appendChild(n),this.movedNodes.push(n)})),this.slotNodesMoved=!0,this.scheduleEmblaInit())}initScheduled=!1;scheduleEmblaInit(){this.initScheduled||(this.initScheduled=!0,requestAnimationFrame((()=>{this.initScheduled=!1,this.destroyEmbla(),this.initEmbla()})))}moveSlotNodesBack(){const n=this.el;this.movedNodes.forEach((t=>n.appendChild(t))),this.movedNodes=[]}initEmbla(){if(!this.viewportRef||!this.containerRef)return;const n=this.getItemsArray();if(!(void 0!==n?n.length>0:this.containerRef.children.length>0))return;this.embla=z(this.viewportRef,{loop:this.loop,align:"center",containScroll:"trimSnaps"});const t=this.prevBtnRef,e=this.nextBtnRef,o=this.dotsRef,r=()=>{t&&(this.embla?.canScrollPrev()?t.removeAttribute("disabled"):t.setAttribute("disabled","")),e&&(this.embla?.canScrollNext()?e.removeAttribute("disabled"):e.setAttribute("disabled",""))};if(this.embla.on("init",r),this.embla.on("reInit",r),this.embla.on("select",r),t&&e&&(this.prevClickHandler=()=>this.embla?.scrollPrev(),this.nextClickHandler=()=>this.embla?.scrollNext(),t.addEventListener("click",this.prevClickHandler),e.addEventListener("click",this.nextClickHandler)),o){const n=this.embla.scrollSnapList().length;o.innerHTML="";for(let t=0;t<n;t++){const n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Go to slide "+(t+1)),n.className="carousel__dot",0===t&&n.classList.add("current");const e=document.createElement("div");e.className="carousel__dot-inner",n.appendChild(e);const r=t,i=()=>this.embla?.scrollTo(r);this.dotClickHandlers.push(i),n.addEventListener("click",i),o.appendChild(n)}this.embla.on("select",(()=>{const n=this.embla?.selectedScrollSnap()??0;o.querySelectorAll("button").forEach(((t,e)=>{t.classList.toggle("current",e===n)}))}))}r()}destroyEmbla(){this.prevBtnRef&&this.prevClickHandler&&(this.prevBtnRef.removeEventListener("click",this.prevClickHandler),this.prevClickHandler=null),this.nextBtnRef&&this.nextClickHandler&&(this.nextBtnRef.removeEventListener("click",this.nextClickHandler),this.nextClickHandler=null),this.dotClickHandlers=[],this.dotsRef&&(this.dotsRef.innerHTML=""),this.embla?.destroy(),this.embla=null}onSlotChange=()=>{void 0===this.getItemsArray()&&this.moveSlotNodesIntoContainer()};componentDidRender(){void 0===this.getItemsArray()?(this.slotRef&&(this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.slotRef.addEventListener("slotchange",this.onSlotChange)),requestAnimationFrame((()=>{this.moveSlotNodesIntoContainer(),this.slotNodesMoved||(this.destroyEmbla(),this.initEmbla())}))):(this.destroyEmbla(),this.initEmbla())}disconnectedCallback(){this.slotRef&&this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.destroyEmbla(),void 0===this.getItemsArray()&&(this.moveSlotNodesBack(),this.slotNodesMoved=!1)}getItemsArray(){if(void 0!==this.items){if(Array.isArray(this.items))return this.items;if("string"==typeof this.items)try{const n=JSON.parse(this.items);return Array.isArray(n)?n:void 0}catch{return}}}render(){const n=this.getItemsArray(),t=void 0!==n&&n.length>0;return o("div",{key:"313c58e9c1ea3b9c0d0fd4b9d6354336682d9353",class:("carousel "+(this.class||"")).trim()},o("div",{key:"14ad75526a24ed38df053fa221e2fafef6d532ed",class:("carousel__viewport "+(this.slideClass||"")).trim(),ref:n=>this.viewportRef=n},o("div",{key:"1d3a771598c382592b789289494f2439fea56918",class:"carousel__container",ref:n=>this.containerRef=n},t&&n?n.map(((n,t)=>o("div",{key:t,class:("carousel__slide "+(this.itemClass||"")).trim()},"object"==typeof n&&null!==n&&"content"in n?n.content:n+""))):null)),!t&&o("div",{key:"cdecd3275ac3c5ffe7a0f46153d3e59ad0d4ba9d",style:{display:"none"},"aria-hidden":"true"},o("slot",{key:"450dd5b90f20166a4d6ef4a0d46d208ad47bbf4b",ref:n=>this.slotRef=n})),o("div",{key:"ad4eab3f45204170308d8021799d227eaff36d71",class:("carousel__controls "+(this.controlClass||"")).trim()},o("button",{key:"1a4ef7209ea768a55892f4d928da3f6100faab4b",type:"button","aria-label":"Previous",class:"carousel__prev",ref:n=>this.prevBtnRef=n},o("svg",{key:"7d579cb030149947791db565bc1520ef2707c360",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"fdca1a876d4967c39286bddba6122351fbf0d925","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),o("div",{key:"4d9a30f1988f2ce04f271967f1dd39c5287273f2",class:"carousel__dots",ref:n=>this.dotsRef=n}),o("button",{key:"c8bc7787821f3277c6d038e3ff1240b3ce936825",type:"button","aria-label":"Next",class:"carousel__next",ref:n=>this.nextBtnRef=n},o("svg",{key:"e6e4eff954b1b08711cc843de558e00a8257e9f8",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"37b394093f327bdc46f8da1dcf78ec609a585a0a","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))))}static get style(){return":host{display:block}.carousel{display:flex;flex-direction:column;overflow:hidden}.carousel__viewport{overflow:hidden;touch-action:pan-y pinch-zoom}.carousel__container{display:flex;flex-direction:row;height:100%;margin-left:calc(-0.4rem)}.carousel__container ::slotted(*){flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__slide{flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__controls{display:flex;gap:0.25rem;margin-top:0.25rem;justify-content:center;align-items:center}.carousel__prev,.carousel__next{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;cursor:pointer;color:currentColor}.carousel__prev:disabled,.carousel__next:disabled{opacity:0.4;cursor:not-allowed}.carousel__icon{width:2.4rem;height:2.4rem}.carousel__dots{display:flex;gap:0.25rem;align-items:center}.carousel__dot{padding:0;border:none;background:none;cursor:pointer;width:0.5rem;height:0.5rem;display:flex;align-items:center;justify-content:center}.carousel__dot-inner{width:100%;height:100%;border-radius:50%;background-color:var(--carousel-dot-bg, #cbd5e1);transition:background-color 0.2s ease}.carousel__dot.current .carousel__dot-inner{background-color:var(--carousel-dot-active-bg, #94a3b8)}"}},[769,"fast-carousel",{items:[1],loop:[4],class:[1],controlClass:[1,"control-class"],slideClass:[1,"slide-class"],itemClass:[1,"item-class"],scrollPrev:[64],scrollNext:[64],goToSlide:[64],getEmbla:[64]}]);function j(){"undefined"!=typeof customElements&&["fast-carousel"].forEach((t=>{"fast-carousel"===t&&(customElements.get(n(t))||customElements.define(n(t),O))}))}j();const B=O,F=j;export{B as FastCarousel,F as defineCustomElement}
1
+ import{t as n,p as t,H as e,h as o}from"./p-UM9TUfe3.js";function r(n){return"number"==typeof n}function i(n){return"string"==typeof n}function s(n){return"boolean"==typeof n}function c(n){return"[object Object]"===Object.prototype.toString.call(n)}function u(n){return Math.abs(n)}function l(n){return Math.sign(n)}function a(n,t){return u(n-t)}function d(n){return m(n).map(Number)}function f(n){return n[h(n)]}function h(n){return Math.max(0,n.length-1)}function p(n,t){return t===h(n)}function g(n,t=0){return Array.from(Array(n),((n,e)=>t+e))}function m(n){return Object.keys(n)}function b(n,t){return[n,t].reduce(((n,t)=>(m(t).forEach((e=>{const o=n[e],r=t[e],i=c(o)&&c(r);n[e]=i?b(o,r):r})),n)),{})}function y(n,t){return void 0!==t.MouseEvent&&n instanceof t.MouseEvent}function v(){let n=[];const t={add:function(e,o,r,i={passive:!0}){let s;if("addEventListener"in e)e.addEventListener(o,r,i),s=()=>e.removeEventListener(o,r,i);else{const n=e;n.addListener(r),s=()=>n.removeListener(r)}return n.push(s),t},clear:function(){n=n.filter((n=>n()))}};return t}function x(n=0,t=0){const e=u(n-t);function o(t){return t<n}function r(n){return n>t}function i(n){return o(n)||r(n)}return{length:e,max:t,min:n,constrain:function(e){return i(e)?o(e)?n:t:e},reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:function(n){return e?n-e*Math.ceil((n-t)/e):n}}}function _(n,t,e){const{constrain:o}=x(0,n),r=n+1;let i=s(t);function s(n){return e?u((r+n)%r):o(n)}function c(){return i}function l(){return _(n,c(),e)}const a={get:c,set:function(n){return i=s(n),a},add:function(n){return l().set(c()+n)},clone:l};return a}function k(n,t,e,o,r,i,c,d,f,h,p,g,m,b,_,k,w,S,C){const{cross:E,direction:L}=n,M=["INPUT","SELECT","TEXTAREA"],T={passive:!1},I=v(),A=v(),N=x(50,225).constrain(b.measure(20)),R={mouse:300,touch:400},z={mouse:500,touch:600},O=_?43:25;let j=!1,B=0,F=0,D=!1,P=!1,H=!1,G=!1;function V(n){if(!y(n,o)&&n.touches.length>=2)return U(n);const t=i.readPoint(n),e=i.readPoint(n,E),s=a(t,B),c=a(e,F);if(!P&&!G){if(!n.cancelable)return U(n);if(P=s>c,!P)return U(n)}const u=i.pointerMove(n);s>k&&(H=!0),h.useFriction(.3).useDuration(.75),d.start(),r.add(L(u)),n.preventDefault()}function U(n){const t=p.byDistance(0,!1).index!==g.get(),e=i.pointerUp(n)*(_?z:R)[G?"mouse":"touch"],o=function(n,t){const e=g.add(-1*l(n)),o=p.byDistance(n,!_).distance;return _||u(n)<N?o:w&&t?.5*o:p.byIndex(e.get(),0).distance}(L(e),t),r=function(n,t){if(0===n||0===t)return 0;if(u(n)<=u(t))return 0;const e=a(u(n),u(t));return u(e/n)}(e,o),s=O-10*r,c=S+r/50;P=!1,D=!1,A.clear(),h.useDuration(s).useFriction(c),f.distance(o,!_),G=!1,m.emit("pointerUp")}function W(n){H&&(n.stopPropagation(),n.preventDefault(),H=!1)}return{init:function(n){if(!C)return;function u(u){(s(C)||C(n,u))&&function(n){const s=y(n,o);G=s,H=_&&s&&!n.buttons&&j,j=a(r.get(),c.get())>=2,s&&0!==n.button||function(n){return M.includes(n.nodeName||"")}(n.target)||(D=!0,i.pointerDown(n),h.useFriction(0).useDuration(0),r.set(c),function(){const n=G?e:t;A.add(n,"touchmove",V,T).add(n,"touchend",U).add(n,"mousemove",V,T).add(n,"mouseup",U)}(),B=i.readPoint(n),F=i.readPoint(n,E),m.emit("pointerDown"))}(u)}const l=t;I.add(l,"dragstart",(n=>n.preventDefault()),T).add(l,"touchmove",(()=>{}),T).add(l,"touchend",(()=>{})).add(l,"touchstart",u).add(l,"mousedown",u).add(l,"touchcancel",U).add(l,"contextmenu",U).add(l,"click",W,!0)},destroy:function(){I.clear(),A.clear()},pointerDown:function(){return D}}}function w(n,t){let e,o;function r(n){return n.timeStamp}function i(e,o){const r="client"+("x"===(o||n.scroll)?"X":"Y");return(y(e,t)?e:e.touches[0])[r]}return{pointerDown:function(n){return e=n,o=n,i(n)},pointerMove:function(n){const t=i(n)-i(o),s=r(n)-r(e)>170;return o=n,s&&(e=n),t},pointerUp:function(n){if(!e||!o)return 0;const t=i(o)-i(e),s=r(n)-r(e),c=r(n)-r(o)>170,l=t/s;return s&&!c&&u(l)>.1?l:0},readPoint:i}}function S(n,t,e,o,r,i,c){const l=[n].concat(o);let a,d,f=[],h=!1;function p(n){return r.measureSize(c.measure(n))}return{init:function(r){i&&(d=p(n),f=o.map(p),a=new ResizeObserver((e=>{(s(i)||i(r,e))&&function(e){for(const i of e){if(h)return;const e=i.target===n,s=o.indexOf(i.target),c=e?d:f[s];if(u(p(e?n:o[s])-c)>=.5){r.reInit(),t.emit("resize");break}}}(e)})),e.requestAnimationFrame((()=>{l.forEach((n=>a.observe(n)))})))},destroy:function(){h=!0,a&&a.disconnect()}}}function C(n,t,e,o,r){const i=r.measure(10),s=r.measure(50),c=x(.1,.99);let l=!1;function a(){return!l&&!!n.reachedAny(e.get())&&!!n.reachedAny(t.get())}return{shouldConstrain:a,constrain:function(r){if(!a())return;const l=n.reachedMin(t.get())?"min":"max",d=u(n[l]-t.get()),f=e.get()-t.get(),h=c.constrain(d/s);e.subtract(f*h),!r&&u(f)<i&&(e.set(n.constrain(e.get())),o.useDuration(25).useBaseFriction())},toggleActive:function(n){l=!n}}}function E(n,t,e,o){const r=t.min+.1,i=t.max+.1,{reachedMin:s,reachedMax:c}=x(r,i);return{loop:function(t){if(!function(n){return 1===n?c(e.get()):-1===n&&s(e.get())}(t))return;const r=n*(-1*t);o.forEach((n=>n.add(r)))}}}function L(n){let t=n;function e(n){return r(n)?n:n.get()}return{get:function(){return t},set:function(n){t=e(n)},add:function(n){t+=e(n)},subtract:function(n){t-=e(n)}}}function M(n,t){const e="x"===n.scroll?function(n){return`translate3d(${n}px,0px,0px)`}:function(n){return`translate3d(0px,${n}px,0px)`},o=t.style;let r=null,i=!1;return{clear:function(){i||(o.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const s=function(n){return Math.round(100*n)/100}(n.direction(t));s!==r&&(o.transform=e(s),r=s)},toggleActive:function(n){i=!n}}}function T(n,t,e,o,r,i,s,c,u){const l=d(r),a=p(h(d(r).reverse(),s[0]),e,!1).concat(p(h(l,t-s[0]-1),-e,!0));function f(n,t){return n.reduce(((n,t)=>n-r[t]),t)}function h(n,t){return n.reduce(((n,e)=>f(n,t)>0?n.concat([e]):n),[])}function p(r,s,l){const a=function(n){return i.map(((e,r)=>({start:e-o[r]+.5+n,end:e+t-.5+n})))}(s);return r.map((t=>{const o=l?0:-e,r=l?e:0,i=a[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:L(-1),translate:M(n,u[t]),target:()=>c.get()>i?o:r}}))}return{canLoop:function(){return a.every((({index:n})=>f(l.filter((t=>t!==n)),t)<=.1))},clear:function(){a.forEach((n=>n.translate.clear()))},loop:function(){a.forEach((n=>{const{target:t,translate:e,slideLocation:o}=n,r=t();r!==o.get()&&(e.to(r),o.set(r))}))},loopPoints:a}}function I(n,t,e){let o,r=!1;return{init:function(i){e&&(o=new MutationObserver((n=>{r||(s(e)||e(i,n))&&function(n){for(const e of n)if("childList"===e.type){i.reInit(),t.emit("slidesChanged");break}}(n)})),o.observe(n,{childList:!0}))},destroy:function(){o&&o.disconnect(),r=!0}}}function A(n,t,e,o,c,b,y){const{align:A,axis:N,direction:R,startIndex:z,loop:O,duration:j,dragFree:B,dragThreshold:F,inViewThreshold:D,slidesToScroll:P,skipSnaps:H,containScroll:G,watchResize:V,watchSlides:U,watchDrag:W,watchFocus:q}=b,Q={measure:function(n){const{offsetTop:t,offsetLeft:e,offsetWidth:o,offsetHeight:r}=n;return{top:t,right:e+o,bottom:t+r,left:e,width:o,height:r}}},X=Q.measure(t),$=e.map(Q.measure),J=function(n,t){const e="rtl"===t,o="y"===n,r=!o&&e?-1:1;return{scroll:o?"y":"x",cross:o?"x":"y",startEdge:o?"top":e?"right":"left",endEdge:o?"bottom":e?"left":"right",measureSize:function(n){const{height:t,width:e}=n;return o?t:e},direction:function(n){return n*r}}}(N,R),Y=J.measureSize(X),K=function(n){return{measure:function(t){return n*(t/100)}}}(Y),Z=function(n,t){const e={start:function(){return 0},center:function(n){return o(n)/2},end:o};function o(n){return t-n}return{measure:function(o,r){return i(n)?e[n](o):n(t,o,r)}}}(A,Y),nn=!O&&!!G,tn=O||!!G,{slideSizes:en,slideSizesWithGaps:on,startGap:rn,endGap:sn}=function(n,t,e,o,r,i){const{measureSize:s,startEdge:c,endEdge:l}=n,a=e[0]&&r,d=a?u(t[c]-e[0][c]):0,h=function(){if(!a)return 0;const n=i.getComputedStyle(f(o));return parseFloat(n.getPropertyValue("margin-"+l))}(),g=e.map(s),m=e.map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g[t]+d:r?g[t]+h:e[t+1][c]-n[c]})).map(u);return{slideSizes:g,slideSizesWithGaps:m,startGap:d,endGap:h}}(J,X,$,e,tn,c),cn=function(n,t,e,o,i,s,c,l,a){const{startEdge:p,endEdge:g,direction:m}=n,b=r(e);return{groupSlides:function(n){return b?function(n,t){return d(n).filter((n=>n%t==0)).map((e=>n.slice(e,e+t)))}(n,e):function(n){return n.length?d(n).reduce(((e,r,d)=>{const b=f(e)||0,y=0===b,v=r===h(n),x=i[p]-s[b][p],_=i[p]-s[r][g],k=!o&&y?m(c):0,w=u(_-(!o&&v?m(l):0)-(x+k));return d&&w>t+a&&e.push(r),v&&e.push(n.length),e}),[]).map(((t,e,o)=>n.slice(Math.max(o[e-1]||0),t))):[]}(n)}}}(J,Y,P,O,X,$,rn,sn,2),{snaps:un,snapsAligned:ln}=function(n,t,e,o,r){const{startEdge:i,endEdge:s}=n,{groupSlides:c}=r,l=c(o).map((n=>f(n)[s]-n[0][i])).map(u).map(t.measure),a=o.map((n=>e[i]-n[i])).map((n=>-u(n))),d=c(a).map((n=>n[0])).map(((n,t)=>n+l[t]));return{snaps:a,snapsAligned:d}}(J,Z,X,$,cn),an=-f(un)+f(on),{snapsContained:dn,scrollContainLimit:fn}=function(n,t,e,o){const r=x(-t+n,0),i=e.map(((n,t)=>{const{min:o,max:i}=r,s=r.constrain(n),u=!t,l=p(e,t);return u?i:l||c(o,s)?o:c(i,s)?i:s})).map((n=>parseFloat(n.toFixed(3)))),s=function(){const n=i[0],t=f(i);return x(i.lastIndexOf(n),i.indexOf(t)+1)}();function c(n,t){return a(n,t)<=1}return{snapsContained:function(){if(t<=n+2)return[r.max];if("keepSnaps"===o)return i;const{min:e,max:c}=s;return i.slice(e,c)}(),scrollContainLimit:s}}(Y,an,ln,G),hn=nn?dn:ln,{limit:pn}=function(n,t,e){const o=t[0];return{limit:x(e?o-n:f(t),o)}}(an,hn,O),gn=_(h(hn),z,O),mn=gn.clone(),bn=d(e),yn=function(n,t,e,o){const r=v(),i=1e3/60;let s=null,c=0,u=0;function l(n){if(!u)return;s||(s=n,e(),e());const r=n-s;for(s=n,c+=r;c>=i;)e(),c-=i;o(c/i),u&&(u=t.requestAnimationFrame(l))}function a(){t.cancelAnimationFrame(u),s=null,c=0,u=0}return{init:function(){r.add(n,"visibilitychange",(()=>{n.hidden&&(s=null,c=0)}))},destroy:function(){a(),r.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:a,update:e,render:o}}(o,c,(()=>(({dragHandler:n,scrollBody:t,scrollBounds:e,options:{loop:o}})=>{o||e.constrain(n.pointerDown()),t.seek()})(Nn)),(n=>(({scrollBody:n,translate:t,location:e,offsetLocation:o,previousLocation:r,scrollLooper:i,slideLooper:s,dragHandler:c,animation:u,eventHandler:l,scrollBounds:a,options:{loop:d}},f)=>{const h=n.settled(),p=!a.shouldConstrain(),g=d?h:h&&p,m=g&&!c.pointerDown();m&&u.stop();const b=e.get()*f+r.get()*(1-f);o.set(b),d&&(i.loop(n.direction()),s.loop()),t.to(o.get()),m&&l.emit("settle"),g||l.emit("scroll")})(Nn,n))),vn=hn[gn.get()],xn=L(vn),_n=L(vn),kn=L(vn),wn=L(vn),Sn=function(n,t,e,o,r){let i=0,s=0,c=r,a=.68,d=n.get(),f=0;function h(n){return c=n,g}function p(n){return a=n,g}const g={direction:function(){return s},duration:function(){return c},velocity:function(){return i},seek:function(){const t=o.get()-n.get();let r=0;return c?(e.set(n),i+=t/c,i*=a,d+=i,n.add(i),r=d-f):(i=0,e.set(o),n.set(o),r=t),s=l(r),f=d,g},settled:function(){return u(o.get()-t.get())<.001},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return h(r)},useFriction:p,useDuration:h};return g}(xn,kn,_n,wn,j),Cn=function(n,t,e,o,r){const{reachedAny:i,removeOffset:s,constrain:c}=o;function a(n){return n.concat().sort(((n,t)=>u(n)-u(t)))[0]}function d(t,o){const r=[t,t+e,t-e];if(!n)return t;if(!o)return a(r);const i=r.filter((n=>l(n)===o));return i.length?a(i):f(r)-e}return{byDistance:function(e,o){const l=r.get()+e,{index:a,distance:f}=function(e){const o=n?s(e):c(e),r=t.map(((n,t)=>({diff:d(n-o,0),index:t}))).sort(((n,t)=>u(n.diff)-u(t.diff))),{index:i}=r[0];return{index:i,distance:o}}(l),h=!n&&i(l);return!o||h?{index:a,distance:e}:{index:a,distance:e+d(t[a]-f,0)}},byIndex:function(n,e){return{index:n,distance:d(t[n]-r.get(),e)}},shortcut:d}}(O,hn,an,pn,wn),En=function(n,t,e,o,r,i,s){function c(r){const c=r.distance,u=r.index!==t.get();i.add(c),c&&(o.duration()?n.start():(n.update(),n.render(1),n.update())),u&&(e.set(t.get()),t.set(r.index),s.emit("select"))}return{distance:function(n,t){c(r.byDistance(n,t))},index:function(n,e){const o=t.clone().set(n);c(r.byIndex(o.get(),e))}}}(yn,gn,mn,Sn,Cn,wn,y),Ln=function(n){const{max:t,length:e}=n;return{get:function(n){return e?(n-t)/-e:0}}}(pn),Mn=v(),Tn=function(n,t,e,o){const r={};let i,s=null,c=null,u=!1;return{init:function(){i=new IntersectionObserver((n=>{u||(n.forEach((n=>{const e=t.indexOf(n.target);r[e]=n})),s=null,c=null,e.emit("slidesInView"))}),{root:n.parentElement,threshold:o}),t.forEach((n=>i.observe(n)))},destroy:function(){i&&i.disconnect(),u=!0},get:function(n=!0){if(n&&s)return s;if(!n&&c)return c;const t=function(n){return m(r).reduce(((t,e)=>{const o=parseInt(e),{isIntersecting:i}=r[o];return(n&&i||!n&&!i)&&t.push(o),t}),[])}(n);return n&&(s=t),n||(c=t),t}}}(t,e,y,D),{slideRegistry:In}=function(n,t,e,o,r,i){const{groupSlides:s}=r,{min:c,max:u}=o;return{slideRegistry:function(){const o=s(i);return 1===e.length?[i]:n&&"keepSnaps"!==t?o.slice(c,u).map(((n,t,e)=>{const o=!t,r=p(e,t);return o?g(f(e[0])+1):r?g(h(i)-f(e)[0]+1,f(e)[0]):n})):o}()}}(nn,G,hn,fn,cn,bn),An=function(n,t,e,o,i,c,u,l){const a={passive:!0,capture:!0};let d=0;function f(n){"Tab"===n.code&&(d=(new Date).getTime())}return{init:function(h){l&&(c.add(document,"keydown",f,!1),t.forEach(((t,f)=>{c.add(t,"focus",(t=>{(s(l)||l(h,t))&&function(t){if((new Date).getTime()-d>10)return;u.emit("slideFocusStart"),n.scrollLeft=0;const s=e.findIndex((n=>n.includes(t)));r(s)&&(i.useDuration(0),o.index(s,0),u.emit("slideFocus"))}(f)}),a)})))}}}(n,e,In,En,Sn,Mn,y,q),Nn={ownerDocument:o,ownerWindow:c,eventHandler:y,containerRect:X,slideRects:$,animation:yn,axis:J,dragHandler:k(J,n,o,c,wn,w(J,c),xn,yn,En,Sn,Cn,gn,y,K,B,F,H,.68,W),eventStore:Mn,percentOfView:K,index:gn,indexPrevious:mn,limit:pn,location:xn,offsetLocation:kn,previousLocation:_n,options:b,resizeHandler:S(t,y,c,e,J,V,Q),scrollBody:Sn,scrollBounds:C(pn,kn,wn,Sn,K),scrollLooper:E(an,pn,kn,[xn,kn,_n,wn]),scrollProgress:Ln,scrollSnapList:hn.map(Ln.get),scrollSnaps:hn,scrollTarget:Cn,scrollTo:En,slideLooper:T(J,Y,an,en,on,un,hn,kn,e),slideFocus:An,slidesHandler:I(t,y,U),slidesInView:Tn,slideIndexes:bn,slideRegistry:In,slidesToScroll:cn,target:wn,translate:M(J,t)};return Nn}const N={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function R(n){function t(n,t){return b(n,t||{})}return{mergeOptions:t,optionsAtMedia:function(e){const o=e.breakpoints||{},r=m(o).filter((t=>n.matchMedia(t).matches)).map((n=>o[n])).reduce(((n,e)=>t(n,e)),{});return t(e,r)},optionsMediaQueries:function(t){return t.map((n=>m(n.breakpoints||{}))).reduce(((n,t)=>n.concat(t)),[]).map(n.matchMedia)}}}function z(n,t,e){const o=n.ownerDocument,r=o.defaultView,s=R(r),c=function(n){let t=[];return{init:function(e,o){return t=o.filter((({options:t})=>!1!==n.optionsAtMedia(t).active)),t.forEach((t=>t.init(e,n))),o.reduce(((n,t)=>Object.assign(n,{[t.name]:t})),{})},destroy:function(){t=t.filter((n=>n.destroy()))}}}(s),u=v(),l=function(){let n,t={};function e(n){return t[n]||[]}const o={init:function(t){n=t},emit:function(t){return e(t).forEach((e=>e(n,t))),o},off:function(n,r){return t[n]=e(n).filter((n=>n!==r)),o},on:function(n,r){return t[n]=e(n).concat([r]),o},clear:function(){t={}}};return o}(),{mergeOptions:a,optionsAtMedia:d,optionsMediaQueries:f}=s,{on:h,off:p,emit:g}=l,m=M;let b,y,x,_,k=!1,w=a(N,z.globalOptions),S=a(w),C=[];function E(t){const e=A(n,x,_,o,r,t,l);return t.loop&&!e.slideLooper.canLoop()?E(Object.assign({},t,{loop:!1})):e}function L(t,e){k||(w=a(w,t),S=d(w),C=e||C,function(){const{container:t,slides:e}=S,o=i(t)?n.querySelector(t):t;x=o||n.children[0];const r=i(e)?x.querySelectorAll(e):e;_=[].slice.call(r||x.children)}(),b=E(S),f([w,...C.map((({options:n})=>n))]).forEach((n=>u.add(n,"change",M))),S.active&&(b.translate.to(b.location.get()),b.animation.init(),b.slidesInView.init(),b.slideFocus.init(j),b.eventHandler.init(j),b.resizeHandler.init(j),b.slidesHandler.init(j),b.options.loop&&b.slideLooper.loop(),x.offsetParent&&_.length&&b.dragHandler.init(j),y=c.init(j,C)))}function M(n,t){const e=O();T(),L(a({startIndex:e},n),t),l.emit("reInit")}function T(){b.dragHandler.destroy(),b.eventStore.clear(),b.translate.clear(),b.slideLooper.clear(),b.resizeHandler.destroy(),b.slidesHandler.destroy(),b.slidesInView.destroy(),b.animation.destroy(),c.destroy(),u.clear()}function I(n,t,e){S.active&&!k&&(b.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),b.scrollTo.index(n,e||0))}function O(){return b.index.get()}const j={canScrollNext:function(){return b.index.add(1).get()!==O()},canScrollPrev:function(){return b.index.add(-1).get()!==O()},containerNode:function(){return x},internalEngine:function(){return b},destroy:function(){k||(k=!0,u.clear(),T(),l.emit("destroy"),l.clear())},off:p,on:h,emit:g,plugins:function(){return y},previousScrollSnap:function(){return b.indexPrevious.get()},reInit:m,rootNode:function(){return n},scrollNext:function(n){I(b.index.add(1).get(),n,-1)},scrollPrev:function(n){I(b.index.add(-1).get(),n,1)},scrollProgress:function(){return b.scrollProgress.get(b.offsetLocation.get())},scrollSnapList:function(){return b.scrollSnapList},scrollTo:I,selectedScrollSnap:O,slideNodes:function(){return _},slidesInView:function(){return b.slidesInView.get()},slidesNotInView:function(){return b.slidesInView.get(!1)}};return L(t,e),setTimeout((()=>l.emit("init")),0),j}z.globalOptions=void 0;const O=t(class extends e{constructor(n){super(),!1!==n&&this.__registerHost()}get el(){return this}items;loop=!0;class;controlClass;slideClass;itemClass;viewportRef;containerRef;slotRef;prevBtnRef;nextBtnRef;dotsRef;embla=null;movedNodes=[];prevClickHandler=null;nextClickHandler=null;dotClickHandlers=[];slotNodesMoved=!1;async scrollPrev(){this.embla?.scrollPrev()}async scrollNext(){this.embla?.scrollNext()}async goToSlide(n){this.embla?.scrollTo(n)}async getEmbla(){return this.embla}moveSlotNodesIntoContainer(){if(!this.slotRef||!this.containerRef||this.slotNodesMoved)return;const n=this.slotRef.assignedNodes().filter((n=>n.nodeType===Node.ELEMENT_NODE));0!==n.length&&(this.movedNodes=[],n.forEach((n=>{this.containerRef.appendChild(n),this.movedNodes.push(n)})),this.slotNodesMoved=!0,this.scheduleEmblaInit())}initScheduled=!1;scheduleEmblaInit(){this.initScheduled||(this.initScheduled=!0,requestAnimationFrame((()=>{this.initScheduled=!1,this.destroyEmbla(),this.initEmbla()})))}moveSlotNodesBack(){const n=this.el;this.movedNodes.forEach((t=>n.appendChild(t))),this.movedNodes=[]}initEmbla(){if(!this.viewportRef||!this.containerRef)return;const n=this.getItemsArray();if(!(void 0!==n?n.length>0:this.containerRef.children.length>0))return;this.embla=z(this.viewportRef,{loop:this.loop,align:"center",containScroll:"trimSnaps"});const t=this.prevBtnRef,e=this.nextBtnRef,o=this.dotsRef,r=()=>{t&&(this.embla?.canScrollPrev()?t.removeAttribute("disabled"):t.setAttribute("disabled","")),e&&(this.embla?.canScrollNext()?e.removeAttribute("disabled"):e.setAttribute("disabled",""))};if(this.embla.on("init",r),this.embla.on("reInit",r),this.embla.on("select",r),t&&e&&(this.prevClickHandler=()=>this.embla?.scrollPrev(),this.nextClickHandler=()=>this.embla?.scrollNext(),t.addEventListener("click",this.prevClickHandler),e.addEventListener("click",this.nextClickHandler)),o){const n=this.embla.scrollSnapList().length;o.innerHTML="";for(let t=0;t<n;t++){const n=document.createElement("button");n.type="button",n.setAttribute("aria-label","Go to slide "+(t+1)),n.className="carousel__dot",0===t&&n.classList.add("current");const e=document.createElement("div");e.className="carousel__dot-inner",n.appendChild(e);const r=t,i=()=>this.embla?.scrollTo(r);this.dotClickHandlers.push(i),n.addEventListener("click",i),o.appendChild(n)}this.embla.on("select",(()=>{const n=this.embla?.selectedScrollSnap()??0;o.querySelectorAll("button").forEach(((t,e)=>{t.classList.toggle("current",e===n)}))}))}r()}destroyEmbla(){this.prevBtnRef&&this.prevClickHandler&&(this.prevBtnRef.removeEventListener("click",this.prevClickHandler),this.prevClickHandler=null),this.nextBtnRef&&this.nextClickHandler&&(this.nextBtnRef.removeEventListener("click",this.nextClickHandler),this.nextClickHandler=null),this.dotClickHandlers=[],this.dotsRef&&(this.dotsRef.innerHTML=""),this.embla?.destroy(),this.embla=null}onSlotChange=()=>{void 0===this.getItemsArray()&&this.moveSlotNodesIntoContainer()};componentDidRender(){void 0===this.getItemsArray()?(this.slotRef&&(this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.slotRef.addEventListener("slotchange",this.onSlotChange)),requestAnimationFrame((()=>{this.moveSlotNodesIntoContainer(),this.slotNodesMoved||(this.destroyEmbla(),this.initEmbla())}))):(this.destroyEmbla(),this.initEmbla())}disconnectedCallback(){this.slotRef&&this.slotRef.removeEventListener("slotchange",this.onSlotChange),this.destroyEmbla(),void 0===this.getItemsArray()&&(this.moveSlotNodesBack(),this.slotNodesMoved=!1)}getItemsArray(){if(void 0!==this.items){if(Array.isArray(this.items))return this.items;if("string"==typeof this.items)try{const n=JSON.parse(this.items);return Array.isArray(n)?n:void 0}catch{return}}}render(){const n=this.getItemsArray(),t=void 0!==n&&n.length>0;return o("div",{key:"3a2ea6c339bf0fe656e5a333789df7a37156b5dc",class:("carousel "+(this.class||"")).trim()},o("div",{key:"0a73b925095ae3188e5e40b024bc250e4c183894",class:("carousel__viewport "+(this.slideClass||"")).trim(),ref:n=>this.viewportRef=n},o("div",{key:"7fc3b5a72e386f7fa21702aeb363e08da1b728cf",class:"carousel__container",ref:n=>this.containerRef=n},t&&n?n.map(((n,t)=>o("div",{key:t,class:("carousel__slide "+(this.itemClass||"")).trim()},"object"==typeof n&&null!==n&&"content"in n?n.content:n+""))):null)),!t&&o("div",{key:"dee2fc91470728c136c9853cd74ae350ad3c5676",style:{display:"none"},"aria-hidden":"true"},o("slot",{key:"35dd47c03a1b9b6b73d845252c3d0482590f7da2",ref:n=>this.slotRef=n})),o("div",{key:"df639ad86ae8533f1dc15eed30afb70d99e36e1a",class:("carousel__controls "+(this.controlClass||"")).trim()},o("button",{key:"c17c0ea9bf023b5d2621e558c957d92b13425584",type:"button","aria-label":"Previous",class:"carousel__prev",ref:n=>this.prevBtnRef=n},o("svg",{key:"5125abcae0b08ee72106d511b4c24c2d0f24187b",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"9b7f28be56f451ad14de226d7163a5587a1cd9e6","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),o("div",{key:"9939d3496092a3f319efac9132cec8097c83b497",class:"carousel__dots",ref:n=>this.dotsRef=n}),o("button",{key:"a0b1228f6df0065885f1d272386283926e78464b",type:"button","aria-label":"Next",class:"carousel__next",ref:n=>this.nextBtnRef=n},o("svg",{key:"e00c92cc0485f41a30e97d5d0466aaee48a64998",class:"carousel__icon","stroke-width":"1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true"},o("path",{key:"a35c46fdbd1cd333d3e6f76590f45dd837546165","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})))))}static get style(){return":host{display:block}.carousel{display:flex;flex-direction:column;overflow:hidden}.carousel__viewport{overflow:hidden;touch-action:pan-y pinch-zoom}.carousel__container{display:flex;flex-direction:row;height:100%;margin-left:calc(-0.4rem)}.carousel__container ::slotted(*){flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__slide{flex:0 0 50%;width:50%;height:100%;padding-left:0.4rem;box-sizing:border-box}.carousel__controls{display:flex;gap:0.25rem;margin-top:0.25rem;justify-content:center;align-items:center}.carousel__prev,.carousel__next{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:transparent;cursor:pointer;color:currentColor}.carousel__prev:disabled,.carousel__next:disabled{opacity:0.4;cursor:not-allowed}.carousel__icon{width:2.4rem;height:2.4rem}.carousel__dots{display:flex;gap:0.25rem;align-items:center}.carousel__dot{padding:0;border:none;background:none;cursor:pointer;width:0.5rem;height:0.5rem;display:flex;align-items:center;justify-content:center}.carousel__dot-inner{width:100%;height:100%;border-radius:50%;background-color:var(--carousel-dot-bg, #cbd5e1);transition:background-color 0.2s ease}.carousel__dot.current .carousel__dot-inner{background-color:var(--carousel-dot-active-bg, #94a3b8)}"}},[772,"fast-carousel",{items:[1],loop:[4],class:[1],controlClass:[1,"control-class"],slideClass:[1,"slide-class"],itemClass:[1,"item-class"],scrollPrev:[64],scrollNext:[64],goToSlide:[64],getEmbla:[64]}]);function j(){"undefined"!=typeof customElements&&["fast-carousel"].forEach((t=>{"fast-carousel"===t&&(customElements.get(n(t))||customElements.define(n(t),O))}))}j();const B=O,F=j;export{B as FastCarousel,F as defineCustomElement}
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-Cw2MJ5l2.js";function t(s,t,e){return(s||"")+(t?" "+t:"")+(e?" "+e:"")}export{t as format}
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-UM9TUfe3.js";function t(s,t,e){return(s||"")+(t?" "+t:"")+(e?" "+e:"")}export{t as format}
@@ -1 +1 @@
1
- import{t as e,p as t,H as s,h as i}from"./p-Cw2MJ5l2.js";const l=[{title:"Senior Software Engineer",reference:"REF-001",originalURL:"/jobs/senior-software-engineer",applyURL:"https://apply.example.com/1",brandName:"Engineering",isRemote:!1,locations:[{city:"San Francisco",stateAbbr:"CA",countryAbbr:"US",distance:5.2,streetAddress:"123 Market St",cityStateAbbr:"San Francisco, CA"}],employmentType:["Full-time","Permanent"]},{title:"Product Manager",reference:"",originalURL:"/jobs/product-manager",brandName:"Product",isRemote:!0,locations:[],employmentType:["Full-time"]},{title:"UX Designer",reference:"REF-003",originalURL:"/jobs/ux-designer",brandName:"Design",isRemote:!1,locations:[{city:"New York",stateAbbr:"NY",countryAbbr:"US",distance:0,cityStateAbbr:"New York, NY"},{city:"Boston",stateAbbr:"MA",countryAbbr:"US",cityStateAbbr:"Boston, MA"}],employmentType:["Full-time","Contract"]}],r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost()}mockData=!1;jobs=[];loading=!1;totalJob=0;noResultsLine1="Sorry, we're not able to load results for your search.";noResultsLine2="Please refine your keywords in the search bar above and try again.";applyButtonText="Apply Now";showBrand=!0;showReference=!1;showEmploymentType=!0;streetFormat="{street}, {city_state_abbr}";multiLocationText="More locations";remoteLocationText="Remote";enableKilometers=!1;rootClass="";showSuggestions=!1;clearResultSuggestionsTitleText="Suggestions";clearResultSuggestionsLine1="Try different keywords";clearResultSuggestionsLine2="Make sure everything is spelled correctly";clearResultSuggestionsLine3="Try other locations";clearResultSuggestionsLine4="";getJobsArray(){if(this.mockData)return l;const e=this.jobs;if(Array.isArray(e))return e;if("string"==typeof e)try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}formatDistance(e){const t=this.enableKilometers?"Km":"Miles";return`${(this.enableKilometers?1.60934*e:e).toFixed(1)} ${t}`.replace(".0","")}renderJobItem(e,t){const s=function(e){const t=e.locations;if(t?.length)return t[0]}(e),l=s?function(e){return e.cityStateAbbr?e.cityStateAbbr:[e.streetAddress,e.city,e.stateAbbr||e.state,e.countryAbbr||e.country].filter(Boolean).join(", ")||e.locationText||""}(s):"",r=s?.distance??0,n=r>0?this.formatDistance(r):"",o=e.applyURL||(e.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${e.originalURL}`:"#"),a=`${this.applyButtonText}, ${e.title||""}`,c=e.locations??[],u=c.length>1;return i("li",{class:"results-list__item"},i("div",{class:"results-list__item-header"},i("h3",{class:"results-list__item-title"},i("a",{class:"results-list__item-title--link",href:o,target:"_blank",rel:"noopener noreferrer"},e.title||""),this.showReference&&i("span",{class:"reference "+(e.reference?"":"empty")},e.reference||""),e.isRemote&&i("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),n&&i("div",{class:"results-list__item-distance"},i("span",{class:"results-list__item-distance--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"}),i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l2 2"}))),i("span",{class:"results-list__item-distance--label"},n))),i("div",{class:"results-list__item-content"},i("div",{class:"results-list__item-info"},i("div",{class:c.length?"results-list__item-street":"results-list__item-street results-list__item-street--empty"},i("div",{class:"results-list__item-street--label__wrapper"},i("span",{class:"results-list__item-street--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0z"}))),i("span",{class:"results-list__item-street--label"},l||"—")),u&&i("div",{class:"results-list__item-street--more-locations__wrapper"},i("span",{class:"results-list__item-street--amount"},"+",c.length-1),i("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&i("div",{class:e.brandName?"results-list__item-brand":"results-list__item-brand results-list__item-brand--empty"},i("span",{class:"results-list__item-brand--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008z"}))),i("span",{class:"results-list__item-brand--label"},e.brandName||"—")),this.showEmploymentType&&i("div",{class:e.employmentType?.length?"results-list__item-employment-type":"results-list__item-employment-type results-list__item-employment-type--empty"},i("span",{class:"results-list__item-employment-type--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))),(e.employmentType?.length?e.employmentType:["—"]).map((e=>i("span",{key:e,class:"results-list__item-employment-type--label"},e)))),(e.jobCardExtraFields??[]).map(((e,t)=>i("div",{key:t,class:(Array.isArray(e.value)?e.value.length:e.value)?e.classname:e.classname+"--empty"},Array.isArray(e.value)?e.value.map(((t,s)=>i("span",{key:s,class:e.classname+"--label"},t))):i("span",{class:e.classname+"--label"},e.value+""))))),i("a",{class:"results-list__item-apply",href:o,target:"_blank",rel:"noopener noreferrer","aria-label":a},i("span",{class:"results-list__item-apply--label"},this.applyButtonText),i("span",{class:"results-list__item-apply--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))))))}render(){const e=this.getJobsArray(),t=!this.mockData&&this.loading,s=this.mockData?e.length:this.totalJob||e.length,l=!t&&0===s&&!this.showSuggestions,r=!t&&0===s&&this.showSuggestions;return i("div",{key:"c2e9c9146a24f0869cbd75588b2718c94f62bbbc",class:("jobs-list-root "+this.rootClass).trim()},i("div",{key:"b2f3dffe7e17797b378bd648f54e46bb31e2d374",class:"results-container"},i("div",{key:"4733870b035ec307b6e691f1d62ed8568e93fd1f",class:t?"loader":"loader hide","aria-hidden":!t}),s>0&&i("div",{key:"a9438f079041e0121fafdcb42089f27482475491",class:"card"},i("ul",{key:"3bd7dcc64f46aec24945a25df7345766606a51bd",class:"results-list front"},e.map(((e,t)=>this.renderJobItem(e,t))))),l&&i("div",{key:"1996476568c745e0ada31b47bb1a1be2efaf6917",class:"share-jobs__no-results"},i("h2",{key:"8d2a79881428d89d783b05f26d06abbef94f5c2e"},this.noResultsLine1),i("h3",{key:"855704ea47b06a701c0e59a8bb43fb405ad3bb96"},this.noResultsLine2)),r&&i("div",{key:"74da6e8243423dc9770f4dc67f46f5627c352349",class:"card primary-color"},i("h4",{key:"d3fb2ef03a656331f97afe3692b05bbe064ed124",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),i("ul",{key:"63914647653930e6c686a38d779af20e7e5c17d5",class:"results-list front"},i("li",{key:"82063c023701d0c42ca2787f382d42a80f569b6a",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),i("li",{key:"7645d7a7435f76854b8eeb0d693a883fc341764e",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),i("li",{key:"060675d017137e8b23342c92efadc769e2bae1c2",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&i("li",{key:"0f6ef00a4f6267dc9ad2441e16f02c82b0994d03",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}static get style(){return":host{display:block}.jobs-list-root{list-style:none}.results-container{position:relative}.loader{display:inline-block;width:24px;height:24px;border:2px solid #ddd;border-top-color:#1f9755;border-radius:50%;animation:jobs-list-spin 0.8s linear infinite}.loader.hide{display:none}@keyframes jobs-list-spin{to{transform:rotate(360deg)}}.card{border:0}.results-list{list-style:none;margin:0;padding:0;display:block}.results-list.front{margin:3px 0}.results-list__item{list-style:none;padding:10px 0;border-bottom:1px solid #ddd;margin:15px 0;display:inline-block;width:100%;position:relative}.results-list__item:last-child{border-bottom:none}.results-list__item-header{margin:10px 0;font-size:18px;font-weight:700;display:flex;flex-direction:column}.results-list__item-title{margin:0}.results-list__item-title--link{text-decoration:none;color:#1f9755}.results-list__item-title--link:hover{text-decoration:underline}.reference{margin-left:8px;font-size:0.9em;color:#666}.reference.empty{display:none}.remote{background:#f3f3f3;color:#808285;border-radius:100px;padding:6px 16px;text-transform:uppercase;font-size:12px;font-weight:700;line-height:24px;margin-left:8px}.remote--empty{display:none}.results-list__item-distance{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:14px;font-weight:400}.results-list__item-distance--icon{display:inline-flex}.results-list__item-distance--icon svg{width:16px;height:16px}.results-list__item-content{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:8px}.results-list__item-info{flex:1}.results-list__item-street,.results-list__item-brand,.results-list__item-employment-type{margin:10px 0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.results-list__item-street--empty,.results-list__item-brand--empty,.results-list__item-employment-type--empty{color:#999}.results-list__item-street--icon,.results-list__item-brand--icon,.results-list__item-employment-type--icon{margin-right:6px;display:inline-flex}.results-list__item-street--icon svg,.results-list__item-brand--icon svg,.results-list__item-employment-type--icon svg{width:16px;height:16px}.results-list__item-street--more-locations__wrapper{margin-left:8px}.results-list__item-street--amount{font-weight:600}.results-list__item-apply{margin:10px 0;padding:10px 20px;display:inline-flex;align-items:center;gap:8px;background-color:#198754;color:#fff;border-radius:3px;text-decoration:none;font-weight:600;flex-shrink:0}.results-list__item-apply:hover{background-color:#1f9755;color:#fff}.results-list__item-apply--icon svg{width:14px;height:14px}.share-jobs__no-results{padding:24px;text-align:center}.share-jobs__no-results h2,.share-jobs__no-results h3{margin:8px 0;font-weight:600}.card.primary-color{padding:16px;border-radius:4px;background:#f8f9fa}.result-suggestions-title{margin:0 0 12px 0;font-size:16px}.results-list .result-suggestions-line{list-style:none;margin:4px 0}"}},[512,"jobs-list-only-ui",{mockData:[4,"mock-data"],jobs:[1],loading:[4],totalJob:[2,"total-job"],noResultsLine1:[1,"no-results-line-1"],noResultsLine2:[1,"no-results-line-2"],applyButtonText:[1,"apply-button-text"],showBrand:[4,"show-brand"],showReference:[4,"show-reference"],showEmploymentType:[4,"show-employment-type"],streetFormat:[1,"street-format"],multiLocationText:[1,"multi-location-text"],remoteLocationText:[1,"remote-location-text"],enableKilometers:[4,"enable-kilometers"],rootClass:[1,"root-class"],showSuggestions:[4,"show-suggestions"],clearResultSuggestionsTitleText:[1,"clear-result-suggestions-title-text"],clearResultSuggestionsLine1:[1,"clear-result-suggestions-line-1"],clearResultSuggestionsLine2:[1,"clear-result-suggestions-line-2"],clearResultSuggestionsLine3:[1,"clear-result-suggestions-line-3"],clearResultSuggestionsLine4:[1,"clear-result-suggestions-line-4"]}]);function n(){"undefined"!=typeof customElements&&["jobs-list-only-ui"].forEach((t=>{"jobs-list-only-ui"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}n();const o=r,a=n;export{o as JobsListOnlyUi,a as defineCustomElement}
1
+ import{t as e,p as t,H as s,h as i}from"./p-UM9TUfe3.js";const l=[{title:"Senior Software Engineer",reference:"REF-001",originalURL:"/jobs/senior-software-engineer",applyURL:"https://apply.example.com/1",brandName:"Engineering",isRemote:!1,locations:[{city:"San Francisco",stateAbbr:"CA",countryAbbr:"US",distance:5.2,streetAddress:"123 Market St",cityStateAbbr:"San Francisco, CA"}],employmentType:["Full-time","Permanent"]},{title:"Product Manager",reference:"",originalURL:"/jobs/product-manager",brandName:"Product",isRemote:!0,locations:[],employmentType:["Full-time"]},{title:"UX Designer",reference:"REF-003",originalURL:"/jobs/ux-designer",brandName:"Design",isRemote:!1,locations:[{city:"New York",stateAbbr:"NY",countryAbbr:"US",distance:0,cityStateAbbr:"New York, NY"},{city:"Boston",stateAbbr:"MA",countryAbbr:"US",cityStateAbbr:"Boston, MA"}],employmentType:["Full-time","Contract"]}],r=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost()}mockData=!1;jobs=[];loading=!1;totalJob=0;noResultsLine1="Sorry, we're not able to load results for your search.";noResultsLine2="Please refine your keywords in the search bar above and try again.";applyButtonText="Apply Now";showBrand=!0;showReference=!1;showEmploymentType=!0;streetFormat="{street}, {city_state_abbr}";multiLocationText="More locations";remoteLocationText="Remote";enableKilometers=!1;rootClass="";showSuggestions=!1;clearResultSuggestionsTitleText="Suggestions";clearResultSuggestionsLine1="Try different keywords";clearResultSuggestionsLine2="Make sure everything is spelled correctly";clearResultSuggestionsLine3="Try other locations";clearResultSuggestionsLine4="";getJobsArray(){if(this.mockData)return l;const e=this.jobs;if(Array.isArray(e))return e;if("string"==typeof e)try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}formatDistance(e){const t=this.enableKilometers?"Km":"Miles";return`${(this.enableKilometers?1.60934*e:e).toFixed(1)} ${t}`.replace(".0","")}renderJobItem(e,t){const s=function(e){const t=e.locations;if(t?.length)return t[0]}(e),l=s?function(e){return e.cityStateAbbr?e.cityStateAbbr:[e.streetAddress,e.city,e.stateAbbr||e.state,e.countryAbbr||e.country].filter(Boolean).join(", ")||e.locationText||""}(s):"",r=s?.distance??0,n=r>0?this.formatDistance(r):"",o=e.applyURL||(e.originalURL?`${"undefined"!=typeof window?window.location.origin:""}${e.originalURL}`:"#"),a=`${this.applyButtonText}, ${e.title||""}`,c=e.locations??[],u=c.length>1;return i("li",{class:"results-list__item"},i("div",{class:"results-list__item-header"},i("h3",{class:"results-list__item-title"},i("a",{class:"results-list__item-title--link",href:o,target:"_blank",rel:"noopener noreferrer"},e.title||""),this.showReference&&i("span",{class:"reference "+(e.reference?"":"empty")},e.reference||""),e.isRemote&&i("span",{class:this.remoteLocationText?"remote":"remote remote--empty"},this.remoteLocationText)),n&&i("div",{class:"results-list__item-distance"},i("span",{class:"results-list__item-distance--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"}),i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l2 2"}))),i("span",{class:"results-list__item-distance--label"},n))),i("div",{class:"results-list__item-content"},i("div",{class:"results-list__item-info"},i("div",{class:c.length?"results-list__item-street":"results-list__item-street results-list__item-street--empty"},i("div",{class:"results-list__item-street--label__wrapper"},i("span",{class:"results-list__item-street--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}),i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0z"}))),i("span",{class:"results-list__item-street--label"},l||"—")),u&&i("div",{class:"results-list__item-street--more-locations__wrapper"},i("span",{class:"results-list__item-street--amount"},"+",c.length-1),i("span",{class:"results-list__item-street--more-locations"},this.multiLocationText))),this.showBrand&&i("div",{class:e.brandName?"results-list__item-brand":"results-list__item-brand results-list__item-brand--empty"},i("span",{class:"results-list__item-brand--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H21m-3.75 3.75h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008zm0 3h.008v.008h-.008v-.008z"}))),i("span",{class:"results-list__item-brand--label"},e.brandName||"—")),this.showEmploymentType&&i("div",{class:e.employmentType?.length?"results-list__item-employment-type":"results-list__item-employment-type results-list__item-employment-type--empty"},i("span",{class:"results-list__item-employment-type--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))),(e.employmentType?.length?e.employmentType:["—"]).map((e=>i("span",{key:e,class:"results-list__item-employment-type--label"},e)))),(e.jobCardExtraFields??[]).map(((e,t)=>i("div",{key:t,class:(Array.isArray(e.value)?e.value.length:e.value)?e.classname:e.classname+"--empty"},Array.isArray(e.value)?e.value.map(((t,s)=>i("span",{key:s,class:e.classname+"--label"},t))):i("span",{class:e.classname+"--label"},e.value+""))))),i("a",{class:"results-list__item-apply",href:o,target:"_blank",rel:"noopener noreferrer","aria-label":a},i("span",{class:"results-list__item-apply--label"},this.applyButtonText),i("span",{class:"results-list__item-apply--icon"},i("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7l5 5m0 0l-5 5m5-5H6"}))))))}render(){const e=this.getJobsArray(),t=!this.mockData&&this.loading,s=this.mockData?e.length:this.totalJob||e.length,l=!t&&0===s&&!this.showSuggestions,r=!t&&0===s&&this.showSuggestions;return i("div",{key:"c2e9c9146a24f0869cbd75588b2718c94f62bbbc",class:("jobs-list-root "+this.rootClass).trim()},i("div",{key:"b2f3dffe7e17797b378bd648f54e46bb31e2d374",class:"results-container"},i("div",{key:"4733870b035ec307b6e691f1d62ed8568e93fd1f",class:t?"loader":"loader hide","aria-hidden":!t}),s>0&&i("div",{key:"a9438f079041e0121fafdcb42089f27482475491",class:"card"},i("ul",{key:"3bd7dcc64f46aec24945a25df7345766606a51bd",class:"results-list front"},e.map(((e,t)=>this.renderJobItem(e,t))))),l&&i("div",{key:"1996476568c745e0ada31b47bb1a1be2efaf6917",class:"share-jobs__no-results"},i("h2",{key:"8d2a79881428d89d783b05f26d06abbef94f5c2e"},this.noResultsLine1),i("h3",{key:"855704ea47b06a701c0e59a8bb43fb405ad3bb96"},this.noResultsLine2)),r&&i("div",{key:"74da6e8243423dc9770f4dc67f46f5627c352349",class:"card primary-color"},i("h4",{key:"d3fb2ef03a656331f97afe3692b05bbe064ed124",class:"result-suggestions-title"},this.clearResultSuggestionsTitleText,":"),i("ul",{key:"63914647653930e6c686a38d779af20e7e5c17d5",class:"results-list front"},i("li",{key:"82063c023701d0c42ca2787f382d42a80f569b6a",class:"result-suggestions-line"},this.clearResultSuggestionsLine1),i("li",{key:"7645d7a7435f76854b8eeb0d693a883fc341764e",class:"result-suggestions-line"},this.clearResultSuggestionsLine2),i("li",{key:"060675d017137e8b23342c92efadc769e2bae1c2",class:"result-suggestions-line"},this.clearResultSuggestionsLine3),this.clearResultSuggestionsLine4&&i("li",{key:"0f6ef00a4f6267dc9ad2441e16f02c82b0994d03",class:"result-suggestions-line"},this.clearResultSuggestionsLine4)))))}static get style(){return":host{display:block}.jobs-list-root{list-style:none}.results-container{position:relative}.loader{display:inline-block;width:24px;height:24px;border:2px solid #ddd;border-top-color:#1f9755;border-radius:50%;animation:jobs-list-spin 0.8s linear infinite}.loader.hide{display:none}@keyframes jobs-list-spin{to{transform:rotate(360deg)}}.card{border:0}.results-list{list-style:none;margin:0;padding:0;display:block}.results-list.front{margin:3px 0}.results-list__item{list-style:none;padding:10px 0;border-bottom:1px solid #ddd;margin:15px 0;display:inline-block;width:100%;position:relative}.results-list__item:last-child{border-bottom:none}.results-list__item-header{margin:10px 0;font-size:18px;font-weight:700;display:flex;flex-direction:column}.results-list__item-title{margin:0}.results-list__item-title--link{text-decoration:none;color:#1f9755}.results-list__item-title--link:hover{text-decoration:underline}.reference{margin-left:8px;font-size:0.9em;color:#666}.reference.empty{display:none}.remote{background:#f3f3f3;color:#808285;border-radius:100px;padding:6px 16px;text-transform:uppercase;font-size:12px;font-weight:700;line-height:24px;margin-left:8px}.remote--empty{display:none}.results-list__item-distance{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:14px;font-weight:400}.results-list__item-distance--icon{display:inline-flex}.results-list__item-distance--icon svg{width:16px;height:16px}.results-list__item-content{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:8px}.results-list__item-info{flex:1}.results-list__item-street,.results-list__item-brand,.results-list__item-employment-type{margin:10px 0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}.results-list__item-street--empty,.results-list__item-brand--empty,.results-list__item-employment-type--empty{color:#999}.results-list__item-street--icon,.results-list__item-brand--icon,.results-list__item-employment-type--icon{margin-right:6px;display:inline-flex}.results-list__item-street--icon svg,.results-list__item-brand--icon svg,.results-list__item-employment-type--icon svg{width:16px;height:16px}.results-list__item-street--more-locations__wrapper{margin-left:8px}.results-list__item-street--amount{font-weight:600}.results-list__item-apply{margin:10px 0;padding:10px 20px;display:inline-flex;align-items:center;gap:8px;background-color:#198754;color:#fff;border-radius:3px;text-decoration:none;font-weight:600;flex-shrink:0}.results-list__item-apply:hover{background-color:#1f9755;color:#fff}.results-list__item-apply--icon svg{width:14px;height:14px}.share-jobs__no-results{padding:24px;text-align:center}.share-jobs__no-results h2,.share-jobs__no-results h3{margin:8px 0;font-weight:600}.card.primary-color{padding:16px;border-radius:4px;background:#f8f9fa}.result-suggestions-title{margin:0 0 12px 0;font-size:16px}.results-list .result-suggestions-line{list-style:none;margin:4px 0}"}},[512,"jobs-list-only-ui",{mockData:[4,"mock-data"],jobs:[1],loading:[4],totalJob:[2,"total-job"],noResultsLine1:[1,"no-results-line-1"],noResultsLine2:[1,"no-results-line-2"],applyButtonText:[1,"apply-button-text"],showBrand:[4,"show-brand"],showReference:[4,"show-reference"],showEmploymentType:[4,"show-employment-type"],streetFormat:[1,"street-format"],multiLocationText:[1,"multi-location-text"],remoteLocationText:[1,"remote-location-text"],enableKilometers:[4,"enable-kilometers"],rootClass:[1,"root-class"],showSuggestions:[4,"show-suggestions"],clearResultSuggestionsTitleText:[1,"clear-result-suggestions-title-text"],clearResultSuggestionsLine1:[1,"clear-result-suggestions-line-1"],clearResultSuggestionsLine2:[1,"clear-result-suggestions-line-2"],clearResultSuggestionsLine3:[1,"clear-result-suggestions-line-3"],clearResultSuggestionsLine4:[1,"clear-result-suggestions-line-4"]}]);function n(){"undefined"!=typeof customElements&&["jobs-list-only-ui"].forEach((t=>{"jobs-list-only-ui"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}n();const o=r,a=n;export{o as JobsListOnlyUi,a as defineCustomElement}
@@ -0,0 +1 @@
1
+ var t=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(t||{}),n=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(n||{}),e="type",l="value",o="serialized:";function s(t,n,e){const l="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==l;){const l=Object.getOwnPropertyDescriptor(t,n);if(l&&(!e||l.get))return l;t=Object.getPrototypeOf(t)}}var r=(t,n)=>{var e;Object.entries(null!=(e=n.l.t)?e:{}).map((([e,[l]])=>{if(31&l||32&l){const l=t[e],o=s(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);o&&Object.defineProperty(t,e,{get(){return o.get.call(this)},set(t){o.set.call(this,t)},configurable:!0,enumerable:!0}),n.o.has(e)?t[e]=n.o.get(e):void 0!==l&&(t[e]=l)}}))},i=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,n)=>n in t,u=(t,n)=>(0,console.error)(t,n),f=new Map,a="s-id",d="sty-id",$="c-id",p="undefined"!=typeof window?window:{},h=p.HTMLElement||class{},v={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),b=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),y=!1,g=[],w=[],j=(t,n)=>e=>{t.push(e),y||(y=!0,n&&4&v.i?N(S):v.raf(S))},O=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){u(t)}t.length=0},S=()=>{O(g),O(w),(y=g.length>0)&&v.raf(S)},N=t=>Promise.resolve(undefined).then(t),k=j(w,!0),x=t=>{const n=new URL(t,v.u);return n.origin!==p.location.origin?n.href:n.pathname},M=t=>v.u=t,E=t=>{const n=F(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&I(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!L(t,_(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&F(t,"childNodes").length&&E(t)}};function I(t,n,e){let l,o=0,s=[];for(;o<t.length;o++){if(l=t[o],l["s-sr"]&&(!n||l["s-hn"]===n)&&(void 0===e||_(l)===e)&&(s.push(l),void 0!==e))return s;s=[...s,...I(l.childNodes,n,e)]}return s}var L=(t,n,e=!0)=>{const l=[];(e&&t["s-sr"]||!t["s-sr"])&&l.push(t);let o=t;for(;o=o.nextSibling;)_(o)!==n||!e&&o["s-sr"]||l.push(o);return l},A=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,C=(t,n,e,l)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,r=F(s,"appendChild");if(void 0!==l){o["s-oo"]=l;const t=F(s,"childNodes"),n=[o];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>r.call(s,t)))}else r.call(s,o);t["s-ol"]=o,t["s-sh"]=n["s-hn"]},_=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function R(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],l=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const l=t[e]["s-nr"]||void 0;l&&l.isConnected&&n.push(l)}return n})(o.childNodes)).forEach((t=>{l===_(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function F(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var T=new WeakMap,D=t=>"sc-"+t.$,V=t=>"object"==(t=typeof t)||"function"===t,H=(t,n,...e)=>{let l=null,o=null,s=null,r=!1,i=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof t&&!V(l))&&(l=String(l)),r&&i?c[c.length-1].p+=l:c.push(r?P(null,l):l),i=r)};if(u(e),n){n.key&&(o=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const f=P(t,null);return f.h=n,c.length>0&&(f.v=c),f.m=o,f.j=s,f},P=(t,n)=>({i:0,O:t,p:null!=n?n:null,S:null,v:null,h:null,m:null,j:null}),U={},B=(t,n,e,l,o,s,r,i=[])=>{let c,u,f,a;if(1===s.nodeType){if(c=s.getAttribute($),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=z({i:0,N:u[0],k:u[1],M:u[2],I:u[3],O:s.tagName.toLowerCase(),S:s,h:{class:s.className||""}}),n.push(f),s.removeAttribute($),t.v||(t.v=[]);const l=f.S.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.O&&q(l,u[2],f,s,t,n,e,0,i),f.S["s-sn"]=l,f.S.removeAttribute("s-sn")),void 0!==f.I&&(t.v[f.I]=f),t=f}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)B(t,n,e,l,o,s.shadowRoot.childNodes[a],r,i);const d=s.__childNodes||s.childNodes;for(a=d.length-1;a>=0;a--)B(t,n,e,l,o,d[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=z({N:u[1],k:u[2],M:u[3],I:u[4]||"0",S:s,h:null,v:null,m:null,j:null,O:null,p:null}),"t"===c?(f.S=G(s,3),f.S&&3===f.S.nodeType&&(f.p=f.S.textContent,n.push(f),s.remove(),r===f.N&&(t.v||(t.v=[]),t.v[f.I]=f))):"c"===c?(f.S=G(s,8),f.S&&8===f.S.nodeType&&(n.push(f),s.remove())):f.N===r&&("s"===c?q(s["s-sn"]=u[5]||"",u[2],f,s,t,n,e,0,i):"r"===c&&(o["s-cr"]=s,s["s-cn"]=!0)));else if(t&&"style"===t.O){const n=P(null,s.textContent);n.S=s,n.I="0",t.v=[n]}return t},W=(t,n)=>{if(1===t.nodeType){const e=t[a]||t.getAttribute(a);e&&n.set(e,t);let l=0;if(t.shadowRoot)for(;l<t.shadowRoot.childNodes.length;l++)W(t.shadowRoot.childNodes[l],n);const o=t.__childNodes||t.childNodes;for(l=0;l<o.length;l++)W(o[l],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},z=t=>({i:0,N:null,k:null,M:null,I:"0",S:null,h:null,v:null,m:null,j:null,O:null,p:null,...t});function q(t,n,e,l,o,s,r,i,c){l["s-sr"]=!0,e.j=t||null,e.O="slot";const u=(null==o?void 0:o.S)?o.S["s-id"]||o.S.getAttribute("s-id"):"";{const s=e.S,r=u&&u!==e.N&&o.S.shadowRoot;Z(c,n,t,l,r?u:e.N),R(l),r&&o.S.insertBefore(s,o.S.children[0])}s.push(e),r.push(e),o.v||(o.v=[]),o.v[e.I]=e}var Y,J,Z=(t,n,e,l,o)=>{var s,r;let i=l.nextSibling;if(t[n]=t[n]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==e&&(""!==e||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=e,t[n].push({slot:l,node:i,hostId:o})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},G=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},K=class o{static fromLocalValue(t){const n=t[e],s=l in t?t[l]:void 0;switch(n){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((t=>o.fromLocalValue(t)));case"date":return new Date(s);case"map":const t=new Map;for(const[n,e]of s){const l="object"==typeof n&&null!==n?o.fromLocalValue(n):n,s=o.fromLocalValue(e);t.set(l,s)}return t;case"object":const e={};for(const[t,n]of s)e[t]=o.fromLocalValue(n);return e;case"regexp":const{pattern:l,flags:r}=s;return new RegExp(l,r);case"set":const i=new Set;for(const t of s)i.add(o.fromLocalValue(t));return i;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map((t=>o.fromLocalValue(t)))}static isLocalValueObject(o){if("object"!=typeof o||null===o)return!1;if(!o.hasOwnProperty(e))return!1;const s=o[e];return!!Object.values({...t,...n}).includes(s)&&("null"===s||"undefined"===s||o.hasOwnProperty(l))}},Q=(t,n)=>{return"string"==typeof t&&t.startsWith(o)?t="string"==typeof(e=t)&&e.startsWith(o)?K.fromLocalValue(JSON.parse(atob(e.slice(11)))):e:null==t||V(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var e},X=(t,n)=>{const e=t;return{emit:t=>tt(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},tt=(t,n,e)=>{const l=v.ce(n,e);return t.dispatchEvent(l),l},nt=(t,n,e,l,o,s,r)=>{if(e===l)return;let u=c(t,n),f=n.toLowerCase();if("class"===n){const n=t.classList,o=lt(e);let s=lt(l);if((t["s-si"]||t["s-sc"])&&r){const e=t["s-sc"]||t["s-si"];s.push(e),o.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...o.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===n){for(const n in e)l&&null!=l[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in l)e&&l[n]===e[n]||(n.includes("-")?t.style.setProperty(n,l[n]):t.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&Nt(l,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let o;{const n=i(t);if(n&&n.l&&n.l.t){const t=n.l.t[e];t&&t[1]&&(o=t[1])}}return o||(o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(o)||t.removeAttribute(o):t.setAttribute(o,!0===l?"":l))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=l}catch(t){}return}{const r=V(l);if((u||r&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[n]!==l&&(t[n]=l);else{const o=null==l?"":l;"list"===n?u=!1:null!=e&&t[n]===o||("function"==typeof t.__lookupSetter__(n)?t[n]=o:t.setAttribute(n,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(n)||t.removeAttribute(n):(!u||4&s||o)&&!r&&1===t.nodeType&&t.setAttribute(n,l=!0===l?"":l)}}else if(n="-"===n[2]?n.slice(3):c(p,f)?f.slice(2):f[2]+n.slice(3),e||l){const o=n.endsWith(ot);n=n.replace(st,""),e&&v.rel(t,n,e,o),l&&v.ael(t,n,l,o)}},et=/\s/,lt=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(et):[]),ot="Capture",st=new RegExp(ot+"$"),rt=(t,n,e,l)=>{const o=11===n.S.nodeType&&n.S.host?n.S.host:n.S,s=t&&t.h||{},r=n.h||{};for(const t of it(Object.keys(s)))t in r||nt(o,t,s[t],void 0,e,n.i,l);for(const t of it(Object.keys(r)))nt(o,t,s[t],r[t],e,n.i,l)};function it(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ct=!1,ut=!1,ft=!1,at=!1,dt=[],$t=[],pt=(t,n,e)=>{var l;const o=n.v[e];let s,r,i,c=0;if(ct||(ft=!0,"slot"===o.O&&(o.i|=o.v?2:1)),null!=o.p)s=o.S=p.document.createTextNode(o.p);else if(1&o.i)s=o.S=p.document.createTextNode(""),rt(null,o,at);else{if(at||(at="svg"===o.O),!p.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=o.S=p.document.createElementNS(at?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ct&&2&o.i?"slot-fb":o.O),at&&"foreignObject"===o.O&&(at=!1),rt(null,o,at),o.v){const n="template"===o.O?s.content:s;for(c=0;c<o.v.length;++c)r=pt(t,o,c),r&&n.appendChild(r)}"svg"===o.O?at=!1:"foreignObject"===s.tagName&&(at=!0)}return s["s-hn"]=J,3&o.i&&(s["s-sr"]=!0,s["s-cr"]=Y,s["s-sn"]=o.j||"",s["s-rf"]=null==(l=o.h)?void 0:l.ref,R(s),i=t&&t.v&&t.v[e],i&&i.O===o.O&&t.S&&ht(t.S)),s},ht=t=>{v.i|=1;const n=t.closest(J.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of e?l.reverse():l)null!=t["s-sh"]&&(kt(n,t,null!=e?e:null),t["s-sh"]=void 0,ft=!0)}v.i&=-2},vt=(t,n)=>{v.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===J&&e.push(n)}for(let t=e.length-1;t>=0;t--){const l=e[t];l["s-hn"]!==J&&l["s-ol"]&&(kt(gt(l).parentNode,l,gt(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,ft=!0),n&&vt(l,n)}v.i&=-2},mt=(t,n,e,l,o,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===e.O&&(i=i.content);o<=s;++o)l[o]&&(r=pt(null,e,o),r&&(l[o].S=r,kt(i,r,gt(n))))},bt=(t,n,e)=>{for(let l=n;l<=e;++l){const n=t[l];if(n){const t=n.S;St(n),t&&(ut=!0,t["s-ol"]?t["s-ol"].remove():vt(t,!0),t.remove())}}},yt=(t,n,e=!1)=>t.O===n.O&&("slot"===t.O?t.j===n.j:e?(e&&!t.m&&n.m&&(t.m=n.m),!0):t.m===n.m),gt=t=>t&&t["s-ol"]||t,wt=(t,n,e=!1)=>{const l=n.S=t.S,o=t.v,s=n.v,r=n.O,i=n.p;let c;null==i?(at="svg"===r||"foreignObject"!==r&&at,"slot"!==r||ct||t.j!==n.j&&(n.S["s-sn"]=n.j||"",ht(n.S.parentElement)),rt(t,n,at,e),null!==o&&null!==s?((t,n,e,l,o=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=n.length-1,d=n[0],$=n[a],p=l.length-1,h=l[0],v=l[p];const m="template"===e.O?t.content:t;for(;i<=a&&c<=p;)if(null==d)d=n[++i];else if(null==$)$=n[--a];else if(null==h)h=l[++c];else if(null==v)v=l[--p];else if(yt(d,h,o))wt(d,h,o),d=n[++i],h=l[++c];else if(yt($,v,o))wt($,v,o),$=n[--a],v=l[--p];else if(yt(d,v,o))"slot"!==d.O&&"slot"!==v.O||vt(d.S.parentNode,!1),wt(d,v,o),kt(m,d.S,$.S.nextSibling),d=n[++i],v=l[--p];else if(yt($,h,o))"slot"!==d.O&&"slot"!==v.O||vt($.S.parentNode,!1),wt($,h,o),kt(m,$.S,d.S),$=n[--a],h=l[++c];else{for(u=-1,f=i;f<=a;++f)if(n[f]&&null!==n[f].m&&n[f].m===h.m){u=f;break}u>=0?(r=n[u],r.O!==h.O?s=pt(n&&n[c],e,u):(wt(r,h,o),n[u]=void 0,s=r.S),h=l[++c]):(s=pt(n&&n[c],e,c),h=l[++c]),s&&kt(gt(d.S).parentNode,s,gt(d.S))}i>a?mt(t,null==l[p+1]?null:l[p+1].S,e,l,c,p):c>p&&bt(n,i,a)})(l,o,n,s,e):null!==s?(null!==t.p&&(l.textContent=""),mt(l,null,n,s,0,s.length-1)):e||null===o?e&&null!==o&&null===s&&(n.v=o):bt(o,0,o.length-1),at&&"svg"===r&&(at=!1)):(c=l["s-cr"])?c.parentNode.textContent=i:t.p!==i&&(l.data=i)},jt=[],Ot=t=>{let n,e,l;const o=t.__childNodes||t.childNodes;for(const t of o){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const o=t["s-sn"];for(l=e.length-1;l>=0;l--)if(n=e[l],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(A(n,o)){let e=jt.find((t=>t.L===n));ut=!0,n["s-sn"]=n["s-sn"]||o,e?(e.L["s-sh"]=t["s-hn"],e.A=t):(n["s-sh"]=t["s-hn"],jt.push({A:t,L:n})),n["s-sr"]&&jt.map((t=>{A(t.L,n["s-sn"])&&(e=jt.find((t=>t.L===n)),e&&!t.A&&(t.A=e.A))}))}else jt.some((t=>t.L===n))||jt.push({L:n})}1===t.nodeType&&Ot(t)}},St=t=>{t.h&&t.h.ref&&dt.push((()=>t.h.ref(null))),t.v&&t.v.map(St)},Nt=(t,n)=>{$t.push((()=>t(n)))},kt=(t,n,e,l)=>{if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:o}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const l=t["s-sn"]=_(t)||"";return{slotNode:I(F(n,"childNodes"),n.tagName,l)[0],slotName:l}}(n);return o&&!l&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)},xt=(t,n,e=!1)=>{var l,o,s,r,i;const c=t.$hostElement$,u=t.l,f=t.C||P(null,null);var a;const d=(a=n)&&a.O===U?n:H(null,null,n);if(J=c.tagName,e&&d.h)for(const t of Object.keys(d.h))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.h[t]=c[t]);if(d.O=null,d.i|=4,t.C=d,d.S=f.S=c,ct=false,Y=c["s-cr"],ut=!1,wt(f,d,e),v.i|=1,ft){Ot(d.S);for(const t of jt){const n=t.L;if(!n["s-ol"]&&p.document){const t=p.document.createTextNode("");t["s-nr"]=n,kt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of jt){const n=t.L,i=t.A;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(l=n.hidden)&&l),i){const t=i.parentNode;let l=i.nextSibling;if(l&&1===l.nodeType){let e=null==(o=n["s-ol"])?void 0:o.previousSibling;for(;e;){let o=null!=(s=e["s-nr"])?s:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){l=o;break}}e=e.previousSibling}}if((!l&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==l)&&n!==l){if(kt(t,n,l,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=p.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,kt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(r=n["s-ih"])&&r)}n&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===n.nodeType&&(n.hidden=!0)}}if(ut&&E(d.S),v.i&=-2,jt.length=0,!ct&&!(1&u.i)&&c["s-cr"]){const t=d.S.__childNodes||d.S.childNodes;for(const n of t)if(n["s-hn"]!==J&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(i=n.hidden)&&i),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=p.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],kt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}Y=void 0,dt.forEach((t=>t())),dt.length=0,$t.forEach((t=>t())),$t.length=0},Mt=(t,n)=>{if(n&&!t._&&n["s-p"]){const e=n["s-p"].push(new Promise((l=>t._=()=>{n["s-p"].splice(e-1,1),l()})))}},Et=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Mt(t,t.R);const e=()=>It(t,n);if(!n)return k(e);queueMicrotask((()=>{e()}))},It=(t,n)=>{const e=t.$hostElement$,l=e;if(!l)throw new Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=Tt(l,n?"componentWillLoad":"componentWillUpdate",void 0,e),o=Lt(o,(()=>Tt(l,"componentWillRender",void 0,e))),Lt(o,(()=>Ct(t,l,n)))},Lt=(t,n)=>At(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),At=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ct=async(t,n,e)=>{var l;const o=t.$hostElement$,s=o["s-rc"];e&&(t=>{const n=t.l;((t,n)=>{var e,l,o;const s=D(n),r=f.get(s);if(!p.document)return s;if(t=11===t.nodeType?t:p.document,r)if("string"==typeof r){let o,i=T.get(t=t.head||t);i||T.set(t,i=new Set);const c=t.querySelector(`[${d}="${s}"]`);if(c)c.textContent=r;else if(!i.has(s)){o=p.document.createElement("style"),o.textContent=r;const c=null!=(e=v.F)?e:function(){var t,n,e;return null!=(e=null==(n=null==(t=p.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();if(null!=c&&o.setAttribute("nonce",c),!(1&n.i))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(m){const n=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(r),b?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=r+n.textContent:t.prepend(o)}else t.append(o);1&n.i&&t.insertBefore(o,null),4&n.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),i&&i.add(s)}}else{let n=T.get(t);if(n||T.set(t,n=new Set),!n.has(s)){const e=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(r.constructor===e.CSSStyleSheet)l=r;else{l=new e.CSSStyleSheet;for(let t=0;t<r.cssRules.length;t++)l.insertRule(r.cssRules[t].cssText,t)}if(b?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],n.add(s),"host"in t){const n=t.querySelector(`[${d}="${s}"]`);n&&k((()=>n.remove()))}}}})(t.$hostElement$.getRootNode(),n)})(t);_t(t,n,o,e),s&&(s.map((t=>t())),o["s-rc"]=void 0);{const n=null!=(l=o["s-p"])?l:[],e=()=>Rt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},_t=(t,n,e,l)=>{try{n=n.render(),t.i&=-17,t.i|=2,xt(t,n,l)}catch(n){u(n,t.$hostElement$)}return null},Rt=t=>{const n=t.$hostElement$,e=n,l=t.R;Tt(e,"componentDidRender",void 0,n),64&t.i?Tt(e,"componentDidUpdate",void 0,n):(t.i|=64,Dt(n),Tt(e,"componentDidLoad",void 0,n),t.T(n),l||Ft()),t._&&(t._(),t._=void 0),512&t.i&&N((()=>Et(t,!1))),t.i&=-517},Ft=()=>{var t;N((()=>tt(p,"appload",{detail:{namespace:"web-component-poc"}}))),(null==(t=v.D)?void 0:t.size)&&v.D.clear()},Tt=(t,n,e,l)=>{if(t&&t[n])try{return t[n](e)}catch(t){u(t,l)}},Dt=t=>t.classList.add("hydrated"),Vt=(t,n,e,l)=>{const o=i(t);if(!o)return;const s=t,r=o.o.get(n),c=o.i,u=s;e=Q(e,l.t[n][0]);const f=Number.isNaN(r)&&Number.isNaN(e);if(e!==r&&!f&&(o.o.set(n,e),2&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(e,r,n)&&!(16&c))return;16&c||Et(o,!1)}},Ht=(t,n)=>{var e,l;const o=t.prototype;if(n.t){const r=Object.entries(null!=(e=n.t)?e:{});r.map((([t,[e]])=>{if(31&e||32&e){const{get:l,set:r}=s(o,t)||{};l&&(n.t[t][0]|=2048),r&&(n.t[t][0]|=4096),Object.defineProperty(o,t,{get(){return l?l.apply(this):(n=t,i(this).o.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(o,t,{set(l){const o=i(this);if(o){if(r)return void 0===(32&e?this[t]:o.$hostElement$[t])&&o.o.get(t)&&(l=o.o.get(t)),r.apply(this,[Q(l,e)]),void Vt(this,t,l=32&e?this[t]:o.$hostElement$[t],n);Vt(this,t,l,n)}}})}}));{const e=new Map;o.attributeChangedCallback=function(t,l,s){v.jmp((()=>{var c;const u=e.get(t),f=i(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const e=null==f?void 0:f.i;if(f&&e&&!(8&e)&&s!==l){const o=this,r=null==(c=n.V)?void 0:c[t];null==r||r.forEach((n=>{const[[r,i]]=Object.entries(n);null!=o[r]&&(128&e||1&i)&&o[r].call(o,s,l,t)}))}return}const a=r.find((([t])=>t===u));a&&4&a[1][0]&&(s=null!==s&&"false"!==s);const d=Object.getOwnPropertyDescriptor(o,u);s==this[u]||d.get&&!d.set||(this[u]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.V)?l:{}),...r.filter((([t,n])=>31&n[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))]))}}return t},Pt=t=>{if(!(1&v.i)){const n=i(t);if(!n)return;const e=n.l,l=()=>{};if(1&n.i)(null==n?void 0:n.H)||(null==n?void 0:n.P)&&n.P.then((()=>{}));else{let l;n.i|=1,l=t.getAttribute(a),l&&((t,n,e,l)=>{var o,s,r,c;const u=t.shadowRoot,f=[],d=[],$=P(n,null);$.S=t,!p.document||v.D&&v.D.size||W(p.document.body,v.D=new Map),t[a]=e,t.removeAttribute(a),l.C=B($,f,[],null,t,t,e,d);let h=0;const m=f.length;let b;for(;h<m;h++){b=f[h];const e=b.N+"."+b.k,l=v.D.get(e),s=b.S;if(u){if((null==(o=b.O)?void 0:o.toString().includes("-"))&&"slot-fb"!==b.O&&!b.S.shadowRoot){const t=i(b.S);if(t){const n=D(t.l),e=p.document.querySelector(`style[sty-id="${n}"]`);e&&null.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.j=b.S["s-sn"]||b.S.name||null,b.v?(b.i|=2,b.S.childNodes.length||b.v.forEach((t=>{b.S.appendChild(t.S)}))):b.i|=1),l&&l.isConnected&&(l.parentElement.shadowRoot&&""===l["s-en"]&&l.parentNode.insertBefore(s,l.nextSibling),l.parentNode.removeChild(l),u||(s["s-oo"]=parseInt(b.k))),l&&!l["s-id"]&&v.D.delete(e)}const y=[],g=d.length;let w,j,O,S,N=0,k=0;for(;N<g;N++)if(w=d[N],w&&w.length)for(O=w.length,j=0;j<O;j++){if(S=w[j],y[S.hostId]||(y[S.hostId]=v.D.get(S.hostId)),!y[S.hostId])continue;const t=y[S.hostId];t.shadowRoot&&S.node.parentElement!==t&&t.insertBefore(S.node,null==(r=null==(s=w[j-1])?void 0:s.node)?void 0:r.nextSibling),t.shadowRoot&&u||(S.slot["s-cr"]||(S.slot["s-cr"]=t["s-cr"],S.slot["s-cr"]=!S.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),C(S.node,S.slot,0,S.node["s-oo"]||k),(null==(c=S.node.parentElement)?void 0:c.shadowRoot)&&S.node.getAttribute&&S.node.getAttribute("slot")&&S.node.removeAttribute("slot")),k=(S.node["s-oo"]||k)+1}l.$hostElement$=t})(t,e.$,l,n),l||12&e.i&&Ut(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Mt(n,n.R=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let l;try{if(!(32&n.i)&&(n.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>n.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const n=D(e);if(!f.has(n)){const l=()=>{};((t,n,e)=>{let l=f.get(t);m&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,f.set(t,l)})(n,t,!!(1&e.i)),l()}}const o=n.R,s=()=>Et(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()}catch(e){u(e,t),n._&&(n._(),n._=void 0),n.T&&n.T(t)}})(t,n,e)}l()}},Ut=t=>{if(!p.document)return;const n=t["s-cr"]=p.document.createComment("");n["s-cn"]=!0,kt(t,n,t.firstChild)},Bt=(t,n)=>{const e={i:n[0],$:n[1]};try{e.t=n[2];const l=t.prototype.connectedCallback,o=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,l:n,o:new Map,U:new Map};e.P=new Promise((t=>e.T=t)),t["s-p"]=[],t["s-rc"]=[];const l=e;t.__stencil__getHostRef=()=>l,512&n.i&&r(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!i(this))return;this.__hasHostListenerAttached=!0}Pt(this),l&&l.call(this)},disconnectedCallback(){(async t=>{1&v.i||i(t),T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:e.$,configurable:!0}),Ht(t,e)}catch(n){return u(n),t}},Wt=t=>v.F=t,zt=t=>Object.assign(v,t);function qt(t,n){xt({l:{i:0,$:n.tagName},$hostElement$:n},t)}function Yt(t){return t}export{h as H,Wt as a,zt as b,X as c,x as g,H as h,Bt as p,qt as r,M as s,Yt as t}