@supersoniks/concorde 1.1.39 → 1.1.41

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 (42) hide show
  1. package/concorde-core.bundle.js +28 -21
  2. package/concorde-core.es.js +866 -483
  3. package/core/components/functional/fetch/fetch.d.ts +1 -0
  4. package/core/components/functional/list/list.d.ts +1 -0
  5. package/core/components/functional/queue/queue.d.ts +0 -3
  6. package/core/components/functional/queue/queue.js +1 -18
  7. package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
  8. package/core/components/functional/sdui/SDUIDescriptorTransformer.js +219 -0
  9. package/core/components/functional/sdui/sdui.d.ts +78 -21
  10. package/core/components/functional/sdui/sdui.js +177 -78
  11. package/core/components/functional/sdui/types.d.ts +35 -0
  12. package/core/components/functional/sdui/types.js +1 -0
  13. package/core/components/ui/alert/alert.d.ts +2 -2
  14. package/core/components/ui/alert/alert.js +19 -20
  15. package/core/components/ui/button/button.d.ts +1 -0
  16. package/core/components/ui/card/card-header.d.ts +1 -1
  17. package/core/components/ui/card/card-header.js +11 -10
  18. package/core/components/ui/divider/divider.js +3 -2
  19. package/core/components/ui/form/checkbox/checkbox.d.ts +2 -0
  20. package/core/components/ui/form/checkbox/checkbox.js +4 -2
  21. package/core/components/ui/form/fieldset/legend.js +5 -2
  22. package/core/components/ui/form/input/input.d.ts +15 -0
  23. package/core/components/ui/form/input/input.js +22 -4
  24. package/core/components/ui/form/input/password-helper.d.ts +19 -0
  25. package/core/components/ui/form/input/password-helper.js +96 -0
  26. package/core/components/ui/form/input/same-value-helper.d.ts +16 -0
  27. package/core/components/ui/form/input/same-value-helper.js +76 -0
  28. package/core/components/ui/form/select/select.js +7 -2
  29. package/core/components/ui/form/textarea/textarea.d.ts +1 -0
  30. package/core/components/ui/form/textarea/textarea.js +7 -2
  31. package/core/components/ui/ui.d.ts +2 -0
  32. package/core/components/ui/ui.js +2 -0
  33. package/core/mixins/Fetcher.d.ts +1 -0
  34. package/core/mixins/Fetcher.js +6 -2
  35. package/core/mixins/FormCheckable.d.ts +2 -3
  36. package/core/mixins/FormInput.d.ts +1 -0
  37. package/core/mixins/Subscriber.d.ts +1 -0
  38. package/core/mixins/Subscriber.js +10 -12
  39. package/core/utils/HTML.d.ts +8 -0
  40. package/core/utils/HTML.js +41 -0
  41. package/mixins.d.ts +3 -0
  42. package/package.json +9 -1
@@ -1,38 +1,38 @@
1
- var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,r)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,__spreadValues=(t,e)=>{for(var r in e||(e={}))__hasOwnProp.call(e,r)&&__defNormalProp(t,r,e[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(e))__propIsEnum.call(e,r)&&__defNormalProp(t,r,e[r]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e)),__publicField=(t,e,r)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,r),r);!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t;
1
+ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,s)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,__spreadValues=(t,e)=>{for(var s in e||(e={}))__hasOwnProp.call(e,s)&&__defNormalProp(t,s,e[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(e))__propIsEnum.call(e,s)&&__defNormalProp(t,s,e[s]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e)),__publicField=(t,e,s)=>(__defNormalProp(t,"symbol"!=typeof e?e+"":e,s),s);!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=s.get(this.cssText);return e&&void 0===t&&(s.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const i=t=>new o("string"==typeof t?t:t+"",r),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,r,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[s+1]),t[0]);return new o(s,r)},a=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return i(e)})(t):t
7
+ const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),r=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=r.get(this.cssText);return e&&void 0===t&&(r.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const i=t=>new o("string"==typeof t?t:t+"",s),n=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,s,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[r+1]),t[0]);return new o(r,s)},a=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2017 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
- */;var l;const c=window.trustedTypes,h=c?c.emptyScript:"",d=window.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(s){r=null}}return r}},u=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:u};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const s=this._$Eh(r,e);void 0!==s&&(this._$Eu.set(s,r),t.push(s))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eh(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const r=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return s=r,o=this.constructor.elementStyles,e?s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((t=>{const e=document.createElement("style"),r=window.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)})),r;var s,o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ES(t,e,r=m){var s,o;const i=this.constructor._$Eh(t,r);if(void 0!==i&&!0===r.reflect){const n=(null!==(o=null===(s=r.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==o?o:p.toAttribute)(e,r.type);this._$Ei=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Ei=null}}_$AK(t,e){var r,s,o;const i=this.constructor,n=i._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=i.getPropertyOptions(n),a=t.converter,l=null!==(o=null!==(s=null===(r=a)||void 0===r?void 0:r.fromAttribute)&&void 0!==s?s:"function"==typeof a?a:null)&&void 0!==o?o:p.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,r){let s=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
12
+ */;var l;const c=window.trustedTypes,h=c?c.emptyScript:"",d=window.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(r){s=null}}return s}},u=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:u};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const r=this._$Eh(s,e);void 0!==r&&(this._$Eu.set(r,s),t.push(r))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,s,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eh(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return r=s,o=this.constructor.elementStyles,e?r.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((t=>{const e=document.createElement("style"),s=window.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=t.cssText,r.appendChild(e)})),s;var r,o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ES(t,e,s=m){var r,o;const i=this.constructor._$Eh(t,s);if(void 0!==i&&!0===s.reflect){const n=(null!==(o=null===(r=s.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:p.toAttribute)(e,s.type);this._$Ei=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Ei=null}}_$AK(t,e){var s,r,o;const i=this.constructor,n=i._$Eu.get(t);if(void 0!==n&&this._$Ei!==n){const t=i.getPropertyOptions(n),a=t.converter,l=null!==(o=null!==(r=null===(s=a)||void 0===s?void 0:s.fromAttribute)&&void 0!==r?r:"function"==typeof a?a:null)&&void 0!==o?o:p.fromAttribute;this._$Ei=n,this[n]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,s){let r=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||u)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$EU()}catch(r){throw e=!1,this._$EU(),r}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- var b;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const f=globalThis.trustedTypes,v=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,w="?"+y,x=`<${w}>`,_=document,k=(t="")=>_.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,$=t=>{var e;return P(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,O=/>/g,E=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,j=/'/g,z=/"/g,D=/^(?:script|style|textarea|title)$/i,L=(R=1,(t,...e)=>({_$litType$:R,strings:t,values:e})),M=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),F=new WeakMap,I=_.createTreeWalker(_,129,null,!1),T=(t,e)=>{const r=t.length-1,s=[];let o,i=2===e?"<svg>":"",n=C;for(let l=0;l<r;l++){const e=t[l];let r,a,c=-1,h=0;for(;h<e.length&&(n.lastIndex=h,a=n.exec(e),null!==a);)h=n.lastIndex,n===C?"!--"===a[1]?n=S:void 0!==a[1]?n=O:void 0!==a[2]?(D.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=E):void 0!==a[3]&&(n=E):n===E?">"===a[0]?(n=null!=o?o:C,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,r=a[1],n=void 0===a[3]?E:'"'===a[3]?z:j):n===z||n===j?n=E:n===S||n===O?n=C:(n=E,o=void 0);const d=n===E&&t[l+1].startsWith("/>")?" ":"";i+=n===C?e+x:c>=0?(s.push(r),e.slice(0,c)+"$lit$"+e.slice(c)+y+d):e+y+(-2===c?(s.push(void 0),l):d)}const a=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,s]};var R;class V{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0;const n=t.length-1,a=this.parts,[l,c]=T(t,e);if(this.el=V.createElement(l,r),I.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=I.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const r=c[i++];if(t.push(e),void 0!==r){const t=s.getAttribute(r.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(r);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?Z:"@"===e[1]?Y:H})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(D.test(s.tagName)){const t=s.textContent.split(y),e=t.length-1;if(e>0){s.textContent=f?f.emptyScript:"";for(let r=0;r<e;r++)s.append(t[r],k()),I.nextNode(),a.push({type:2,index:++o});s.append(t[e],k())}}}else if(8===s.nodeType)if(s.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(y,t+1));)a.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const r=_.createElement("template");return r.innerHTML=t,r}}function U(t,e,r=t,s){var o,i,n,a;if(e===M)return e;let l=void 0!==s?null===(o=r._$Cl)||void 0===o?void 0:o[s]:r._$Cu;const c=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,r,s)),void 0!==s?(null!==(n=(a=r)._$Cl)&&void 0!==n?n:a._$Cl=[])[s]=l:r._$Cu=l),void 0!==l&&(e=U(t,l._$AS(t,e.values),l,s)),e}class B{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:r},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(r,!0);I.currentNode=o;let i=I.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new q(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new Q(i,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(i=I.nextNode(),n++)}return o}m(t){let e=0;for(const r of this.v)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class q{constructor(t,e,r,s){var o;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cg=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),A(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==M&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):$(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==N&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:r,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(r);else{const t=new B(o,this),e=t.p(this.options);t.m(r),this.k(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new V(t)),e}S(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new q(this.M(k()),this.M(k()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,r,s,o){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let i=!1;if(void 0===o)t=U(this,t,e,0),i=!A(t)||t!==this._$AH&&t!==M,i&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=U(this,s[r+n],e,n),a===M&&(a=this._$AH[n]),i||(i=!A(a)||a!==this._$AH[n]),a===N?t=N:t!==N&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}i&&!s&&this.C(t)}C(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===N?void 0:t}}const W=f?f.emptyScript:"";class Z extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==N?this.element.setAttribute(this.name,W):this.element.removeAttribute(this.name)}}class Y extends H{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=U(this,t,e,0))&&void 0!==r?r:N)===M)return;const s=this._$AH,o=t===N&&s!==N||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==N&&(s===N||o);o&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const G={L:"$lit$",P:y,V:w,I:1,N:T,R:B,j:$,D:U,H:q,F:H,O:Z,W:Y,B:K,Z:Q},J=window.litHtmlPolyfillSupport;
18
+ var b;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:g}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const f=globalThis.trustedTypes,v=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,w="?"+y,x=`<${w}>`,_=document,k=(t="")=>_.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,C=t=>{var e;return P(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,O=/>/g,E=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,j=/'/g,z=/"/g,D=/^(?:script|style|textarea|title)$/i,M=(T=1,(t,...e)=>({_$litType$:T,strings:t,values:e})),L=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),I=new WeakMap,F=_.createTreeWalker(_,129,null,!1),V=(t,e)=>{const s=t.length-1,r=[];let o,i=2===e?"<svg>":"",n=$;for(let l=0;l<s;l++){const e=t[l];let s,a,c=-1,h=0;for(;h<e.length&&(n.lastIndex=h,a=n.exec(e),null!==a);)h=n.lastIndex,n===$?"!--"===a[1]?n=S:void 0!==a[1]?n=O:void 0!==a[2]?(D.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=E):void 0!==a[3]&&(n=E):n===E?">"===a[0]?(n=null!=o?o:$,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,s=a[1],n=void 0===a[3]?E:'"'===a[3]?z:j):n===z||n===j?n=E:n===S||n===O?n=$:(n=E,o=void 0);const d=n===E&&t[l+1].startsWith("/>")?" ":"";i+=n===$?e+x:c>=0?(r.push(s),e.slice(0,c)+"$lit$"+e.slice(c)+y+d):e+y+(-2===c?(r.push(void 0),l):d)}const a=i+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,r]};var T;class R{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let o=0,i=0;const n=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=R.createElement(l,s),F.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=F.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const s=c[i++];if(t.push(e),void 0!==s){const t=r.getAttribute(s.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(s);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?Z:"@"===e[1]?Y:H})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(D.test(r.tagName)){const t=r.textContent.split(y),e=t.length-1;if(e>0){r.textContent=f?f.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],k()),F.nextNode(),a.push({type:2,index:++o});r.append(t[e],k())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(y,t+1));)a.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const s=_.createElement("template");return s.innerHTML=t,s}}function U(t,e,s=t,r){var o,i,n,a;if(e===L)return e;let l=void 0!==r?null===(o=s._$Cl)||void 0===o?void 0:o[r]:s._$Cu;const c=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(i=null==l?void 0:l._$AO)||void 0===i||i.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,s,r)),void 0!==r?(null!==(n=(a=s)._$Cl)&&void 0!==n?n:a._$Cl=[])[r]=l:s._$Cu=l),void 0!==l&&(e=U(t,l._$AS(t,e.values),l,r)),e}class q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(s,!0);F.currentNode=o;let i=F.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new B(i,i.nextSibling,this,t):1===l.type?e=new l.ctor(i,l.name,l.strings,this,t):6===l.type&&(e=new Q(i,this,t)),this.v.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(i=F.nextNode(),n++)}return o}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class B{constructor(t,e,s,r){var o;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cg=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),A(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):C(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==N&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=R.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(s);else{const t=new q(o,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new R(t)),e}S(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const o of t)r===e.length?e.push(s=new B(this.M(k()),this.M(k()),this,this.options)):s=e[r],s._$AI(o),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class H{constructor(t,e,s,r,o){this.type=1,this._$AH=N,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=N}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,r){const o=this.strings;let i=!1;if(void 0===o)t=U(this,t,e,0),i=!A(t)||t!==this._$AH&&t!==L,i&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=U(this,r[s+n],e,n),a===L&&(a=this._$AH[n]),i||(i=!A(a)||a!==this._$AH[n]),a===N?t=N:t!==N&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}i&&!r&&this.C(t)}C(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends H{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===N?void 0:t}}const K=f?f.emptyScript:"";class Z extends H{constructor(){super(...arguments),this.type=4}C(t){t&&t!==N?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Y extends H{constructor(t,e,s,r,o){super(t,e,s,r,o),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=U(this,t,e,0))&&void 0!==s?s:N)===L)return;const r=this._$AH,o=t===N&&r!==N||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==N&&(r===N||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const G={L:"$lit$",P:y,V:w,I:1,N:V,R:q,j:C,D:U,H:B,F:H,O:Z,W:Y,B:W,Z:Q},J=window.litHtmlPolyfillSupport;
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */
24
- var X,tt;null==J||J(V,q),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.3");class et extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,r)=>{var s,o;const i=null!==(s=null==r?void 0:r.renderBefore)&&void 0!==s?s:e;let n=i._$litPart$;if(void 0===n){const t=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:null;i._$litPart$=n=new q(e.insertBefore(k(),t),t,void 0,null!=r?r:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return M}}et.finalized=!0,et._$litElement$=!0,null===(X=globalThis.litElementHydrateSupport)||void 0===X||X.call(globalThis,{LitElement:et});const rt=globalThis.litElementPolyfillSupport;null==rt||rt({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.2.0");
24
+ var X,tt;null==J||J(R,B),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.3");class et extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,s)=>{var r,o;const i=null!==(r=null==s?void 0:s.renderBefore)&&void 0!==r?r:e;let n=i._$litPart$;if(void 0===n){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;i._$litPart$=n=new B(e.insertBefore(k(),t),t,void 0,null!=s?s:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return L}}et.finalized=!0,et._$litElement$=!0,null===(X=globalThis.litElementHydrateSupport)||void 0===X||X.call(globalThis,{LitElement:et});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:et}),(null!==(tt=globalThis.litElementVersions)&&void 0!==tt?tt:globalThis.litElementVersions=[]).push("3.2.0");
25
25
  /**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
29
  */
30
- const st=t=>e=>{return"function"==typeof e?(r=t,s=e,window.customElements.define(r,s),s):((t,e)=>{const{kind:r,elements:s}=e;return{kind:r,elements:s,finisher(e){window.customElements.define(t,e)}}})(t,e);
30
+ const rt=t=>e=>{return"function"==typeof e?(s=t,r=e,window.customElements.define(s,r),r):((t,e)=>{const{kind:s,elements:r}=e;return{kind:s,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e);
31
31
  /**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */var r,s},ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?__spreadProps(__spreadValues({},e),{finisher(r){r.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function it(t){return(e,r)=>{return void 0!==r?(s=t,o=r,void e.constructor.createProperty(o,s)):ot(t,e);var s,o}}
35
+ */var s,r},ot=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?__spreadProps(__spreadValues({},e),{finisher(s){s.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(s){s.createProperty(e.key,t)}};function it(t){return(e,s)=>{return void 0!==s?(r=t,o=s,void e.constructor.createProperty(o,r)):ot(t,e);var r,o}}
36
36
  /**
37
37
  * @license
38
38
  * Copyright 2017 Google LLC
@@ -42,61 +42,68 @@ const st=t=>e=>{return"function"==typeof e?(r=t,s=e,window.customElements.define
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */const at=({finisher:t,descriptor:e})=>(r,s)=>{var o;if(void 0===s){const s=null!==(o=r.originalKey)&&void 0!==o?o:r.key,i=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:__spreadProps(__spreadValues({},r),{key:s});return null!=t&&(i.finisher=function(e){t(e,s)}),i}{const o=r.constructor;void 0!==e&&Object.defineProperty(r,s,e(s)),null==t||t(o,s)}}
45
+ */const at=({finisher:t,descriptor:e})=>(s,r)=>{var o;if(void 0===r){const r=null!==(o=s.originalKey)&&void 0!==o?o:s.key,i=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(s.key)}:__spreadProps(__spreadValues({},s),{key:r});return null!=t&&(i.finisher=function(e){t(e,r)}),i}{const o=s.constructor;void 0!==e&&Object.defineProperty(s,r,e(r)),null==t||t(o,r)}}
46
46
  /**
47
47
  * @license
48
48
  * Copyright 2017 Google LLC
49
49
  * SPDX-License-Identifier: BSD-3-Clause
50
- */;function lt(t,e){return at({descriptor:r=>{const s={get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof r?Symbol():"__"+r;s.get=function(){var r,s;return void 0===this[e]&&(this[e]=null!==(s=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}
50
+ */;function lt(t,e){return at({descriptor:s=>{const r={get(){var e,s;return null!==(s=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==s?s:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof s?Symbol():"__"+s;r.get=function(){var s,r;return void 0===this[e]&&(this[e]=null!==(r=null===(s=this.renderRoot)||void 0===s?void 0:s.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}
51
51
  /**
52
52
  * @license
53
53
  * Copyright 2021 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */var ct;const ht=null!=(null===(ct=window.HTMLSlotElement)||void 0===ct?void 0:ct.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function dt(t){const{slot:e,selector:r}=null!=t?t:{};return at({descriptor:s=>({get(){var s;const o="slot"+(e?`[name=${e}]`:":not([name])"),i=null===(s=this.renderRoot)||void 0===s?void 0:s.querySelector(o),n=null!=i?ht(i,t):[];return r?n.filter((t=>t.matches(r))):n},enumerable:!0,configurable:!0})})}
55
+ */var ct;const ht=null!=(null===(ct=window.HTMLSlotElement)||void 0===ct?void 0:ct.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function dt(t){const{slot:e,selector:s}=null!=t?t:{};return at({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),i=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),n=null!=i?ht(i,t):[];return s?n.filter((t=>t.matches(s))):n},enumerable:!0,configurable:!0})})}
56
56
  /**
57
57
  * @license
58
58
  * Copyright 2017 Google LLC
59
59
  * SPDX-License-Identifier: BSD-3-Clause
60
- */function pt(t,e,r){let s,o=t;return"object"==typeof t?(o=t.slot,s=t):s={flatten:e},r?dt({slot:o,flatten:e,selector:r}):at({descriptor:t=>({get(){var t,e;const r="slot"+(o?`[name=${o}]`:":not([name])"),i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(r);return null!==(e=null==i?void 0:i.assignedNodes(s))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}function ut(t){return"object"==typeof t&&null!=t}const mt=class{constructor(){if(null!=mt.instance)throw"Singleton / use getInstance";mt.instance=this,this.publishers=new Map}static getInstance(){return null==mt.instance?new mt:mt.instance}static get(t){return mt.getInstance().get(t)}static delete(t){return mt.getInstance().delete(t)}get(t){return this.publishers.has(t)||this.publishers.set(t,new bt({})),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){if(!this.publishers.has(t))return!1;this.publishers.get(t),this.publishers.delete(t)}};let gt=mt;__publicField(gt,"instance",null);class bt extends class{constructor(t,e=null){for(this._proxies_=new Map,this._value_=t,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this.parent=e,this.root=this;this.root.parent;)this.root=this.root.parent}delete(){for(let t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear()}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){this._mutationListeners_.forEach((t=>t())),t||this.parent&&this.parent._publishInternalMutation_()}_publishAssignement_(t=!1){this._assignListeners_.forEach((t=>t(this.get()))),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((r=>{r[t]!==e&&(r[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((r=>{let s=Object.getOwnPropertyDescriptor(r,t);s&&!s.set||(r.propertyMap&&r.propertyMap[t]&&(t=r.propertyMap[t]),void 0!==r[t]&&r[t]!==e&&(r[t]=e))}))}onAssign(t){"function"==typeof t&&(this._assignListeners_.add(t),t(this.get()))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){this._invalidateListeners_.delete(t)}invalidate(t){this._publishInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){this._mutationListeners_.delete(t)}startTemplateFilling(t){for(var e in this._templateFillListeners_.add(t),this._value_){const r=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(e=t.propertyMap[e]),void 0!==t[e]&&t[e]!==r&&(t[e]=r)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){for(var e in this._fillListeners_.add(t),this._value_){const r=this._value_[e];t[e]!==r&&(t[e]=r)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,e=!1){if(this._value_===t)return!0;if(this._value_.hasOwnProperty("__value")&&t.hasOwnProperty("__value")&&this._value_.__value===t.__value)return!0;this._value_=t;if(this._value_.hasOwnProperty("__value"))return this._publishAssignement_(e),!0;if(Array.from(this._proxies_.keys()).forEach((t=>{this._value_[t]||!this._proxies_.has(t)||this._proxies_.get(t).hasListener()||this._proxies_.delete(t)})),ut(this._value_))for(let r in this._value_){let e=t[r],s=ut(e)?e:{__value:e};if(!this._proxies_.has(r)){let t=new bt({},this);this._proxies_.set(r,t,!0),t._proxies_.set("_parent_",this)}this._proxies_.get(r).set(s,!0),this._publishDynamicFilling_(r,e)}return this._publishAssignement_(),!0}get(){if(this._value_.hasOwnProperty("__value")){let t=this._value_.__value;return null!=t?t:null}return this._value_}}{constructor(t,e=null){super(t,e);let r=this,s=new Proxy(this,{get:function(t,e){if(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_lockInternalMutationPublishing_"].includes(e))return r[e];if(!r._proxies_.has(e)){let t=r._value_[e],o=new bt(ut(t)?t:{__value:t},r);o._proxies_.set("_parent_",s),r._proxies_.set(e,o)}return r._proxies_.get(e)},set:function(t,e,o){if("_value_"==e)return t._value_=o,t._value_;if(!r._proxies_.has(e)){let t=new bt({},r);t._proxies_.set("_parent_",s),r._proxies_.set(e,t)}return r._value_[e]!==o&&(r._value_[e]=o,r._publishDynamicFilling_(e,o),r._proxies_.get(e).set(ut(o)?o:{__value:o})),r._proxies_.get(e)},deleteProperty:function(t,e){return r._publishDynamicFilling_(e,null),r._proxies_.delete(e),delete r._value_[e]},enumerate:function(t,e){return r._value_.keys()},has:function(t,e){return e in r._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,s){return s&&"value"in s&&(r._value_[e]=s.value),r._value_},getOwnPropertyDescriptor:function(t,e){return r._value_[e],{enumerable:!0,configurable:!0}},ownKeys:function(t){return r._value_.__value?Object.keys(this._value_.__value):Object.keys(r._value_)}});return s}}"undefined"!=typeof module&&(module.exports={Publisher:bt,PublisherManager:gt});class ft{static getLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const r=e.indexOf("=");return t[e.substring(0,r).trim()]=e.substring(r+1),t}),{})}static getAncestorAttributeValue(t,e){for(;!t.hasAttribute||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.hasAttribute?t.getAttribute(e):null}}class vt{static shallowEqual(t,e){const r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(let o of r)if(t[o]!==e[o])return!1;return!0}static deepEqual(t,e){const r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(const o of r){const r=t[o],s=e[o],i=vt.isObject(r)&&vt.isObject(s);if(i&&!vt.deepEqual(r,s)||!i&&r!==s)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static traverse(t,e,r=!1){for(let s of e){let e=t[s];if(void 0===e)return;t=r&&vt.isObject(e)?Object.assign(Array.isArray(e)?[]:{},t,e):t[s]}return t}}const yt=class{constructor(t){this.serviceURL=t.serviceURL,this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,this.token=t.token,this.tokenProvider=t.tokenProvider}async auth(){if(this.token)return;if(yt.tokens.has(this.serviceURL))return void(this.token=yt.tokens.get(this.serviceURL));if(!this.userName||!this.password||!this.tokenProvider)return;let t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))},e=await fetch(this.computeURL(this.tokenProvider),{headers:t});try{let t=await e.json();this.token=t.token,yt.tokens.set(this.serviceURL,this.token)}catch(r){}}async get(t,e){let r=await this.createHeaders(e);const s=this.computeURL(t);if(!yt.loadingGetPromises.has(s)){let t=new Promise((async t=>{let e=await fetch(s,{headers:r});try{let r=await e.json();vt.isObject(r)&&(r._sonic_http_response_=e),t(r)}catch(o){t({_sonic_http_response_:e})}}));yt.loadingGetPromises.set(s,t)}let o=await yt.loadingGetPromises.get(s);return yt.loadingGetPromises.delete(s),o}async createHeaders(t){await this.auth();let e={};return this.token&&(e.Authorization="Bearer "+this.token),e.credentials="include",e["Accept-Language"]=ft.getLanguage(),t&&Object.assign(e,t),e}computeURL(t){return(this.serviceURL+"/"+t).replace(/([^(https?\:)])\/{2,}/g,"$1/")}async send(t,e,r="POST",s){let o=await this.createHeaders(s);o.Accept="application/json",o["Content-Type"]="application/json";let i=await fetch(this.computeURL(t),{headers:o,method:r,body:JSON.stringify(e)});try{let t=await i.json();return t._sonic_http_response_=i,t}catch(n){return{_sonic_http_response_:i}}}async submitFormData(t,e,r="POST",s){let o=await this.createHeaders(s);o.Accept="application/json";let i=new FormData;for(let l in e)i.set(l,e[l]);let n=await fetch(this.computeURL(t),{headers:o,method:r,body:i});try{let t=await n.json();return t._sonic_http_response_=n,t}catch(a){return{_sonic_http_response_:n}}}async put(t,e,r){return this.send(t,e,"PUT",r)}async post(t,e,r){return this.send(t,e,"POST",r)}async delete(t,e,r){return this.send(t,e,"delete",r)}};let wt=yt;wt.loadingGetPromises=new Map,wt.tokens=new Map;class xt{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static js(t){try{return Function("return "+t)()}catch(e){return""}}}const _t=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(_t.observedElements.keys()).forEach((t=>_t.unObserve(t))))}static observe(t){if(!t)return;if(!_t.enabled)return;if(_t.observedElements.has(t))return;let e=new MutationObserver(_t.onMutation),r={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};e.observe(t,r),t.querySelectorAll("[data-bind]").forEach((t=>_t.addPublisherListeners(t))),_t.observedElements.set(t,e)}static unObserve(t){if(!t)return;let e=this.observedElements.get(t);e&&(e.disconnect(),t.querySelectorAll("[data-bind]").forEach((t=>_t.removePublisherListeners(t))))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&_t.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>_t.addPublisherListeners(t))):t.childNodes.forEach((t=>_t.onAdded(t)))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&_t.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>_t.removePublisherListeners(t))):t.childNodes.forEach((t=>_t.onRemoved(t)))}static onMutation(t){for(let s of t)switch(s.type){case"attributes":_t.addPublisherListeners(s.target);break;case"childList":var e=s.addedNodes,r=s.removedNodes;e.forEach((t=>{_t.onAdded(t)})),r.forEach((t=>{_t.onRemoved(t)}))}}static removePublisherListeners(t){let e=_t.publisherListeners.get(t);e&&(_t.publisherListeners.delete(t),e.forEach((t=>{t.publisher.offAssign(t.onAssign)})))}static getVariablesDescriptor(t){let e=t.match(/(\$(?:\w+\\?\.?)+)/g);return e=e?e.map((t=>t.replace("$",""))):[t],e=e.filter((t=>t.length>0)),{expression:t.replace("\\",""),variables:e.map((t=>t.split(/\b\.\b/).map((t=>t.replace("\\","")))))}}static getDataBindItems(t){return Array.from(t.attributes).filter((t=>0==t.name.indexOf("::"))).map((t=>({propertyToUpdate:t.name.substring(2).replace(/\-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:_t.getVariablesDescriptor(t.value)})))}static getSubPublisher(t,e){for(let r of e)"_self_"!=r&&(t=t[r]);return t}static addPublisherListeners(t){_t.removePublisherListeners(t);let e=t,r=ft.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!r)return;let s=gt.getInstance().get(r),o=_t.getDataBindItems(t),i=[];o.forEach((e=>{let r=e.bindedVariablesDescriptor,o=e.propertyToUpdate;for(let n of r.variables){let e=n,a=s;a=_t.getSubPublisher(s,e);let l=t,c={publisher:a,onAssign:()=>{let t=r.variables.map((t=>_t.getSubPublisher(s,t).get())),e=r.expression,i=!1;if(1==t.length&&r.variables[0].join(".")==e.substring(1)){let e=t[0];return null===e&&(e=""),void(l[o]=e)}for(let s=0;s<t.length;s++){let o=t[s],n=r.variables[s];null===o&&(i=!0,o=void 0),e=e.replace("$"+n.join("."),o)}if(-1!=e.indexOf("|")){let t=e.indexOf("|");if(0==t)e=xt.js(e.substring(1));else{let r=e.substring(0,t),s=e.substring(t+1),o=xt;e=i?"":o[r]?o[r](s):e}}else e=i?"":e;l[o]=e}};a.onAssign(c.onAssign),i.push(c)}})),_t.publisherListeners.set(t,i)}};let kt=_t;kt.observedElements=new Map,kt.enabled=!0,kt.publisherListeners=new Map,kt.observe(document.documentElement);let At=window;At.SonicDataBindObserver||(At.SonicDataBindObserver=kt);var Pt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Ct=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?$t(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Pt(e,r,i),i};let St=!1,Ot=new Set;const Et=t=>{const e=class extends t{constructor(...t){super(),this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=null,this.args=t}hasAncestorAttribute(t){return null!=this.getAncestorAttributeValue(t)}getAncestorAttributeValue(t){return ft.getAncestorAttributeValue(this,t)}get props(){return this.publisher?this.publisher.get():this._props}set props(t){"string"==typeof t&&["{","["].includes(t.trim().charAt(0))&&(t=JSON.parse(t)),null!=t&&""!==t||(t={}),this.publisher||this.initPublisher(),this._props=t,this.publisher&&this.publisher.set(t),this.requestUpdate()}updated(t){super.updated(t),this.shadowRoot?0==this.shadowRoot.children.length?this.style.display="none":this.style.removeProperty("display"):0==this.children.length?this.style.display="none":this.style.removeProperty("display")}connectedCallback(){if(this.hasAttribute("lazyRendering")){let t={root:null,rootMargin:Math.max(.1*window.innerWidth,.1*window.innerHeight)+"px"},e=!0;new IntersectionObserver((t=>{for(const r of t)e&&r.isIntersecting&&(e=!1,this.initWording(),this.initPublisher())}),t).observe(this)}else this.initWording(),this.initPublisher();this.addDebugger(),super.connectedCallback(),e.instanceCounter++}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate())),this.wordingPublisher&&this.wordingPublisher.stopTemplateFilling(this),this.onAssign&&this.publisher.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");let t=this.debug.style;t.position="fixed",t.top="0",t.right="0",t.margin="auto",t.borderRadius=".7rem",t.backgroundColor="#0f1729",t.color="#c5d4f9",t.padding="16px 16px",t.margin="16px 16px",t.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",t.overflowY="auto",t.zIndex="99999999",t.maxHeight="calc(100vh - 32px)",t.fontFamily="Consolas, monospace",t.maxWidth="50vw",t.fontSize="12px",t.minWidth="300px",t.overflowWrap="break-word"}if(this.addEventListener("click",(t=>{t.ctrlKey&&(t.preventDefault(),St=!St)})),this.dataProvider){window[this.dataProvider]=this.publisher}this.addEventListener("mouseover",(()=>{St||this.removeDebugger(),document.body.appendChild(this.debug),Ot.add(this.debug)})),this.addEventListener("mouseout",(()=>{St||this.removeDebugger()})),this.publisher.onInternalMutation((()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : épingler / désépingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify(this.publisher.get(),null," ")}</pre>`}))}}removeDebugger(){Ot.forEach((t=>{document.body.contains(t)&&document.body.removeChild(t)})),Ot=new Set}getApiConfiguration(){const t=this.getAncestorAttributeValue("token");let e=this.getAncestorAttributeValue("serviceURL"),r=null,s=null,o=null;return t||(r=this.getAncestorAttributeValue("userName"),s=this.getAncestorAttributeValue("password"),o=this.getAncestorAttributeValue("tokenProvider")),{serviceURL:e,token:t,userName:r,password:s,tokenProvider:o}}async initWording(){let t=!1;const e=Object.getOwnPropertyNames(this.constructor.prototype);for(let i of e)if(0==i.indexOf("wording_")){t=!0;break}if(!t)return;let r=gt.getInstance().get("sonic-wording"),s=this.getAncestorAttributeValue("wordingProvider");const o=new wt(this.getApiConfiguration());if(s){let t=[];for(let s of e)if(0==s.indexOf("wording_")){let e=s.substring(8);r.get()[s]||(r[s]="...",t.push(e))}if(t.length>0){let e=await o.post(s,{labels:t});for(let t in e)r["wording_"+t]=e[t]}r.startTemplateFilling(this),this.wordingPublisher=r}}createRenderRoot(){if(""===this.noShadowDom||""===this.getAttribute("noShadowDom"))return this;let t=super.createRenderRoot();return kt.observe(t),t}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const t=gt.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let r=this.dataProvider;if(!r&&this._props&&(this.dataProvider=r="__subscriber__"+e.instanceCounter),r){this.bindPublisher&&t.set(r,this.bindPublisher());let e=t.get(r);if(this.dataProvider=r,this.hasAttribute("subDataProvider")){let s=this.getAttribute("subDataProvider");this.dataProvider=r+"/"+s,e=vt.traverse(e,s.split(".")),t.set(this.dataProvider,e),this.publisher=e}this.publisher=e}this.publisher&&(this.onAssign=()=>{this.requestUpdate()},this.publisher.onAssign(this.onAssign),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this._props&&this.publisher.set(this._props))}};let r=e;return r.instanceCounter=0,Ct([it({type:Boolean})],r.prototype,"noAutoFill",2),Ct([it({type:Boolean})],r.prototype,"forceAutoFill",2),Ct([it({type:Object})],r.prototype,"propertyMap",2),Ct([it({type:String,attribute:"data-title"})],r.prototype,"title",2),Ct([it({reflect:!0})],r.prototype,"dataProvider",2),Ct([it()],r.prototype,"bindPublisher",2),Ct([it()],r.prototype,"props",1),r};let jt=window;jt.SonicPublisherManager||(jt.SonicPublisherManager=gt);var zt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor;const Lt=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){let t=this.templates||[...this.querySelectorAll("template")];for(let e of t)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e));this.templateList=t.filter((t=>!t.getAttribute("data-value"))),0==this.templateList.length&&(this.templateList=t),super.connectedCallback()}}return((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Dt(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);s&&i&&zt(e,r,i)})([it({type:Array})],e.prototype,"templates",2),e};var Mt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ft=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Nt(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Mt(e,r,i),i};let It=class extends(Et(Lt(et))){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=(new Date).getTime()/1e3,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.minute="2-digit",this.language="",this.renderIf=!0,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){this._wording_billet_periode_validite=t,this.duAu=this.wording_billet_periode_validite.split("%s").map((t=>t.trim())),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.wording_billet_periode_validite="Du %s au %s",this.pageLanguage=ft.getLanguage(),super.connectedCallback()}getDatesParts(t,e,r){let s=this.startDateObject;s.setTime(1e3*t);let o=null;if(e>0){let t=this.endDateObject;if(t.setTime(1e3*e),s.toJSON().substring(0,10)!=t.toJSON().substring(0,10)&&(delete r.hour,delete r.minute),o=new Intl.DateTimeFormat(this.language||this.pageLanguage,r).formatRangeToParts(s,t),this.designMode)for(let e of o)"literal"==e.type&&this.designMode&&","==e.value.trim()&&(e.hidden=!0);const i=s.getFullYear()==t.getFullYear()&&s.getMonth()==t.getMonth()&&s.getDate()==t.getDate();if(o.some((t=>"endRange"==t.source))&&!i){for(let t of o)if("literal"==t.type&&"shared"==t.source&&t.value.trim().length>0&&!i){t.value=" "+this.duAu[1]+" ",t.type="to";break}this.designMode||o.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else{o=new Intl.DateTimeFormat(this.language||this.pageLanguage,r).formatToParts(s)}return o[0].value=xt.ucFirst(o[0].value),o=o.filter((t=>!0!==t.hidden)),o}render(){if(!this.renderIf)return N;if(this.date_string&&(this.date=new Date(this.date_string).getTime()/1e3),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=new Date(this.start_date_string).getTime()/1e3),this.end_date_string&&(this.end_date=new Date(this.end_date_string).getTime()/1e3),this.end_date>0&&this.end_date<this.start_date){const t=this.start_date;this.start_date=this.end_date,this.end_date=t}let t={weekday:this.weekday,year:this.year,month:this.month,day:this.day};this.hour&&(t.hour=this.hour),this.minute&&(t.minute=this.minute),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);let e=this.getDatesParts(this.start_date,this.end_date,t);return L`${e.map((t=>{let e=this.templateParts[t.type];if(e){var r=document.importNode(e.content,!0);let s=r.children[0];return""==s.innerText.trim()&&(s.innerText=t.value),r}return L`<span class="${t.type}">${t.value}</span>`}))}`}};Ft([it()],It.prototype,"wording_billet_periode_validite",1),Ft([it({type:Boolean})],It.prototype,"designMode",2),Ft([it({type:String})],It.prototype,"time_zone",2),Ft([it({type:Number})],It.prototype,"date",2),Ft([it({type:String})],It.prototype,"date_string",2),Ft([it({type:String})],It.prototype,"start_date_string",2),Ft([it({type:String})],It.prototype,"end_date_string",2),Ft([it({type:Number})],It.prototype,"start_date",2),Ft([it({type:Number})],It.prototype,"end_date",2),Ft([it({type:String})],It.prototype,"era",2),Ft([it({type:String})],It.prototype,"year",2),Ft([it({type:String})],It.prototype,"month",2),Ft([it({type:String})],It.prototype,"day",2),Ft([it({type:String})],It.prototype,"weekday",2),Ft([it({type:String})],It.prototype,"hour",2),Ft([it({type:String})],It.prototype,"minute",2),Ft([it({type:String})],It.prototype,"language",2),Ft([it({type:Boolean})],It.prototype,"renderIf",2),It=Ft([st("sonic-date")],It);const Tt=n`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`,Rt=n`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;var Vt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Bt=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ut(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vt(e,r,i),i};const qt="sonic-loader";let Ht=class extends et{constructor(){super(...arguments),this.mode="fixed"}static show(t){Ht.loader||(Ht.loader=document.createElement("sonic-loader"));let e=Ht.loader;t||(t={});let r=t;for(let s in r)e.setAttribute(s,r[s]);t.container||(t.container=document.querySelector("sonic-theme")||document.body,t.mode="fixed"),t.container.appendChild(e),Ht.callCounter++}static hide(){Ht.callCounter--,Ht.callCounter>0||Ht.loader&&Ht.loader.remove()}render(){return L`<div class="sonic-loader sonic-loader--${this.mode}"><div></div><div></div><div></div><div></div></div>`}};Ht.styles=[Tt,Rt,n`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`],Ht.callCounter=0,Bt([it({type:String})],Ht.prototype,"mode",2),Ht=Bt([st(qt)],Ht);try{customElements.define(qt,Ht)}catch(Va){}
60
+ */function pt(t,e,s){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},s?dt({slot:o,flatten:e,selector:s}):at({descriptor:t=>({get(){var t,e;const s="slot"+(o?`[name=${o}]`:":not([name])"),i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(s);return null!==(e=null==i?void 0:i.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}function ut(t){return"object"==typeof t&&null!=t}const mt=class{constructor(){if(null!=mt.instance)throw"Singleton / use getInstance";mt.instance=this,this.publishers=new Map}static getInstance(){return null==mt.instance?new mt:mt.instance}static get(t){return mt.getInstance().get(t)}static delete(t){return mt.getInstance().delete(t)}get(t){return this.publishers.has(t)||this.publishers.set(t,new bt({})),this.publishers.get(t)}set(t,e){this.publishers.set(t,e)}delete(t){if(!this.publishers.has(t))return!1;this.publishers.get(t),this.publishers.delete(t)}};let gt=mt;__publicField(gt,"instance",null);class bt extends class{constructor(t,e=null){for(this._proxies_=new Map,this._value_=t,this._invalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this.parent=e,this.root=this;this.root.parent;)this.root=this.root.parent}delete(){for(let t of this._proxies_.values())t.delete();this._invalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear()}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){this._mutationListeners_.forEach((t=>t())),t||this.parent&&this.parent._publishInternalMutation_()}_publishAssignement_(t=!1){this._assignListeners_.forEach((t=>t(this.get()))),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach((t=>t()))}_publishDynamicFilling_(t,e){this._fillListeners_.forEach((s=>{s[t]!==e&&(s[t]=e)})),this._publishTemplateFilling_(t,e)}_publishTemplateFilling_(t,e){this._templateFillListeners_.forEach((s=>{let r=Object.getOwnPropertyDescriptor(s,t);r&&!r.set||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),void 0!==s[t]&&s[t]!==e&&(s[t]=e))}))}onAssign(t){"function"==typeof t&&(this._assignListeners_.add(t),t(this.get()))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){"function"==typeof t&&this._invalidateListeners_.add(t)}offInvalidate(t){this._invalidateListeners_.delete(t)}invalidate(t){this._publishInvalidation_()}onInternalMutation(t){"function"==typeof t&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){this._mutationListeners_.delete(t)}startTemplateFilling(t){for(var e in this._templateFillListeners_.add(t),this._value_){const s=this._value_[e];t.propertyMap&&t.propertyMap[e]&&(e=t.propertyMap[e]),void 0!==t[e]&&t[e]!==s&&(t[e]=s)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){for(var e in this._fillListeners_.add(t),this._value_){const s=this._value_[e];t[e]!==s&&(t[e]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,e=!1){if(this._value_===t)return!0;if(this._value_.hasOwnProperty("__value")&&t.hasOwnProperty("__value")&&this._value_.__value===t.__value)return!0;this._value_=t;if(this._value_.hasOwnProperty("__value"))return this._publishAssignement_(e),!0;if(Array.from(this._proxies_.keys()).forEach((t=>{this._value_[t]||!this._proxies_.has(t)||this._proxies_.get(t).hasListener()||this._proxies_.delete(t)})),ut(this._value_))for(let s in this._value_){let e=t[s],r=ut(e)?e:{__value:e};if(!this._proxies_.has(s)){let t=new bt({},this);this._proxies_.set(s,t,!0),t._proxies_.set("_parent_",this)}this._proxies_.get(s).set(r,!0),this._publishDynamicFilling_(s,e)}return this._publishAssignement_(),!0}get(){if(this._value_.hasOwnProperty("__value")){let t=this._value_.__value;return null!=t?t:null}return this._value_}}{constructor(t,e=null){super(t,e);let s=this,r=new Proxy(this,{get:function(t,e){if(["invalidate","onInvalidate","offInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_value_","_lockInternalMutationPublishing_"].includes(e))return s[e];if(!s._proxies_.has(e)){let t=s._value_[e],o=new bt(ut(t)?t:{__value:t},s);o._proxies_.set("_parent_",r),s._proxies_.set(e,o)}return s._proxies_.get(e)},set:function(t,e,o){if("_value_"==e)return t._value_=o,t._value_;if(!s._proxies_.has(e)){let t=new bt({},s);t._proxies_.set("_parent_",r),s._proxies_.set(e,t)}return s._value_[e]!==o&&(s._value_[e]=o,s._publishDynamicFilling_(e,o),s._proxies_.get(e).set(ut(o)?o:{__value:o})),s._proxies_.get(e)},deleteProperty:function(t,e){return s._publishDynamicFilling_(e,null),s._proxies_.delete(e),delete s._value_[e]},enumerate:function(t,e){return s._value_.keys()},has:function(t,e){return e in s._value_&&"_lockInternalMutationPublishing_"!=e},defineProperty:function(t,e,r){return r&&"value"in r&&(s._value_[e]=r.value),s._value_},getOwnPropertyDescriptor:function(t,e){return s._value_[e],{enumerable:!0,configurable:!0}},ownKeys:function(t){return s._value_.__value?Object.keys(this._value_.__value):Object.keys(s._value_)}});return r}}"undefined"!=typeof module&&(module.exports={Publisher:bt,PublisherManager:gt});class ft{static getLanguage(){return document.getElementsByTagName("html")[0].getAttribute("lang")}static getCookies(){return document.cookie.split(";").reduce(((t,e)=>{const s=e.indexOf("=");return t[e.substring(0,s).trim()]=e.substring(s+1),t}),{})}static getAncestorAttributeValue(t,e){for(;!t.hasAttribute||!t.hasAttribute(e);){if(!(t.parentNode||t.host))break;t=t.parentNode||t.host}return t.hasAttribute?t.getAttribute(e):null}static async loadJS(t){return new Promise((async e=>{let s=document.createElement("script");s.src=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}static async loadCSS(t){return new Promise((async e=>{var s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=t,s.onload=()=>e(!0),s.onerror=()=>e(!0),document.head.appendChild(s)}))}}class vt{static shallowEqual(t,e){const s=Object.keys(t),r=Object.keys(e);if(s.length!==r.length)return!1;for(let o of s)if(t[o]!==e[o])return!1;return!0}static deepEqual(t,e){const s=Object.keys(t),r=Object.keys(e);if(s.length!==r.length)return!1;for(const o of s){const s=t[o],r=e[o],i=vt.isObject(s)&&vt.isObject(r);if(i&&!vt.deepEqual(s,r)||!i&&s!==r)return!1}return!0}static isObject(t){return null!=t&&"object"==typeof t}static isUndefindOrNull(t){return null==t}static traverse(t,e,s=!1){for(let r of e){let e=t[r];if(void 0===e)return;t=s&&vt.isObject(e)?Object.assign(Array.isArray(e)?[]:{},t,e):t[r]}return t}}const yt=class{constructor(t){this.serviceURL=t.serviceURL,this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,this.token=t.token,this.tokenProvider=t.tokenProvider}async auth(){if(this.token)return;if(yt.tokens.has(this.serviceURL))return void(this.token=yt.tokens.get(this.serviceURL));if(!this.userName||!this.password||!this.tokenProvider)return;let t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))},e=await fetch(this.computeURL(this.tokenProvider),{headers:t});try{let t=await e.json();this.token=t.token,yt.tokens.set(this.serviceURL,this.token)}catch(s){}}async get(t,e){let s=await this.createHeaders(e);const r=this.computeURL(t);if(!yt.loadingGetPromises.has(r)){let t=new Promise((async t=>{let e=await fetch(r,{headers:s});try{let s=await e.json();vt.isObject(s)&&(s._sonic_http_response_=e),t(s)}catch(o){t({_sonic_http_response_:e})}}));yt.loadingGetPromises.set(r,t)}let o=await yt.loadingGetPromises.get(r);return yt.loadingGetPromises.delete(r),o}async createHeaders(t){await this.auth();let e={};return this.token&&(e.Authorization="Bearer "+this.token),e.credentials="include",e["Accept-Language"]=ft.getLanguage(),t&&Object.assign(e,t),e}computeURL(t){return(this.serviceURL+"/"+t).replace(/([^(https?\:)])\/{2,}/g,"$1/")}async send(t,e,s="POST",r){let o=await this.createHeaders(r);o.Accept="application/json",o["Content-Type"]="application/json";let i=await fetch(this.computeURL(t),{headers:o,method:s,body:JSON.stringify(e)});try{let t=await i.json();return t._sonic_http_response_=i,t}catch(n){return{_sonic_http_response_:i}}}async submitFormData(t,e,s="POST",r){let o=await this.createHeaders(r);o.Accept="application/json";let i=new FormData;for(let l in e)i.set(l,e[l]);let n=await fetch(this.computeURL(t),{headers:o,method:s,body:i});try{let t=await n.json();return t._sonic_http_response_=n,t}catch(a){return{_sonic_http_response_:n}}}async put(t,e,s){return this.send(t,e,"PUT",s)}async post(t,e,s){return this.send(t,e,"POST",s)}async delete(t,e,s){return this.send(t,e,"delete",s)}};let wt=yt;wt.loadingGetPromises=new Map,wt.tokens=new Map;class xt{static ucFirst(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.substring(1)}static js(t){try{return Function("return "+t)()}catch(e){return""}}}const _t=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(_t.observedElements.keys()).forEach((t=>_t.unObserve(t))))}static observe(t){if(!t)return;if(!_t.enabled)return;if(_t.observedElements.has(t))return;let e=new MutationObserver(_t.onMutation),s={childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-bind"]};e.observe(t,s),t.querySelectorAll("[data-bind]").forEach((t=>_t.addPublisherListeners(t))),_t.observedElements.set(t,e)}static unObserve(t){if(!t)return;let e=this.observedElements.get(t);e&&(e.disconnect(),t.querySelectorAll("[data-bind]").forEach((t=>_t.removePublisherListeners(t))))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&_t.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>_t.addPublisherListeners(t))):t.childNodes.forEach((t=>_t.onAdded(t)))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&_t.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach((t=>_t.removePublisherListeners(t))):t.childNodes.forEach((t=>_t.onRemoved(t)))}static onMutation(t){for(let r of t)switch(r.type){case"attributes":_t.addPublisherListeners(r.target);break;case"childList":var e=r.addedNodes,s=r.removedNodes;e.forEach((t=>{_t.onAdded(t)})),s.forEach((t=>{_t.onRemoved(t)}))}}static removePublisherListeners(t){let e=_t.publisherListeners.get(t);e&&(_t.publisherListeners.delete(t),e.forEach((t=>{t.publisher.offAssign(t.onAssign)})))}static getVariablesDescriptor(t){let e=t.match(/(\$(?:\w+\\?\.?)+)/g);return e=e?e.map((t=>t.replace("$",""))):[t],e=e.filter((t=>t.length>0)),{expression:t.replace("\\",""),variables:e.map((t=>t.split(/\b\.\b/).map((t=>t.replace("\\","")))))}}static getDataBindItems(t){return Array.from(t.attributes).filter((t=>0==t.name.indexOf("::"))).map((t=>({propertyToUpdate:t.name.substring(2).replace(/\-((html)|\w)/g,(t=>t.substring(1).toUpperCase())),bindedVariablesDescriptor:_t.getVariablesDescriptor(t.value)})))}static getSubPublisher(t,e){for(let s of e)"_self_"!=s&&(t=t[s]);return t}static addPublisherListeners(t){_t.removePublisherListeners(t);let e=t,s=ft.getAncestorAttributeValue(e.parentNode||e.host||e,"dataProvider");if(!s)return;let r=gt.getInstance().get(s),o=_t.getDataBindItems(t),i=[];o.forEach((e=>{let s=e.bindedVariablesDescriptor,o=e.propertyToUpdate;for(let n of s.variables){let e=n,a=r;a=_t.getSubPublisher(r,e);let l=t,c={publisher:a,onAssign:()=>{let t=s.variables.map((t=>_t.getSubPublisher(r,t).get())),e=s.expression,i=!1;if(1==t.length&&s.variables[0].join(".")==e.substring(1)){let e=t[0];return null===e&&(e=""),void(l[o]=e)}for(let r=0;r<t.length;r++){let o=t[r],n=s.variables[r];null===o&&(i=!0,o=void 0),e=e.replace("$"+n.join("."),o)}if(-1!=e.indexOf("|")){let t=e.indexOf("|");if(0==t)e=xt.js(e.substring(1));else{let s=e.substring(0,t),r=e.substring(t+1),o=xt;e=i?"":o[s]?o[s](r):e}}else e=i?"":e;l[o]=e}};a.onAssign(c.onAssign),i.push(c)}})),_t.publisherListeners.set(t,i)}};let kt=_t;kt.observedElements=new Map,kt.enabled=!0,kt.publisherListeners=new Map,kt.observe(document.documentElement);let At=window;At.SonicDataBindObserver||(At.SonicDataBindObserver=kt);var Pt=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,$t=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ct(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Pt(e,s,i),i};let St=!1,Ot=new Set;const Et=t=>{const e=class extends t{constructor(...t){super(),this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.defferedDebug=null,this.debug=null,this.onAssign=null,this.args=t}hasAncestorAttribute(t){return null!=this.getAncestorAttributeValue(t)}getAncestorAttributeValue(t){return ft.getAncestorAttributeValue(this,t)}get props(){return this.publisher?this.publisher.get():this._props}set props(t){"string"==typeof t&&["{","["].includes(t.trim().charAt(0))&&(t=JSON.parse(t)),null!=t&&""!==t||(t={}),this.publisher||this.initPublisher(),this._props=t,this.publisher&&this.publisher.set(t),this.requestUpdate()}updated(t){super.updated(t);let e=this.shadowRoot||this,s=this.displayContents?"contents":0==e.children.length?"none":null;s?this.style.display=s:this.style.removeProperty("display")}connectedCallback(){if(this.hasAttribute("lazyRendering")){let t={root:null,rootMargin:Math.max(.1*window.innerWidth,.1*window.innerHeight)+"px"},e=!0;new IntersectionObserver((t=>{for(const s of t)e&&s.isIntersecting&&(e=!1,this.initWording(),this.initPublisher())}),t).observe(this)}else this.initWording(),this.initPublisher();this.addDebugger(),super.connectedCallback(),e.instanceCounter++}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate())),this.wordingPublisher&&this.wordingPublisher.stopTemplateFilling(this),this.onAssign&&this.publisher.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");let t=this.debug.style;t.position="fixed",t.top="0",t.right="0",t.margin="auto",t.borderRadius=".7rem",t.backgroundColor="#0f1729",t.color="#c5d4f9",t.padding="16px 16px",t.margin="16px 16px",t.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",t.overflowY="auto",t.zIndex="99999999",t.maxHeight="calc(100vh - 32px)",t.fontFamily="Consolas, monospace",t.maxWidth="50vw",t.fontSize="12px",t.minWidth="300px",t.overflowWrap="break-word"}if(this.addEventListener("click",(t=>{t.ctrlKey&&(t.preventDefault(),St=!St)})),this.dataProvider){window[this.dataProvider]=this.publisher}this.addEventListener("mouseover",(()=>{St||this.removeDebugger(),document.body.appendChild(this.debug),Ot.add(this.debug)})),this.addEventListener("mouseout",(()=>{St||this.removeDebugger()})),this.publisher.onInternalMutation((()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : épingler / désépingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify(this.publisher.get(),null," ")}</pre>`}))}}removeDebugger(){Ot.forEach((t=>{document.body.contains(t)&&document.body.removeChild(t)})),Ot=new Set}getApiConfiguration(){const t=this.getAncestorAttributeValue("token");let e=this.getAncestorAttributeValue("serviceURL"),s=null,r=null,o=null;return t||(s=this.getAncestorAttributeValue("userName"),r=this.getAncestorAttributeValue("password"),o=this.getAncestorAttributeValue("tokenProvider")),{serviceURL:e,token:t,userName:s,password:r,tokenProvider:o}}async initWording(){let t=!1;const e=Object.getOwnPropertyNames(this.constructor.prototype);for(let i of e)if(0==i.indexOf("wording_")){t=!0;break}if(!t)return;let s=gt.getInstance().get("sonic-wording"),r=this.getAncestorAttributeValue("wordingProvider");const o=new wt(this.getApiConfiguration());if(r){let t=[];for(let r of e)if(0==r.indexOf("wording_")){let e=r.substring(8);s.get()[r]||(s[r]="...",t.push(e))}if(t.length>0){let e=await o.post(r,{labels:t});for(let t in e)s["wording_"+t]=e[t]}s.startTemplateFilling(this),this.wordingPublisher=s}}createRenderRoot(){if(""===this.noShadowDom||""===this.getAttribute("noShadowDom"))return this;let t=super.createRenderRoot();return kt.observe(t),t}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const t=gt.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let s=this.dataProvider;if(!s&&this._props&&(this.dataProvider=s="__subscriber__"+e.instanceCounter),s){this.bindPublisher&&t.set(s,this.bindPublisher());let e=t.get(s);if(this.dataProvider=s,this.hasAttribute("subDataProvider")){let r=this.getAttribute("subDataProvider");this.dataProvider=s+"/"+r,e=vt.traverse(e,r.split(".")),t.set(this.dataProvider,e),this.publisher=e}this.publisher=e}this.publisher&&(this.onAssign=()=>{this.requestUpdate()},this.publisher.onAssign(this.onAssign),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this._props&&this.publisher.set(this._props))}};let s=e;return s.instanceCounter=0,$t([it({type:Boolean})],s.prototype,"displayContents",2),$t([it({type:Boolean})],s.prototype,"noAutoFill",2),$t([it({type:Boolean})],s.prototype,"forceAutoFill",2),$t([it({type:Object})],s.prototype,"propertyMap",2),$t([it({type:String,attribute:"data-title"})],s.prototype,"title",2),$t([it({reflect:!0})],s.prototype,"dataProvider",2),$t([it()],s.prototype,"bindPublisher",2),$t([it()],s.prototype,"props",1),s};let jt=window;jt.SonicPublisherManager||(jt.SonicPublisherManager=gt);var zt=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor;const Mt=t=>{class e extends t{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){let t=this.templates||[...this.querySelectorAll("template")];for(let e of t)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e));this.templateList=t.filter((t=>!t.getAttribute("data-value"))),0==this.templateList.length&&(this.templateList=t),super.connectedCallback()}}return((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Dt(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);r&&i&&zt(e,s,i)})([it({type:Array})],e.prototype,"templates",2),e};var Lt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,It=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Nt(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Lt(e,s,i),i};let Ft=class extends(Et(Mt(et))){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=(new Date).getTime()/1e3,this.end_date=0,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.minute="2-digit",this.language="",this.renderIf=!0,this.startDateObject=new Date,this.endDateObject=new Date}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(t){this._wording_billet_periode_validite=t,this.duAu=this.wording_billet_periode_validite.split("%s").map((t=>t.trim())),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.wording_billet_periode_validite="Du %s au %s",this.pageLanguage=ft.getLanguage(),super.connectedCallback()}getDatesParts(t,e,s){let r=this.startDateObject;r.setTime(1e3*t);let o=null;if(e>0){let t=this.endDateObject;if(t.setTime(1e3*e),r.toJSON().substring(0,10)!=t.toJSON().substring(0,10)&&(delete s.hour,delete s.minute),o=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatRangeToParts(r,t),this.designMode)for(let e of o)"literal"==e.type&&this.designMode&&","==e.value.trim()&&(e.hidden=!0);const i=r.getFullYear()==t.getFullYear()&&r.getMonth()==t.getMonth()&&r.getDate()==t.getDate();if(o.some((t=>"endRange"==t.source))&&!i){for(let t of o)if("literal"==t.type&&"shared"==t.source&&t.value.trim().length>0&&!i){t.value=" "+this.duAu[1]+" ",t.type="to";break}this.designMode||o.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else{o=new Intl.DateTimeFormat(this.language||this.pageLanguage,s).formatToParts(r)}return o[0].value=xt.ucFirst(o[0].value),o=o.filter((t=>!0!==t.hidden)),o}render(){if(!this.renderIf)return N;if(this.date_string&&(this.date=new Date(this.date_string).getTime()/1e3),this.date&&(this.start_date=this.date),this.start_date_string&&(this.start_date=new Date(this.start_date_string).getTime()/1e3),this.end_date_string&&(this.end_date=new Date(this.end_date_string).getTime()/1e3),this.end_date>0&&this.end_date<this.start_date){const t=this.start_date;this.start_date=this.end_date,this.end_date=t}let t={weekday:this.weekday,year:this.year,month:this.month,day:this.day};this.hour&&(t.hour=this.hour),this.minute&&(t.minute=this.minute),this.era&&(t.era=this.era),this.time_zone&&(t.timeZone=this.time_zone);let e=this.getDatesParts(this.start_date,this.end_date,t);return M`${e.map((t=>{let e=this.templateParts[t.type];if(e){var s=document.importNode(e.content,!0);let r=s.children[0];return""==r.innerText.trim()&&(r.innerText=t.value),s}return M`<span class="${t.type}">${t.value}</span>`}))}`}};It([it()],Ft.prototype,"wording_billet_periode_validite",1),It([it({type:Boolean})],Ft.prototype,"designMode",2),It([it({type:String})],Ft.prototype,"time_zone",2),It([it({type:Number})],Ft.prototype,"date",2),It([it({type:String})],Ft.prototype,"date_string",2),It([it({type:String})],Ft.prototype,"start_date_string",2),It([it({type:String})],Ft.prototype,"end_date_string",2),It([it({type:Number})],Ft.prototype,"start_date",2),It([it({type:Number})],Ft.prototype,"end_date",2),It([it({type:String})],Ft.prototype,"era",2),It([it({type:String})],Ft.prototype,"year",2),It([it({type:String})],Ft.prototype,"month",2),It([it({type:String})],Ft.prototype,"day",2),It([it({type:String})],Ft.prototype,"weekday",2),It([it({type:String})],Ft.prototype,"hour",2),It([it({type:String})],Ft.prototype,"minute",2),It([it({type:String})],Ft.prototype,"language",2),It([it({type:Boolean})],Ft.prototype,"renderIf",2),Ft=It([rt("sonic-date")],Ft);const Vt=n`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`,Tt=n`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;var Rt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,qt=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ut(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Rt(e,s,i),i};const Bt="sonic-loader";let Ht=class extends et{constructor(){super(...arguments),this.mode="fixed"}static show(t){Ht.loader||(Ht.loader=document.createElement("sonic-loader"));let e=Ht.loader;t||(t={});let s=t;for(let r in s)e.setAttribute(r,s[r]);t.container||(t.container=document.querySelector("sonic-theme")||document.body,t.mode="fixed"),t.container.appendChild(e),Ht.callCounter++}static hide(){Ht.callCounter--,Ht.callCounter>0||Ht.loader&&Ht.loader.remove()}render(){return M`<div class="sonic-loader sonic-loader--${this.mode}"><div></div><div></div><div></div><div></div></div>`}};Ht.styles=[Vt,Tt,n`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`],Ht.callCounter=0,qt([it({type:String})],Ht.prototype,"mode",2),Ht=qt([rt(Bt)],Ht);try{customElements.define(Bt,Ht)}catch(Qa){}
61
61
  /**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const Kt=1,Wt=2,Zt=t=>(...e)=>({_$litDirective$:t,values:e});class Yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
65
+ */const Wt=1,Kt=2,Zt=t=>(...e)=>({_$litDirective$:t,values:e});class Yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
66
66
  /**
67
67
  * @license
68
68
  * Copyright 2020 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */const{H:Qt}=G,Gt=()=>document.createComment(""),Jt=(t,e,r)=>{var s;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===r){const e=o.insertBefore(Gt(),i),s=o.insertBefore(Gt(),i);r=new Qt(e,s,t,t.options)}else{const e=r._$AB.nextSibling,n=r._$AM,a=n!==t;if(a){let e;null===(s=r._$AQ)||void 0===s||s.call(r,t),r._$AM=t,void 0!==r._$AP&&(e=t._$AU)!==n._$AU&&r._$AP(e)}if(e!==i||a){let t=r._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return r},Xt=(t,e,r=t)=>(t._$AI(e,r),t),te={},ee=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let r=t._$AA;const s=t._$AB.nextSibling;for(;r!==s;){const t=r.nextSibling;r.remove(),r=t}},re=(t,e,r)=>{const s=new Map;for(let o=e;o<=r;o++)s.set(t[o],o);return s},se=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Wt)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let s;void 0===r?r=e:void 0!==e&&(s=e);const o=[],i=[];let n=0;for(const a of t)o[n]=s?s(a,n):n,i[n]=r(a,n),n++;return{values:i,keys:o}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,s]){var o;const i=t._$AH,{values:n,keys:a}=this.dt(e,r,s);if(!Array.isArray(i))return this.ut=a,n;const l=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],c=[];let h,d,p=0,u=i.length-1,m=0,g=n.length-1;for(;p<=u&&m<=g;)if(null===i[p])p++;else if(null===i[u])u--;else if(l[p]===a[m])c[m]=Xt(i[p],n[m]),p++,m++;else if(l[u]===a[g])c[g]=Xt(i[u],n[g]),u--,g--;else if(l[p]===a[g])c[g]=Xt(i[p],n[g]),Jt(t,c[g+1],i[p]),p++,g--;else if(l[u]===a[m])c[m]=Xt(i[u],n[m]),Jt(t,i[p],i[u]),u--,m++;else if(void 0===h&&(h=re(a,m,g),d=re(l,p,u)),h.has(l[p]))if(h.has(l[u])){const e=d.get(a[m]),r=void 0!==e?i[e]:null;if(null===r){const e=Jt(t,i[p]);Xt(e,n[m]),c[m]=e}else c[m]=Xt(r,n[m]),Jt(t,i[p],r),i[e]=null;m++}else ee(i[u]),u--;else ee(i[p]),p++;for(;m<=g;){const e=Jt(t,c[g+1]);Xt(e,n[m]),c[m++]=e}for(;p<=u;){const t=i[p++];null!==t&&ee(t)}return this.ut=a,((t,e=te)=>{t._$AH=e})(t,c),M}}),oe=(t,e)=>{var r,s;const o=t._$AN;if(void 0===o)return!1;for(const i of o)null===(s=(r=i)._$AO)||void 0===s||s.call(r,e,!1),oe(i,e);return!0},ie=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===(null==r?void 0:r.size))},ne=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),ce(e)}};
70
+ */const{H:Qt}=G,Gt=()=>document.createComment(""),Jt=(t,e,s)=>{var r;const o=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=o.insertBefore(Gt(),i),r=o.insertBefore(Gt(),i);s=new Qt(e,r,t,t.options)}else{const e=s._$AB.nextSibling,n=s._$AM,a=n!==t;if(a){let e;null===(r=s._$AQ)||void 0===r||r.call(s,t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==n._$AU&&s._$AP(e)}if(e!==i||a){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,i),t=e}}}return s},Xt=(t,e,s=t)=>(t._$AI(e,s),t),te={},ee=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let s=t._$AA;const r=t._$AB.nextSibling;for(;s!==r;){const t=s.nextSibling;s.remove(),s=t}},se=(t,e,s)=>{const r=new Map;for(let o=e;o<=s;o++)r.set(t[o],o);return r},re=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Kt)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let r;void 0===s?s=e:void 0!==e&&(r=e);const o=[],i=[];let n=0;for(const a of t)o[n]=r?r(a,n):n,i[n]=s(a,n),n++;return{values:i,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,r]){var o;const i=t._$AH,{values:n,keys:a}=this.dt(e,s,r);if(!Array.isArray(i))return this.ut=a,n;const l=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],c=[];let h,d,p=0,u=i.length-1,m=0,g=n.length-1;for(;p<=u&&m<=g;)if(null===i[p])p++;else if(null===i[u])u--;else if(l[p]===a[m])c[m]=Xt(i[p],n[m]),p++,m++;else if(l[u]===a[g])c[g]=Xt(i[u],n[g]),u--,g--;else if(l[p]===a[g])c[g]=Xt(i[p],n[g]),Jt(t,c[g+1],i[p]),p++,g--;else if(l[u]===a[m])c[m]=Xt(i[u],n[m]),Jt(t,i[p],i[u]),u--,m++;else if(void 0===h&&(h=se(a,m,g),d=se(l,p,u)),h.has(l[p]))if(h.has(l[u])){const e=d.get(a[m]),s=void 0!==e?i[e]:null;if(null===s){const e=Jt(t,i[p]);Xt(e,n[m]),c[m]=e}else c[m]=Xt(s,n[m]),Jt(t,i[p],s),i[e]=null;m++}else ee(i[u]),u--;else ee(i[p]),p++;for(;m<=g;){const e=Jt(t,c[g+1]);Xt(e,n[m]),c[m++]=e}for(;p<=u;){const t=i[p++];null!==t&&ee(t)}return this.ut=a,((t,e=te)=>{t._$AH=e})(t,c),L}}),oe=(t,e)=>{var s,r;const o=t._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(s=i)._$AO)||void 0===r||r.call(s,e,!1),oe(i,e);return!0},ie=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},ne=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),ce(e)}};
71
71
  /**
72
72
  * @license
73
73
  * Copyright 2017 Google LLC
74
74
  * SPDX-License-Identifier: BSD-3-Clause
75
- */function ae(t){void 0!==this._$AN?(ie(this),this._$AM=t,ne(this)):this._$AM=t}function le(t,e=!1,r=0){const s=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(s))for(let i=r;i<s.length;i++)oe(s[i],!1),ie(s[i]);else null!=s&&(oe(s,!1),ie(s));else oe(this,t)}const ce=t=>{var e,r,s,o;t.type==Wt&&(null!==(e=(s=t)._$AP)&&void 0!==e||(s._$AP=le),null!==(r=(o=t)._$AQ)&&void 0!==r||(o._$AQ=ae))};class he extends Yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ne(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,s;t!==this.isConnected&&(this.isConnected=t,t?null===(r=this.reconnected)||void 0===r||r.call(this):null===(s=this.disconnected)||void 0===s||s.call(this)),e&&(oe(this,t),ie(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const de=new WeakMap;let pe=0;const ue=new Map,me=new WeakSet,ge=()=>new Promise((t=>requestAnimationFrame(t))),be=[{opacity:0}],fe=[{opacity:0},{opacity:1}],ve=(t,e)=>{const r=t-e;return 0===r?void 0:r},ye=(t,e)=>{const r=t/e;return 1===r?void 0:r},we={left:(t,e)=>{const r=ve(t,e);return{value:r,transform:r&&`translateX(${r}px)`}},top:(t,e)=>{const r=ve(t,e);return{value:r,transform:r&&`translateY(${r}px)`}},width:(t,e)=>{const r=ye(t,e);return{value:r,transform:r&&`scaleX(${r})`}},height:(t,e)=>{const r=ye(t,e);return{value:r,transform:r&&`scaleY(${r})`}}},xe={duration:333,easing:"ease-in-out"},_e=["left","top","width","height","opacity","color","background"],ke=new WeakMap;const Ae=Zt(class extends he{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===Wt)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t}))}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0}render(t){return N}getController(){return de.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[e]){var r;const s=void 0===this.l;return s&&(this.l=null===(r=t.options)||void 0===r?void 0:r.host,this.l.addController(this),this.element=t.element,ke.set(this.element,this)),this.optionsOrCallback=e,(s||"function"!=typeof e)&&this.u(e),this.render(e)}u(t){var e,r;t=null!=t?t:{};const s=this.getController();void 0!==s&&((t=__spreadValues(__spreadValues({},s.defaultOptions),t)).keyframeOptions=__spreadValues(__spreadValues({},s.defaultOptions.keyframeOptions),t.keyframeOptions)),null!==(e=(r=t).properties)&&void 0!==e||(r.properties=_e),this.options=t}v(){const t={},e=this.element.getBoundingClientRect(),r=getComputedStyle(this.element);return this.options.properties.forEach((s=>{var o;const i=null!==(o=e[s])&&void 0!==o?o:we[s]?void 0:r[s],n=Number(i);t[s]=isNaN(n)?i+"":n})),t}p(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((t,e)=>{if(Array.isArray(t)){if(Array.isArray(e)&&e.length===t.length&&t.every(((t,r)=>t===e[r])))return!1}else if(e===t)return!1;return!0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ge;const e=this.A(),r=this._(this.options.keyframeOptions,e),s=this.v();if(void 0!==this.g){const{from:r,to:o}=this.j(this.g,s,e);this.log("measured",[this.g,s,r,o]),t=this.calculateKeyframes(r,o)}else{const r=ue.get(this.options.inId);if(r){ue.delete(this.options.inId);const{from:o,to:i}=this.j(r,s,e);t=this.calculateKeyframes(o,i),t=this.options.in?[__spreadValues(__spreadValues({},this.options.in[0]),t[0]),...this.options.in.slice(1),t[1]]:t,pe++,t.forEach((t=>t.zIndex=pe))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,r)}resetStyles(){var t;void 0!==this.S&&(this.element.setAttribute("style",null!==(t=this.S)&&void 0!==t?t:""),this.S=void 0)}commitStyles(){var t,e;this.S=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(e=this.webAnimation)||void 0===e||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&ue.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await ge(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const e=this.g.left-t.left,r=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===r||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==r&&(this.element.style.top=r+"px")}}const e=this._(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;null===(e=(t=this.options).onStart)||void 0===e||e.call(t,this)}didFinish(t){var e,r;t&&(null===(r=(e=this.options).onComplete)||void 0===r||r.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}A(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const r=ke.get(e);r&&!r.isDisabled()&&r&&t.push(r)}return t}get isHostRendered(){const t=me.has(this.l);return t||this.l.updateComplete.then((()=>{me.add(this.l)})),t}_(t,e=this.A()){const r=__spreadValues({},xe);return e.forEach((t=>Object.assign(r,t.options.keyframeOptions))),Object.assign(r,t),r}j(t,e,r){t=__spreadValues({},t),e=__spreadValues({},e);const s=r.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,i=1;return void 0!==s&&(s.forEach((t=>{t.width&&(o/=t.width),t.height&&(i/=t.height)})),void 0!==t.left&&void 0!==e.left&&(t.left=o*t.left,e.left=o*e.left),void 0!==t.top&&void 0!==e.top&&(t.top=i*t.top,e.top=i*e.top)),{from:t,to:e}}calculateKeyframes(t,e,r=!1){var s;const o={},i={};let n=!1;const a={};for(const l in e){const r=t[l],c=e[l];if(l in we){const t=we[l];if(void 0===r||void 0===c)continue;const e=t(r,c);void 0!==e.transform&&(a[l]=e.value,n=!0,o.transform=`${null!==(s=o.transform)&&void 0!==s?s:""} ${e.transform}`)}else r!==c&&void 0!==r&&void 0!==c&&(n=!0,o[l]=r,i[l]=c)}return o.transformOrigin=i.transformOrigin=r?"center center":"top left",this.animatingProperties=a,n?[o,i]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let r=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,e]),r=!0,this.webAnimation=this.element.animate(t,e);const o=this.getController();null==o||o.add(this);try{await this.webAnimation.finished}catch(s){}null==o||o.remove(this)}return this.didFinish(r),r}isAnimating(){var t,e;return"running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(e=this.webAnimation)||void 0===e?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}});
75
+ */function ae(t){void 0!==this._$AN?(ie(this),this._$AM=t,ne(this)):this._$AM=t}function le(t,e=!1,s=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(e)if(Array.isArray(r))for(let i=s;i<r.length;i++)oe(r[i],!1),ie(r[i]);else null!=r&&(oe(r,!1),ie(r));else oe(this,t)}const ce=t=>{var e,s,r,o;t.type==Kt&&(null!==(e=(r=t)._$AP)&&void 0!==e||(r._$AP=le),null!==(s=(o=t)._$AQ)&&void 0!==s||(o._$AQ=ae))};class he extends Yt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ne(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),e&&(oe(this,t),ie(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const de=new WeakMap;let pe=0;const ue=new Map,me=new WeakSet,ge=()=>new Promise((t=>requestAnimationFrame(t))),be=[{opacity:0}],fe=[{opacity:0},{opacity:1}],ve=(t,e)=>{const s=t-e;return 0===s?void 0:s},ye=(t,e)=>{const s=t/e;return 1===s?void 0:s},we={left:(t,e)=>{const s=ve(t,e);return{value:s,transform:s&&`translateX(${s}px)`}},top:(t,e)=>{const s=ve(t,e);return{value:s,transform:s&&`translateY(${s}px)`}},width:(t,e)=>{const s=ye(t,e);return{value:s,transform:s&&`scaleX(${s})`}},height:(t,e)=>{const s=ye(t,e);return{value:s,transform:s&&`scaleY(${s})`}}},xe={duration:333,easing:"ease-in-out"},_e=["left","top","width","height","opacity","color","background"],ke=new WeakMap;const Ae=Zt(class extends he{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===Kt)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;null===(t=this.resolveFinished)||void 0===t||t.call(this),this.finished=new Promise((t=>{this.h=t}))}async resolveFinished(){var t;null===(t=this.h)||void 0===t||t.call(this),this.h=void 0}render(t){return N}getController(){return de.get(this.l)}isDisabled(){var t;return this.options.disabled||(null===(t=this.getController())||void 0===t?void 0:t.disabled)}update(t,[e]){var s;const r=void 0===this.l;return r&&(this.l=null===(s=t.options)||void 0===s?void 0:s.host,this.l.addController(this),this.element=t.element,ke.set(this.element,this)),this.optionsOrCallback=e,(r||"function"!=typeof e)&&this.u(e),this.render(e)}u(t){var e,s;t=null!=t?t:{};const r=this.getController();void 0!==r&&((t=__spreadValues(__spreadValues({},r.defaultOptions),t)).keyframeOptions=__spreadValues(__spreadValues({},r.defaultOptions.keyframeOptions),t.keyframeOptions)),null!==(e=(s=t).properties)&&void 0!==e||(s.properties=_e),this.options=t}v(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((r=>{var o;const i=null!==(o=e[r])&&void 0!==o?o:we[r]?void 0:s[r],n=Number(i);t[r]=isNaN(n)?i+"":n})),t}p(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((t,e)=>{if(Array.isArray(t)){if(Array.isArray(e)&&e.length===t.length&&t.every(((t,s)=>t===e[s])))return!1}else if(e===t)return!1;return!0})(t,this.m)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.o&&(this.m=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){var t;"function"==typeof this.optionsOrCallback&&this.u(this.optionsOrCallback()),this.p()&&(this.g=this.v(),this.t=null!==(t=this.t)&&void 0!==t?t:this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await ge;const e=this.A(),s=this._(this.options.keyframeOptions,e),r=this.v();if(void 0!==this.g){const{from:s,to:o}=this.j(this.g,r,e);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=ue.get(this.options.inId);if(s){ue.delete(this.options.inId);const{from:o,to:i}=this.j(s,r,e);t=this.calculateKeyframes(o,i),t=this.options.in?[__spreadValues(__spreadValues({},this.options.in[0]),t[0]),...this.options.in.slice(1),t[1]]:t,pe++,t.forEach((t=>t.zIndex=pe))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){var t;void 0!==this.S&&(this.element.setAttribute("style",null!==(t=this.S)&&void 0!==t?t:""),this.S=void 0)}commitStyles(){var t,e;this.S=this.element.getAttribute("style"),null===(t=this.webAnimation)||void 0===t||t.commitStyles(),null===(e=this.webAnimation)||void 0===e||e.cancel()}reconnected(){}async disconnected(){var t;if(!this.o)return;if(void 0!==this.options.id&&ue.set(this.options.id,this.g),void 0===this.options.out)return;if(this.prepare(),await ge(),null===(t=this.t)||void 0===t?void 0:t.isConnected){const t=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,t),this.options.stabilizeOut){const t=this.v();this.log("stabilizing out");const e=this.g.left-t.left,s=this.g.top-t.top;!("static"===getComputedStyle(this.element).position)||0===e&&0===s||(this.element.style.position="relative"),0!==e&&(this.element.style.left=e+"px"),0!==s&&(this.element.style.top=s+"px")}}const e=this._(this.options.keyframeOptions);await this.animate(this.options.out,e),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;null===(e=(t=this.options).onStart)||void 0===e||e.call(t,this)}didFinish(t){var e,s;t&&(null===(s=(e=this.options).onComplete)||void 0===s||s.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}A(){const t=[];for(let e=this.element.parentNode;e;e=null==e?void 0:e.parentNode){const s=ke.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=me.has(this.l);return t||this.l.updateComplete.then((()=>{me.add(this.l)})),t}_(t,e=this.A()){const s=__spreadValues({},xe);return e.forEach((t=>Object.assign(s,t.options.keyframeOptions))),Object.assign(s,t),s}j(t,e,s){t=__spreadValues({},t),e=__spreadValues({},e);const r=s.map((t=>t.animatingProperties)).filter((t=>void 0!==t));let o=1,i=1;return void 0!==r&&(r.forEach((t=>{t.width&&(o/=t.width),t.height&&(i/=t.height)})),void 0!==t.left&&void 0!==e.left&&(t.left=o*t.left,e.left=o*e.left),void 0!==t.top&&void 0!==e.top&&(t.top=i*t.top,e.top=i*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){var r;const o={},i={};let n=!1;const a={};for(const l in e){const s=t[l],c=e[l];if(l in we){const t=we[l];if(void 0===s||void 0===c)continue;const e=t(s,c);void 0!==e.transform&&(a[l]=e.value,n=!0,o.transform=`${null!==(r=o.transform)&&void 0!==r?r:""} ${e.transform}`)}else s!==c&&void 0!==s&&void 0!==c&&(n=!0,o[l]=s,i[l]=c)}return o.transformOrigin=i.transformOrigin=s?"center center":"top left",this.animatingProperties=a,n?[o,i]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0!==t)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const o=this.getController();null==o||o.add(this);try{await this.webAnimation.finished}catch(r){}null==o||o.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return"running"===(null===(t=this.webAnimation)||void 0===t?void 0:t.playState)||(null===(e=this.webAnimation)||void 0===e?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}});
76
76
  /**
77
77
  * @license
78
78
  * Copyright 2017 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */class Pe extends Yt{constructor(t){if(super(t),this.it=N,t.type!==Wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===N||null==t)return this.ft=void 0,this.it=t;if(t===M)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pe.directiveName="unsafeHTML",Pe.resultType=1;const $e=Zt(Pe);var Ce={core:{cancel:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"check-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',check:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"emoji-puzzled":'<?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#000000"><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"more-horiz":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"more-vert":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"nav-arrow-down":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"warning-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}};const Se=new Map,Oe={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"}};let Ee=!1;const je=class{static registerIcons(t){const e=Ce;for(let r in t){const s=t[r],o=e[r]||{};for(let t in s)o[t]=s[t];e[r]=o}}};let ze=je;ze.fontAwesomeNext={get:async t=>{let e=t.library,r=t.name||"";const s=Ce;var o,i;if("custom"==e&&(Ee||(Ee=!0,Oe.custom={},Oe.custom.url=null==(o=document.querySelector("[customIconLibraryPath]"))?void 0:o.getAttribute("customIconLibraryPath"),Oe.custom.defaultPrefix=null==(i=document.querySelector("[customIconDefaultPrefix]"))?void 0:i.getAttribute("customIconDefaultPrefix"))),e&&Oe[e]){let o=Oe[e],i=t.prefix||o.defaultPrefix,n=s[e]||{},a=i+"-"+r;if(n[a])return $e(n[a]);let l=o.url.replace("$prefix",i).replace("$name",r);if(n[a])return $e(n[a]);if(!Se.has(l)){let t=new Promise((async t=>{let e=await fetch(l);if(e.ok)try{t(await e.text())}catch(Va){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));Se.set(l,t)}let c=await Se.get(l);return Se.delete(l),n[a]=c,$e(c)}return $e(s.core[t.name]||"")}},ze.default=je.fontAwesomeNext;var De=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Me=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Le(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&De(e,r,i),i};const Ne="sonic-icon";let Fe=class extends et{constructor(){super(...arguments),this.iconText="",this._name="",this._prefix="",this._library=""}async updateIcon(){this.name&&(this.iconText=await ze.default.get({name:this.name,prefix:this.prefix,library:this.library}),this.requestUpdate())}get name(){return this._name}set name(t){this._name=t,this.updateIcon()}get prefix(){return this._prefix}set prefix(t){this._prefix=t,this.updateIcon()}get library(){return this._library}set library(t){this._library=t,this.updateIcon()}render(){return this.name?(this.style.removeProperty("display"),this.iconText):(this.style.display="none",N)}};Fe.styles=n`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`,Me([it({type:String})],Fe.prototype,"name",1),Me([it({type:String})],Fe.prototype,"prefix",1),Me([it({type:String})],Fe.prototype,"library",1),Fe=Me([st(Ne)],Fe);try{customElements.define(Ne,Fe)}catch(Va){}
80
+ */class Pe extends Yt{constructor(t){if(super(t),this.it=N,t.type!==Kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===N||null==t)return this.ft=void 0,this.it=t;if(t===L)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pe.directiveName="unsafeHTML",Pe.resultType=1;const Ce=Zt(Pe);var $e={core:{cancel:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"check-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 12.5L10 15.5L17 8.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',check:'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 13L9 17L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"emoji-puzzled":'<?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="#000000"><path d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.5 15.5s1.5-2 4.5-2 4.5 2 4.5 2M3 4c0-2.754 4-2.754 4 0 0 1.967-2 1.64-2 4M5 11.01l.01-.011" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17.5 9a.5.5 0 110-1 .5.5 0 010 1zM10.5 9a.5.5 0 110-1 .5.5 0 010 1z" fill="#000" stroke="#000000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>',"info-empty":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 11.5V16.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 7.51L12.01 7.49889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',loader:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',"more-horiz":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 12.5C18.2761 12.5 18.5 12.2761 18.5 12C18.5 11.7239 18.2761 11.5 18 11.5C17.7239 11.5 17.5 11.7239 17.5 12C17.5 12.2761 17.7239 12.5 18 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M6 12.5C6.27614 12.5 6.5 12.2761 6.5 12C6.5 11.7239 6.27614 11.5 6 11.5C5.72386 11.5 5.5 11.7239 5.5 12C5.5 12.2761 5.72386 12.5 6 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"more-vert":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 18.5C12.2761 18.5 12.5 18.2761 12.5 18C12.5 17.7239 12.2761 17.5 12 17.5C11.7239 17.5 11.5 17.7239 11.5 18C11.5 18.2761 11.7239 18.5 12 18.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 6.5C12.2761 6.5 12.5 6.27614 12.5 6C12.5 5.72386 12.2761 5.5 12 5.5C11.7239 5.5 11.5 5.72386 11.5 6C11.5 6.27614 11.7239 6.5 12 6.5Z" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"nav-arrow-down":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 9L12 15L18 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',"warning-circled-outline":'<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 7L12 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}};const Se=new Map,Oe={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"}};let Ee=!1;const je=class{static registerIcons(t){const e=$e;for(let s in t){const r=t[s],o=e[s]||{};for(let t in r)o[t]=r[t];e[s]=o}}};let ze=je;ze.fontAwesomeNext={get:async t=>{let e=t.library,s=t.name||"";const r=$e;var o,i;if("custom"==e&&(Ee||(Ee=!0,Oe.custom={},Oe.custom.url=null==(o=document.querySelector("[customIconLibraryPath]"))?void 0:o.getAttribute("customIconLibraryPath"),Oe.custom.defaultPrefix=null==(i=document.querySelector("[customIconDefaultPrefix]"))?void 0:i.getAttribute("customIconDefaultPrefix"))),e&&Oe[e]){let o=Oe[e],i=t.prefix||o.defaultPrefix,n=r[e]||{},a=i+"-"+s;if(n[a])return Ce(n[a]);let l=o.url.replace("$prefix",i).replace("$name",s);if(n[a])return Ce(n[a]);if(!Se.has(l)){let t=new Promise((async t=>{let e=await fetch(l);if(e.ok)try{t(await e.text())}catch(Qa){t(null)}else t(`<b title="Erreur ${e.status}">😶</b>`)}));Se.set(l,t)}let c=await Se.get(l);return Se.delete(l),n[a]=c,Ce(c)}return Ce(r.core[t.name]||"")}},ze.default=je.fontAwesomeNext;var De=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,Le=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Me(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&De(e,s,i),i};const Ne="sonic-icon";let Ie=class extends et{constructor(){super(...arguments),this.iconText="",this._name="",this._prefix="",this._library=""}async updateIcon(){this.name&&(this.iconText=await ze.default.get({name:this.name,prefix:this.prefix,library:this.library}),this.requestUpdate())}get name(){return this._name}set name(t){this._name=t,this.updateIcon()}get prefix(){return this._prefix}set prefix(t){this._prefix=t,this.updateIcon()}get library(){return this._library}set library(t){this._library=t,this.updateIcon()}render(){return this.name?(this.style.removeProperty("display"),this.iconText):(this.style.display="none",N)}};Ie.styles=n`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`,Le([it({type:String})],Ie.prototype,"name",1),Le([it({type:String})],Ie.prototype,"prefix",1),Le([it({type:String})],Ie.prototype,"library",1),Ie=Le([rt(Ne)],Ie);try{customElements.define(Ne,Ie)}catch(Qa){}
81
81
  /**
82
82
  * @license
83
83
  * Copyright 2018 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const Ie=t=>null!=t?t:N
85
+ */const Fe=t=>null!=t?t:N
86
86
  /**
87
87
  * @license
88
88
  * Copyright 2018 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
- */,Te=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?r.removeProperty(t):r[t]="")}));for(const s in e){const t=e[s];null!=t&&(this.ct.add(s),s.includes("-")?r.setProperty(s,t):r[s]=t)}return M}}),Re=n`.custom-scroll{overflow:auto!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;var Ve=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,Be=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ue(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ve(e,r,i),i};const qe={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let He=class extends et{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(t)[this.id])return N}return this.visible?L`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"><button aria-label="Close" class="sonic-toast-close" @click="${()=>this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status&&L`<sonic-icon name="${qe[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title?L`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?$e(this.text):""}<slot></slot></div>${this.preserve?"":this.autoHide()}</div></div>`:N}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(e))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout((()=>{this.hide()}),4200)}};He.styles=[Re,n`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:999;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`],Be([it({type:String})],He.prototype,"title",2),Be([it({type:String})],He.prototype,"id",2),Be([it({type:String})],He.prototype,"text",2),Be([it({type:String})],He.prototype,"status",2),Be([it({type:Boolean})],He.prototype,"ghost",2),Be([it({type:Boolean})],He.prototype,"preserve",2),Be([it({type:Boolean})],He.prototype,"dismissForever",2),Be([it({type:String})],He.prototype,"maxHeight",2),Be([nt()],He.prototype,"visible",2),He=Be([st("sonic-toast-item")],He);var Ke=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ze=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?We(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ke(e,r,i),i};let Ye=class extends et{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(e=__spreadProps(__spreadValues({},e),{margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"999",maxWidth:"64ch",flexDirection:"column-reverse"})),this.toasts?L`<div aria-live="polite" style="${Te(e)}">${se(this.toasts,(t=>t.id),(e=>L`<sonic-toast-item maxHeight="${t?"none":"10rem"}" status="${Ie(e.status)}" title="${Ie(e.title)}" ?ghost="${e.ghost}" ?dismissForever="${e.dismissForever}" ?preserve="${e.preserve}" id="${Ie(e.id)}" @hide="${()=>this.removeItem(e)}" ${Ae({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}>${e.text?$e(e.text):""}</sonic-toast-item>`))}</div>`:N}static removeAll(){let t=document.querySelector("sonic-toast");t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static add(t){var e;if(!document.querySelector("sonic-toast")){let t=document.createElement("sonic-toast");(document.querySelector("sonic-theme")||document.body).prepend(t)}let r=document.querySelector("sonic-toast");const s=null!=(e=t.id)?e:(new Date).valueOf(),o=new RegExp("</a>|</button>").test(t.text),i={id:s,text:t.text,title:t.title,status:t.status,preserve:!!o||t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const e=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(e)[t.id])return null}if(r.toasts.length>0){let t=__spreadValues({},i),e=__spreadValues({},r.toasts[r.toasts.length-1]);if(t.id=e.id=0,!i.preserve&&vt.shallowEqual(t,e))return null}return r.toasts=[...r.toasts,i],i}removeItem(t){this.toasts=this.toasts.filter((e=>e!=t))}};if(Ze([it({type:Array})],Ye.prototype,"toasts",2),Ye=Ze([st("sonic-toast")],Ye),"undefined"!=typeof window){window.SonicToast=Ye}const Qe=class{static listen(){var t;if(!Qe.listening)return;let e=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");Qe.prevURL&&Qe.prevURL!=e&&(Qe.prevURL=e,Qe.listeners.forEach((t=>{t.location=e}))),window.requestAnimationFrame(Qe.listen)}static offChange(t){let e=Qe.listeners.indexOf(t);-1!=e&&(Qe.listeners.splice(e,1),0==Qe.listeners.length&&(Qe.listening=!1))}static onChange(t){Qe.listening||(Qe.listening=!0,Qe.listen()),Qe.listeners.push(t)}static changeFromComponent(t){if(null!==t.goBack){const e=document.location.origin;let r=t.goBack||e;if(0==document.referrer.indexOf("http")&&new URL(document.referrer).origin==e||r==document.location.href)history.back();else{let t=history.state||{};t.concorde=t.concorde||{},t.concorde.hasDoneHistoryBack=!0,history.pushState(t,document.title),history.back(),document.location.replace(r)}return}let e=t.getAttribute("to");if(e||(e=t.href),!e)return;if(0==e.indexOf("#"))return void(document.location.hash=e.substring(1));let r=new URL(e,document.location.href),s=r.pathname.split("/"),o=[],i="";for(let n of s)n!=i&&o.push(n),i=n;e="/"+o.join("/")+r.search+(r.hash?+r.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if("disabled"!=t.autoActive&&t.href&&0!=t.href.indexOf("http")){let e=new URL(t.href,document.location.href),r=new URL(t.location,document.location.origin),s=!1;s="strict"==t.autoActive?e.pathname==r.pathname&&e.hash==r.hash&&e.search==r.search:0==r.href.indexOf(e.href),s?t.setAttribute("active","true"):t.removeAttribute("active")}}};let Ge=Qe;Ge.listeners=[],Ge.listening=!1,Ge.prevURL=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");var Je=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,tr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Xe(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Je(e,r,i),i};const er=new Map,rr=t=>{class e extends t{constructor(...t){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.onValueAssign=null,this.onFormValueAssign=null,this.onFormDataInValidate=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{this.getFormPublisher().isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(t){this.hasAttribute("name")&&!this.forceAutoFill&&(t=this.getAttribute("name")),this._name=t,this.requestUpdate()}validateFormElement(){}updateDataValue(){if(this._name){let t=this.getFormPublisher();t&&(t[this._name]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(t[this.name].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.get(this.formDataProvider):this.publisher}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){vt.isObject(t)&&t.hasOwnProperty("__value")&&null==t.value||null!=t&&this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&t[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.updateDataValue(),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(t[this._name].onAssign(this.onFormValueAssign),t.onInvalidate(this.onFormDataInValidate))}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){let t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;let e=t.split(" "),r=e[0];if(!r)return;for(let o of e){er.has(o)||er.set(o,[]);let t=er.get(o);-1==t.indexOf(this)&&t.push(this)}let s=er.get(r);this.addEventListener("keydown",(t=>{if(!["ArrowDown","ArrowUp"].includes(t.key))return;let e="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",r=s.filter((t=>{let r=t.shadowRoot.querySelector(e);if(!r)return!1;let s=window.getComputedStyle(r);return"none"!==s.display&&""!==s.display&&"none"!=s.pointerEvents&&"hidden"!==s.visibility&&r.getBoundingClientRect().width>0})),o=null;if("ArrowDown"==t.key){let t=r.indexOf(this);o=t==r.length-1?r[0]:r[t+1]}else if("ArrowUp"==t.key){let t=r.indexOf(this);o=0==t?r[r.length-1]:r[t-1]}let i=o.shadowRoot.querySelector(e);i&&(i.focus(),t.preventDefault())}))}connectedCallback(){super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&(t[this._name].offAssign(this.onFormValueAssign),t.offInvalidate(this.onFormDataInValidate))}}return tr([it({type:Boolean,reflect:!0})],e.prototype,"touched",2),tr([it({type:Boolean})],e.prototype,"error",2),tr([it({type:Boolean})],e.prototype,"autofocus",2),tr([it({type:Boolean})],e.prototype,"required",2),tr([it()],e.prototype,"forceAutoFill",2),tr([it({type:Boolean})],e.prototype,"disabled",2),tr([it()],e.prototype,"name",1),tr([it()],e.prototype,"value",1),e};var sr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ir=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?or(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&sr(e,r,i),i};const nr=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null}get value(){return this._value}set value(t){this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}get checked(){return this._checked}set checked(t){this.setCheckedValue(t)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;let r=this.getFormPublisher()[this.name].get();(this.unique||this.radio)&&null!==r&&r.toString().length>0||(this.getFormPublisher().isFormValid=!1,e.reportValidity())}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate())}handleChange(){this.checked=!this.checked||(!!this.radio||null);const t=new Event("change");this.dispatchEvent(t)}getValueForFormPublisher(){let t=this.getFormPublisher()[this.name].get();if(this.radio)return this.checked&&null!=this.value?this.value:t;if(this.unique)return this.checked&&null!=this.value?this.value:null;Array.isArray(t)||(t=[]),t=t.slice(0);let e=t.indexOf(this.value);return!0===this.checked&&-1===e&&t.push(this.value),null===this.checked&&-1!==e&&t.splice(e,1),t}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checked=-1!==t.indexOf(this.value)||null)}initPublisher(){super.initPublisher(),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||(this.checked=!0))}}return ir([it()],e.prototype,"value",1),ir([it()],e.prototype,"forceAutoFill",2),ir([it({type:Boolean})],e.prototype,"unique",2),ir([it({type:Boolean})],e.prototype,"radio",2),ir([it()],e.prototype,"checked",1),e},ar=n`:host{--sc-fs:1rem;font-size:var(--sc-fs)}:host([size="2xs"]){--sc-fs:0.68rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;var lr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,hr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?cr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&lr(e,r,i),i};const dr="sonic-button";let pr=class extends(nr(rr(Et(et)))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this._location=""}set href(t){this._href=t,this.href&&0!=this.href.indexOf("http")?(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")):Ge.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),Ge.changeFromComponent(this)}handleChange(t){super.handleChange(t),(this.pushState||null!==this.goBack)&&(t.preventDefault(),t.stopPropagation(),Ge.changeFromComponent(this))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t==this._checked)return;super.setCheckedValue(t),this._checked?this.setAttribute("active","true"):this.removeAttribute("active")}}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,textAlign:this.align,minWidth:this.minWidth},e=L`<button part="button" class="${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}" style="${Te(t)}" @click="${this.handleChange}"><slot @slotchange="${this.onSlotChange}" part="prefix" name="prefix"></slot><slot part="main" class="main-slot"></slot><slot @slotchange="${this.onSlotChange}" part="suffix" name="suffix"></slot>${1==this.loading?L`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}</button>`;return this.href?L`<a href="${this.href}" target="${Ie(this.target)}" @click="${this.pushState||null!==this.goBack?this.handleNavigation:null}">${e}</a>`:L`${e}`}onSlotChange(){var t,e;this.hasPrefix=!!(null==(t=this.prefixes)?void 0:t.length),this.hasSuffix=!!(null==(e=this.suffixes)?void 0:e.length)}};pr.styles=[ar,n`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100);--sc-btn-border-style:solid;--sc-btn-border-with:var(--sc-form-border-width);--sc-btn-border-color:transparent;--sc-btn-outline-bg-hover:var(--sc-base-100);--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--sc-btn-bg);color:var(--sc-btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-with) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100)}:host([type=primary]) button{--sc-btn-color:var(--sc-primary-content);--sc-btn-bg:var(--sc-primary)}:host([type=warning]) button{--sc-btn-color:var(--sc-warning-content);--sc-btn-bg:var(--sc-warning)}:host([type=danger]) button{--sc-btn-color:var(--sc-danger-content);--sc-btn-bg:var(--sc-danger)}:host([type=info]) button{--sc-btn-color:var(--sc-info-content);--sc-btn-bg:var(--sc-info)}:host([type=success]) button{--sc-btn-color:var(--sc-success-content);--sc-btn-bg:var(--sc-success)}:host([type=neutral]) button{--sc-btn-color:var(--sc-base);--sc-btn-bg:var(--sc-base-600)}:host([variant=unstyled]),:host([variant=unstyled]) button{all:unset;display:contents;transition:.1s;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--sc-btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--sc-btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--sc-btn-bg);color:var(--sc-btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--sc-btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--sc-btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);overflow:hidden;padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([textAlign=left]) button{text-align:left}:host([textAlign=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1.28em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.35em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none}:host([active]) ::slotted([swap=off]){display:none}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`],hr([it({type:String,reflect:!0})],pr.prototype,"type",2),hr([it({type:String,reflect:!0})],pr.prototype,"variant",2),hr([it({type:String,reflect:!0})],pr.prototype,"size",2),hr([it({type:String,reflect:!0})],pr.prototype,"shape",2),hr([it({type:String})],pr.prototype,"direction",2),hr([it({type:String,reflect:!0})],pr.prototype,"alignItems",2),hr([it({type:String})],pr.prototype,"justify",2),hr([it({type:String,reflect:!0})],pr.prototype,"align",2),hr([it({type:String})],pr.prototype,"minWidth",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"icon",2),hr([it({type:String})],pr.prototype,"autoActive",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"loading",2),hr([nt()],pr.prototype,"hasPrefix",2),hr([nt()],pr.prototype,"hasSuffix",2),hr([dt({flatten:!0,slot:"prefix"})],pr.prototype,"prefixes",2),hr([dt({flatten:!0,slot:"suffix"})],pr.prototype,"suffixes",2),hr([it({type:String})],pr.prototype,"target",2),hr([it({type:String})],pr.prototype,"href",1),hr([it({type:String})],pr.prototype,"goBack",2),hr([it({type:Boolean})],pr.prototype,"pushState",2),hr([it({type:Boolean,reflect:!0})],pr.prototype,"active",2),pr=hr([st(dr)],pr);try{customElements.define(dr,pr)}catch(Va){}class ur{static areEqual(t,e){return t.length===e.length&&t.every(((t,r)=>t===e[r]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:e=>{if(t.length<1)return!0;let r=(t[0]||{})[e];return t.every((t=>(t||{})[e]==r))}})})}),value:()=>({forKey:e=>ur.from(t.map((t=>t[e])))}),copy:()=>({fromKey:e=>({toKey:r=>{t.forEach((t=>{t[r]=Array.isArray(t[e])?[...t[e]]:"object"==typeof t[e]&&null!=t[e]?__spreadValues({},t[e]):t[e]}))}})})}),map:e=>ur.from(t.map(e)),filter:e=>ur.from(t.filter(e)),find:e=>t.find(e),some:e=>t.some(e),every:e=>t.every(e),group:()=>({byKey:e=>{let r=[],s=new Map;for(let o of t){let t=o[e];if(!s.has(t)){let o=r.length;s.set(t,o);let i={items:[]};i[e]=t,r.push(i)}r[s.get(t)].items.push(o)}return ur.from(r)}}),without:()=>({duplicates:()=>({forKey:e=>{let r=[...new Set(t.map((t=>t[e])))];return ur.from(r.map((r=>t.find((t=>t[e]==r)))))}}),itemsIn:e=>({havingSameValue:()=>({forKey:r=>ur.from(t.filter((t=>{return e.every((s=t,o=r,t=>s[o]!=t[o]));var s,o})))})})})}}}const mr=ur,gr=kt,br=xt,fr=ft,vr=Ge,yr=vt,wr=bt,xr=gt,_r=wt;let kr=window;kr["concorde-utils"]=kr["concorde-utils"]||{},kr["concorde-utils"]={Arrays:mr,DataBindObserver:gr,Format:br,HTML:fr,LocationHandler:vr,Objects:yr,PublisherProxy:wr,PublisherManager:xr,api:_r};var Ar=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor;const $r=t=>{class e extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isDefaultLoaderEnabled=!0,this.isFetchEnabled=!0,this._endPoint="",this.dataProvider=""}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(!this.isFetchEnabled)return;if(this.api=new wt(this.getApiConfiguration()),!this.api)return;let t;this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.isLoading=!0,this.requestUpdate();let e=this.isDefaultLoaderEnabled&&!this.hasAttribute("noLoader");e&&Ht.show();let r=xr.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(t=await this.api.get(this.endPoint||this.dataProvider||"",r),!t||t._sonic_http_response_&&!t._sonic_http_response_.ok&&1===Object.keys(t).length)return Ye.add({text:"Network Error",status:"error"}),this.isLoading=!1,void(e&&Ht.hide());if(e&&Ht.hide(),this.key){let e=t._sonic_http_response_;t=vt.traverse(t,this.key.split("."),!1),t&&vt.isObject(t)&&(t._sonic_http_response_=e)}this.props=t,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),this.isFirstLoad=!1}connectedCallback(){var t;if(this.noShadowDom="",!this.isFetchEnabled)return void super.connectedCallback();super.connectedCallback(),this.key=this.getAncestorAttributeValue("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate);null===this.getAncestorAttributeValue("lazyload")&&this._fetchData()}firstUpdated(){if(null===this.getAncestorAttributeValue("lazyload"))return;let t={root:null,rootMargin:Math.max(window.innerWidth,window.innerHeight)+"px"};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),t);let e=this,r=e.shadowRoot?e.shadowRoot.children[0]:e.children[0];r&&"slot"==r.nodeName.toLocaleLowerCase()&&(r=r.children[0]),r&&"template"!=r.nodeName.toLocaleLowerCase()||(r=document.createElement("span"),e.appendChild(r)),r?this.iObserver.observe(r):this.isFirstLoad&&this._fetchData()}onIntersection(t){for(const e of t)e.isIntersecting&&this.isFirstLoad&&this._fetchData()}}return((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Pr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);s&&i&&Ar(e,r,i)})([it({type:String})],e.prototype,"endPoint",1),e};var Cr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor;const Or="sonic-fetch";let Er=class extends($r(Et(et))){render(){return L`<slot></slot>`}};Er.styles=[n`:host{display:contents}`],Er=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Sr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Cr(e,r,i),i})([st(Or)],Er);try{customElements.define(Or,Er)}catch(Va){}var jr=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,Dr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?zr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&jr(e,r,i),i};const Lr="sonic-if";let Mr=class extends et{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?L`<slot></slot>`:N}};Mr.styles=n`:host{display:contents}`,Dr([it({type:Boolean})],Mr.prototype,"condition",2),Mr=Dr([st(Lr)],Mr);try{customElements.define(Lr,Mr)}catch(Va){}
90
+ */,Ve=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Wt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const r=t[s];return null==r?e:e+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const r in e){const t=e[r];null!=t&&(this.ct.add(r),r.includes("-")?s.setProperty(r,t):s[r]=t)}return L}}),Te=n`.custom-scroll{overflow:auto!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;var Re=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,qe=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ue(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Re(e,s,i),i};const Be={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"};let He=class extends et{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0}render(){if(this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(t)[this.id])return N}return this.visible?M`<div class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"><button aria-label="Close" class="sonic-toast-close" @click="${()=>this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status&&M`<sonic-icon name="${Be[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title?M`<div class="sonic-toast-title">${this.title}</div>`:""} ${this.text?Ce(this.text):""}<slot></slot></div>${this.preserve?"":this.autoHide()}</div></div>`:N}hide(){if(this.closest("sonic-toast")||(this.visible=!1),this.dismissForever){const t=localStorage.getItem("sonic-toast-dismissed")||"{}",e=JSON.parse(t);e[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(e))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout((()=>{this.hide()}),4200)}};He.styles=[Te,n`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:999;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`],qe([it({type:String})],He.prototype,"title",2),qe([it({type:String})],He.prototype,"id",2),qe([it({type:String})],He.prototype,"text",2),qe([it({type:String})],He.prototype,"status",2),qe([it({type:Boolean})],He.prototype,"ghost",2),qe([it({type:Boolean})],He.prototype,"preserve",2),qe([it({type:Boolean})],He.prototype,"dismissForever",2),qe([it({type:String})],He.prototype,"maxHeight",2),qe([nt()],He.prototype,"visible",2),He=qe([rt("sonic-toast-item")],He);var We=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,Ze=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ke(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&We(e,s,i),i};let Ye=class extends et{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=!(window.parent==window);let e={pointerEvents:"none",gap:"1rem",display:"flex",margin:"1rem"};return t||(e=__spreadProps(__spreadValues({},e),{margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"999",maxWidth:"64ch",flexDirection:"column-reverse"})),this.toasts?M`<div aria-live="polite" style="${Ve(e)}">${re(this.toasts,(t=>t.id),(e=>M`<sonic-toast-item maxHeight="${t?"none":"10rem"}" status="${Fe(e.status)}" title="${Fe(e.title)}" ?ghost="${e.ghost}" ?dismissForever="${e.dismissForever}" ?preserve="${e.preserve}" id="${Fe(e.id)}" @hide="${()=>this.removeItem(e)}" ${Ae({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}>${e.text?Ce(e.text):""}</sonic-toast-item>`))}</div>`:N}static removeAll(){let t=document.querySelector("sonic-toast");t&&(t.toasts=t.toasts.filter((t=>t.ghost)))}static add(t){var e;if(!document.querySelector("sonic-toast")){let t=document.createElement("sonic-toast");(document.querySelector("sonic-theme")||document.body).prepend(t)}let s=document.querySelector("sonic-toast");const r=null!=(e=t.id)?e:(new Date).valueOf(),o=new RegExp("</a>|</button>").test(t.text),i={id:r,text:t.text,title:t.title,status:t.status,preserve:!!o||t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const e=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(e)[t.id])return null}if(s.toasts.length>0){let t=__spreadValues({},i),e=__spreadValues({},s.toasts[s.toasts.length-1]);if(t.id=e.id=0,!i.preserve&&vt.shallowEqual(t,e))return null}return s.toasts=[...s.toasts,i],i}removeItem(t){this.toasts=this.toasts.filter((e=>e!=t))}};if(Ze([it({type:Array})],Ye.prototype,"toasts",2),Ye=Ze([rt("sonic-toast")],Ye),"undefined"!=typeof window){window.SonicToast=Ye}const Qe=class{static listen(){var t;if(!Qe.listening)return;let e=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");Qe.prevURL&&Qe.prevURL!=e&&(Qe.prevURL=e,Qe.listeners.forEach((t=>{t.location=e}))),window.requestAnimationFrame(Qe.listen)}static offChange(t){let e=Qe.listeners.indexOf(t);-1!=e&&(Qe.listeners.splice(e,1),0==Qe.listeners.length&&(Qe.listening=!1))}static onChange(t){Qe.listening||(Qe.listening=!0,Qe.listen()),Qe.listeners.push(t)}static changeFromComponent(t){if(null!==t.goBack){const e=document.location.origin;let s=t.goBack||e;if(0==document.referrer.indexOf("http")&&new URL(document.referrer).origin==e||s==document.location.href)history.back();else{let t=history.state||{};t.concorde=t.concorde||{},t.concorde.hasDoneHistoryBack=!0,history.pushState(t,document.title),history.back(),document.location.replace(s)}return}let e=t.getAttribute("to");if(e||(e=t.href),!e)return;if(0==e.indexOf("#"))return void(document.location.hash=e.substring(1));let s=new URL(e,document.location.href),r=s.pathname.split("/"),o=[],i="";for(let n of r)n!=i&&o.push(n),i=n;e="/"+o.join("/")+s.search+(s.hash?+s.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if("disabled"!=t.autoActive&&t.href&&0!=t.href.indexOf("http")){let e=new URL(t.href,document.location.href),s=new URL(t.location,document.location.origin),r=!1;r="strict"==t.autoActive?e.pathname==s.pathname&&e.hash==s.hash&&e.search==s.search:0==s.href.indexOf(e.href),r?t.setAttribute("active","true"):t.removeAttribute("active")}}};let Ge=Qe;Ge.listeners=[],Ge.listening=!1,Ge.prevURL=null==(t=document.location)?void 0:t.href.replace(document.location.origin,"");var Je=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,ts=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Xe(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Je(e,s,i),i};const es=new Map,ss=t=>{class e extends t{constructor(...t){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=null,this.onValueAssign=null,this.onFormValueAssign=null,this.onFormDataInValidate=null,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=t=>{this.setValueFromPublisher(t)},this.onFormValueAssign=t=>{this.setFormValueFromPublisher(t)},this.onFormDataInValidate=()=>{this.getFormPublisher().isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(t){this.hasAttribute("name")&&!this.forceAutoFill&&(t=this.getAttribute("name")),this._name=t,this.requestUpdate()}validateFormElement(){}updateDataValue(){if(this._name){let t=this.getFormPublisher();t&&(t[this._name]=this.getValueForFormPublisher(),this.setFormValueFromPublisher(t[this.name].get()))}}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.get(this.formDataProvider):this.publisher}getValueForFormPublisher(){return this.value}setValueFromPublisher(t){this.value=t}setFormValueFromPublisher(t){this.value=t}get value(){return this._value}set value(t){vt.isObject(t)&&t.hasOwnProperty("__value")&&null==t.value||null!=t&&this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}initPublisher(){this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&t[this._name].offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.updateDataValue(),this.publisher&&this._name&&this.publisher[this._name].onAssign(this.onValueAssign),t=this.getFormPublisher(),this._name&&t&&(t[this._name].onAssign(this.onFormValueAssign),t.onInvalidate(this.onFormDataInValidate))}handleBlur(){this.touched=!0}handleChange(t){this.value=t.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){let t=this.getAncestorAttributeValue("data-keyboard-nav");if(!t)return;let e=t.split(" "),s=e[0];if(!s)return;for(let o of e){es.has(o)||es.set(o,[]);let t=es.get(o);-1==t.indexOf(this)&&t.push(this)}let r=es.get(s);this.addEventListener("keydown",(t=>{if(!["ArrowDown","ArrowUp"].includes(t.key))return;let e="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",s=r.filter((t=>{let s=t.shadowRoot.querySelector(e);if(!s)return!1;let r=window.getComputedStyle(s);return"none"!==r.display&&""!==r.display&&"none"!=r.pointerEvents&&"hidden"!==r.visibility&&s.getBoundingClientRect().width>0})),o=null;if("ArrowDown"==t.key){let t=s.indexOf(this);o=t==s.length-1?s[0]:s[t+1]}else if("ArrowUp"==t.key){let t=s.indexOf(this);o=0==t?s[s.length-1]:s[t-1]}let i=o.shadowRoot.querySelector(e);i&&(i.focus(),t.preventDefault())}))}connectedCallback(){super.connectedCallback(),this.addKeyboardNavigation()}disconnectedCallback(){super.disconnectedCallback(),this._name&&this.publisher&&this.publisher[this._name].offAssign(this.onValueAssign);let t=this.getFormPublisher();this._name&&t&&(t[this._name].offAssign(this.onFormValueAssign),t.offInvalidate(this.onFormDataInValidate))}}return ts([it({type:Boolean,reflect:!0})],e.prototype,"touched",2),ts([it({type:Boolean})],e.prototype,"error",2),ts([it({type:Boolean})],e.prototype,"autofocus",2),ts([it({type:Boolean})],e.prototype,"required",2),ts([it()],e.prototype,"forceAutoFill",2),ts([it({type:Boolean})],e.prototype,"disabled",2),ts([it()],e.prototype,"name",1),ts([it()],e.prototype,"value",1),e};var rs=Object.defineProperty,os=Object.getOwnPropertyDescriptor,is=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?os(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&rs(e,s,i),i};const ns=t=>{class e extends t{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null}get value(){return this._value}set value(t){this.hasAttribute("value")&&!this.forceAutoFill&&(t=this.getAttribute("value")),this._value!=t&&(this._value=t,this.updateDataValue(),this.requestUpdate())}get checked(){return this._checked}set checked(t){this.setCheckedValue(t)}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");if(!e||e.checkValidity())return;let s=this.getFormPublisher()[this.name].get();(this.unique||this.radio)&&null!==s&&s.toString().length>0||(this.getFormPublisher().isFormValid=!1,e.reportValidity())}setCheckedValue(t){this._checked!=t&&(this._checked=t,this.updateDataValue(),this.requestUpdate())}handleChange(){this.checked=!this.checked||(!!this.radio||null);const t=new Event("change");this.dispatchEvent(t)}getValueForFormPublisher(){let t=this.getFormPublisher()[this.name].get();if(this.radio)return this.checked&&null!=this.value?this.value:t;if(this.unique)return this.checked&&null!=this.value?this.value:null;Array.isArray(t)||(t=[]),t=t.slice(0);let e=t.indexOf(this.value);return!0===this.checked&&-1===e&&t.push(this.value),null===this.checked&&-1!==e&&t.splice(e,1),t}setFormValueFromPublisher(t){this.unique||this.radio?this.checked=this.value==t||null:(Array.isArray(t)||(t=[]),this.checked=-1!==t.indexOf(this.value)||null)}initPublisher(){super.initPublisher(),this.hasAttribute("checked")&&(this.publisher&&!1===this.publisher.get().checked||(this.checked=!0))}}return is([it()],e.prototype,"value",1),is([it()],e.prototype,"forceAutoFill",2),is([it({type:Boolean})],e.prototype,"unique",2),is([it({type:Boolean})],e.prototype,"radio",2),is([it()],e.prototype,"checked",1),e},as=n`:host{--sc-fs:1rem;font-size:var(--sc-fs)}:host([size="2xs"]){--sc-fs:0.68rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;var ls=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,hs=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?cs(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ls(e,s,i),i};const ds="sonic-button";let ps=class extends(ns(ss(Et(et)))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this._location=""}set href(t){this._href=t,this.href&&0!=this.href.indexOf("http")?(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")):Ge.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(t){t.preventDefault(),Ge.changeFromComponent(this)}handleChange(t){super.handleChange(t),(this.pushState||null!==this.goBack)&&(t.preventDefault(),t.stopPropagation(),Ge.changeFromComponent(this))}connectedCallback(){super.connectedCallback()}setCheckedValue(t){if(this.name){if(t==this._checked)return;super.setCheckedValue(t),this._checked?this.setAttribute("active","true"):this.removeAttribute("active")}}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}render(){const t={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,textAlign:this.align,minWidth:this.minWidth},e=M`<button part="button" class="${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}" style="${Ve(t)}" @click="${this.handleChange}"><slot @slotchange="${this.onSlotChange}" part="prefix" name="prefix"></slot><slot part="main" class="main-slot"></slot><slot @slotchange="${this.onSlotChange}" part="suffix" name="suffix"></slot>${1==this.loading?M`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}</button>`;return this.href?M`<a href="${this.href}" target="${Fe(this.target)}" @click="${this.pushState||null!==this.goBack?this.handleNavigation:null}">${e}</a>`:M`${e}`}onSlotChange(){var t,e;this.hasPrefix=!!(null==(t=this.prefixes)?void 0:t.length),this.hasSuffix=!!(null==(e=this.suffixes)?void 0:e.length)}};ps.styles=[as,n`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100);--sc-btn-border-style:solid;--sc-btn-border-with:var(--sc-form-border-width);--sc-btn-border-color:transparent;--sc-btn-outline-bg-hover:var(--sc-base-100);--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--sc-btn-bg);color:var(--sc-btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-with) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--sc-btn-color:var(--sc-base-content);--sc-btn-bg:var(--sc-base-100)}:host([type=primary]) button{--sc-btn-color:var(--sc-primary-content);--sc-btn-bg:var(--sc-primary)}:host([type=warning]) button{--sc-btn-color:var(--sc-warning-content);--sc-btn-bg:var(--sc-warning)}:host([type=danger]) button{--sc-btn-color:var(--sc-danger-content);--sc-btn-bg:var(--sc-danger)}:host([type=info]) button{--sc-btn-color:var(--sc-info-content);--sc-btn-bg:var(--sc-info)}:host([type=success]) button{--sc-btn-color:var(--sc-success-content);--sc-btn-bg:var(--sc-success)}:host([type=neutral]) button{--sc-btn-color:var(--sc-base);--sc-btn-bg:var(--sc-base-600)}:host([variant=unstyled]),:host([variant=unstyled]) button{all:unset;display:contents;transition:.1s;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--sc-btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--sc-btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--sc-btn-bg);color:var(--sc-btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--sc-btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--sc-btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);overflow:hidden;padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([textAlign=left]) button{text-align:left}:host([textAlign=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1.28em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.35em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none}:host([active]) ::slotted([swap=off]){display:none}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`],hs([it({type:String,reflect:!0})],ps.prototype,"type",2),hs([it({type:String,reflect:!0})],ps.prototype,"variant",2),hs([it({type:String,reflect:!0})],ps.prototype,"size",2),hs([it({type:String,reflect:!0})],ps.prototype,"shape",2),hs([it({type:String})],ps.prototype,"direction",2),hs([it({type:String,reflect:!0})],ps.prototype,"alignItems",2),hs([it({type:String})],ps.prototype,"justify",2),hs([it({type:String,reflect:!0})],ps.prototype,"align",2),hs([it({type:String})],ps.prototype,"minWidth",2),hs([it({type:Boolean,reflect:!0})],ps.prototype,"icon",2),hs([it({type:String})],ps.prototype,"autoActive",2),hs([it({type:Boolean,reflect:!0})],ps.prototype,"loading",2),hs([nt()],ps.prototype,"hasPrefix",2),hs([nt()],ps.prototype,"hasSuffix",2),hs([dt({flatten:!0,slot:"prefix"})],ps.prototype,"prefixes",2),hs([dt({flatten:!0,slot:"suffix"})],ps.prototype,"suffixes",2),hs([it({type:String})],ps.prototype,"target",2),hs([it({type:String})],ps.prototype,"href",1),hs([it({type:String})],ps.prototype,"goBack",2),hs([it({type:Boolean})],ps.prototype,"pushState",2),hs([it({type:Boolean,reflect:!0})],ps.prototype,"active",2),ps=hs([rt(ds)],ps);try{customElements.define(ds,ps)}catch(Qa){}class us{static areEqual(t,e){return t.length===e.length&&t.every(((t,s)=>t===e[s]))}static from2d(t){return{to1D:()=>{let e=[];return t.forEach((t=>e=e.concat(t))),this.from(e)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:e=>{if(t.length<1)return!0;let s=(t[0]||{})[e];return t.every((t=>(t||{})[e]==s))}})})}),value:()=>({forKey:e=>us.from(t.map((t=>t[e])))}),copy:()=>({fromKey:e=>({toKey:s=>{t.forEach((t=>{t[s]=Array.isArray(t[e])?[...t[e]]:"object"==typeof t[e]&&null!=t[e]?__spreadValues({},t[e]):t[e]}))}})})}),map:e=>us.from(t.map(e)),filter:e=>us.from(t.filter(e)),find:e=>t.find(e),some:e=>t.some(e),every:e=>t.every(e),group:()=>({byKey:e=>{let s=[],r=new Map;for(let o of t){let t=o[e];if(!r.has(t)){let o=s.length;r.set(t,o);let i={items:[]};i[e]=t,s.push(i)}s[r.get(t)].items.push(o)}return us.from(s)}}),without:()=>({duplicates:()=>({forKey:e=>{let s=[...new Set(t.map((t=>t[e])))];return us.from(s.map((s=>t.find((t=>t[e]==s)))))}}),itemsIn:e=>({havingSameValue:()=>({forKey:s=>us.from(t.filter((t=>{return e.every((r=t,o=s,t=>r[o]!=t[o]));var r,o})))})})})}}}const ms=us,gs=kt,bs=xt,fs=ft,vs=Ge,ys=vt,ws=bt,xs=gt,_s=wt;let ks=window;ks["concorde-utils"]=ks["concorde-utils"]||{},ks["concorde-utils"]={Arrays:ms,DataBindObserver:gs,Format:bs,HTML:fs,LocationHandler:vs,Objects:ys,PublisherProxy:ws,PublisherManager:xs,api:_s};var As=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor;const Cs=t=>{class e extends t{constructor(...t){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isDefaultLoaderEnabled=!0,this.isFetchEnabled=!0,this._endPoint="",this.dataProvider=""}set endPoint(t){this._endPoint=t,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}async _fetchData(){if(!this.isFetchEnabled)return;if(this.api=new wt(this.getApiConfiguration()),!this.api)return;let t;this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.isLoading=!0,this.requestUpdate();let e=this.isDefaultLoaderEnabled&&!this.hasAttribute("noLoader");e&&Ht.show();let s=xs.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(t=await this.api.get(this.endPoint||this.dataProvider||"",s),!t)return Ye.add({text:"Network Error",status:"error"}),this.isLoading=!1,void(e&&Ht.hide());if(t._sonic_http_response_&&!t._sonic_http_response_.ok&&1===Object.keys(t).length&&Ye.add({text:"Network Error",status:"error"}),e&&Ht.hide(),this.key){let e=t._sonic_http_response_;t=vt.traverse(t,this.key.split("."),!1),t&&vt.isObject(t)&&(t._sonic_http_response_=e)}this.props=t,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.publisher)||t.offInvalidate(this.onInvalidate),this.isFirstLoad=!1}connectedCallback(){var t;if(this.noShadowDom="",!this.isFetchEnabled)return void super.connectedCallback();super.connectedCallback(),this.key=this.getAncestorAttributeValue("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),null==(t=this.publisher)||t.onInvalidate(this.onInvalidate);null===this.getAncestorAttributeValue("lazyload")&&this._fetchData()}firstUpdated(){if(null===this.getAncestorAttributeValue("lazyload"))return;let t={root:null,rootMargin:Math.max(window.innerWidth,window.innerHeight)+"px"};this.iObserver=new IntersectionObserver((t=>this.onIntersection(t)),t);let e=this,s=e.shadowRoot?e.shadowRoot.children[0]:e.children[0];s&&"slot"==s.nodeName.toLocaleLowerCase()&&(s=s.children[0]),s&&"template"!=s.nodeName.toLocaleLowerCase()||(s=document.createElement("span"),e.appendChild(s)),s?this.iObserver.observe(s):this.isFirstLoad&&this._fetchData()}onIntersection(t){for(const e of t)e.isIntersecting&&this.isFirstLoad&&this._fetchData()}}return((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ps(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);r&&i&&As(e,s,i)})([it({type:String})],e.prototype,"endPoint",1),e};var $s=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor;const Os="sonic-fetch";let Es=class extends(Cs(Et(et))){render(){return M`<slot></slot>`}};Es.styles=[n`:host{display:contents}`],Es=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ss(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&$s(e,s,i),i})([rt(Os)],Es);try{customElements.define(Os,Es)}catch(Qa){}var js=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ds=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?zs(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&js(e,s,i),i};const Ms="sonic-if";let Ls=class extends et{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?M`<slot></slot>`:N}};Ls.styles=n`:host{display:contents}`,Ds([it({type:Boolean})],Ls.prototype,"condition",2),Ls=Ds([rt(Ms)],Ls);try{customElements.define(Ms,Ls)}catch(Qa){}
91
91
  /**
92
92
  * @license
93
93
  * Copyright 2020 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
- */const Nr=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Wt)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?M:(this.vt=t,document.importNode(t.content,!0))}});var Fr=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor;const Tr="sonic-subscriber";let Rr=class extends(Et(et)){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),0==this.children.length?this.style.display="none":this.style.display="contents"}render(){return L`<slot></slot>`}};Rr=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ir(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Fr(e,r,i),i})([st(Tr)],Rr);try{customElements.define(Tr,Rr)}catch(Va){}var Vr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Br=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ur(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vr(e,r,i),i};const qr="sonic-list";let Hr=class extends($r(Et(Lt(et)))){constructor(){super(...arguments),this.itemPropertyMap=null,this.templateKey="template",this.idKey="id"}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isDefaultLoaderEnabled=!1,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}renderLoadingState(){return this.templateParts.skeleton?Nr(this.templateParts.skeleton):L`<sonic-loader mode="inline"></sonic-loader>`}renderNoResultState(){return L`<div class="sonic-no-result-container"><sonic-icon name="emoji-puzzled" size="lg"></sonic-icon><span class="sonic-no-result-text">${this.props}</span></div>`}formatProps(){let t=this.props,e=t._sonic_http_response_,r=this.hasAttribute("extractValues");return Array.isArray(t)||(t=r?Object.entries(t).map((([t,e])=>({key:t,value:e}))):!e||e.ok?[t]:[]),t._sonic_http_response_=e,t}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if("string"==typeof this.props)return this.renderNoResultState();if(!vt.isObject(this.props))return L`<div></div>`;let t=this.formatProps();if(0==t.length&&this.templateParts["no-item"])return Nr(this.templateParts["no-item"]);let e=this.templateList.length,r=-1,s=this.hasAttribute("extractValues");return L`${se(t,((t,e)=>t[this.idKey]||e),((t,o)=>{let i=t[this.templateKey],n=i&&this.templateParts[i],a=s?t.key:o;if("_sonic_http_response_"==a)return N;let l=this.publisher[a];return l._key_=a+"",r++,n&&(r=-1),t&&L`<sonic-subscriber debug="${Ie(this.defferedDebug)}" .bindPublisher="${function(){return l}}" .propertyMap="${Ie(this.itemPropertyMap)}" dataProvider="${this.dataProvider}/list-item/${o}">${Nr(n?this.templateParts[i]:this.templateList[r%e])}</sonic-subscriber>`}))}`}};Hr.styles=[n`.sonic-no-result-container{color:var(--sc-base-400);font-size:1.65rem}sonic-icon{margin-right:.25em}span{vertical-align:middle}`],Br([it({type:Object})],Hr.prototype,"itemPropertyMap",2),Br([it({type:String})],Hr.prototype,"templateKey",2),Br([it({type:String})],Hr.prototype,"idKey",2),Hr=Br([st(qr)],Hr);try{customElements.define(qr,Hr)}catch(Va){}var Kr=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Zr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Wr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Kr(e,r,i),i};const Yr="sonic-queue";let Qr=class extends(Et(et)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.targetRequestDuration=500,this.limit=5,this.offset=0,this.filteredFields="",this._displayContents=!1,this.filterPublisher=null,this.filterTimeoutId=void 0,this.dataProviderExpression="",this.idKey="id",this.currentScrollPosition=void 0,this.listDataProviders=[]}set displayContents(t){this._displayContents=t,t?this.style.display="contents":this.style.removeProperty("display"),this.requestUpdate()}get displayContents(){return this._displayContents}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider="sonic-queue-"+Qr.instanceCounter++),this.configFilter(),super.connectedCallback(),this.key=this.getAttribute("key"),this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.next()}configFilter(){var t;let e=this.getAncestorAttributeValue("dataFilterProvider");e&&(this.filterPublisher=gt.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation((()=>{var t;0!=Object.keys(null==(t=this.filterPublisher)?void 0:t.get()).length&&this.updateFilteredContent()})))}updateFilteredContent(){for(let t of this.listDataProviders)gt.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((()=>{this.props=null,this.next()}),250)}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e,r;let s=this.offset;const o=(new Date).getTime()-this.lastRequestTime;if(t&&(!t.detail.isFirstLoad||!t.detail.props.length||-1==this.dataProviderExpression.indexOf("$offset")))return;if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];s=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else this.props=[];o>0&&t&&(this.limit=Math.round(this.limit/o*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",s+"").replace("$limit",this.limit+""),n=i.split("?"),a=n.shift(),l=new URLSearchParams(n.join("?")),c=null==(e=this.filterPublisher)?void 0:e.get(),h=this.filteredFields.split(" ");for(let d in c)this.filteredFields&&!h.includes(d)||l.set(d,c[d]);i=a+"?"+l.toString(),this.listDataProviders.push(i),this.currentScrollPosition=null==(r=document.scrollingElement)?void 0:r.scrollTop,this.props=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:i,offset:s,limit:this.limit}],this.lastRequestTime=(new Date).getTime()}render(){let t=this.displayContents?"contents":"inline";return this.style.display=t,this.currentScrollPosition&&window.requestAnimationFrame((()=>{document.scrollingElement&&(document.scrollingElement.scrollTop=this.currentScrollPosition),this.currentScrollPosition=void 0})),Array.isArray(this.props)?L`${se(this.props,(t=>t.id),((e,r)=>{var s;let o=0==r?this.templates:null==(s=this.templates)?void 0:s.filter((t=>"no-item"!=t.getAttribute("data-value")));return L`<sonic-list fetch style="${t}" .itemPropertyMap="${this.itemPropertyMap}" debug="${Ie(this.defferedDebug)}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${e.dataProvider}" idKey="${this.idKey}" .templates="${o}"></sonic-list>`}))}`:N}};Qr.instanceCounter=0,Zr([it({type:Array})],Qr.prototype,"templates",2),Zr([it({type:Object})],Qr.prototype,"itemPropertyMap",2),Zr([it()],Qr.prototype,"targetRequestDuration",2),Zr([it()],Qr.prototype,"limit",2),Zr([it()],Qr.prototype,"offset",2),Zr([it()],Qr.prototype,"filteredFields",2),Zr([it()],Qr.prototype,"displayContents",1),Zr([it({type:String})],Qr.prototype,"dataProviderExpression",2),Zr([it({type:String})],Qr.prototype,"idKey",2),Qr=Zr([st(Yr)],Qr);try{customElements.define(Yr,Qr)}catch(Va){}var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Xr=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Jr(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Gr(e,r,i),i};const ts="sonic-submit";let es=class extends(Et(et)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",(()=>this.submit())),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",(t=>{"Enter"===t.key&&this.submit()})),super.connectedCallback(),this.api=new wt(this.getApiConfiguration())}async submit(){var t,e,r;const s=gt.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(s.isFormValid=!0,s.invalidate(),!s.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),s.isFormValid;let o=(null==(t=this.getAttribute("method"))?void 0:t.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),n=s.get();delete n.isFormValid;const a=gt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider"));let l=a.get(),c=null,h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;Ht.show();let p=async()=>{var t,e,r,s,a;if(i)c=await(null==(t=this.api)?void 0:t.submitFormData(d,n,l));else switch(o){case"put":c=await(null==(e=this.api)?void 0:e.put(d,n,l));break;case"delete":c=await(null==(r=this.api)?void 0:r.delete(d,n,l));break;case"get":c=await(null==(s=this.api)?void 0:s.get(d,l));break;default:c=await(null==(a=this.api)?void 0:a.post(d,n,l))}Ht.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&1===Object.keys(c).length&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};let h=this.getAncestorAttributeValue("clearedDataOnSuccess");h&&h.split(" ").forEach((t=>gt.get(t).set({}))),this.submitResultKey&&(c=vt.traverse(c,this.submitResultKey.split("."),!0)),gt.getInstance().get(this.getAncestorAttributeValue("submitResultDataProvider")).set(c),this.publisher&&(this.publisher.disabled=null)},u=a.needsCaptchaValidation.get()?a:s.needsCaptchaValidation.get()?s:null;if(u){u.captchaMethod=o,u.captchaAction=null!=(r=null!=(e=null==h?void 0:h.split("?")[0])?e:this.getAncestorAttributeValue("formDataProvider"))?r:"submit",u.captchaToken="request_token";let t=e=>{"request_token"!=e&&(p(),u.captchaToken.offAssign(t))};u.captchaToken.onAssign(t)}else p()}render(){return L`<div ?data-disabled="${this.disabled}"><slot></slot></div>`}};es.styles=n`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`,Xr([it({type:String})],es.prototype,"submitResultKey",2),Xr([it({type:Boolean})],es.prototype,"disabled",2),Xr([it({type:String})],es.prototype,"endPoint",2),es=Xr([st(ts)],es);try{customElements.define(ts,es)}catch(Va){}var rs,ss,os,is,ns="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},as={exports:{}};rs=as,is=[].slice,ss=ns,os=function(){var t,e,r,s,o,i,n,a,l,c,h,d,p,u,m;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var r,s,o;for(o=[],r=-1,s=t.length;++r<s;)o=o.concat(e(t[r]));return o},u=function(t,e){var r,s,o;for(o="",r=-1,s=t.length;++r<s;)o+=e(t[r]);return o},p=function(t){return new RegExp(t.toString()+"|").exec("").length-1},h=function(t,e){var r,s,o,i,n;for(i={},r=-1,o=t.length;++r<o;)s=t[r],null!=(n=e[r])&&(null!=i[s]?(Array.isArray(i[s])||(i[s]=[i[s]]),i[s].push(n)):i[s]=n);return i},(t={}).Result=function(t,e){this.value=t,this.rest=e},t.Tagged=function(t,e){this.tag=t,this.value=e},t.tag=function(e,r){return function(s){var o,i;if(null!=(o=r(s)))return i=new t.Tagged(e,o.value),new t.Result(i,o.rest)}},t.regex=function(e){return function(r){var s,o;if(null!=(s=e.exec(r)))return o=s[0],new t.Result(o,r.slice(o.length))}},t.sequence=function(){var e;return e=1<=arguments.length?is.call(arguments,0):[],function(r){var s,o,i,n,a;for(s=-1,o=e.length,a=[],i=r;++s<o;){if(null==(n=(0,e[s])(i)))return;a.push(n.value),i=n.rest}return new t.Result(a,i)}},t.pick=function(){var e,r;return e=arguments[0],r=2<=arguments.length?is.call(arguments,1):[],function(s){var o,i;if(null!=(i=t.sequence.apply(t,r)(s)))return o=i.value,i.value=o[e],i}},t.string=function(e){var r;return r=e.length,function(s){if(s.slice(0,r)===e)return new t.Result(e,s.slice(r))}},t.lazy=function(t){var e;return e=null,function(r){return null==e&&(e=t()),e(r)}},t.baseMany=function(e,r,s,o,i){var n,a,l;for(a=i,l=s?"":[];(null==r||null==r(a))&&null!=(n=e(a));)s?l+=n.value:l.push(n.value),a=n.rest;if(!o||0!==l.length)return new t.Result(l,a)},t.many1=function(e){return function(r){return t.baseMany(e,null,!1,!0,r)}},t.concatMany1Till=function(e,r){return function(s){return t.baseMany(e,r,!0,!0,s)}},t.firstChoice=function(){var t;return t=1<=arguments.length?is.call(arguments,0):[],function(e){var r,s,o;for(r=-1,s=t.length;++r<s;)if(null!=(o=(0,t[r])(e)))return o}},d=function(e){var r;return(r={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),r.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return r.pattern})),t.string(e.optionalSegmentEndChar))),r.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),r.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return r.name})))),r.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),r.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return r.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),r.wildcard))),r.token=t.lazy((function(){return t.firstChoice(r.wildcard,r.optional,r.named,r.static)})),r.pattern=t.many1(t.lazy((function(){return r.token}))),r},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},i=function(t,e){if(Array.isArray(t))return u(t,(function(t){return i(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+i(t.value,e)+")?"}},o=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+i(t,e)+"$"},s=function(t){if(Array.isArray(t))return n(t,s);switch(t.tag){case"wildcard":return["_"];case"named":return[t.value];case"static":return[];case"optional":return s(t.value)}},c=function(t,e,r,s){var o,i,n;if(null==s&&(s=!1),null!=(n=t[e])){if(!((o=r[e]||0)>(Array.isArray(n)?n.length-1:0)))return i=Array.isArray(n)?n[o]:n,s&&(r[e]=o+1),i;if(s)throw new Error("too few values provided for key `"+e+"`")}else if(s)throw new Error("no values provided for key `"+e+"`")},r=function(t,e,s){var o,i;if(Array.isArray(t)){for(o=-1,i=t.length;++o<i;)if(r(t[o],e,s))return!0;return!1}switch(t.tag){case"wildcard":return null!=c(e,"_",s,!1);case"named":return null!=c(e,t.value,s,!1);case"static":return!1;case"optional":return r(t.value,e,s)}},m=function(t,e,s){if(Array.isArray(t))return u(t,(function(t){return m(t,e,s)}));switch(t.tag){case"wildcard":return c(e,"_",s,!0);case"named":return c(e,t.value,s,!0);case"static":return t.value;case"optional":return r(t.value,e,s)?m(t.value,e,s):""}},(e=function(t,r){var i,n,l;if(t instanceof e)return this.isRegex=t.isRegex,this.regex=t.regex,this.ast=t.ast,void(this.names=t.names);if(this.isRegex=t instanceof RegExp,"string"!=typeof t&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=t,null!=r){if(!Array.isArray(r))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(i=p(this.regex),r.length!==i)throw new Error("regex contains "+i+" groups but array of group names contains "+r.length);this.names=r}}else{if(""===t)throw new Error("argument must not be the empty string");if(t.replace(/\s+/g,"")!==t)throw new Error("argument must not contain whitespace");if(n={escapeChar:(null!=r?r.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=r?r.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=r?r.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=r?r.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=r?r.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=r?r.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=r?r.wildcardChar:void 0)||a.wildcardChar},null==(l=d(n).pattern(t)))throw new Error("couldn't parse pattern");if(""!==l.rest)throw new Error("could only partially parse pattern");this.ast=l.value,this.regex=new RegExp(o(this.ast,n.segmentValueCharset)),this.names=s(this.ast)}}).prototype.match=function(t){var e,r;return null==(r=this.regex.exec(t))?null:(e=r.slice(1),this.names?h(this.names,e):e)},e.prototype.stringify=function(t){if(null==t&&(t={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(t!==Object(t))throw new Error("argument must be an object or undefined");return m(this.ast,t,{})},e.escapeForRegex=l,e.concatMap=n,e.stringConcatMap=u,e.regexGroupCount=p,e.keysAndValuesToObject=h,e.P=t,e.newParser=d,e.defaultOptions=a,e.astNodeToRegexString=o,e.astNodeToNames=s,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=r,e.stringify=m,e},null!==as.exports?rs.exports=os():ss.UrlPattern=os();var ls=as.exports,cs=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,ds=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?hs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&cs(e,r,i),i};const ps="sonic-router";let us=class extends(Et(Lt(et))){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",Ge.onChange(this),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){let t=[];for(let e of this.templatePartsList){let r=e.getAttribute(this.templateValueAttribute),s=new RegExp(r),o=new ls(r);s.test(this.location)?t.push(e):o.match(this.location)&&(e.setAttribute("mode","patternMatching"),t.push(e))}return L`${se(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let r="",s=t.getAttribute("dataProviderExpression");if("patternMatching"==t.getAttribute("mode")){const e=new ls(t.getAttribute(this.templateValueAttribute));r=new ls(s).stringify(e.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute));let i=(this.location+"").match(o);i&&(r=null==(e=i.shift())?void 0:e.replace(o,s))}return L`<div style="display:contents" dataProvider="${r}">${Nr(t)}</div>`}return Nr(t)}))}`}};ds([it()],us.prototype,"location",1),us=ds([st(ps)],us);try{customElements.define(ps,us)}catch(Va){}var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor;const bs="sonic-redirect";let fs=class extends(Et(et)){constructor(){super(...arguments),this.udpateCallBack=()=>{}}connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(!this.props)return;let t=this.getAttribute("onData").split("."),e=vt.traverse(this.props,t);!e||vt.isObject(e)&&e||Ge.changeFromComponent(this)}};fs=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?gs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ms(e,r,i),i})([st(bs)],fs);try{customElements.define(bs,fs)}catch(Va){}var vs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?ys(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&vs(e,r,i),i};const xs="sonic-states";let _s=class extends(Et(Lt(et))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=null}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;let t=this.statePath.split(".");for(let e of t)this.statePublisher=this.statePublisher[e];this.onAssign=t=>{this.state=t,this.requestUpdate()},this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher.offAssign(this.onAssign),super.disconnectedCallback()}render(){let t=[],e=this.state;(!Array.isArray(e)&&vt.isObject(e)||void 0===e)&&(e="");for(let r of this.templatePartsList){let s=r.getAttribute(this.templateValueAttribute),o=e;if(this.inverted&&(o=s,s=e),""==s&&(s=this.inverted?".*?":"^$"),new RegExp(s).test(o))t.push(r),r.removeAttribute("mode");else{let e=new ls(s);e.names.length>0&&e.match(o)&&(r.setAttribute("mode","patternMatching"),t.push(r))}}return L`${se(t,((t,e)=>e+(new Date).getTime()),(t=>{var r;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let s=t.getAttribute("dataProviderExpression"),o="",i=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(i=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new ls(n);o=new ls(s).stringify(t.match(i))}else{const t=new RegExp(n);let e=(i+"").match(t);e&&(o=null==(r=e.shift())?void 0:r.replace(t,s))}return L`<div style="display:contents" dataProvider="${o}">${Nr(t)}</div>`}return Nr(t)}))}`}};ws([it()],_s.prototype,"state",2),ws([it({type:Boolean,reflect:!0})],_s.prototype,"inverted",2),_s=ws([st(xs)],_s);try{customElements.define(xs,_s)}catch(Va){}var ks=Object.defineProperty,As=Object.getOwnPropertyDescriptor;let Ps=class extends et{createRenderRoot(){return this}render(){return L`<slot></slot>`}};Ps=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?As(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ks(e,r,i),i})([st("sonic-scope")],Ps);var $s=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,Ss=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Cs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&$s(e,r,i),i};let Os=class extends(Et(et)){constructor(){super(...arguments),this.text="Example"}render(){return L`${this.text}`}};Ss([it()],Os.prototype,"text",2),Os=Ss([st("sonic-example")],Os);var Es=Object.defineProperty,js=Object.getOwnPropertyDescriptor,zs=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?js(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Es(e,r,i),i};const Ds=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}set type(t){this.hasAttribute("type")&&!this.forceAutoFill&&(t=this.getAttribute("type")),this._type=t,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}}return zs([it()],e.prototype,"forceAutoFill",2),zs([it({type:String})],e.prototype,"type",1),zs([it()],e.prototype,"description",1),zs([it()],e.prototype,"label",1),zs([it({type:Number})],e.prototype,"tabindex",2),zs([it({type:String})],e.prototype,"autocomplete",2),e},Ls=$r,Ms=nr,Ns=rr,Fs=Ds,Is=Et,Ts=Lt;let Rs=window;Rs["concorde-mixins"]=Rs["concorde-mixins"]||{},Rs["concorde-mixins"]={Fetcher:Ls,FormCheckable:Ms,FormElement:Ns,FormInput:Fs,Subscriber:Is,TemplatesContainer:Ts};var Vs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Bs=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Us(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vs(e,r,i),i};let qs=class extends(Ls(Is(et))){connectedCallback(){this.noShadowDom="",this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}get props(){return super.props}async loadJS(t){return new Promise((async e=>{let r=document.createElement("script");r.src=t,r.onload=()=>e(!0),r.onerror=()=>e(!0),document.head.appendChild(r)}))}async loadCSS(t){return new Promise((async e=>{var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,r.onload=()=>e(!0),r.onerror=()=>e(!0),document.head.appendChild(r)}))}set props(t){super.props=t,this.updateContents()}async updateContents(){for(;[...this.children].filter((t=>"SLOT"!=t.nodeName)).length>0;)this.removeChild(this.children[0]);if(!this.props)return;try{if(this.props.js)for(const t of this.props.js)this.loadJS(t);if(this.props.css)for(const t of this.props.css)this.loadCSS(t)}catch(Va){}let t=this.props.nodes;if(t)for(let e of t)this.appendChild(this.parseChild(e))}parseChild(t){let e,r=t.type||"div";if(t.markup)return e=document.createElement("div"),e.style.display="contents",e.innerHTML=t.markup,e;e=t.library&&this.props.library?this.parseChild(this.props.library[t.library]||{type:"div"}):document.createElement(r);let s=t.attributes;for(let o in s){let t=s[o];yr.isObject(t)&&(t=JSON.stringify(t)),e.setAttribute(o,t)}if(t.innerHTML&&(e.innerHTML=t.innerHTML),t.nodes){let r=t.nodes;for(let t of r)e.shadowRoot?e.shadowRoot.appendChild(this.parseChild(t)):e.appendChild(this.parseChild(t))}if(t.prefix||t.suffix){const r=document.createElement("div");return r.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),r.style.display="contents",r}return e}};Bs([it()],qs.prototype,"props",1),qs=Bs([st("sonic-sdui")],qs);const Hs=n`:host{--sc-font-family-base:"Inter var",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base);--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3.5);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * .4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`,Ks=n`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`,Ws=n``,Zs=n`:host([theme=dark]){${Ws}}@media (prefers-color-scheme:dark){:host([theme=auto]){${Ws}}}`;var Ys=n`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-8{padding:2rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
96
- `,Qs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Js=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Gs(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Qs(e,r,i),i};n`${i(Ys)}`;let Xs=class extends et{constructor(){super(...arguments),this.theme="light",this.background=!1,this.color=!1,this.font=!1,this.contrastDarkMode=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),this.postCSSVars()}updated(){this.contrastBg()}postCSSVars(){const t=document.styleSheets,e=t.length;let r=[];for(let s=0;s<e;s++){let e=t[s];e.href&&(e.href.includes("googleapis")||e.href.includes("typekit.net"))&&r.push(e.href)}document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",variables:this.getCssVariables(),fonts:r},"*")}))}receiveMessage(t){let e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){let t=[],e=[...Xs.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(let o of e)try{let e=null==o?void 0:o.cssRules;for(let r of e)if(r.style)for(let e of r.style)t.includes(e)||0!==e.indexOf("--sc")||t.push(e)}catch(Va){}let r=window.getComputedStyle(this),s={};return t.forEach((t=>s[t]=r.getPropertyValue(t))),s}contrast(t,e){let r=parseInt(t.replace("#",""),16),s=Math.round(2.55*e),o=(r>>16)+s,i=(r>>8&255)+s,n=(255&r)+s;return"#"+(16777216+65536*(o<255?o<1?0:o:255)+256*(i<255?i<1?0:i:255)+(n<255?n<1?0:n:255)).toString(16).slice(1)}contrastBg(){if("dark"===this.theme&&this.contrastDarkMode&&this.background){let t=window.getComputedStyle(this).getPropertyValue("--sc-base");this.style.setProperty("--sc-body-bg",this.contrast(t,-2.5))}}render(){return L`<slot></slot>`}};Xs.styles=[Ks,Zs,Hs,n`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([contrastDarkMode]){transition:background-color 2.5s ease}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`],Js([it({type:String,reflect:!0})],Xs.prototype,"theme",2),Js([it({type:Boolean,reflect:!0})],Xs.prototype,"background",2),Js([it({type:Boolean,reflect:!0})],Xs.prototype,"color",2),Js([it({type:Boolean,reflect:!0})],Xs.prototype,"font",2),Js([it({type:Boolean,reflect:!0})],Xs.prototype,"contrastDarkMode",2),Xs=Js([st("sonic-theme")],Xs);var to=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,ro=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?eo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&to(e,r,i),i};const so="sonic-badge";let oo=class extends et{constructor(){super(...arguments),this.type="default",this.variant="default"}render(){return L`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`}};oo.styles=[n`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.16em;--sc-badge-px:0.66em;--sc-badge-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:calc(var(--sc-rounded) * 1000);--sc-badge-line-height:1.15;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-badge-line-height);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border)}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-badge-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-fs:0.58rem;--sc-badge-gap:0.3em}:host([size=xs]){--sc-badge-fs:0.68rem;--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-fs:0.85rem;--sc-badge-gap:0.35em}:host([size=lg]){--sc-badge-line-height:1.2;--sc-badge-fs:1.25rem;--sc-badge-gap:0.5em}:host([size=xl]){--sc-badge-line-height:1.2;--sc-badge-fs:1.5rem;--sc-badge-gap:0.5em}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}`],ro([it({type:String,reflect:!0})],oo.prototype,"type",2),ro([it({type:String,reflect:!0})],oo.prototype,"variant",2),ro([it({type:String,reflect:!0})],oo.prototype,"size",2),oo=ro([st(so)],oo);try{customElements.define(so,oo)}catch(Va){}var io=Object.defineProperty,no=Object.getOwnPropertyDescriptor,ao=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?no(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&io(e,r,i),i};const lo="sonic-link";let co=class extends et{constructor(){super(...arguments),this.href="",this._location="",this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,class{static fixBlankLink(t){const e="undefined"==typeof require?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),Ge.changeFromComponent(this)}render(){return this.href?L`<a href="${this.href}" target="${Ie(this.target)}" @click="${this.pushState?this.handlePushState:null}"><slot></slot></a>`:L`<slot></slot>`}};co.styles=[n`a{color:inherit;text-decoration:none;display:contents}`],ao([it({type:String})],co.prototype,"href",2),ao([it({type:String})],co.prototype,"autoActive",2),ao([it({type:String})],co.prototype,"target",1),ao([it({type:Boolean})],co.prototype,"pushState",2),co=ao([st(lo)],co);try{customElements.define(lo,co)}catch(Va){}var ho=Object.defineProperty,po=Object.getOwnPropertyDescriptor,uo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?po(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ho(e,r,i),i};const mo="sonic-progress";let go=class extends et{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return L`<progress value="${Ie(this.value)}" max="${this.max}"></progress><div class="slot-container"><slot></slot><slot name="remaining"></slot></div>`}};go.styles=[ar,n`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs);color:var(--sc-progress-color)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:var(--sc-base-700)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);color:var(--sc-base-400);font-size:.85em;margin-top:.5em}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`],uo([it({type:Number})],go.prototype,"value",2),uo([it({type:Number})],go.prototype,"max",2),uo([it({type:Boolean})],go.prototype,"invert",2),uo([it({type:String,reflect:!0})],go.prototype,"type",2),uo([it({type:String,reflect:!0})],go.prototype,"size",2),go=uo([st(mo)],go);try{customElements.define(mo,go)}catch(Va){}const bo=n`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-border-width:var(--sc-form-border-width);--sc-input-color:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.6em;--sc-input-px:1.15em;--sc-input-prefix-color:var(--sc-input-color);--sc-input-prefix-bg:var(--sc-input-bg);--sc-input-prefix-border-color:var(--sc-input-border-color);--sc-input-suffix-color:var(--sc-input-color);--sc-input-suffix-bg:var(--sc-input-bg);--sc-input-suffix-border-color:var(--sc-input-border-color);--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-color);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-bg,var(--sc-base,#fff));border:var(--sc-input-border-width) solid var(--sc-input-border-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:calc(-1 * var(--sc-input-px));padding-right:calc(-1 * var(--sc-input-px))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-prefix-bg);color:var(--sc-input-prefix-color);border:var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);margin-right:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-suffix-bg);color:var(--sc-input-suffix-color);border:var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);margin-left:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}:host([inlineContent]){--sc-input-py:0}:host([inlineContent]) .form-element{display:flex;flex-wrap:wrap;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([disabled]) .form-element-container{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;background-color:var(--sc-base-100);border-color:transparent;color:var(--sc-base-400)}::placeholder{color:inherit;opacity:.45}:focus::placeholder{opacity:0}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.form-element .form-element,.form-element>slot{all:unset!important}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-border-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-border-color:var(--sc-danger);--sc-input-color:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-color:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-border-color:var(--sc-success);--sc-input-color:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-color:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}`
95
+ */const Ns=Zt(class extends Yt{constructor(t){if(super(t),t.type!==Kt)throw Error("templateContent can only be used in child bindings")}render(t){return this.vt===t?L:(this.vt=t,document.importNode(t.content,!0))}});var Is=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor;const Vs="sonic-subscriber";let Ts=class extends(Et(et)){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(t){super.updated(t),0==this.children.length?this.style.display="none":this.style.display="contents"}render(){return M`<slot></slot>`}};Ts=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Fs(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Is(e,s,i),i})([rt(Vs)],Ts);try{customElements.define(Vs,Ts)}catch(Qa){}var Rs=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,qs=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Us(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Rs(e,s,i),i};const Bs="sonic-list";let Hs=class extends(Cs(Et(Mt(et)))){constructor(){super(...arguments),this.itemPropertyMap=null,this.templateKey="template",this.idKey="id"}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isDefaultLoaderEnabled=!1,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}renderLoadingState(){return this.templateParts.skeleton?Ns(this.templateParts.skeleton):M`<sonic-loader mode="inline"></sonic-loader>`}renderNoResultState(){return M`<div class="sonic-no-result-container"><sonic-icon name="emoji-puzzled" size="lg"></sonic-icon><span class="sonic-no-result-text">${this.props}</span></div>`}formatProps(){let t=this.props,e=t._sonic_http_response_,s=this.hasAttribute("extractValues");return Array.isArray(t)||(t=s?Object.entries(t).map((([t,e])=>({key:t,value:e}))):!e||e.ok?[t]:[]),t._sonic_http_response_=e,t}render(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if("string"==typeof this.props)return this.renderNoResultState();if(!vt.isObject(this.props))return M`<div></div>`;let t=this.formatProps();if(0==t.length&&this.templateParts["no-item"])return Ns(this.templateParts["no-item"]);let e=this.templateList.length,s=-1,r=this.hasAttribute("extractValues");return M`${re(t,((t,e)=>t[this.idKey]||e),((t,o)=>{let i=t[this.templateKey],n=i&&this.templateParts[i],a=r?t.key:o;if("_sonic_http_response_"==a)return N;let l=this.publisher[a];return l._key_=a+"",s++,n&&(s=-1),t&&M`<sonic-subscriber debug="${Fe(this.defferedDebug)}" .bindPublisher="${function(){return l}}" .propertyMap="${Fe(this.itemPropertyMap)}" dataProvider="${this.dataProvider}/list-item/${o}">${Ns(n?this.templateParts[i]:this.templateList[s%e])}</sonic-subscriber>`}))}`}};Hs.styles=[n`.sonic-no-result-container{color:var(--sc-base-400);font-size:1.65rem}sonic-icon{margin-right:.25em}span{vertical-align:middle}`],qs([it({type:Object})],Hs.prototype,"itemPropertyMap",2),qs([it({type:String})],Hs.prototype,"templateKey",2),qs([it({type:String})],Hs.prototype,"idKey",2),Hs=qs([rt(Bs)],Hs);try{customElements.define(Bs,Hs)}catch(Qa){}var Ws=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Zs=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ks(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ws(e,s,i),i};const Ys="sonic-queue";let Qs=class extends(Et(et)){constructor(){super(...arguments),this.templates=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.targetRequestDuration=500,this.limit=5,this.offset=0,this.filteredFields="",this.filterPublisher=null,this.filterTimeoutId=void 0,this.dataProviderExpression="",this.idKey="id",this.currentScrollPosition=void 0,this.listDataProviders=[]}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider="sonic-queue-"+Qs.instanceCounter++),this.configFilter(),super.connectedCallback(),this.key=this.getAttribute("key"),this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=(new Date).getTime(),this.next()}configFilter(){var t;let e=this.getAncestorAttributeValue("dataFilterProvider");e&&(this.filterPublisher=gt.getInstance().get(e),null==(t=this.filterPublisher)||t.onInternalMutation((()=>{var t;0!=Object.keys(null==(t=this.filterPublisher)?void 0:t.get()).length&&this.updateFilteredContent()})))}updateFilteredContent(){for(let t of this.listDataProviders)gt.delete(t);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout((()=>{this.props=null,this.next()}),250)}resetDuration(){this.lastRequestTime=(new Date).getTime()}next(t){var e,s;let r=this.offset;const o=(new Date).getTime()-this.lastRequestTime;if(t&&(!t.detail.isFirstLoad||!t.detail.props.length||-1==this.dataProviderExpression.indexOf("$offset")))return;if(Array.isArray(this.props)){const t=this.props,e=t[t.length-1];r=parseInt(e.offset.toString())+parseInt(e.limit.toString())}else this.props=[];o>0&&t&&(this.limit=Math.round(this.limit/o*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let i=this.dataProviderExpression.replace("$offset",r+"").replace("$limit",this.limit+""),n=i.split("?"),a=n.shift(),l=new URLSearchParams(n.join("?")),c=null==(e=this.filterPublisher)?void 0:e.get(),h=this.filteredFields.split(" ");for(let d in c)this.filteredFields&&!h.includes(d)||l.set(d,c[d]);i=a+"?"+l.toString(),this.listDataProviders.push(i),this.currentScrollPosition=null==(s=document.scrollingElement)?void 0:s.scrollTop,this.props=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:i,offset:r,limit:this.limit}],this.lastRequestTime=(new Date).getTime()}render(){return this.currentScrollPosition&&window.requestAnimationFrame((()=>{document.scrollingElement&&(document.scrollingElement.scrollTop=this.currentScrollPosition),this.currentScrollPosition=void 0})),Array.isArray(this.props)?M`${re(this.props,(t=>t.id),((t,e)=>{var s;let r=0==e?this.templates:null==(s=this.templates)?void 0:s.filter((t=>"no-item"!=t.getAttribute("data-value")));return M`<sonic-list fetch ?displayContents="${this.displayContents}" .itemPropertyMap="${this.itemPropertyMap}" debug="${Fe(this.defferedDebug)}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${t.dataProvider}" idKey="${this.idKey}" .templates="${r}"></sonic-list>`}))}`:N}};Qs.instanceCounter=0,Zs([it({type:Array})],Qs.prototype,"templates",2),Zs([it({type:Object})],Qs.prototype,"itemPropertyMap",2),Zs([it()],Qs.prototype,"targetRequestDuration",2),Zs([it()],Qs.prototype,"limit",2),Zs([it()],Qs.prototype,"offset",2),Zs([it()],Qs.prototype,"filteredFields",2),Zs([it({type:String})],Qs.prototype,"dataProviderExpression",2),Zs([it({type:String})],Qs.prototype,"idKey",2),Qs=Zs([rt(Ys)],Qs);try{customElements.define(Ys,Qs)}catch(Qa){}var Gs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Xs=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Js(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Gs(e,s,i),i};const tr="sonic-submit";let er=class extends(Et(et)){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.api=null}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",(()=>this.submit())),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",(t=>{"Enter"===t.key&&this.submit()})),super.connectedCallback(),this.api=new wt(this.getApiConfiguration())}async submit(){var t,e,s;const r=gt.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(r.isFormValid=!0,r.invalidate(),!r.isFormValid.get())return;this.publisher&&(this.publisher.disabled=!0),r.isFormValid;let o=(null==(t=this.getAttribute("method"))?void 0:t.toLocaleLowerCase())||"post",i=this.hasAttribute("sendAsFormData"),n=r.get();delete n.isFormValid;const a=gt.getInstance().get(this.getAncestorAttributeValue("headersDataProvider"));let l=a.get(),c=null,h=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||h;Ht.show();let p=async()=>{var t,e,s,r,a;if(i)c=await(null==(t=this.api)?void 0:t.submitFormData(d,n,l));else switch(o){case"put":c=await(null==(e=this.api)?void 0:e.put(d,n,l));break;case"delete":c=await(null==(s=this.api)?void 0:s.delete(d,n,l));break;case"get":c=await(null==(r=this.api)?void 0:r.get(d,l));break;default:c=await(null==(a=this.api)?void 0:a.post(d,n,l))}Ht.hide(),c?c._sonic_http_response_&&!c._sonic_http_response_.ok&&1===Object.keys(c).length&&(c.messages=[{content:"Network Error",status:"error"}]):c={messages:[{content:"Network Error",status:"error"}]};let h=this.getAncestorAttributeValue("clearedDataOnSuccess");h&&h.split(" ").forEach((t=>gt.get(t).set({}))),this.submitResultKey&&(c=vt.traverse(c,this.submitResultKey.split("."),!0)),gt.getInstance().get(this.getAncestorAttributeValue("submitResultDataProvider")).set(c),this.publisher&&(this.publisher.disabled=null)},u=a.needsCaptchaValidation.get()?a:r.needsCaptchaValidation.get()?r:null;if(u){u.captchaMethod=o,u.captchaAction=null!=(s=null!=(e=null==h?void 0:h.split("?")[0])?e:this.getAncestorAttributeValue("formDataProvider"))?s:"submit",u.captchaToken="request_token";let t=e=>{"request_token"!=e&&(p(),u.captchaToken.offAssign(t))};u.captchaToken.onAssign(t)}else p()}render(){return M`<div ?data-disabled="${this.disabled}"><slot></slot></div>`}};er.styles=n`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`,Xs([it({type:String})],er.prototype,"submitResultKey",2),Xs([it({type:Boolean})],er.prototype,"disabled",2),Xs([it({type:String})],er.prototype,"endPoint",2),er=Xs([rt(tr)],er);try{customElements.define(tr,er)}catch(Qa){}var sr,rr,or,ir,nr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ar={exports:{}};sr=ar,ir=[].slice,rr=nr,or=function(){var t,e,s,r,o,i,n,a,l,c,h,d,p,u,m;return l=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},n=function(t,e){var s,r,o;for(o=[],s=-1,r=t.length;++s<r;)o=o.concat(e(t[s]));return o},u=function(t,e){var s,r,o;for(o="",s=-1,r=t.length;++s<r;)o+=e(t[s]);return o},p=function(t){return new RegExp(t.toString()+"|").exec("").length-1},h=function(t,e){var s,r,o,i,n;for(i={},s=-1,o=t.length;++s<o;)r=t[s],null!=(n=e[s])&&(null!=i[r]?(Array.isArray(i[r])||(i[r]=[i[r]]),i[r].push(n)):i[r]=n);return i},(t={}).Result=function(t,e){this.value=t,this.rest=e},t.Tagged=function(t,e){this.tag=t,this.value=e},t.tag=function(e,s){return function(r){var o,i;if(null!=(o=s(r)))return i=new t.Tagged(e,o.value),new t.Result(i,o.rest)}},t.regex=function(e){return function(s){var r,o;if(null!=(r=e.exec(s)))return o=r[0],new t.Result(o,s.slice(o.length))}},t.sequence=function(){var e;return e=1<=arguments.length?ir.call(arguments,0):[],function(s){var r,o,i,n,a;for(r=-1,o=e.length,a=[],i=s;++r<o;){if(null==(n=(0,e[r])(i)))return;a.push(n.value),i=n.rest}return new t.Result(a,i)}},t.pick=function(){var e,s;return e=arguments[0],s=2<=arguments.length?ir.call(arguments,1):[],function(r){var o,i;if(null!=(i=t.sequence.apply(t,s)(r)))return o=i.value,i.value=o[e],i}},t.string=function(e){var s;return s=e.length,function(r){if(r.slice(0,s)===e)return new t.Result(e,r.slice(s))}},t.lazy=function(t){var e;return e=null,function(s){return null==e&&(e=t()),e(s)}},t.baseMany=function(e,s,r,o,i){var n,a,l;for(a=i,l=r?"":[];(null==s||null==s(a))&&null!=(n=e(a));)r?l+=n.value:l.push(n.value),a=n.rest;if(!o||0!==l.length)return new t.Result(l,a)},t.many1=function(e){return function(s){return t.baseMany(e,null,!1,!0,s)}},t.concatMany1Till=function(e,s){return function(r){return t.baseMany(e,s,!0,!0,r)}},t.firstChoice=function(){var t;return t=1<=arguments.length?ir.call(arguments,0):[],function(e){var s,r,o;for(s=-1,r=t.length;++s<r;)if(null!=(o=(0,t[s])(e)))return o}},d=function(e){var s;return(s={}).wildcard=t.tag("wildcard",t.string(e.wildcardChar)),s.optional=t.tag("optional",t.pick(1,t.string(e.optionalSegmentStartChar),t.lazy((function(){return s.pattern})),t.string(e.optionalSegmentEndChar))),s.name=t.regex(new RegExp("^["+e.segmentNameCharset+"]+")),s.named=t.tag("named",t.pick(1,t.string(e.segmentNameStartChar),t.lazy((function(){return s.name})))),s.escapedChar=t.pick(1,t.string(e.escapeChar),t.regex(/^./)),s.static=t.tag("static",t.concatMany1Till(t.firstChoice(t.lazy((function(){return s.escapedChar})),t.regex(/^./)),t.firstChoice(t.string(e.segmentNameStartChar),t.string(e.optionalSegmentStartChar),t.string(e.optionalSegmentEndChar),s.wildcard))),s.token=t.lazy((function(){return t.firstChoice(s.wildcard,s.optional,s.named,s.static)})),s.pattern=t.many1(t.lazy((function(){return s.token}))),s},a={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},i=function(t,e){if(Array.isArray(t))return u(t,(function(t){return i(t,e)}));switch(t.tag){case"wildcard":return"(.*?)";case"named":return"(["+e+"]+)";case"static":return l(t.value);case"optional":return"(?:"+i(t.value,e)+")?"}},o=function(t,e){return null==e&&(e=a.segmentValueCharset),"^"+i(t,e)+"$"},r=function(t){if(Array.isArray(t))return n(t,r);switch(t.tag){case"wildcard":return["_"];case"named":return[t.value];case"static":return[];case"optional":return r(t.value)}},c=function(t,e,s,r){var o,i,n;if(null==r&&(r=!1),null!=(n=t[e])){if(!((o=s[e]||0)>(Array.isArray(n)?n.length-1:0)))return i=Array.isArray(n)?n[o]:n,r&&(s[e]=o+1),i;if(r)throw new Error("too few values provided for key `"+e+"`")}else if(r)throw new Error("no values provided for key `"+e+"`")},s=function(t,e,r){var o,i;if(Array.isArray(t)){for(o=-1,i=t.length;++o<i;)if(s(t[o],e,r))return!0;return!1}switch(t.tag){case"wildcard":return null!=c(e,"_",r,!1);case"named":return null!=c(e,t.value,r,!1);case"static":return!1;case"optional":return s(t.value,e,r)}},m=function(t,e,r){if(Array.isArray(t))return u(t,(function(t){return m(t,e,r)}));switch(t.tag){case"wildcard":return c(e,"_",r,!0);case"named":return c(e,t.value,r,!0);case"static":return t.value;case"optional":return s(t.value,e,r)?m(t.value,e,r):""}},(e=function(t,s){var i,n,l;if(t instanceof e)return this.isRegex=t.isRegex,this.regex=t.regex,this.ast=t.ast,void(this.names=t.names);if(this.isRegex=t instanceof RegExp,"string"!=typeof t&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=t,null!=s){if(!Array.isArray(s))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(i=p(this.regex),s.length!==i)throw new Error("regex contains "+i+" groups but array of group names contains "+s.length);this.names=s}}else{if(""===t)throw new Error("argument must not be the empty string");if(t.replace(/\s+/g,"")!==t)throw new Error("argument must not contain whitespace");if(n={escapeChar:(null!=s?s.escapeChar:void 0)||a.escapeChar,segmentNameStartChar:(null!=s?s.segmentNameStartChar:void 0)||a.segmentNameStartChar,segmentNameCharset:(null!=s?s.segmentNameCharset:void 0)||a.segmentNameCharset,segmentValueCharset:(null!=s?s.segmentValueCharset:void 0)||a.segmentValueCharset,optionalSegmentStartChar:(null!=s?s.optionalSegmentStartChar:void 0)||a.optionalSegmentStartChar,optionalSegmentEndChar:(null!=s?s.optionalSegmentEndChar:void 0)||a.optionalSegmentEndChar,wildcardChar:(null!=s?s.wildcardChar:void 0)||a.wildcardChar},null==(l=d(n).pattern(t)))throw new Error("couldn't parse pattern");if(""!==l.rest)throw new Error("could only partially parse pattern");this.ast=l.value,this.regex=new RegExp(o(this.ast,n.segmentValueCharset)),this.names=r(this.ast)}}).prototype.match=function(t){var e,s;return null==(s=this.regex.exec(t))?null:(e=s.slice(1),this.names?h(this.names,e):e)},e.prototype.stringify=function(t){if(null==t&&(t={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(t!==Object(t))throw new Error("argument must be an object or undefined");return m(this.ast,t,{})},e.escapeForRegex=l,e.concatMap=n,e.stringConcatMap=u,e.regexGroupCount=p,e.keysAndValuesToObject=h,e.P=t,e.newParser=d,e.defaultOptions=a,e.astNodeToRegexString=o,e.astNodeToNames=r,e.getParam=c,e.astNodeContainsSegmentsForProvidedParams=s,e.stringify=m,e},null!==ar.exports?sr.exports=or():rr.UrlPattern=or();var lr=ar.exports,cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,dr=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?hr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&cr(e,s,i),i};const pr="sonic-router";let ur=class extends(Et(Mt(et))){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}connectedCallback(){this.noShadowDom="",Ge.onChange(this),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set location(t){this._location=t,this.requestUpdate()}get location(){return this._location}render(){let t=[];for(let e of this.templatePartsList){let s=e.getAttribute(this.templateValueAttribute),r=new RegExp(s),o=new lr(s);r.test(this.location)?t.push(e):o.match(this.location)&&(e.setAttribute("mode","patternMatching"),t.push(e))}return M`${re(t,((t,e)=>e+(new Date).getTime()),(t=>{var e;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let s="",r=t.getAttribute("dataProviderExpression");if("patternMatching"==t.getAttribute("mode")){const e=new lr(t.getAttribute(this.templateValueAttribute));s=new lr(r).stringify(e.match(this.location))}else{const o=new RegExp(t.getAttribute(this.templateValueAttribute));let i=(this.location+"").match(o);i&&(s=null==(e=i.shift())?void 0:e.replace(o,r))}return M`<div style="display:contents" dataProvider="${s}">${Ns(t)}</div>`}return Ns(t)}))}`}};dr([it()],ur.prototype,"location",1),ur=dr([rt(pr)],ur);try{customElements.define(pr,ur)}catch(Qa){}var mr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor;const br="sonic-redirect";let fr=class extends(Et(et)){constructor(){super(...arguments),this.udpateCallBack=()=>{}}connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(!this.props)return;let t=this.getAttribute("onData").split("."),e=vt.traverse(this.props,t);!e||vt.isObject(e)&&e||Ge.changeFromComponent(this)}};fr=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?gr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&mr(e,s,i),i})([rt(br)],fr);try{customElements.define(br,fr)}catch(Qa){}var vr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,wr=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?yr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&vr(e,s,i),i};const xr="sonic-states";let _r=class extends(Et(Mt(et))){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onAssign=null}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;let t=this.statePath.split(".");for(let e of t)this.statePublisher=this.statePublisher[e];this.onAssign=t=>{this.state=t,this.requestUpdate()},this.statePublisher.onAssign(this.onAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher.offAssign(this.onAssign),super.disconnectedCallback()}render(){let t=[],e=this.state;(!Array.isArray(e)&&vt.isObject(e)||void 0===e)&&(e="");for(let s of this.templatePartsList){let r=s.getAttribute(this.templateValueAttribute),o=e;if(this.inverted&&(o=r,r=e),""==r&&(r=this.inverted?".*?":"^$"),new RegExp(r).test(o))t.push(s),s.removeAttribute("mode");else{let e=new lr(r);e.names.length>0&&e.match(o)&&(s.setAttribute("mode","patternMatching"),t.push(s))}}return M`${re(t,((t,e)=>e+(new Date).getTime()),(t=>{var s;if(t.title&&(document.title=t.title),t.hasAttribute("dataProviderExpression")){let r=t.getAttribute("dataProviderExpression"),o="",i=e,n=t.getAttribute(this.templateValueAttribute);if(this.inverted&&(i=n,n=e),""==n&&(n=this.inverted?"*":"^$"),"patternMatching"==t.getAttribute("mode")){const t=new lr(n);o=new lr(r).stringify(t.match(i))}else{const t=new RegExp(n);let e=(i+"").match(t);e&&(o=null==(s=e.shift())?void 0:s.replace(t,r))}return M`<div style="display:contents" dataProvider="${o}">${Ns(t)}</div>`}return Ns(t)}))}`}};wr([it()],_r.prototype,"state",2),wr([it({type:Boolean,reflect:!0})],_r.prototype,"inverted",2),_r=wr([rt(xr)],_r);try{customElements.define(xr,_r)}catch(Qa){}var kr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor;let Pr=class extends et{createRenderRoot(){return this}render(){return M`<slot></slot>`}};Pr=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ar(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&kr(e,s,i),i})([rt("sonic-scope")],Pr);var Cr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Sr=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?$r(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Cr(e,s,i),i};let Or=class extends(Et(et)){constructor(){super(...arguments),this.text="Example"}render(){return M`${this.text}`}};Sr([it()],Or.prototype,"text",2),Or=Sr([rt("sonic-example")],Or);var Er=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,zr=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?jr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Er(e,s,i),i};const Dr=t=>{class e extends t{constructor(...t){super(),this.forceAutoFill=!1,this._type="text"}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("input");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}set type(t){this.hasAttribute("type")&&!this.forceAutoFill&&(t=this.getAttribute("type")),this._type=t,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}}return zr([it()],e.prototype,"forceAutoFill",2),zr([it({type:String})],e.prototype,"type",1),zr([it()],e.prototype,"description",1),zr([it()],e.prototype,"label",1),zr([it({type:Number})],e.prototype,"tabindex",2),zr([it({type:String})],e.prototype,"autocomplete",2),e},Mr=Cs,Lr=ns,Nr=ss,Ir=Dr,Fr=Et,Vr=Mt;let Tr=window;Tr["concorde-mixins"]=Tr["concorde-mixins"]||{},Tr["concorde-mixins"]={Fetcher:Mr,FormCheckable:Lr,FormElement:Nr,FormInput:Ir,Subscriber:Fr,TemplatesContainer:Vr};class Rr{constructor(){}async transform(t,e){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(let s in e.library)this.sduiDescriptor.library[s]=e.library[s];for(let s of e.transforms)this.transformAction(s)}transformAction(t){let e=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,e)}getNodesMatchingPatterns(t,e){if(!t)return[];if(!e)return[];let s=e.nodes;if(!s)return[];let r=[],o=0;for(let i of t)for(let t of s)this.nodeMatchesPattern(i,t)&&r.push({parent:e,child:t,index:o}),r=r.concat(this.getNodesMatchingPatterns([i],t)),o++;return r}stringMatchesExpression(t,e){return!e||t&&t.match(e)}nodeMatchesPattern(t,e){let s=t,r=e,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(let a of o)if(!this.stringMatchesExpression(r[a],s[a]))return!1;let i=t.attributes,n=e.attributes;if(i&&!n)return!1;if(i)for(let a in i)if(!this.stringMatchesExpression(n[a],i[a]))return!1;return!0}unWrap(t,e){var s,r;for(let o of e)null==(s=o.parent.nodes)||s.splice(o.parent.nodes.indexOf(o.child),1),o.child.nodes&&(null==(r=o.parent.nodes)||r.splice(o.parent.nodes.indexOf(o.child),0,...o.child.nodes))}wrap(t,e){var s,r,o,i,n;let a=__spreadValues({},t.ui);a.nodes||(a.nodes=[]);let l=0;for(let h of e)null==(s=a.nodes)||s.push(h.child),l>0&&(null==(r=h.parent.nodes)||r.splice(h.parent.nodes.indexOf(h.child),1)),l++;let c=null==(o=e[0].parent.nodes)?void 0:o.indexOf(e[0].child);c&&(null==(i=e[0].parent.nodes)||i.splice(c,1),null==(n=e[0].parent.nodes)||n.splice(c,0,a))}move(t,e){var s,r;for(let o of e){null==(s=o.parent.nodes)||s.splice(o.parent.nodes.indexOf(o.child),1);let e=t.after?"after":"before",i=this.getNodesMatchingPatterns([t[e]],this.sduiDescriptor)[0];i&&(null==(r=i.parent.nodes)||r.splice(i.parent.nodes.indexOf(i.child)+("after"==e?1:0),0,o.child))}}remap(t,e){var s,r,o;console.log(e);for(let i of e){let e=__spreadValues({},t.ui);e.attributes||(e.attributes={});let n=i.child.attributes;if(n)for(let t in n)e.attributes.hasOwnProperty("key")||(e.attributes[t]=n[t]);let a=["libraryKey","innerHTML","prefix","suffix","markup"],l=i.child,c=e;for(let t of a)!e.hasOwnProperty(t)&&l[t]&&(c[t]=l[t]);e.nodes||(e.nodes=[]);let h=i.child.nodes;if(h)for(let t of h)e.nodes.push(t);let d=(null==(s=i.parent.nodes)?void 0:s.indexOf(i.child))||-1;-1!=d&&(null==(r=i.parent.nodes)||r.splice(d,1),null==(o=i.parent.nodes)||o.splice(d,0,e))}}delete(t,e){var s;for(let r of e)null==(s=r.parent.nodes)||s.splice(r.parent.nodes.indexOf(r.child),1)}insert(t,e){var s;let r=t.after?"after":t.before?"before":"in",o=this.getNodesMatchingPatterns([t[r]],this.sduiDescriptor)[0];o&&("in"==r?(o.child.nodes||(o.child.nodes=[]),o.child.nodes.push(__spreadValues({},t.ui))):null==(s=o.parent.nodes)||s.splice(o.parent.nodes.indexOf(o.child)+("after"==r?1:0),0,__spreadValues({},t.ui)))}}var Ur=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Br=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?qr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ur(e,s,i),i};let Hr=class extends(Mr(Fr(et))){connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}get props(){return super.props}set props(t){super.props=t,this.updateContents()}async updateContents(){this.removeChildren(),this.props&&(this.loadAssets(),await this.transformSDUIDescriptor(),this.parseRootNodes())}removeChildren(){for(;[...this.children].filter((t=>"SLOT"!=t.nodeName)).length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.props){if(this.props.js)for(const t of this.props.js)fs.loadJS(t);if(this.props.css)for(const t of this.props.css)fs.loadCSS(t)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;let t=await fetch(this.getAttribute("transformation")),e=await t.json(),s=new Rr;await s.transform(this.props,e)}parseRootNodes(){if(!this.props)return;let t=this.props.nodes;t&&t.forEach((t=>this.appendChild(this.parseChild(t))))}parseChild(t){let e=t.tagName||"div",{element:s,contentElement:r}=this.handleLibrary(t,e);if(this.handleAttributes(t,s),s=this.handleMarkup(t,s),r||(r=s),this.handleChildNodes(t,r,s),this.handleInnerHTML(t,r),t.prefix||t.suffix){return this.handlePrefixSuffix(t,s)}return s}handlePrefixSuffix(t,e){const s=document.createElement("div");return s.innerHTML=(t.prefix||"")+e.outerHTML+(t.suffix||""),s.style.display="contents",s}handleChildNodes(t,e,s){if(t.nodes){let r=t.nodes;for(let t of r){let r=this.parseChild(t),o=e;t.parentElementSelector&&(o=s.querySelector(t.parentElementSelector)||e),o.shadowRoot?o.shadowRoot.appendChild(r):o.appendChild(r)}}}handleLibrary(t,e){let s,r;if(t.libraryKey&&this.props.library){s=this.parseChild(this.props.library[t.libraryKey]||{tagName:"div"});let e=(this.props.library[t.libraryKey]||{}).contentElementSelector;e&&(r=s.querySelector(e))}else s=document.createElement(e);return{element:s,contentElement:r}}handleAttributes(t,e){let s=t.attributes;for(let r in s){let t=s[r];ys.isObject(t)&&(t=JSON.stringify(t)),e.setAttribute(r,t)}}handleMarkup(t,e){return t.markup&&((e=document.createElement("div")).style.display="contents",e.innerHTML=t.markup),e}handleInnerHTML(t,e){var s;if(t.innerHTML)if(-1!=t.innerHTML.indexOf("wording_")){let r=this.getAncestorAttributeValue("wordingProvider");null==(s=this.api)||s.post(r,{labels:[t.innerHTML.substring(8)]}).then((t=>{e&&(e.innerHTML+=t)}))}else e&&(e.innerHTML+=t.innerHTML)}};Br([it()],Hr.prototype,"props",1),Hr=Br([rt("sonic-sdui")],Hr);const Wr=n`:host{--sc-font-family-base:"Inter var",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base);--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3.5);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * .4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity) );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity) );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`,Kr=n`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`,Zr=n``,Yr=n`:host([theme=dark]){${Zr}}@media (prefers-color-scheme:dark){:host([theme=auto]){${Zr}}}`;var Qr=n`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where([class~="lead"]):not(:where([class~="not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~="not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~="not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th strong):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(ol):not(:where([class~="not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type="A"]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a"]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="A" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-alpha}.prose :where(ol[type="a" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-alpha}.prose :where(ol[type="I"]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i"]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="I" s]):not(:where([class~="not-prose"] *)){list-style-type:upper-roman}.prose :where(ol[type="i" s]):not(:where([class~="not-prose"] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~="not-prose"] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~="not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol > li):not(:where([class~="not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul > li):not(:where([class~="not-prose"] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~="not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~="not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\\201c""\\201d""\\2018""\\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"] *)):after{content:close-quote}.prose :where(h1):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~="not-prose"] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~="not-prose"] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~="not-prose"] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~="not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~="not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~="not-prose"] *)):before{content:"\`"}.prose :where(code):not(:where([class~="not-prose"] *)):after{content:"\`"}.prose :where(a code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h1 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(h2 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~="not-prose"] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(blockquote code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(thead th code):not(:where([class~="not-prose"] *)){color:inherit}.prose :where(pre):not(:where([class~="not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~="not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~="not-prose"] *)):before{content:none}.prose :where(pre code):not(:where([class~="not-prose"] *)):after{content:none}.prose :where(table):not(:where([class~="not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~="not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~="not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~="not-prose"] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~="not-prose"] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~="not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~="not-prose"] *)){vertical-align:top}.prose{--tw-prose-body: var(--sc-base-content);--tw-prose-headings: var(--sc-base-900);--tw-prose-lead: var(--sc-base-600);--tw-prose-links: var(--sc-base-900);--tw-prose-bold: var(--sc-base-900);--tw-prose-counters: var(--sc-base-500);--tw-prose-bullets: var(--sc-base-300);--tw-prose-hr: var(--sc-base-200);--tw-prose-quotes: var(--sc-base-900);--tw-prose-quote-borders: var(--sc-base-200);--tw-prose-captions: var(--sc-base-500);--tw-prose-code: var(--sc-base-900);--tw-prose-pre-code: var(--sc-base-200);--tw-prose-pre-bg: var(--sc-base-800);--tw-prose-th-borders: var(--sc-base-300);--tw-prose-td-borders: var(--sc-base-200);--tw-prose-invert-body: var(--sc-base-300);--tw-prose-invert-headings: var(--sc-base);--tw-prose-invert-lead: var(--sc-base-400);--tw-prose-invert-links: var(--sc-base);--tw-prose-invert-bold: var(--sc-base);--tw-prose-invert-counters: var(--sc-base-400);--tw-prose-invert-bullets: var(--sc-base-600);--tw-prose-invert-hr: var(--sc-base-700);--tw-prose-invert-quotes: var(--sc-base-100);--tw-prose-invert-quote-borders: var(--sc-base-700);--tw-prose-invert-captions: var(--sc-base-400);--tw-prose-invert-code: var(--sc-base);--tw-prose-invert-pre-code: var(--sc-base-300);--tw-prose-invert-pre-bg: var(--sc-base-900);--tw-prose-invert-th-borders: var(--sc-base-600);--tw-prose-invert-td-borders: var(--sc-base-700);font-size:1rem;line-height:1.75}.prose :where(p):not(:where([class~="not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(video):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~="not-prose"] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~="not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.375em}.prose :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~="not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~="not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~="not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(code):not(:where([class~="not-prose"] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~="not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4285714em}.prose-sm :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.1428571em}.prose-sm :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(hr):not(:where([class~="not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(table):not(:where([class~="not-prose"] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~="not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.prose-sm :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-sm :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-base :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.prose-base :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.25em}.prose-base :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.25em}.prose-base :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-base :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8em;margin-bottom:.8em}.prose-xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.2em}.prose-xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.2em}.prose-xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-2xl :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8333333em;margin-bottom:.8333333em}.prose-2xl :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.prose-2xl :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.prose-2xl :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.prose-2xl :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.prose-tight :where(p,ul,ol,pre):not(:where([class~="not-prose"] *)){line-height:1.25;margin:0 0 .5em}.prose-tight :where(li):not(:where([class~="not-prose"] *)){margin-bottom:.5em}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:-webkit-sticky;position:sticky}.top-0{top:0px}.left-0{left:0px}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.right-4{right:1rem}.top-\\[-1px\\]{top:-1px}.right-5{right:1.25rem}.top-1\\/2{top:50%}.bottom-0{bottom:0px}.-right-1{right:-.25rem}.-bottom-1{bottom:-.25rem}.z-10{z-index:10}.z-20{z-index:20}.z-0{z-index:0}.col-span-full{grid-column:1 / -1}.col-span-3{grid-column:span 3 / span 3}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-top:2rem;margin-bottom:2rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-auto{margin-top:auto;margin-bottom:auto}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-\\[-3vw\\]{margin-left:-3vw;margin-right:-3vw}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.mb-1{margin-bottom:.25rem}.mb-6{margin-bottom:1.5rem}.mr-4{margin-right:1rem}.mb-2{margin-bottom:.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mb-5{margin-bottom:1.25rem}.mt-8{margin-top:2rem}.mr-3{margin-right:.75rem}.mt-\\[\\.15em\\]{margin-top:.15em}.mb-10{margin-bottom:2.5rem}.mb-7{margin-bottom:1.75rem}.mb-12{margin-bottom:3rem}.mb-3{margin-bottom:.75rem}.mt-2{margin-top:.5rem}.ml-\\[\\.10em\\]{margin-left:.1em}.ml-3{margin-left:.75rem}.mt-4{margin-top:1rem}.mt-1{margin-top:.25rem}.mr-2{margin-right:.5rem}.mt-3{margin-top:.75rem}.ml-auto{margin-left:auto}.mb-\\[2em\\]{margin-bottom:2em}.mr-1{margin-right:.25rem}.mb-20{margin-bottom:5rem}.ml-2{margin-left:.5rem}.mr-\\[\\.25em\\]{margin-right:.25em}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-1\\/2{height:50%}.h-96{height:24rem}.max-h-\\[10rem\\]{max-height:10rem}.w-full{width:100%}.w-72{width:18rem}.w-12{width:3rem}.w-20{width:5rem}.w-2{width:.5rem}.w-5{width:1.25rem}.w-10\\/12{width:83.333333%}.w-24{width:6rem}.w-\\[1\\.2em\\]{width:1.2em}.min-w-full{min-width:100%}.min-w-max{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.min-w-\\[11rem\\]{min-width:11rem}.min-w-\\[5rem\\]{min-width:5rem}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.max-w-\\[80ch\\]{max-width:80ch}.max-w-\\[32rem\\]{max-width:32rem}.max-w-\\[20rem\\]{max-width:20rem}.max-w-none{max-width:none}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-\\[minmax\\(0\\,1fr\\)\\,minmax\\(0\\,4fr\\)\\]{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-\\[1fr\\,_2fr\\]{grid-template-columns:1fr 2fr}.grid-cols-\\[minmax\\(0\\,_3fr\\)_minmax\\(0\\,_2fr\\)\\]{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[minmax\\(6rem\\,_min\\(20\\%\\,_10rem\\)\\)\\,_1fr\\]{grid-template-columns:minmax(6rem,min(20%,10rem)) 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.gap-5{gap:1.25rem}.gap-8{gap:2rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-10{gap:2.5rem}.gap-1{gap:.25rem}.gap-6{gap:1.5rem}.gap-\\[1\\.5em\\]{gap:1.5em}.gap-\\[\\.2rem_\\.7rem\\]{gap:.2rem .7rem}.gap-\\[\\.25em\\]{gap:.25em}.gap-x-10{-moz-column-gap:2.5rem;column-gap:2.5rem}.gap-x-\\[\\.75em\\]{-moz-column-gap:.75em;column-gap:.75em}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:var(--sc-rounded-lg)}.rounded-md{border-radius:var(--sc-rounded-md)}.rounded{border-radius:var(--sc-rounded)}.rounded-full{border-radius:9999px}.rounded-t-md{border-top-left-radius:var(--sc-rounded-md);border-top-right-radius:var(--sc-rounded-md)}.border{border-width:var(--sc-border-width)}.border-b-\\[1px\\]{border-bottom-width:1px}.border-solid{border-style:solid}.border-dotted{border-style:dotted}.border-success{border-color:var(--sc-success)}.border-t-neutral-200{border-top-color:var(--sc-base-200)}.border-b-neutral-100{border-bottom-color:var(--sc-base-100)}.border-b-neutral-300{border-bottom-color:var(--sc-base-300)}.bg-danger{background-color:var(--sc-danger)}.bg-neutral-0{background-color:var(--sc-base)}.bg-neutral-200{background-color:var(--sc-base-200)}.bg-contrast{background-color:var(--sc-contrast)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,10\\,\\.2\\)\\]{--tw-gradient-from: rgba(0,0,10,.2);--tw-gradient-to: rgb(0 0 10 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-7{padding:1.75rem}.p-8{padding:2rem}.p-4{padding:1rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-\\[3vw\\]{padding-left:3vw;padding-right:3vw}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.pt-20{padding-top:5rem}.pr-3{padding-right:.75rem}.pt-\\[\\.06em\\]{padding-top:.06em}.text-center{text-align:center}.font-headings{font-family:var(--sc-headings-font-family)}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-black{font-weight:900}.font-medium{font-weight:500}.font-extrabold{font-weight:800}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-none{line-height:1}.leading-tight{line-height:1.25}.text-neutral-0{color:var(--sc-base)}.text-neutral-300{color:var(--sc-base-300)}.text-primary{color:var(--sc-primary)}.text-neutral-500{color:var(--sc-base-500)}.text-contrast-content{color:var(--sc-contrast-content)}.text-neutral-400{color:var(--sc-base-400)}.text-info{color:var(--sc-info)}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_2rem_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0 2rem rgba(0,0,0,.2);--tw-shadow-colored: 0 0 2rem var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-danger{--tw-shadow-color: var(--sc-danger);--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[display\\:none\\]{display:none}.hover\\:text-neutral-400:hover{color:var(--sc-base-400)}.group:hover .group-hover\\:underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.prose-img\\:rounded-lg :is(:where(img):not(:where([class~="not-prose"] *))){border-radius:var(--sc-rounded-lg)}@media (min-width: 640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 768px){.md\\:block{display:block}.md\\:hidden{display:none}.md\\:grid-cols-\\[minmax\\(0\\,2fr\\)\\,minmax\\(0\\,5fr\\)\\]{grid-template-columns:minmax(0,2fr) minmax(0,5fr)}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:prose-lg{font-size:1.125rem;line-height:1.7777778}.lg\\:prose-lg :where(p):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em}.lg\\:prose-lg :where([class~="lead"]):not(:where([class~="not-prose"] *)){font-size:1.2222222em;line-height:1.4545455;margin-top:1.0909091em;margin-bottom:1.0909091em}.lg\\:prose-lg :where(blockquote):not(:where([class~="not-prose"] *)){margin-top:1.6666667em;margin-bottom:1.6666667em;padding-left:1em}.lg\\:prose-lg :where(h1):not(:where([class~="not-prose"] *)){font-size:2.6666667em;margin-top:0;margin-bottom:.8333333em;line-height:1}.lg\\:prose-lg :where(h2):not(:where([class~="not-prose"] *)){font-size:1.6666667em;margin-top:1.8666667em;margin-bottom:1.0666667em;line-height:1.3333333}.lg\\:prose-lg :where(h3):not(:where([class~="not-prose"] *)){font-size:1.3333333em;margin-top:1.6666667em;margin-bottom:.6666667em;line-height:1.5}.lg\\:prose-lg :where(h4):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-lg :where(img):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(video):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure):not(:where([class~="not-prose"] *)){margin-top:1.7777778em;margin-bottom:1.7777778em}.lg\\:prose-lg :where(figure > *):not(:where([class~="not-prose"] *)){margin-top:0;margin-bottom:0}.lg\\:prose-lg :where(figcaption):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5;margin-top:1em}.lg\\:prose-lg :where(code):not(:where([class~="not-prose"] *)){font-size:.8888889em}.lg\\:prose-lg :where(h2 code):not(:where([class~="not-prose"] *)){font-size:.8666667em}.lg\\:prose-lg :where(h3 code):not(:where([class~="not-prose"] *)){font-size:.875em}.lg\\:prose-lg :where(pre):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.75;margin-top:2em;margin-bottom:2em;border-radius:.375rem;padding:1em 1.5em}.lg\\:prose-lg :where(ol):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(ul):not(:where([class~="not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.5555556em}.lg\\:prose-lg :where(li):not(:where([class~="not-prose"] *)){margin-top:.6666667em;margin-bottom:.6666667em}.lg\\:prose-lg :where(ol > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(ul > li):not(:where([class~="not-prose"] *)){padding-left:.4444444em}.lg\\:prose-lg :where(.prose > ul > li p):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(.prose > ul > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ul > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:first-child):not(:where([class~="not-prose"] *)){margin-top:1.3333333em}.lg\\:prose-lg :where(.prose > ol > li > *:last-child):not(:where([class~="not-prose"] *)){margin-bottom:1.3333333em}.lg\\:prose-lg :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="not-prose"] *)){margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-lg :where(hr):not(:where([class~="not-prose"] *)){margin-top:3.1111111em;margin-bottom:3.1111111em}.lg\\:prose-lg :where(hr + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h2 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h3 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(h4 + *):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(table):not(:where([class~="not-prose"] *)){font-size:.8888889em;line-height:1.5}.lg\\:prose-lg :where(thead th):not(:where([class~="not-prose"] *)){padding-right:.75em;padding-bottom:.75em;padding-left:.75em}.lg\\:prose-lg :where(thead th:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(thead th:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(tbody td,tfoot td):not(:where([class~="not-prose"] *)){padding:.75em}.lg\\:prose-lg :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="not-prose"] *)){padding-left:0}.lg\\:prose-lg :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="not-prose"] *)){padding-right:0}.lg\\:prose-lg :where(.prose > :first-child):not(:where([class~="not-prose"] *)){margin-top:0}.lg\\:prose-lg :where(.prose > :last-child):not(:where([class~="not-prose"] *)){margin-bottom:0}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:w-1\\/2{width:50%}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1280px){.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.xl\\:text-lg{font-size:1.125rem;line-height:1.75rem}.xl\\:text-2xl{font-size:1.5rem;line-height:2rem}}
96
+ `,Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Xr=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Jr(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Gr(e,s,i),i};n`${i(Qr)}`;let to=class extends et{constructor(){super(...arguments),this.theme="light",this.background=!1,this.color=!1,this.font=!1,this.contrastDarkMode=!1}connectedCallback(){super.connectedCallback(),window.addEventListener("message",(t=>this.receiveMessage(t)),!1),this.postCSSVars()}updated(){this.contrastBg()}postCSSVars(){const t=document.styleSheets,e=t.length;let s=[];for(let r=0;r<e;r++){let e=t[r];e.href&&(e.href.includes("googleapis")||e.href.includes("typekit.net"))&&s.push(e.href)}document.querySelectorAll("iframe").forEach((t=>{var e;return null==(e=t.contentWindow)?void 0:e.postMessage({type:"SonicTheme",variables:this.getCssVariables(),fonts:s},"*")}))}receiveMessage(t){let e=t.data;e.type&&"GetSonicTheme"==e.type&&this.postCSSVars()}getCssVariables(){let t=[],e=[...to.styles.map((t=>t.styleSheet)),...Array.from(document.styleSheets)];for(let o of e)try{let e=null==o?void 0:o.cssRules;for(let s of e)if(s.style)for(let e of s.style)t.includes(e)||0!==e.indexOf("--sc")||t.push(e)}catch(Qa){}let s=window.getComputedStyle(this),r={};return t.forEach((t=>r[t]=s.getPropertyValue(t))),r}contrast(t,e){let s=parseInt(t.replace("#",""),16),r=Math.round(2.55*e),o=(s>>16)+r,i=(s>>8&255)+r,n=(255&s)+r;return"#"+(16777216+65536*(o<255?o<1?0:o:255)+256*(i<255?i<1?0:i:255)+(n<255?n<1?0:n:255)).toString(16).slice(1)}contrastBg(){if("dark"===this.theme&&this.contrastDarkMode&&this.background){let t=window.getComputedStyle(this).getPropertyValue("--sc-base");this.style.setProperty("--sc-body-bg",this.contrast(t,-2.5))}}render(){return M`<slot></slot>`}};to.styles=[Kr,Yr,Wr,n`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([contrastDarkMode]){transition:background-color 2.5s ease}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`],Xr([it({type:String,reflect:!0})],to.prototype,"theme",2),Xr([it({type:Boolean,reflect:!0})],to.prototype,"background",2),Xr([it({type:Boolean,reflect:!0})],to.prototype,"color",2),Xr([it({type:Boolean,reflect:!0})],to.prototype,"font",2),Xr([it({type:Boolean,reflect:!0})],to.prototype,"contrastDarkMode",2),to=Xr([rt("sonic-theme")],to);var eo=Object.defineProperty,so=Object.getOwnPropertyDescriptor,ro=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?so(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&eo(e,s,i),i};const oo="sonic-badge";let io=class extends et{constructor(){super(...arguments),this.type="default",this.variant="default"}render(){return M`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`}};io.styles=[n`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.16em;--sc-badge-px:0.66em;--sc-badge-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:calc(var(--sc-rounded) * 1000);--sc-badge-line-height:1.15;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-badge-line-height);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border)}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-badge-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-fs:0.58rem;--sc-badge-gap:0.3em}:host([size=xs]){--sc-badge-fs:0.68rem;--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-fs:0.85rem;--sc-badge-gap:0.35em}:host([size=lg]){--sc-badge-line-height:1.2;--sc-badge-fs:1.25rem;--sc-badge-gap:0.5em}:host([size=xl]){--sc-badge-line-height:1.2;--sc-badge-fs:1.5rem;--sc-badge-gap:0.5em}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}`],ro([it({type:String,reflect:!0})],io.prototype,"type",2),ro([it({type:String,reflect:!0})],io.prototype,"variant",2),ro([it({type:String,reflect:!0})],io.prototype,"size",2),io=ro([rt(oo)],io);try{customElements.define(oo,io)}catch(Qa){}var no=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,lo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?ao(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&no(e,s,i),i};const co="sonic-link";let ho=class extends et{constructor(){super(...arguments),this.href="",this._location="",this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(t){this._location=t,Ge.updateComponentActiveState(this)}connectedCallback(){this.href&&0!=this.href.indexOf("http")&&(Ge.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),super.connectedCallback()}disconnectedCallback(){Ge.offChange(this),super.disconnectedCallback()}set target(t){this._target=t,class{static fixBlankLink(t){const e="undefined"==typeof require?null:require("electron");"_blank"==t.target&&t.addEventListener("click",(()=>{null==e||e.shell.openExternal(t.href)}))}}.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(t){t.preventDefault(),Ge.changeFromComponent(this)}render(){return this.href?M`<a href="${this.href}" target="${Fe(this.target)}" @click="${this.pushState?this.handlePushState:null}"><slot></slot></a>`:M`<slot></slot>`}};ho.styles=[n`a{color:inherit;text-decoration:none;display:contents}`],lo([it({type:String})],ho.prototype,"href",2),lo([it({type:String})],ho.prototype,"autoActive",2),lo([it({type:String})],ho.prototype,"target",1),lo([it({type:Boolean})],ho.prototype,"pushState",2),ho=lo([rt(co)],ho);try{customElements.define(co,ho)}catch(Qa){}var po=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,mo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?uo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&po(e,s,i),i};const go="sonic-progress";let bo=class extends et{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default",this.size="md"}render(){return M`<progress value="${Fe(this.value)}" max="${this.max}"></progress><div class="slot-container"><slot></slot><slot name="remaining"></slot></div>`}};bo.styles=[as,n`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs);color:var(--sc-progress-color)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:var(--sc-base-700)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);color:var(--sc-base-400);font-size:.85em;margin-top:.5em}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`],mo([it({type:Number})],bo.prototype,"value",2),mo([it({type:Number})],bo.prototype,"max",2),mo([it({type:Boolean})],bo.prototype,"invert",2),mo([it({type:String,reflect:!0})],bo.prototype,"type",2),mo([it({type:String,reflect:!0})],bo.prototype,"size",2),bo=mo([rt(go)],bo);try{customElements.define(go,bo)}catch(Qa){}const fo=n`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-border-width:var(--sc-form-border-width);--sc-input-color:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.6em;--sc-input-px:1.15em;--sc-input-prefix-color:var(--sc-input-color);--sc-input-prefix-bg:var(--sc-input-bg);--sc-input-prefix-border-color:var(--sc-input-border-color);--sc-input-suffix-color:var(--sc-input-color);--sc-input-suffix-bg:var(--sc-input-bg);--sc-input-suffix-border-color:var(--sc-input-border-color);--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-color);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-bg,var(--sc-base,#fff));border:var(--sc-input-border-width) solid var(--sc-input-border-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:calc(-1 * var(--sc-input-px));padding-right:calc(-1 * var(--sc-input-px))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-prefix-bg);color:var(--sc-input-prefix-color);border:var(--sc-input-border-width) solid var(--sc-input-prefix-border-color);margin-right:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-suffix-bg);color:var(--sc-input-suffix-color);border:var(--sc-input-border-width) solid var(--sc-input-suffix-border-color);margin-left:calc(-1 * var(--sc-input-border-width))}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}:host([inlineContent]){--sc-input-py:0}:host([inlineContent]) .form-element{display:flex;flex-wrap:wrap;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([disabled]) .form-element-container{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;background-color:var(--sc-base-100);border-color:transparent;color:var(--sc-base-400)}::placeholder{color:inherit;opacity:.45}:focus::placeholder{opacity:0}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.form-element .form-element,.form-element>slot{all:unset!important}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-border-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-border-color:var(--sc-danger);--sc-input-color:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-color:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-border-color:var(--sc-success);--sc-input-color:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-color:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}`
97
97
  /**
98
98
  * @license
99
99
  * Copyright 2018 Google LLC
100
100
  * SPDX-License-Identifier: BSD-3-Clause
101
- */,fo=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,s;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.et.add(t);return this.render(e)}const o=t.element.classList;this.et.forEach((t=>{t in e||(o.remove(t),this.et.delete(t))}));for(const i in e){const t=!!e[i];t===this.et.has(i)||(null===(s=this.st)||void 0===s?void 0:s.has(i))||(t?(o.add(i),this.et.add(i)):(o.remove(i),this.et.delete(i)))}return M}});var vo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,wo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?yo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&vo(e,r,i),i};const xo="sonic-input";let _o=class extends(Ds(rr(Et(et)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}inlineContentFocus(){var t;this.inlineContent&&(console.log("oypouaze"),null==(t=this.input)||t.focus())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${fo(t)}"><div class="${this.inlineContent?"form-element form-element-wrapper":"contents"}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${Ie(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${Ie(this.list)}" tabindex="${Ie(this.tabindex)}" pattern="${Ie(this.pattern)}" min="${Ie(this.min)}" max="${Ie(this.max)}" step="${Ie(this.step)}" src="${Ie(this.src)}" minlength="${Ie(this.minlength)}" maxlength="${Ie(this.maxlength)}" placeholder="${Ie(this.placeholder)}" required="${Ie(this.required)}" autocomplete="${Ie(this.autocomplete)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};_o.styles=[ar,bo],wo([it({type:String,reflect:!0})],_o.prototype,"size",2),wo([it({type:String})],_o.prototype,"list",2),wo([it({type:String})],_o.prototype,"placeholder",2),wo([it({type:String})],_o.prototype,"pattern",2),wo([it({type:String})],_o.prototype,"min",2),wo([it({type:String})],_o.prototype,"max",2),wo([it({type:Boolean})],_o.prototype,"readonly",2),wo([it({type:Number})],_o.prototype,"step",2),wo([it({type:Number})],_o.prototype,"minlength",2),wo([it({type:Number})],_o.prototype,"maxlength",2),wo([it({type:String})],_o.prototype,"src",2),wo([it({type:Boolean,reflect:!0})],_o.prototype,"inlineContent",2),wo([pt({slot:"label"})],_o.prototype,"slotLabelNodes",2),wo([pt({slot:"description"})],_o.prototype,"slotDescriptionNodes",2),wo([pt({slot:"suffix"})],_o.prototype,"slotSuffixNodes",2),wo([pt({slot:"prefix"})],_o.prototype,"slotPrefixNodes",2),wo([lt("input")],_o.prototype,"input",2),wo([nt()],_o.prototype,"hasDescription",2),wo([nt()],_o.prototype,"hasLabel",2),wo([nt()],_o.prototype,"hasSuffix",2),wo([nt()],_o.prototype,"hasPrefix",2),_o=wo([st(xo)],_o);try{customElements.define(xo,_o)}catch(Va){}var ko=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,Po=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ao(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ko(e,r,i),i};const $o="sonic-checkbox";let Co=class extends(nr(Ds(rr(Et(et))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.hasDescription=!1}updated(){var t;this.hasDescription=!(!this.description&&!(null==(t=this.slotDescriptionNodes)?void 0:t.length))}connectedCallback(){this.type="checkbox",super.connectedCallback()}render(){return L`<label class="checkbox-container ${this.disabled?"disabled":""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${Ie(this.disabled)}" .checked="${Ie(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label?this.label:""}<slot></slot><slot name="description" class="${this.hasDescription?"description":"hidden"}">${this.description?L`${this.description}`:""}</slot></div></label>`}};Co.styles=[ar,n`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-base-200);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-primary-content)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked=true]{background:var(--sc-primary)}input:checked+sonic-icon,input[checked=true]+sonic-icon{transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`],Po([it({type:Boolean,reflect:!0})],Co.prototype,"touched",2),Po([it({type:String})],Co.prototype,"iconName",2),Po([pt({slot:"description"})],Co.prototype,"slotDescriptionNodes",2),Po([it({type:Boolean})],Co.prototype,"hasDescription",2),Co=Po([st($o)],Co);try{customElements.define($o,Co)}catch(Va){}var So=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor;const Eo="sonic-radio";let jo=class extends Co{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};jo.styles=[Co.styles,n`:host input{border-radius:50%}:host sonic-icon{border-radius:50%;overflow:hidden;background-color:var(--sc-primary-content);line-height:0;display:block;font-size:0;height:10px;width:10px}`],jo=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Oo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&So(e,r,i),i})([st(Eo)],jo);try{customElements.define(Eo,jo)}catch(Va){}var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Lo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Do(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&zo(e,r,i),i};const Mo="sonic-select";let No=class extends(rr(Et(et))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this._options=[],this._value="",this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t,!this.value&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}get value(){return this._value}set value(t){t&&this._value!=t&&(this._value=t,this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.getInstance().get(this.formDataProvider)[this._name]=t:this.publisher&&(this.publisher[this._name]=t),this.requestUpdate())}connectedCallback(){super.connectedCallback();let t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text}))))}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control ${fo(t)}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><div class="form-select-wrapper"><select @change="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Ie(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${Ie(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element">${se(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey]?"selected":null;return L`<option selected="${Ie(e)}" value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`}))}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};No.styles=[bo,n`.form-element{appearance:none;padding-right:2.5em}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:1em;top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-color)}option{padding:.1rem 5rem;color:var(--sc-base-content);background:var(--sc-base)}`],Lo([it({type:String})],No.prototype,"valueKey",2),Lo([it({type:String})],No.prototype,"wordingKey",2),Lo([it({type:Boolean})],No.prototype,"multiple",2),Lo([it({type:String,reflect:!0})],No.prototype,"size",2),Lo([it({type:Number})],No.prototype,"selectSize",2),Lo([it({type:Array})],No.prototype,"options",1),Lo([it()],No.prototype,"value",1),Lo([it({type:Boolean})],No.prototype,"forceAutoFill",2),Lo([it()],No.prototype,"description",1),Lo([it()],No.prototype,"label",1),Lo([pt({slot:"label"})],No.prototype,"slotLabelNodes",2),Lo([pt({slot:"description"})],No.prototype,"slotDescriptionNodes",2),Lo([pt({slot:"suffix"})],No.prototype,"slotSuffixNodes",2),Lo([pt({slot:"prefix"})],No.prototype,"slotPrefixNodes",2),Lo([nt()],No.prototype,"hasDescription",2),Lo([nt()],No.prototype,"hasLabel",2),Lo([nt()],No.prototype,"hasSuffix",2),Lo([nt()],No.prototype,"hasPrefix",2),No=Lo([st(Mo)],No);try{customElements.define(Mo,No)}catch(Va){}var Fo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,To=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Io(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Fo(e,r,i),i};const Ro="sonic-textarea";let Vo=class extends(Ds(rr(Et(et)))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.slotClasses={}}updated(){var t,e,r,s;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(r=this.slotSuffixNodes)?void 0:r.length),this.hasPrefix=!!(null==(s=this.slotPrefixNodes)?void 0:s.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){return L`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?this.label:""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control"><textarea @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Ie(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${Ie(this.rows)}" cols="${Ie(this.cols)}" maxlength="${Ie(this.maxlength)}" minlength="${Ie(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${Ie(this.spellcheck)}" autocomplete="${Ie(this.autocomplete)}" tabindex="${Ie(this.tabindex)}" wrap="${Ie(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll">
102
- ${this.value}</textarea></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?L`${this.description}`:""}</slot>`}};Vo.styles=[bo,Re,n`textarea{font-size:inherit}`],To([it({type:String})],Vo.prototype,"size",2),To([it({type:Number})],Vo.prototype,"rows",2),To([it({type:Number})],Vo.prototype,"cols",2),To([it({type:Number})],Vo.prototype,"maxlength",2),To([it({type:Number})],Vo.prototype,"minlength",2),To([it({type:String})],Vo.prototype,"wrap",2),To([it({type:Boolean})],Vo.prototype,"readonly",2),To([it({type:String})],Vo.prototype,"placeholder",2),To([pt({slot:"label"})],Vo.prototype,"slotLabelNodes",2),To([pt({slot:"description"})],Vo.prototype,"slotDescriptionNodes",2),To([pt({slot:"suffix"})],Vo.prototype,"slotSuffixNodes",2),To([pt({slot:"prefix"})],Vo.prototype,"slotPrefixNodes",2),To([nt()],Vo.prototype,"hasDescription",2),To([nt()],Vo.prototype,"hasLabel",2),To([nt()],Vo.prototype,"hasSuffix",2),To([nt()],Vo.prototype,"hasPrefix",2),To([it()],Vo.prototype,"slotClasses",2),Vo=To([st(Ro)],Vo);try{customElements.define(Ro,Vo)}catch(Va){}var Uo=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,qo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Bo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Uo(e,r,i),i};const Ho="sonic-fieldset";let Ko=class extends(Et(et)){constructor(){super(...arguments),this.disabled=!1}render(){return L`<fieldset form="${Ie(this.form)}" ?disabled="${this.disabled}"><slot></slot></fieldset>`}};Ko.styles=[n`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-base-200);--sc-fieldset-border-width:var(--sc-form-border-width);margin-top:var(--sc-fieldset-mt);margin-bottom:var(--sc-fieldset-mb);display:block;border:var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color)!important;padding:1.8rem 1.25rem;border-radius:var(--sc-rounded-lg)}fieldset{all:unset;display:contents}::slotted(sonic-legend){margin-bottom:1.5rem;display:block}`],qo([it({type:Boolean,reflect:!0})],Ko.prototype,"disabled",2),qo([it({type:String})],Ko.prototype,"form",2),Ko=qo([st(Ho)],Ko);try{customElements.define(Ho,Ko)}catch(Va){}var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor;let Yo=class extends et{render(){return L`<slot></slot>`}};Yo.styles=[n`:host{color:var(--sc-neutral-500);font-size:1.25rem;line-height:1.2;display:block;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base);margin-top:.25em}`],Yo=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Zo(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Wo(e,r,i),i})([st("sonic-legend-description")],Yo);try{customElements.define("sonic-legend-description",Yo)}catch(Va){}var Qo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,Jo=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Go(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Qo(e,r,i),i};const Xo="sonic-legend";let ti=class extends et{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return L`<legend part="legend">${this.iconName?L`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${Ie(this.iconPrefix)}" library="${Ie(this.iconLibrary)}"></sonic-icon></div>`:""}<div class="legend-content">${this.label} ${this.description?L`<sonic-legend-description>${this.description}</sonic-legend-description>`:""}<slot></slot></div><slot name="suffix"></slot></legend>`}};ti.styles=[n`:host{--sc-legend-font-size:1.75rem;--sc-legend-font-weight:var(--sc-font-weight-base);--sc-legend-font-style:var(--sc-headings-font-style);--sc-legend-family:var(--sc-headings-font-family);--sc-legend-line-height:var(--sc-headings-line-height);display:flex;width:100%}legend{font-size:var(--sc-legend-font-size);font-weight:var(--sc-legend-font-weight);font-style:var(--sc-legend-font-style);font-family:var(--sc-legend-font-family);line-height:var(--sc-legend-line-height);padding:0;display:flex;width:100%;align-items:flex-start;gap:.5em}slot[name=suffix]{display:block;margin-left:auto;flex-shrink:0}.legend-content{flex-grow:1}`],Jo([it({type:Boolean})],ti.prototype,"forceAutoFill",2),Jo([it()],ti.prototype,"description",1),Jo([it()],ti.prototype,"label",1),Jo([it({type:String})],ti.prototype,"iconName",2),Jo([it({type:String})],ti.prototype,"iconLibrary",2),Jo([it({type:String})],ti.prototype,"iconPrefix",2),ti=Jo([st(Xo)],ti);try{customElements.define(Xo,ti)}catch(Va){}class ei{constructor(t,{target:e,config:r,callback:s,skipInitial:o}){this.t=!1,this.i=!1,this.callback=()=>!0,(this.h=t).addController(this),this.o=null===e||null!=e?e:this.h,this.l=r,this.t=null!=o?o:this.t,this.callback=null!=s?s:this.callback,window.ResizeObserver?this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback(t,this.u)}hostConnected(){this.o&&this.observe(this.o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.t&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}var ri=Object.defineProperty,si=Object.getOwnPropertyDescriptor;const oi="sonic-form-layout";let ii=class extends(Et(et)){constructor(){super(...arguments),this._resizeController=new ei(this,{})}render(){return L`<div class="${this.offsetWidth>440?"cq--md":""}"><slot></slot></div>`}};ii.styles=[n`:host{display:block}div{display:grid;grid-gap:1.5rem;align-items:flex-start}.cq--md{grid-gap:1.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}::slotted(sonic-checkbox),::slotted(sonic-divider),::slotted(sonic-form-actions),::slotted(sonic-radio),::slotted(sonic-textarea){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`],ii=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?si(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ri(e,r,i),i})([st(oi)],ii);try{customElements.define(oi,ii)}catch(Va){}var ni=Object.defineProperty,ai=Object.getOwnPropertyDescriptor;const li="sonic-form-actions";let ci=class extends et{render(){return L`<slot></slot>`}};ci.styles=[n`:host{display:flex;gap:.3rem}`],ci=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ai(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ni(e,r,i),i})([st(li)],ci);try{customElements.define(li,ci)}catch(Va){}var hi=Object.defineProperty,di=Object.getOwnPropertyDescriptor;const pi="sonic-group";let ui=class extends et{updated(){const t=this.querySelectorAll("sonic-input, sonic-button"),e=t.length;e>1&&t.forEach(((t,r)=>{0===r?(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0")):r===e-1?(t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0")):(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0"),t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0"))}))}render(){return L`<slot></slot>`}};ui.styles=[n`:host{display:inline-flex;vertical-align:middle}slot{width:100%;display:flex;align-items:flex-end}`],ui=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?di(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&hi(e,r,i),i})([st(pi)],ui);try{customElements.define(pi,ui)}catch(Va){}var mi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,bi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?gi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&mi(e,r,i),i};const fi="sonic-image";let vi=class extends et{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return L`<div part="image"><picture part="picture"><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style="${Te(t)}"></picture></div>`}};vi.styles=[n`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}`],bi([it({type:String})],vi.prototype,"rounded",2),bi([it({type:String})],vi.prototype,"src",2),bi([it({type:String})],vi.prototype,"alt",2),bi([it({type:String})],vi.prototype,"loading",2),bi([it({type:String})],vi.prototype,"ratio",2),bi([it({type:String})],vi.prototype,"objectPosition",2),bi([it({type:String})],vi.prototype,"imageRendering",2),bi([it({type:Boolean,reflect:!0})],vi.prototype,"cover",2),vi=bi([st(fi)],vi);try{customElements.define(fi,vi)}catch(Va){}var yi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor,xi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?wi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&yi(e,r,i),i};let _i=class extends et{constructor(){super(...arguments),this.icon={},this.taxonomy=[],this.separator=",&nbsp;",this.key="",this.type="default",this.variant="default",this.size="md"}render(){if(!this.taxonomy)return N;let t=this.key+"_display",e=this.taxonomy.filter((e=>null!=e&&(!0===e[t]||"1"==e[t]||!e.hasOwnProperty(t))));return 0===e.length?(this.style.display="none",N):(this.style.removeProperty("display"),L`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${Ie(this.icon.library)}" prefix="${Ie(this.icon.prefix)}" name="${Ie(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${se(e,(t=>t[this.key+"_id"]),(t=>L`<span>${t[this.key+"_name"]}</span><span class="sonic-taxonomy-separator">${$e(this.separator)}</span>`))}</span></sonic-badge>`)}};_i.styles=n`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`,xi([it({type:Object})],_i.prototype,"icon",2),xi([it({type:Array})],_i.prototype,"taxonomy",2),xi([it({type:String})],_i.prototype,"separator",2),xi([it({type:String})],_i.prototype,"key",2),xi([it({type:String,reflect:!0})],_i.prototype,"type",2),xi([it({type:String,reflect:!0})],_i.prototype,"variant",2),xi([it({type:String,reflect:!0})],_i.prototype,"size",2),_i=xi([st("sonic-taxonomy")],_i);try{customElements.define("sonic-taxonomy",_i)}catch(Va){}var ki=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor;const Pi="sonic-menu-item";let $i=class extends pr{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block"),this.hasAttribute("align")||(this.align="left"),super.connectedCallback()}};$i=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ai(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ki(e,r,i),i})([st(Pi)],$i);try{customElements.define(Pi,$i)}catch(Va){}var Ci=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Oi=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Si(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Ci(e,r,i),i};const Ei="sonic-menu";let ji=class extends et{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.minWidth="0",this.hasMoreElements=!1}checkIfMore(){var t;this.hasMoreElements=!!(null==(t=this.moreElements)?void 0:t.length)}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size);this.querySelectorAll("sonic-divider").forEach((t=>{t.hasAttribute("size")||t.setAttribute("size","xs")})),super.updated(t)}mainSlotChange(){this.setChildrenSize(this.menuChildren)}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.setAttribute("align",this.align),"row"==this.direction&&"block"==t.getAttribute("shape")&&t.setAttribute("shape","default")}))}render(){const t={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},e="row"==this.direction,r={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},s={marginLeft:e?"":".55em"};return L`<menu part="menu" class="shadowable" style="${Te(t)}"><slot @slotchange="${this.mainSlotChange}"></slot><sonic-pop style="${Te(r)}" class="${this.hasMoreElements?"":"hidden"}"><sonic-menu-item style="${Te(s)}" class="more-btn" shape="${this.moreShape}" align="center"><sonic-icon size="xl" name="${e?"more-vert":"more-horiz"}"></sonic-icon></sonic-menu-item><slot name="more" @slotchange="${this.checkIfMore}" slot="content"></slot></sonic-pop></menu>`}};ji.styles=[n`:host{display:block;--sc-menu-gap:.15rem}:host>menu{display:flex;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em);margin:0;padding:.35em}.hidden{display:none!important}:host([shadow=md]) .shadowable,:host([shadow=true]) .shadowable,:host([shadow]) .shadowable{box-shadow:var(--sc-shadow)}:host([shadow=sm]) .shadowable{box-shadow:var(--sc-shadow-sm)}:host([shadow=lg]) .shadowable{box-shadow:var(--sc-shadow-lg)}:host([shadow=none]) .shadowable{box-shadow:none}`],Oi([it({type:String,reflect:!0})],ji.prototype,"size",2),Oi([it({type:String,reflect:!0})],ji.prototype,"direction",2),Oi([it({type:String})],ji.prototype,"gap",2),Oi([it({type:String,reflect:!0})],ji.prototype,"align",2),Oi([it({type:String,reflect:!0})],ji.prototype,"shadow",2),Oi([it({type:String})],ji.prototype,"moreShape",2),Oi([it({type:String})],ji.prototype,"minWidth",2),Oi([dt({selector:"sonic-menu-item"})],ji.prototype,"menuChildren",2),Oi([dt({slot:"more",selector:"*"})],ji.prototype,"moreElements",2),Oi([nt()],ji.prototype,"hasMoreElements",2),ji=Oi([st(Ei)],ji);try{customElements.define(Ei,ji)}catch(Va){}var zi=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Li=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Di(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&zi(e,r,i),i};const Mi="sonic-modal-actions";let Ni=class extends et{firstUpdated(){var t;null==(t=this.buttons)||t.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=this.closest("sonic-modal");null==t||t.hide()}}))}))}render(){return L`<slot></slot>`}};Ni.styles=[n`:host{display:flex;gap:.5rem;margin-top:auto;padding-top:1rem}`],Li([dt({selector:"sonic-button"})],Ni.prototype,"buttons",2),Ni=Li([st(Mi)],Ni);try{customElements.define(Mi,Ni)}catch(Va){}var Fi=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor;const Ti="sonic-modal-title";let Ri=class extends et{render(){return L`<slot></slot>`}};Ri.styles=[n`:host{font-weight:700;font-size:1.5rem;display:block;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],Ri=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ii(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Fi(e,r,i),i})([st(Ti)],Ri);try{customElements.define(Ti,Ri)}catch(Va){}var Vi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor;const Bi="sonic-modal-subtitle";let qi=class extends et{render(){return L`<slot></slot>`}};qi.styles=[n`:host{font-size:1.1rem;display:block;text-transform:uppercase;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],qi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ui(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Vi(e,r,i),i})([st(Bi)],qi);try{customElements.define(Bi,qi)}catch(Va){}var Hi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor;const Wi="sonic-modal-content";let Zi=class extends et{render(){return L`<slot></slot>`}};Zi.styles=[n`:host{display:block}`],Zi=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ki(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Hi(e,r,i),i})([st(Wi)],Zi);try{customElements.define(Wi,Zi)}catch(Va){}var Yi=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor;const Gi="sonic-modal-close";let Ji=class extends et{render(){return L`<sonic-button shape="circle" variant="ghost" @click="${this.handleClick}"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>`}handleClick(){this.closest("sonic-modal").hide()}};Ji.styles=[n`:host{position:absolute;right:.6rem;top:.6rem;z-index:20}`],Ji=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Qi(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Yi(e,r,i),i})([st(Gi)],Ji);try{customElements.define(Gi,Ji)}catch(Va){}var Xi=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?tn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Xi(e,r,i),i};const rn="sonic-modal";let sn=class extends(Et(et)){constructor(){super(...arguments),this.hideOnOverlayClick=!0,this.hideOnEscape=!0,this.align="center",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(rn);return e.innerHTML=`<sonic-modal-close></sonic-modal-close><sonic-modal-content>${t.content}</sonic-modal-content>`||"",(document.querySelector("sonic-theme")||document.body).appendChild(e),e.show(),e}connectedCallback(){super.connectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}render(){if(0==this.visible)return N;this.handleFullsceen();const t={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},e={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return L`<div class="modal-wrapper" style="${Te(e)}" ${Ae({out:be})} tabindex="0"><div part="modal" class="modal custom-scroll" style="${Te(t)}" ${Ae({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${this.hideOnOverlayClick?this.hide:""}" ${Ae({keyframeOptions:{duration:500},in:fe,out:[{opacity:0,pointerEvents:"none"}]})}></div>`}show(){var t,e;this.visible=!0,null==(t=this.modalElement)||t.setAttribute("tabindex","0"),null==(e=this.modalElement)||e.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var t;this.visible=!1,null==(t=this.modalElement)||t.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide"))}dispose(){this.hide(),this.remove()}handleEscape(t){if("Escape"===t.key){[...document.querySelectorAll(rn)].forEach((t=>{1==this.hideOnEscape&&t.hide()}))}}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};if(sn.styles=[Re,n`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-content:var(--sc-base-content);--sc-modal-bg:var(--sc-base);--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-scrollbar-bg:var(--sc-base-300);--sc-modal-rounded:var(--sc-rounded-lg)}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:990;text-align:center;align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{overflow-y:auto;display:flex;flex-direction:column;text-align:center;align-items:center;min-height:10rem}.modal{background:var(--sc-base);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-base-200);left:0;top:0;right:0;bottom:0;z-index:900;opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1rem}::slotted(sonic-modal-subtitle){margin-top:-.45rem;margin-bottom:1rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`],en([it({type:Boolean,reflect:!0})],sn.prototype,"hideOnOverlayClick",2),en([it({type:Boolean,reflect:!0})],sn.prototype,"hideOnEscape",2),en([it({type:String,reflect:!0})],sn.prototype,"align",2),en([it({type:String})],sn.prototype,"padding",2),en([it({type:String})],sn.prototype,"maxWidth",2),en([it({type:String})],sn.prototype,"maxHeight",2),en([it({type:String})],sn.prototype,"width",2),en([it({type:String})],sn.prototype,"height",2),en([it({type:Boolean,reflect:!0})],sn.prototype,"fullScreen",2),en([it({type:Boolean,reflect:!0})],sn.prototype,"visible",2),en([lt(".modal-wrapper")],sn.prototype,"modalWrapper",2),en([lt(".modal")],sn.prototype,"modalElement",2),en([dt({selector:"sonic-modal-close"})],sn.prototype,"closeBtn",2),sn=en([st(rn)],sn),"undefined"!=typeof window){window.SonicModal=sn}try{customElements.define(rn,sn)}catch(Va){}var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,an=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?nn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&on(e,r,i),i};const ln={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},cn="sonic-alert";let hn=class extends et{constructor(){super(...arguments),this.label="",this.text="",this.background=!1,this.status="default"}render(){return L`<div part="alert" class="alert"><div>${this.status&&L`<sonic-icon name="${ln[this.status]}"></sonic-icon>`}</div><div>${this.label?L`<span class="label">${this.label}</span>`:N}<slot>${this.text}</slot></div></div>`}};hn.styles=[ar,n`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}z .label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`],an([it({type:String})],hn.prototype,"label",2),an([it({type:String})],hn.prototype,"text",2),an([it({type:String,reflect:!0})],hn.prototype,"size",2),an([it({type:Boolean,reflect:!0})],hn.prototype,"background",2),an([it({type:String,reflect:!0})],hn.prototype,"status",2),hn=an([st(cn)],hn);try{customElements.define(cn,hn)}catch(Va){}var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,un=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?pn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&dn(e,r,i),i};let mn=class extends(Et(et)){constructor(){super(...arguments),this._messages=[],this.success=null,this.status=null,this._message="",this._data=""}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&Ye.add({text:t.content,status:t.status})}))}get message(){return this._message}set message(t){this._message=t,this.message&&!1===this.props.success&&(this.props.public_message||Ye.add({text:this.message,status:"error"}))}get data(){return this._data}set data(t){this._data=t;const e={text:"Votre produit a bien été ajouté",status:"success"};Array.isArray(this.data)&&!0===this.props.success&&Ye.add(e),""==this.data&&!0===this.props.status&&Ye.add(e),!1===this.props.success&&(this.props.public_message||Ye.add({text:this.data,status:"error"}))}render(){return N}};un([it({type:Boolean})],mn.prototype,"success",2),un([it({type:Boolean})],mn.prototype,"status",2),un([it({type:Array})],mn.prototype,"messages",1),un([it({type:String})],mn.prototype,"message",1),un([it()],mn.prototype,"data",1),mn=un([st("sonic-toast-message-subscriber")],mn);var gn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,fn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?bn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&gn(e,r,i),i};const vn="sonic-tooltip";let yn=class extends et{constructor(){super(...arguments),this.label="",this.disabled=!1}render(){let t=this.disabled||""==this.label?"disabled":"";return L`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${t}"><slot></slot></div>`}};yn.styles=[n`.tooltip{position:relative;display:flex;align-items:center;text-align:center}.tooltip:before{position:absolute;content:attr(data-tooltip-text);font-size:.85rem;display:block;opacity:0;pointer-events:none;bottom:calc(100% + .25rem);left:50%;transform:translateX(-50%);background:var(--sc-base-content,#111827);padding:.25rem;border-radius:.25rem;color:var(--sc-base,#fff);z-index:999;display:none;line-height:1.1;width:max-content;max-width:20rem}.tooltip:not(.disabled):hover:before{opacity:1;display:block}`],fn([it({type:String})],yn.prototype,"label",2),fn([it({type:Boolean})],yn.prototype,"disabled",2),yn=fn([st(vn)],yn);try{customElements.define(vn,yn)}catch(Va){}var wn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,_n=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?xn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&wn(e,r,i),i};const kn="sonic-pop";let An=class extends et{constructor(){super(...arguments),this.open=!1,this.toggle="true",this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN}runPositioning(){this.positioningRuns&&(this.positioningRuns=!0,this._setUpMenu(this.placement),window.requestAnimationFrame((()=>this.runPositioning())))}_toggle(t){this.open&&"false"==this.toggle||("keydown"!=t.type||"ArrowDown"==t.key&&!this.open)&&(this.open=!this.open,this.open?this._show():this._hide())}_show(){this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN,this.runPositioning())}_hide(){this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1}_handleClosePop(t){let e=t.composedPath(),r=e[0];An.pops.forEach((s=>{const o=e.includes(s),i=e.includes(s.querySelector('[slot="content"]')),n="keep"===ft.getAncestorAttributeValue(r,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&n||!i)||s._hide()}))}connectedCallback(){super.connectedCallback(),0==An.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),An.pops.add(this)}disconnectedCallback(){super.disconnectedCallback(),An.pops.delete(this),0==An.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}_setUpMenu(t){var e;const r=null==(e=this.popContent)?void 0:e.getBoundingClientRect(),s=this.getBoundingClientRect();if(!this.offsetParent)return;let o=this.offsetParent.getBoundingClientRect(),i=s.left-o.left,n=s.top-o.top,a=i,l=n,c=n-r.height-8,h=i-r.width-16,d=i+s.width+16,p=n+s.height+8;switch(t){case"bottom":l=p;break;case"top":l=c;break;case"left":a=h;break;case"right":a=d}let u=window.innerWidth-d-o.left-r.width-20;u<0&&"right"===t&&(a=h),u<0&&["top","bottom"].includes(t)&&(a=Math.max(a+u,h+s.width)),-o.left-h>20&&"left"===t&&(a=d);let m=window.innerHeight-p-o.top-r.height-20;m<0&&"bottom"===t&&(l=c),m<0&&["left","right"].includes(t)&&(l=Math.max(l+m,c+s.height)),-o.top-c>-20&&"top"===t&&(l=p),this.lastContentX=a,this.lastContentY=l,Object.assign(this.popContent.style,{left:`${a}px`,top:`${l}px`})}render(){return L`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open?"is-open":""}"></slot>`}};An.pops=new Set,An.styles=[n`:host{display:inline-block;vertical-align:middle}slot[name=content]{background-color:var(--sc-base);position:absolute;z-index:50;display:block;transform:translateY(1rem) scale(.95);opacity:0;pointer-events:none;transition-duration:.15s;transition-timing-function:ease;transition-property:all;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em)}slot[name=content].is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto;transition-property:scale,opacity;transition-timing-function:cubic-bezier(.25,.25,.42,1.225)}:host([shadow=md]) slot[name=content],:host([shadow=true]) slot[name=content],:host([shadow]) slot[name=content]{box-shadow:var(--sc-shadow)}:host([shadow=sm]) slot[name=content]{box-shadow:var(--sc-shadow-sm)}:host([shadow=none]) slot[name=content]{box-shadow:none}:host([shadow=lg]) slot[name=content]{box-shadow:var(--sc-shadow-lg)}:host([inline]){vertical-align:baseline}`],_n([nt()],An.prototype,"open",2),_n([lt("slot:not([name=content])")],An.prototype,"popBtn",2),_n([lt("slot[name=content]")],An.prototype,"popContent",2),_n([it({type:String})],An.prototype,"toggle",2),_n([it({type:Boolean,reflect:!0})],An.prototype,"inline",2),_n([it({type:String,reflect:!0})],An.prototype,"shadow",2),_n([it({type:String})],An.prototype,"placement",2),An=_n([st(kn)],An);try{customElements.define(kn,An)}catch(Va){}var Pn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Cn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?$n(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Pn(e,r,i),i};let Sn=class extends et{constructor(){super(...arguments),this.label="",this.align="center"}firstUpdated(){var t,e;(this.label||(null==(t=this.slotNodes)?void 0:t.length))&&(null==(e=this.divider)||e.classList.add("has-text"))}render(){return L`<div part="divider"><span class="text">${this.label}<slot></slot></span></div>`}};Sn.styles=[n`:host{--sc-divider-my:0.5rem;--sc-divider-mx:0;--sc-divider-border-width:min(2px, 0.15rem);--sc-divider-border-color:var(--sc-base-200);--sc-divider-border-style:solid;--sc-divider-color:var(--sc-base-500);--sc-divider-ff:var(--sc-font-family-base);--sc-divider-fs:1rem;--sc-divider-fw:var(--sc-font-weight-base);--sc-divider-fst:var(--sc-font-style-base);margin:var(--sc-divider-my) var(--sc-divider-mx);font-size:var(--sc-divider-fs);font-style:var(--sc-divider-fst);font-family:var(--sc-divider-ff);font-weight:var(--sc-divider-fw);color:var(--sc-divider-color);display:block}:host([size="2xs"]){--sc-divider-my:0.35rem;--sc-divider-fs:0.68rem}:host([size=xs]){--sc-divider-my:0.5rem;--sc-divider-fs:0.75rem}:host([size=sm]){--sc-divider-my:0.75rem;--sc-divider-fs:0.875rem}:host([size=md]){--sc-divider-my:1.25rem}:host([size=lg]){--sc-divider-my:1.85rem}:host([size=xl]){--sc-divider-my:2.25rem}:host([size="2xl"]){--sc-divider-my:3.35rem}div{display:flex;align-items:center;width:100%}div:before{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}div:after{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}:host([align=left]) div:before{display:none}:host([align=right]) div:after{display:none}.text{flex-shrink:0;max-width:80%}.no-text .text{display:none}.has-text{gap:.5rem}`],Cn([pt()],Sn.prototype,"slotNodes",2),Cn([lt("div")],Sn.prototype,"divider",2),Cn([it({type:String})],Sn.prototype,"label",2),Cn([it({type:String,reflect:!0})],Sn.prototype,"size",2),Cn([it({type:String,reflect:!0})],Sn.prototype,"align",2),Sn=Cn([st("sonic-divider")],Sn);try{customElements.define("sonic-divider",Sn)}catch(Va){}var On=Object.defineProperty,En=Object.getOwnPropertyDescriptor;const jn="sonic-card-header-description";let zn=class extends et{render(){return L`<div><slot></slot></div>`}};zn.styles=[n`div{margin-top:.1em;font-family:var(--sc-font-family-base);font-size:.7em;font-weight:var(--sc-font-style-base)}`],zn=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?En(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&On(e,r,i),i})([st(jn)],zn);try{customElements.define(jn,zn)}catch(Va){}var Dn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Mn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Ln(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Dn(e,r,i),i};const Nn="sonic-card-header";let Fn=class extends et{render(){return L`<div class="header"><div class="header-content">${this.label} ${this.description?L`<sonic-card-header-description>${this.description}</sonic-card-header-description>`:""}<slot></slot></div><slot name="suffix"></slot></div>`}};Fn.styles=[n`:host{--sc-card-header-mb:1.25rem;--sc-card-header-font-size:1.875rem;--sc-card-header-font-weight:var(--sc-headings-font-weight);--sc-card-header-font-style:var(--sc-headings-font-style);--sc-card-header-family:var(--sc-headings-font-family);--sc-card-header-line-height:var(--sc-headings-line-height)}.header{display:flex;align-items:flex-start;gap:.5em 1em;margin-bottom:var(--sc-card-header-mb);line-height:var(--sc-card-header-line-height);font-family:var(--sc-card-header-font-family);font-size:var(--sc-card-header-font-size);font-style:var(--sc-card-header-font-style);font-weight:var(--sc-card-header-font-weight)}.header-content{flex-grow:1}slot[name=suffix]{flex-shrink:0}`],Mn([it()],Fn.prototype,"label",2),Mn([it()],Fn.prototype,"description",2),Fn=Mn([st(Nn)],Fn);try{customElements.define(Nn,Fn)}catch(Va){}var In=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor;const Rn="sonic-card-main";let Vn=class extends et{render(){return L`<div><slot></slot></div>`}};Vn=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Tn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&In(e,r,i),i})([st(Rn)],Vn);try{customElements.define(Rn,Vn)}catch(Va){}var Un=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor;const qn="sonic-card-footer";let Hn=class extends et{render(){return L`<slot></slot>`}};Hn=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Bn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Un(e,r,i),i})([st(qn)],Hn);try{customElements.define(qn,Hn)}catch(Va){}var Kn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Zn=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Wn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Kn(e,r,i),i};const Yn="sonic-card";let Qn=class extends et{constructor(){super(...arguments),this.type="default"}render(){return L`<div part="card" class="card"><slot></slot></div>`}};Qn.styles=[n`:host{--sc-card-padding:1.5rem;--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base);--sc-card-rounded:var(--sc-rounded-lg);--sc-card-shadow:var(--sc-shadow-lg)}.card{padding:var(--sc-card-padding);background-color:var(--sc-card-bg);border-radius:var(--sc-card-rounded);box-shadow:var(--sc-card-shadow);color:var(--sc-card-color)}:host([type=primary]){--sc-card-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-card-color:var(--sc-warning-content);--sc-card-bg:var(--sc-warning)}:host([type=danger]){--sc-card-color:var(--sc-danger-content);--sc-card-bg:var(--sc-danger)}:host([type=info]){--sc-card-color:var(--sc-info-content);--sc-card-bg:var(--sc-info)}:host([type=success]){--sc-card-color:var(--sc-success-content);--sc-card-bg:var(--sc-success)}:host([type=light]){--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base-100)}:host([type=neutral]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-content)}:host([type=invert]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-900)}`],Zn([it({type:String,reflect:!0})],Qn.prototype,"type",2),Qn=Zn([st(Yn)],Qn);try{customElements.define(Yn,Qn)}catch(Va){}const Gn=n`:host{--sc-color:inherit;color:var(--sc-color)}:host([type=primary]){--sc-color:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success)}.inherit-color{color:var(--sc-color)}`;n`:host{--sc-color:inherit;--sc-bg:inherit;color:var(--sc-color);background:var(--sc-bg)}:host([type=primary]){--sc-color:var(--sc-primary-content);--sc-bg:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning-content);--sc-bg:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger-content);--sc-bg:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info-content);--sc-bg:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success-content);--sc-bg:var(--sc-success)}.inherit-bg{color:inherit}`;var Jn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor;const ta="sonic-tr";let ea=class extends et{render(){return L`<slot></slot>`}};ea.styles=[Gn,n`:host{display:table-row}`],ea=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Xn(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Jn(e,r,i),i})([st(ta)],ea);try{customElements.define(ta,ea)}catch(Va){}var ra=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?sa(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ra(e,r,i),i};const ia="sonic-th";let na=class extends et{render(){const t={textAlign:this.align,minWidth:this.minWidth};return L`<th part="th" style="${Te(t)}" colspan="${Ie(this.colSpan)}" rowspan="${Ie(this.rowSpan)}"><slot></slot></th>`}};na.styles=[Gn,n`:host{display:contents;background:var(--sc-table-bg);position:sticky;top:0;z-index:20}th{all:inherit;display:table-cell;border-bottom:calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);text-transform:var(--sc-table-th-tt);font-weight:var(--sc-table-th-fw);font-size:var(--sc-table-th-fs);padding:var(--sc-table-th-py) var(--sc-table-th-px)}`],oa([it({type:Number})],na.prototype,"colSpan",2),oa([it({type:Number})],na.prototype,"rowSpan",2),oa([it({type:String})],na.prototype,"align",2),oa([it({type:String})],na.prototype,"minWidth",2),na=oa([st(ia)],na);try{customElements.define(ia,na)}catch(Va){}var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?la(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&aa(e,r,i),i};const ha="sonic-td";let da=class extends et{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth};return L`<td part="td" style="${Te(t)}" colspan="${Ie(this.colSpan)}" rowspan="${Ie(this.rowSpan)}"><slot></slot></td>`}};da.styles=[Gn,n`:host{display:contents}td{all:inherit;display:table-cell;padding:var(--sc-table-td-py) var(--sc-table-td-px)}`],ca([it({type:Number})],da.prototype,"colSpan",2),ca([it({type:Number})],da.prototype,"rowSpan",2),ca([it({type:String})],da.prototype,"align",2),ca([it({type:String})],da.prototype,"vAlign",2),ca([it({type:String})],da.prototype,"minWidth",2),da=ca([st(ha)],da);try{customElements.define(ha,da)}catch(Va){}var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor;const ma="sonic-thead";let ga=class extends et{render(){return L`<slot></slot>`}};ga.styles=[n`:host{display:table-header-group}`],ga=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?ua(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&pa(e,r,i),i})([st(ma)],ga);try{customElements.define(ma,ga)}catch(Va){}var ba=Object.defineProperty,fa=Object.getOwnPropertyDescriptor;const va="sonic-tbody";let ya=class extends et{render(){return L`<tbody><slot></slot></tbody>`}};ya.styles=[n`:host{display:table-row-group}::slotted(sonic-tr:nth-child(odd)){background:var(--sc-base-50)}::slotted(sonic-tr:hover){background:var(--sc-base-100)}::slotted(sonic-tr:not(:last-child)){border-bottom:var(--sc-form-border-width) solid var(--sc-base-200)!important}`],ya=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?fa(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&ba(e,r,i),i})([st(va)],ya);try{customElements.define(va,ya)}catch(Va){}var wa=Object.defineProperty,xa=Object.getOwnPropertyDescriptor;const _a="sonic-tfoot";let ka=class extends et{render(){return L`<tfoot><slot></slot></tfoot>`}};ka.styles=[n`:host{display:contents}`],ka=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?xa(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&wa(e,r,i),i})([st(_a)],ka);try{customElements.define(_a,ka)}catch(Va){}var Aa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor;const $a="sonic-caption";let Ca=class extends et{render(){return L`<slot></slot>`}};Ca.styles=[n`:host{display:table-caption;font-size:.75rem;color:var(--sc-table-caption-color);padding:var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py))}`],Ca=((t,e,r,s)=>{for(var o,i=s>1?void 0:s?Pa(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Aa(e,r,i),i})([st($a)],Ca);try{customElements.define($a,Ca)}catch(Va){}var Sa=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ea=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?Oa(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Sa(e,r,i),i};const ja="sonic-table";let za=class extends et{constructor(){super(...arguments),this.striped=!1,this.sticky=!1,this.bordered=!1,this.hover=!1}render(){const t={maxHeight:this.maxHeight};return L`<div class="table-container custom-scroll" style="${Te(t)}"><div class="table" ?striped="${this.striped}" ?hover="${this.hover}" ?sticky="${this.sticky}"><slot></slot></div></div>`}};za.styles=[Re,ar,n`:host{--sc-table-fw:var(--sc-font-weight-base);--sc-table-fst:var(--sc-font-style-base);--sc-table-fs:1rem;--sc-table-border-color:var(--sc-base-200);--sc-table-caption-color:var(--sc-base-400);--sc-table-bg:var(--sc-base);--sc-table-th-fs:.85em;--sc-table-th-fw:bold;--sc-table-th-tt:uppercase;--sc-table-th-px:var(--sc-table-td-px);--sc-table-th-py:calc(1.8 * var(--sc-table-td-py) );--sc-table-td-px:.5em;--sc-table-td-py:.5em;display:block}:host([maxHeight]) .table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{width:100%;display:table;box-sizing:border-box}:host([bordered]) .table-container{border:var(--sc-border-width) solid var(--sc-table-border-color)!important}`],Ea([it({type:String,reflect:!0})],za.prototype,"size",2),Ea([it({type:Boolean,reflect:!0})],za.prototype,"striped",2),Ea([it({type:Boolean,reflect:!0})],za.prototype,"sticky",2),Ea([it({type:Boolean,reflect:!0})],za.prototype,"bordered",2),Ea([it({type:Boolean,reflect:!0})],za.prototype,"hover",2),Ea([it({type:String})],za.prototype,"maxHeight",2),za=Ea([st(ja)],za);try{customElements.define(ja,za)}catch(Va){}var Da=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Ma=(t,e,r,s)=>{for(var o,i=s>1?void 0:s?La(e,r):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(s?o(e,r,i):o(i))||i);return s&&i&&Da(e,r,i),i};let Na=class extends(Is(et)){constructor(){super(...arguments),this.key="",this.action=null}connectedCallback(){var t;const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render="+this.key,document.head.appendChild(e),super.connectedCallback(),this.formPublisher=xr.get(null!=(t=this.getAncestorAttributeValue("headersDataProvider"))?t:this.getAncestorAttributeValue("formDataProvider")),this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign((t=>{"request_token"==t&&this.requestToken()}))}requestToken(){var t,e,r,s;const o=window;let i=(null!=(r=null!=(e=this.action)?e:null==(t=this.formPublisher.captchaAction)?void 0:t.get())?r:"submit").replace(/[^\w_\/]/g,"_"),n=(null!=(s=this.formPublisher.captchaMethod.get())?s:"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,o.grecaptcha.ready((()=>{o.grecaptcha.execute(this.key,{action:n+"//"+i}).then((t=>{this.formPublisher.captchaToken=t}))}))}render(){return L`<slot></slot>`}};Ma([it()],Na.prototype,"key",2),Ma([it()],Na.prototype,"action",2),Na=Ma([st("sonic-captcha")],Na);let Fa=window;Fa.SonicPublisherManager||(Fa.SonicPublisherManager=gt),Fa.SonicDataBindObserver||(Fa.SonicDataBindObserver=kt);const Ia=Ye,Ta=sn;let Ra=window;Ra["concorde-components"]=Ra["concorde-components"]||{},Ra["concorde-components"]={SonicToast:Ia,SonicModal:Ta}}));
101
+ */,vo=Zt(class extends Yt{constructor(t){var e;if(super(t),t.type!==Wt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var s,r;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(s=this.st)||void 0===s?void 0:s.has(t))&&this.et.add(t);return this.render(e)}const o=t.element.classList;this.et.forEach((t=>{t in e||(o.remove(t),this.et.delete(t))}));for(const i in e){const t=!!e[i];t===this.et.has(i)||(null===(r=this.st)||void 0===r?void 0:r.has(i))||(t?(o.add(i),this.et.add(i)):(o.remove(i),this.et.delete(i)))}return L}});var yo=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,xo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?wo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&yo(e,s,i),i};const _o="sonic-input";let ko=class extends(Dr(ss(Et(et)))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}updated(){var t,e,s,r;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(r=this.slotPrefixNodes)?void 0:r.length)}connectedCallback(){super.connectedCallback(),this.hasAttribute("sameValueAs")&&(this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=t,this.getFormPublisher()[this.sameValueAsName].onAssign(this.sameValueAsHandle))}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName&&this.getFormPublisher()[this.sameValueAsName].offAssign(this.sameValueAsHandle)}onSlotChange(){this.requestUpdate()}inlineContentFocus(){var t;this.inlineContent&&(null==(t=this.input)||t.focus())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};let e=this.label&&this.required&&-1==this.label.indexOf("*")?" *":"";return M`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?Ce(this.label+e):""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${vo(t)}"><div class="${this.inlineContent?"form-element form-element-wrapper":"contents"}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${Fe(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${Fe(this.list)}" tabindex="${Fe(this.tabindex)}" pattern="${Fe(this.pattern)}" min="${Fe(this.min)}" max="${Fe(this.max)}" step="${Fe(this.step)}" src="${Fe(this.src)}" minlength="${Fe(this.minlength)}" maxlength="${Fe(this.maxlength)}" placeholder="${Fe(this.placeholder)}" required="${Fe(this.required)}" autocomplete="${Fe(this.autocomplete)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?M`${Ce(this.description)}`:""}</slot>`}};ko.styles=[as,fo],xo([it({type:String,reflect:!0})],ko.prototype,"size",2),xo([it({type:String})],ko.prototype,"list",2),xo([it({type:String})],ko.prototype,"placeholder",2),xo([it({type:String})],ko.prototype,"pattern",2),xo([it({type:String})],ko.prototype,"min",2),xo([it({type:String})],ko.prototype,"max",2),xo([it({type:Boolean})],ko.prototype,"readonly",2),xo([it({type:Number})],ko.prototype,"step",2),xo([it({type:Number})],ko.prototype,"minlength",2),xo([it({type:Number})],ko.prototype,"maxlength",2),xo([it({type:String})],ko.prototype,"src",2),xo([it({type:Boolean,reflect:!0})],ko.prototype,"inlineContent",2),xo([pt({slot:"label"})],ko.prototype,"slotLabelNodes",2),xo([pt({slot:"description"})],ko.prototype,"slotDescriptionNodes",2),xo([pt({slot:"suffix"})],ko.prototype,"slotSuffixNodes",2),xo([pt({slot:"prefix"})],ko.prototype,"slotPrefixNodes",2),xo([lt("input")],ko.prototype,"input",2),xo([nt()],ko.prototype,"hasDescription",2),xo([nt()],ko.prototype,"hasLabel",2),xo([nt()],ko.prototype,"hasSuffix",2),xo([nt()],ko.prototype,"hasPrefix",2),ko=xo([rt(_o)],ko);try{customElements.define(_o,ko)}catch(Qa){}var Ao=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Co=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Po(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ao(e,s,i),i};console.log("HEY");let $o=class extends(Fr(et)){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=0==t.length,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-\.\/:;<=>?@[\]^_`{|}~]/.test(t)},xs.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&xs.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue)}getIcon(t){return t?M`<sonic-icon library="heroicons" , name="face-smile"></sonic-icon>`:M`<sonic-icon library="heroicons" , name="x-circle"></sonic-icon>`}render(){return this.hasNoChar?N:M`
102
+ <div>Le mot de passe doit contenir au moins :</div>
103
+ <div>${this.getIcon(this.hasEnoughChars)} 8 caractères</div>
104
+ <div>${this.getIcon(this.hasMinuscule)} 1 minuscule</div>
105
+ <div>${this.getIcon(this.hasMajuscule)} 1 majuscule</div>
106
+ <div>${this.getIcon(this.hasNumber)} 1 chiffre</div>
107
+ <div>${this.getIcon(this.hasSpecialChar)} 1 caractère spécial parmi !"#$%&'()*+,-./:;<=>?@[]^_\`{|}~</div>
108
+ `}};Co([it()],$o.prototype,"name",2),Co([it()],$o.prototype,"minChars",2),Co([nt()],$o.prototype,"hasNoChar",2),Co([nt()],$o.prototype,"hasEnoughChars",2),Co([nt()],$o.prototype,"hasMinuscule",2),Co([nt()],$o.prototype,"hasMajuscule",2),Co([nt()],$o.prototype,"hasNumber",2),Co([nt()],$o.prototype,"hasSpecialChar",2),$o=Co([rt("sonic-password-helper")],$o);var So=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Eo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Oo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&So(e,s,i),i};let jo=class extends(Fr(et)){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();let t=xs.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=e=>{this.hasNoChar=!e||0==e.length,this.name&&this.sameValueAs&&(this.areEqual=t[this.name].get()==t[this.sameValueAs].get())},t[this.name].onAssign(this.checkValue),t[this.sameValueAs].onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){let t=xs.get(this.getAncestorAttributeValue("formDataProvider"));t[this.name].offAssign(this.checkValue),t[this.sameValueAs].offAssign(this.checkValue)}}render(){return this.hasNoChar?N:M`<span>${this.areEqual?Ce(this.descriptionWhenEqual):Ce(this.descriptionWhenNotEqual)}</span>`}};Eo([it()],jo.prototype,"name",2),Eo([it()],jo.prototype,"sameValueAs",2),Eo([it()],jo.prototype,"descriptionWhenEqual",2),Eo([it()],jo.prototype,"descriptionWhenNotEqual",2),Eo([nt()],jo.prototype,"areEqual",2),Eo([nt()],jo.prototype,"hasNoChar",2),jo=Eo([rt("sonic-same-value-helper")],jo);var zo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Mo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Do(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&zo(e,s,i),i};const Lo="sonic-checkbox";let No=class extends(ns(Dr(ss(Et(et))))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.hasDescription=!1}updated(){var t;this.hasDescription=!(!this.description&&!(null==(t=this.slotDescriptionNodes)?void 0:t.length))}connectedCallback(){this.type="checkbox",super.connectedCallback()}render(){let t=this.label&&this.required&&-1==this.label.indexOf("*")?" *":"";return M`<label class="checkbox-container ${this.disabled?"disabled":""}"><span class="icon-container"><input type="${this.type}" @change="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${Fe(this.disabled)}" .checked="${Fe(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}"><sonic-icon name="${this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text">${this.label?Ce(this.label+t):""}<slot></slot><slot name="description" class="${this.hasDescription?"description":"hidden"}">${this.description?M`${Ce(this.description)}`:""}</slot></div></label>`}};No.styles=[as,n`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-base-200);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-primary-content)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked=true]{background:var(--sc-primary)}input:checked+sonic-icon,input[checked=true]+sonic-icon{transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`],Mo([it({type:Boolean,reflect:!0})],No.prototype,"touched",2),Mo([it({type:String})],No.prototype,"iconName",2),Mo([pt({slot:"description"})],No.prototype,"slotDescriptionNodes",2),Mo([it({type:Boolean})],No.prototype,"hasDescription",2),No=Mo([rt(Lo)],No);try{customElements.define(Lo,No)}catch(Qa){}var Io=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor;const Vo="sonic-radio";let To=class extends No{constructor(){super(),this.radio=!0}connectedCallback(){super.connectedCallback(),this.type="radio"}};To.styles=[No.styles,n`:host input{border-radius:50%}:host sonic-icon{border-radius:50%;overflow:hidden;background-color:var(--sc-primary-content);line-height:0;display:block;font-size:0;height:10px;width:10px}`],To=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Fo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Io(e,s,i),i})([rt(Vo)],To);try{customElements.define(Vo,To)}catch(Qa){}var Ro=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,qo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Uo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ro(e,s,i),i};const Bo="sonic-select";let Ho=class extends(ss(Et(et))){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this._options=[],this._value="",this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(t){this._options=t,!this.value&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}get value(){return this._value}set value(t){t&&this._value!=t&&(this._value=t,this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?gt.getInstance().get(this.formDataProvider)[this._name]=t:this.publisher&&(this.publisher[this._name]=t),this.requestUpdate())}connectedCallback(){super.connectedCallback();let t=this.querySelectorAll("option");t.length>0&&(this.options=Array.from(t).map((t=>({value:t.value,wording:t.text}))))}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}updated(){var t,e,s,r;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(r=this.slotPrefixNodes)?void 0:r.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("select");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){const t={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};let e=this.label&&this.required&&-1==this.label.indexOf("*")?" *":"";return M`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?Ce(this.label+e):""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control ${vo(t)}"><slot name="prefix" @slotchange="${this.onSlotChange}"></slot><div class="form-select-wrapper"><select @change="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Fe(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${Fe(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element">${re(this.options,(t=>t[this.valueKey]),(t=>{const e=this.value==t[this.valueKey]?"selected":null;return M`<option selected="${Fe(e)}" value="${t[this.valueKey]}">${t[this.wordingKey]}</option>`}))}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.onSlotChange}"></slot></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?M`${Ce(this.description)}`:""}</slot>`}};Ho.styles=[fo,n`.form-element{appearance:none;padding-right:2.5em}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:1em;top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-color)}option{padding:.1rem 5rem;color:var(--sc-base-content);background:var(--sc-base)}`],qo([it({type:String})],Ho.prototype,"valueKey",2),qo([it({type:String})],Ho.prototype,"wordingKey",2),qo([it({type:Boolean})],Ho.prototype,"multiple",2),qo([it({type:String,reflect:!0})],Ho.prototype,"size",2),qo([it({type:Number})],Ho.prototype,"selectSize",2),qo([it({type:Array})],Ho.prototype,"options",1),qo([it()],Ho.prototype,"value",1),qo([it({type:Boolean})],Ho.prototype,"forceAutoFill",2),qo([it()],Ho.prototype,"description",1),qo([it()],Ho.prototype,"label",1),qo([pt({slot:"label"})],Ho.prototype,"slotLabelNodes",2),qo([pt({slot:"description"})],Ho.prototype,"slotDescriptionNodes",2),qo([pt({slot:"suffix"})],Ho.prototype,"slotSuffixNodes",2),qo([pt({slot:"prefix"})],Ho.prototype,"slotPrefixNodes",2),qo([nt()],Ho.prototype,"hasDescription",2),qo([nt()],Ho.prototype,"hasLabel",2),qo([nt()],Ho.prototype,"hasSuffix",2),qo([nt()],Ho.prototype,"hasPrefix",2),Ho=qo([rt(Bo)],Ho);try{customElements.define(Bo,Ho)}catch(Qa){}var Wo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Zo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ko(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Wo(e,s,i),i};const Yo="sonic-textarea";let Qo=class extends(Dr(ss(Et(et)))){constructor(){super(...arguments),this.size="",this.readonly=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.slotClasses={}}updated(){var t,e,s,r;this.hasLabel=!(!this.label&&!(null==(t=this.slotLabelNodes)?void 0:t.length)),this.hasDescription=!(!this.description&&!(null==(e=this.slotDescriptionNodes)?void 0:e.length)),this.hasSuffix=!!(null==(s=this.slotSuffixNodes)?void 0:s.length),this.hasPrefix=!!(null==(r=this.slotPrefixNodes)?void 0:r.length)}onSlotChange(){this.requestUpdate()}validateFormElement(){var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector("textarea");e&&!e.checkValidity()&&(this.getFormPublisher().isFormValid=!1,e.reportValidity())}render(){let t=this.label&&this.required&&-1==this.label.indexOf("*")?" *":"";return M`<label for="form-element" class="${this.hasLabel?"form-label":"hidden"}">${this.label?Ce(this.label+t):""}<slot name="label" @slotchange="${this.onSlotChange}"></slot></label><div class="form-control"><textarea @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${Fe(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${Fe(this.rows)}" cols="${Fe(this.cols)}" maxlength="${Fe(this.maxlength)}" minlength="${Fe(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${Fe(this.spellcheck)}" autocomplete="${Fe(this.autocomplete)}" tabindex="${Fe(this.tabindex)}" wrap="${Fe(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll">
109
+ ${this.value}</textarea></div><slot name="description" class="${this.hasDescription?"form-description":"hidden"}">${this.description?M`${Ce(this.description)}`:""}</slot>`}};Qo.styles=[fo,Te,n`textarea{font-size:inherit}`],Zo([it({type:String})],Qo.prototype,"size",2),Zo([it({type:Number})],Qo.prototype,"rows",2),Zo([it({type:Number})],Qo.prototype,"cols",2),Zo([it({type:Number})],Qo.prototype,"maxlength",2),Zo([it({type:Number})],Qo.prototype,"minlength",2),Zo([it({type:String})],Qo.prototype,"wrap",2),Zo([it({type:Boolean})],Qo.prototype,"readonly",2),Zo([it({type:String})],Qo.prototype,"placeholder",2),Zo([pt({slot:"label"})],Qo.prototype,"slotLabelNodes",2),Zo([pt({slot:"description"})],Qo.prototype,"slotDescriptionNodes",2),Zo([pt({slot:"suffix"})],Qo.prototype,"slotSuffixNodes",2),Zo([pt({slot:"prefix"})],Qo.prototype,"slotPrefixNodes",2),Zo([nt()],Qo.prototype,"hasDescription",2),Zo([nt()],Qo.prototype,"hasLabel",2),Zo([nt()],Qo.prototype,"hasSuffix",2),Zo([nt()],Qo.prototype,"hasPrefix",2),Zo([it()],Qo.prototype,"slotClasses",2),Qo=Zo([rt(Yo)],Qo);try{customElements.define(Yo,Qo)}catch(Qa){}var Go=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Xo=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Jo(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Go(e,s,i),i};const ti="sonic-fieldset";let ei=class extends(Et(et)){constructor(){super(...arguments),this.disabled=!1}render(){return M`<fieldset form="${Fe(this.form)}" ?disabled="${this.disabled}"><slot></slot></fieldset>`}};ei.styles=[n`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-base-200);--sc-fieldset-border-width:var(--sc-form-border-width);margin-top:var(--sc-fieldset-mt);margin-bottom:var(--sc-fieldset-mb);display:block;border:var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color)!important;padding:1.8rem 1.25rem;border-radius:var(--sc-rounded-lg)}fieldset{all:unset;display:contents}::slotted(sonic-legend){margin-bottom:1.5rem;display:block}`],Xo([it({type:Boolean,reflect:!0})],ei.prototype,"disabled",2),Xo([it({type:String})],ei.prototype,"form",2),ei=Xo([rt(ti)],ei);try{customElements.define(ti,ei)}catch(Qa){}var si=Object.defineProperty,ri=Object.getOwnPropertyDescriptor;let oi=class extends et{render(){return M`<slot></slot>`}};oi.styles=[n`:host{color:var(--sc-neutral-500);font-size:1.25rem;line-height:1.2;display:block;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base);margin-top:.25em}`],oi=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?ri(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&si(e,s,i),i})([rt("sonic-legend-description")],oi);try{customElements.define("sonic-legend-description",oi)}catch(Qa){}var ii=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,ai=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?ni(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ii(e,s,i),i};const li="sonic-legend";let ci=class extends et{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(t){this.hasAttribute("description")&&!this.forceAutoFill&&(t=this.getAttribute("description")),this._description=t,this.requestUpdate()}get label(){return this._label}set label(t){this.hasAttribute("label")&&!this.forceAutoFill&&(t=this.getAttribute("label")),this._label=t,this.requestUpdate()}render(){return M`<legend part="legend">${this.iconName?M`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${Fe(this.iconPrefix)}" library="${Fe(this.iconLibrary)}"></sonic-icon></div>`:""}<div class="legend-content">${Ce(this.label)} ${this.description?M`<sonic-legend-description>${Ce(this.description)}</sonic-legend-description>`:""}<slot></slot></div><slot name="suffix"></slot></legend>`}};ci.styles=[n`:host{--sc-legend-font-size:1.75rem;--sc-legend-font-weight:var(--sc-font-weight-base);--sc-legend-font-style:var(--sc-headings-font-style);--sc-legend-family:var(--sc-headings-font-family);--sc-legend-line-height:var(--sc-headings-line-height);display:flex;width:100%}legend{font-size:var(--sc-legend-font-size);font-weight:var(--sc-legend-font-weight);font-style:var(--sc-legend-font-style);font-family:var(--sc-legend-font-family);line-height:var(--sc-legend-line-height);padding:0;display:flex;width:100%;align-items:flex-start;gap:.5em}slot[name=suffix]{display:block;margin-left:auto;flex-shrink:0}.legend-content{flex-grow:1}`],ai([it({type:Boolean})],ci.prototype,"forceAutoFill",2),ai([it()],ci.prototype,"description",1),ai([it()],ci.prototype,"label",1),ai([it({type:String})],ci.prototype,"iconName",2),ai([it({type:String})],ci.prototype,"iconLibrary",2),ai([it({type:String})],ci.prototype,"iconPrefix",2),ci=ai([rt(li)],ci);try{customElements.define(li,ci)}catch(Qa){}class hi{constructor(t,{target:e,config:s,callback:r,skipInitial:o}){this.t=!1,this.i=!1,this.callback=()=>!0,(this.h=t).addController(this),this.o=null===e||null!=e?e:this.h,this.l=s,this.t=null!=o?o:this.t,this.callback=null!=r?r:this.callback,window.ResizeObserver?this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback(t,this.u)}hostConnected(){this.o&&this.observe(this.o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.t&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}var di=Object.defineProperty,pi=Object.getOwnPropertyDescriptor;const ui="sonic-form-layout";let mi=class extends(Et(et)){constructor(){super(...arguments),this._resizeController=new hi(this,{})}render(){return M`<div class="${this.offsetWidth>440?"cq--md":""}"><slot></slot></div>`}};mi.styles=[n`:host{display:block}div{display:grid;grid-gap:1.5rem;align-items:flex-start}.cq--md{grid-gap:1.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}::slotted(sonic-checkbox),::slotted(sonic-divider),::slotted(sonic-form-actions),::slotted(sonic-radio),::slotted(sonic-textarea){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`],mi=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?pi(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&di(e,s,i),i})([rt(ui)],mi);try{customElements.define(ui,mi)}catch(Qa){}var gi=Object.defineProperty,bi=Object.getOwnPropertyDescriptor;const fi="sonic-form-actions";let vi=class extends et{render(){return M`<slot></slot>`}};vi.styles=[n`:host{display:flex;gap:.3rem}`],vi=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?bi(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&gi(e,s,i),i})([rt(fi)],vi);try{customElements.define(fi,vi)}catch(Qa){}var yi=Object.defineProperty,wi=Object.getOwnPropertyDescriptor;const xi="sonic-group";let _i=class extends et{updated(){const t=this.querySelectorAll("sonic-input, sonic-button"),e=t.length;e>1&&t.forEach(((t,s)=>{0===s?(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0")):s===e-1?(t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0")):(t.style.setProperty("--sc-item-rounded-tr","0"),t.style.setProperty("--sc-item-rounded-br","0"),t.style.setProperty("--sc-item-rounded-tl","0"),t.style.setProperty("--sc-item-rounded-bl","0"))}))}render(){return M`<slot></slot>`}};_i.styles=[n`:host{display:inline-flex;vertical-align:middle}slot{width:100%;display:flex;align-items:flex-end}`],_i=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?wi(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&yi(e,s,i),i})([rt(xi)],_i);try{customElements.define(xi,_i)}catch(Qa){}var ki=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Pi=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ai(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ki(e,s,i),i};const Ci="sonic-image";let $i=class extends et{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}render(){const t={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return M`<div part="image"><picture part="picture"><img part="img" src="${this.src}" loading="${this.loading}" alt="${this.alt}" style="${Ve(t)}"></picture></div>`}};$i.styles=[n`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}`],Pi([it({type:String})],$i.prototype,"rounded",2),Pi([it({type:String})],$i.prototype,"src",2),Pi([it({type:String})],$i.prototype,"alt",2),Pi([it({type:String})],$i.prototype,"loading",2),Pi([it({type:String})],$i.prototype,"ratio",2),Pi([it({type:String})],$i.prototype,"objectPosition",2),Pi([it({type:String})],$i.prototype,"imageRendering",2),Pi([it({type:Boolean,reflect:!0})],$i.prototype,"cover",2),$i=Pi([rt(Ci)],$i);try{customElements.define(Ci,$i)}catch(Qa){}var Si=Object.defineProperty,Oi=Object.getOwnPropertyDescriptor,Ei=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Oi(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Si(e,s,i),i};let ji=class extends et{constructor(){super(...arguments),this.icon={},this.taxonomy=[],this.separator=",&nbsp;",this.key="",this.type="default",this.variant="default",this.size="md"}render(){if(!this.taxonomy)return N;let t=this.key+"_display",e=this.taxonomy.filter((e=>null!=e&&(!0===e[t]||"1"==e[t]||!e.hasOwnProperty(t))));return 0===e.length?(this.style.display="none",N):(this.style.removeProperty("display"),M`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${Fe(this.icon.library)}" prefix="${Fe(this.icon.prefix)}" name="${Fe(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${re(e,(t=>t[this.key+"_id"]),(t=>M`<span>${t[this.key+"_name"]}</span><span class="sonic-taxonomy-separator">${Ce(this.separator)}</span>`))}</span></sonic-badge>`)}};ji.styles=n`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`,Ei([it({type:Object})],ji.prototype,"icon",2),Ei([it({type:Array})],ji.prototype,"taxonomy",2),Ei([it({type:String})],ji.prototype,"separator",2),Ei([it({type:String})],ji.prototype,"key",2),Ei([it({type:String,reflect:!0})],ji.prototype,"type",2),Ei([it({type:String,reflect:!0})],ji.prototype,"variant",2),Ei([it({type:String,reflect:!0})],ji.prototype,"size",2),ji=Ei([rt("sonic-taxonomy")],ji);try{customElements.define("sonic-taxonomy",ji)}catch(Qa){}var zi=Object.defineProperty,Di=Object.getOwnPropertyDescriptor;const Mi="sonic-menu-item";let Li=class extends ps{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="primary"),this.hasAttribute("shape")||(this.shape="block"),this.hasAttribute("align")||(this.align="left"),super.connectedCallback()}};Li=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Di(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&zi(e,s,i),i})([rt(Mi)],Li);try{customElements.define(Mi,Li)}catch(Qa){}var Ni=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Fi=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ii(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ni(e,s,i),i};const Vi="sonic-menu";let Ti=class extends et{constructor(){super(...arguments),this.size="",this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.minWidth="0",this.hasMoreElements=!1}checkIfMore(){var t;this.hasMoreElements=!!(null==(t=this.moreElements)?void 0:t.length)}updated(t){const e=this.querySelector(".more-btn");this.size&&e&&e.setAttribute("size",this.size);this.querySelectorAll("sonic-divider").forEach((t=>{t.hasAttribute("size")||t.setAttribute("size","xs")})),super.updated(t)}mainSlotChange(){this.setChildrenSize(this.menuChildren)}setChildrenSize(t){t.forEach((t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.setAttribute("align",this.align),"row"==this.direction&&"block"==t.getAttribute("shape")&&t.setAttribute("shape","default")}))}render(){const t={minWidth:this.minWidth,flexDirection:this.direction,gap:this.gap},e="row"==this.direction,s={display:"block",alignSelf:e?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},r={marginLeft:e?"":".55em"};return M`<menu part="menu" class="shadowable" style="${Ve(t)}"><slot @slotchange="${this.mainSlotChange}"></slot><sonic-pop style="${Ve(s)}" class="${this.hasMoreElements?"":"hidden"}"><sonic-menu-item style="${Ve(r)}" class="more-btn" shape="${this.moreShape}" align="center"><sonic-icon size="xl" name="${e?"more-vert":"more-horiz"}"></sonic-icon></sonic-menu-item><slot name="more" @slotchange="${this.checkIfMore}" slot="content"></slot></sonic-pop></menu>`}};Ti.styles=[n`:host{display:block;--sc-menu-gap:.15rem}:host>menu{display:flex;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em);margin:0;padding:.35em}.hidden{display:none!important}:host([shadow=md]) .shadowable,:host([shadow=true]) .shadowable,:host([shadow]) .shadowable{box-shadow:var(--sc-shadow)}:host([shadow=sm]) .shadowable{box-shadow:var(--sc-shadow-sm)}:host([shadow=lg]) .shadowable{box-shadow:var(--sc-shadow-lg)}:host([shadow=none]) .shadowable{box-shadow:none}`],Fi([it({type:String,reflect:!0})],Ti.prototype,"size",2),Fi([it({type:String,reflect:!0})],Ti.prototype,"direction",2),Fi([it({type:String})],Ti.prototype,"gap",2),Fi([it({type:String,reflect:!0})],Ti.prototype,"align",2),Fi([it({type:String,reflect:!0})],Ti.prototype,"shadow",2),Fi([it({type:String})],Ti.prototype,"moreShape",2),Fi([it({type:String})],Ti.prototype,"minWidth",2),Fi([dt({selector:"sonic-menu-item"})],Ti.prototype,"menuChildren",2),Fi([dt({slot:"more",selector:"*"})],Ti.prototype,"moreElements",2),Fi([nt()],Ti.prototype,"hasMoreElements",2),Ti=Fi([rt(Vi)],Ti);try{customElements.define(Vi,Ti)}catch(Qa){}var Ri=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,qi=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ui(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ri(e,s,i),i};const Bi="sonic-modal-actions";let Hi=class extends et{firstUpdated(){var t;null==(t=this.buttons)||t.forEach((t=>{t.addEventListener("click",(()=>{if("false"!=t.getAttribute("hideModal")){const t=this.closest("sonic-modal");null==t||t.hide()}}))}))}render(){return M`<slot></slot>`}};Hi.styles=[n`:host{display:flex;gap:.5rem;margin-top:auto;padding-top:1rem}`],qi([dt({selector:"sonic-button"})],Hi.prototype,"buttons",2),Hi=qi([rt(Bi)],Hi);try{customElements.define(Bi,Hi)}catch(Qa){}var Wi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor;const Zi="sonic-modal-title";let Yi=class extends et{render(){return M`<slot></slot>`}};Yi.styles=[n`:host{font-weight:700;font-size:1.5rem;display:block;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],Yi=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ki(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Wi(e,s,i),i})([rt(Zi)],Yi);try{customElements.define(Zi,Yi)}catch(Qa){}var Qi=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor;const Ji="sonic-modal-subtitle";let Xi=class extends et{render(){return M`<slot></slot>`}};Xi.styles=[n`:host{font-size:1.1rem;display:block;text-transform:uppercase;line-height:var(--sc-headings-line-height);font-family:var(--sc-headings-font-family)}`],Xi=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Gi(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Qi(e,s,i),i})([rt(Ji)],Xi);try{customElements.define(Ji,Xi)}catch(Qa){}var tn=Object.defineProperty,en=Object.getOwnPropertyDescriptor;const sn="sonic-modal-content";let rn=class extends et{render(){return M`<slot></slot>`}};rn.styles=[n`:host{display:block}`],rn=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?en(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&tn(e,s,i),i})([rt(sn)],rn);try{customElements.define(sn,rn)}catch(Qa){}var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor;const an="sonic-modal-close";let ln=class extends et{render(){return M`<sonic-button shape="circle" variant="ghost" @click="${this.handleClick}"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>`}handleClick(){this.closest("sonic-modal").hide()}};ln.styles=[n`:host{position:absolute;right:.6rem;top:.6rem;z-index:20}`],ln=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?nn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&on(e,s,i),i})([rt(an)],ln);try{customElements.define(an,ln)}catch(Qa){}var cn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,dn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?hn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&cn(e,s,i),i};const pn="sonic-modal";let un=class extends(Et(et)){constructor(){super(...arguments),this.hideOnOverlayClick=!0,this.hideOnEscape=!0,this.align="center",this.padding="var(--sc-modal-py) var(--sc-modal-px)",this.maxWidth="var(--sc-modal-max-w) ",this.maxHeight="var(--sc-modal-max-h) ",this.width="100%",this.height="auto",this.fullScreen=!1,this.visible=!1}static create(t){const e=document.createElement(pn);return e.innerHTML=`<sonic-modal-close></sonic-modal-close><sonic-modal-content>${t.content}</sonic-modal-content>`||"",(document.querySelector("sonic-theme")||document.body).appendChild(e),e.show(),e}connectedCallback(){super.connectedCallback()}updated(){const t=this;document.addEventListener("keydown",this.handleEscape),t.closeBtn.forEach((e=>{e.addEventListener("click",(function(){t.hide()}),{once:!0})}))}render(){if(0==this.visible)return N;this.handleFullsceen();const t={padding:this.padding,maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"},e={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,borderRadius:this.fullScreen?"0":"var(--sc-modal-rounded)"};return M`<div class="modal-wrapper" style="${Ve(e)}" ${Ae({out:be})} tabindex="0"><div part="modal" class="modal custom-scroll" style="${Ve(t)}" ${Ae({keyframeOptions:{duration:400,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(25%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"translateY(20%) scale(1)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}]})}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${this.hideOnOverlayClick?this.hide:""}" ${Ae({keyframeOptions:{duration:500},in:fe,out:[{opacity:0,pointerEvents:"none"}]})}></div>`}show(){var t,e;this.visible=!0,null==(t=this.modalElement)||t.setAttribute("tabindex","0"),null==(e=this.modalElement)||e.focus(),this.dispatchEvent(new CustomEvent("show"))}hide(){var t;this.visible=!1,null==(t=this.modalElement)||t.setAttribute("tabindex","-1"),this.dispatchEvent(new CustomEvent("hide"))}dispose(){this.hide(),this.remove()}handleEscape(t){if("Escape"===t.key){[...document.querySelectorAll(pn)].forEach((t=>{1==this.hideOnEscape&&t.hide()}))}}handleFullsceen(){this.fullScreen&&(this.width="100%",this.height="100%",this.maxWidth="none",this.maxHeight="none")}};if(un.styles=[Te,n`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-content:var(--sc-base-content);--sc-modal-bg:var(--sc-base);--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-scrollbar-bg:var(--sc-base-300);--sc-modal-rounded:var(--sc-rounded-lg)}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:990;text-align:center;align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{overflow-y:auto;display:flex;flex-direction:column;text-align:center;align-items:center;min-height:10rem}.modal{background:var(--sc-base);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-base-200);left:0;top:0;right:0;bottom:0;z-index:900;opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1rem}::slotted(sonic-modal-subtitle){margin-top:-.45rem;margin-bottom:1rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`],dn([it({type:Boolean,reflect:!0})],un.prototype,"hideOnOverlayClick",2),dn([it({type:Boolean,reflect:!0})],un.prototype,"hideOnEscape",2),dn([it({type:String,reflect:!0})],un.prototype,"align",2),dn([it({type:String})],un.prototype,"padding",2),dn([it({type:String})],un.prototype,"maxWidth",2),dn([it({type:String})],un.prototype,"maxHeight",2),dn([it({type:String})],un.prototype,"width",2),dn([it({type:String})],un.prototype,"height",2),dn([it({type:Boolean,reflect:!0})],un.prototype,"fullScreen",2),dn([it({type:Boolean,reflect:!0})],un.prototype,"visible",2),dn([lt(".modal-wrapper")],un.prototype,"modalWrapper",2),dn([lt(".modal")],un.prototype,"modalElement",2),dn([dt({selector:"sonic-modal-close"})],un.prototype,"closeBtn",2),un=dn([rt(pn)],un),"undefined"!=typeof window){window.SonicModal=un}try{customElements.define(pn,un)}catch(Qa){}var mn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,bn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?gn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&mn(e,s,i),i};const fn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},vn="sonic-alert";let yn=class extends et{constructor(){super(...arguments),this.label="",this.text="",this.background=!1,this.status="default"}render(){return M`<div part="alert" class="alert"><div>${this.status&&M`<sonic-icon name="${fn[this.status]}"></sonic-icon>`}</div><div>${this.label?M`<span class="label">${Ce(this.label)}</span>`:N}<slot>${this.text}</slot></div></div>`}};yn.styles=[as,n`:host{--sc-alert-color:inherit;--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;line-height:1.2;border-radius:var(--sc-alert-rounded)}.label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`],bn([it({type:String})],yn.prototype,"label",2),bn([it({type:String})],yn.prototype,"text",2),bn([it({type:String,reflect:!0})],yn.prototype,"size",2),bn([it({type:Boolean,reflect:!0})],yn.prototype,"background",2),bn([it({type:String,reflect:!0})],yn.prototype,"status",2),yn=bn([rt(vn)],yn);try{customElements.define(vn,yn)}catch(Qa){}var wn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,_n=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?xn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&wn(e,s,i),i};let kn=class extends(Et(et)){constructor(){super(...arguments),this._messages=[],this.success=null,this.status=null,this._message="",this._data=""}get messages(){return this._messages}set messages(t){this._messages=t,this.messages&&t.forEach((t=>{"public"==t.type&&Ye.add({text:t.content,status:t.status})}))}get message(){return this._message}set message(t){this._message=t,this.message&&!1===this.props.success&&(this.props.public_message||Ye.add({text:this.message,status:"error"}))}get data(){return this._data}set data(t){this._data=t;const e={text:"Votre produit a bien été ajouté",status:"success"};Array.isArray(this.data)&&!0===this.props.success&&Ye.add(e),""==this.data&&!0===this.props.status&&Ye.add(e),!1===this.props.success&&(this.props.public_message||Ye.add({text:this.data,status:"error"}))}render(){return N}};_n([it({type:Boolean})],kn.prototype,"success",2),_n([it({type:Boolean})],kn.prototype,"status",2),_n([it({type:Array})],kn.prototype,"messages",1),_n([it({type:String})],kn.prototype,"message",1),_n([it()],kn.prototype,"data",1),kn=_n([rt("sonic-toast-message-subscriber")],kn);var An=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,Cn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Pn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&An(e,s,i),i};const $n="sonic-tooltip";let Sn=class extends et{constructor(){super(...arguments),this.label="",this.disabled=!1}render(){let t=this.disabled||""==this.label?"disabled":"";return M`<div data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}" class="tooltip ${t}"><slot></slot></div>`}};Sn.styles=[n`.tooltip{position:relative;display:flex;align-items:center;text-align:center}.tooltip:before{position:absolute;content:attr(data-tooltip-text);font-size:.85rem;display:block;opacity:0;pointer-events:none;bottom:calc(100% + .25rem);left:50%;transform:translateX(-50%);background:var(--sc-base-content,#111827);padding:.25rem;border-radius:.25rem;color:var(--sc-base,#fff);z-index:999;display:none;line-height:1.1;width:max-content;max-width:20rem}.tooltip:not(.disabled):hover:before{opacity:1;display:block}`],Cn([it({type:String})],Sn.prototype,"label",2),Cn([it({type:Boolean})],Sn.prototype,"disabled",2),Sn=Cn([rt($n)],Sn);try{customElements.define($n,Sn)}catch(Qa){}var On=Object.defineProperty,En=Object.getOwnPropertyDescriptor,jn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?En(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&On(e,s,i),i};const zn="sonic-pop";let Dn=class extends et{constructor(){super(...arguments),this.open=!1,this.toggle="true",this.inline=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN}runPositioning(){this.positioningRuns&&(this.positioningRuns=!0,this._setUpMenu(this.placement),window.requestAnimationFrame((()=>this.runPositioning())))}_toggle(t){this.open&&"false"==this.toggle||("keydown"!=t.type||"ArrowDown"==t.key&&!this.open)&&(this.open=!this.open,this.open?this._show():this._hide())}_show(){this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=Number.NaN,this.lastContentY=Number.NaN,this.runPositioning())}_hide(){this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1}_handleClosePop(t){let e=t.composedPath(),s=e[0];Dn.pops.forEach((r=>{const o=e.includes(r),i=e.includes(r.querySelector('[slot="content"]')),n="keep"===ft.getAncestorAttributeValue(s,"data-on-select");"pointerdown"==t.type&&o||"click"==t.type&&(o&&n||!i)||r._hide()}))}connectedCallback(){super.connectedCallback(),0==Dn.pops.size&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop)),Dn.pops.add(this)}disconnectedCallback(){super.disconnectedCallback(),Dn.pops.delete(this),0==Dn.pops.size&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop))}_setUpMenu(t){var e;const s=null==(e=this.popContent)?void 0:e.getBoundingClientRect(),r=this.getBoundingClientRect();if(!this.offsetParent)return;let o=this.offsetParent.getBoundingClientRect(),i=r.left-o.left,n=r.top-o.top,a=i,l=n,c=n-s.height-8,h=i-s.width-16,d=i+r.width+16,p=n+r.height+8;switch(t){case"bottom":l=p;break;case"top":l=c;break;case"left":a=h;break;case"right":a=d}let u=window.innerWidth-d-o.left-s.width-20;u<0&&"right"===t&&(a=h),u<0&&["top","bottom"].includes(t)&&(a=Math.max(a+u,h+r.width)),-o.left-h>20&&"left"===t&&(a=d);let m=window.innerHeight-p-o.top-s.height-20;m<0&&"bottom"===t&&(l=c),m<0&&["left","right"].includes(t)&&(l=Math.max(l+m,c+r.height)),-o.top-c>-20&&"top"===t&&(l=p),this.lastContentX=a,this.lastContentY=l,Object.assign(this.popContent.style,{left:`${a}px`,top:`${l}px`})}render(){return M`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open?"is-open":""}"></slot>`}};Dn.pops=new Set,Dn.styles=[n`:host{display:inline-block;vertical-align:middle}slot[name=content]{background-color:var(--sc-base);position:absolute;z-index:50;display:block;transform:translateY(1rem) scale(.95);opacity:0;pointer-events:none;transition-duration:.15s;transition-timing-function:ease;transition-property:all;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em)}slot[name=content].is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto;transition-property:scale,opacity;transition-timing-function:cubic-bezier(.25,.25,.42,1.225)}:host([shadow=md]) slot[name=content],:host([shadow=true]) slot[name=content],:host([shadow]) slot[name=content]{box-shadow:var(--sc-shadow)}:host([shadow=sm]) slot[name=content]{box-shadow:var(--sc-shadow-sm)}:host([shadow=none]) slot[name=content]{box-shadow:none}:host([shadow=lg]) slot[name=content]{box-shadow:var(--sc-shadow-lg)}:host([inline]){vertical-align:baseline}`],jn([nt()],Dn.prototype,"open",2),jn([lt("slot:not([name=content])")],Dn.prototype,"popBtn",2),jn([lt("slot[name=content]")],Dn.prototype,"popContent",2),jn([it({type:String})],Dn.prototype,"toggle",2),jn([it({type:Boolean,reflect:!0})],Dn.prototype,"inline",2),jn([it({type:String,reflect:!0})],Dn.prototype,"shadow",2),jn([it({type:String})],Dn.prototype,"placement",2),Dn=jn([rt(zn)],Dn);try{customElements.define(zn,Dn)}catch(Qa){}var Mn=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Nn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ln(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Mn(e,s,i),i};let In=class extends et{constructor(){super(...arguments),this.label="",this.align="center"}firstUpdated(){var t,e;(this.label||(null==(t=this.slotNodes)?void 0:t.length))&&(null==(e=this.divider)||e.classList.add("has-text"))}render(){return M`<div part="divider"><span class="text">${Ce(this.label)}<slot></slot></span></div>`}};In.styles=[n`:host{--sc-divider-my:0.5rem;--sc-divider-mx:0;--sc-divider-border-width:min(2px, 0.15rem);--sc-divider-border-color:var(--sc-base-200);--sc-divider-border-style:solid;--sc-divider-color:var(--sc-base-500);--sc-divider-ff:var(--sc-font-family-base);--sc-divider-fs:1rem;--sc-divider-fw:var(--sc-font-weight-base);--sc-divider-fst:var(--sc-font-style-base);margin:var(--sc-divider-my) var(--sc-divider-mx);font-size:var(--sc-divider-fs);font-style:var(--sc-divider-fst);font-family:var(--sc-divider-ff);font-weight:var(--sc-divider-fw);color:var(--sc-divider-color);display:block}:host([size="2xs"]){--sc-divider-my:0.35rem;--sc-divider-fs:0.68rem}:host([size=xs]){--sc-divider-my:0.5rem;--sc-divider-fs:0.75rem}:host([size=sm]){--sc-divider-my:0.75rem;--sc-divider-fs:0.875rem}:host([size=md]){--sc-divider-my:1.25rem}:host([size=lg]){--sc-divider-my:1.85rem}:host([size=xl]){--sc-divider-my:2.25rem}:host([size="2xl"]){--sc-divider-my:3.35rem}div{display:flex;align-items:center;width:100%}div:before{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}div:after{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%}:host([align=left]) div:before{display:none}:host([align=right]) div:after{display:none}.text{flex-shrink:0;max-width:80%}.no-text .text{display:none}.has-text{gap:.5rem}`],Nn([pt()],In.prototype,"slotNodes",2),Nn([lt("div")],In.prototype,"divider",2),Nn([it({type:String})],In.prototype,"label",2),Nn([it({type:String,reflect:!0})],In.prototype,"size",2),Nn([it({type:String,reflect:!0})],In.prototype,"align",2),In=Nn([rt("sonic-divider")],In);try{customElements.define("sonic-divider",In)}catch(Qa){}var Fn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor;const Tn="sonic-card-header-description";let Rn=class extends et{render(){return M`<div><slot></slot></div>`}};Rn.styles=[n`div{margin-top:.1em;font-family:var(--sc-font-family-base);font-size:.7em;font-weight:var(--sc-font-style-base)}`],Rn=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Vn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Fn(e,s,i),i})([rt(Tn)],Rn);try{customElements.define(Tn,Rn)}catch(Qa){}var Un=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Bn=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?qn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Un(e,s,i),i};const Hn="sonic-card-header";let Wn=class extends et{render(){return M`<div class="header"><div class="header-content">${Ce(this.label)} ${this.description?M`<sonic-card-header-description>${Ce(this.description)}</sonic-card-header-description>`:""}<slot></slot></div><slot name="suffix"></slot></div>`}};Wn.styles=[n`:host{--sc-card-header-mb:1.25rem;--sc-card-header-font-size:1.875rem;--sc-card-header-font-weight:var(--sc-headings-font-weight);--sc-card-header-font-style:var(--sc-headings-font-style);--sc-card-header-family:var(--sc-headings-font-family);--sc-card-header-line-height:var(--sc-headings-line-height)}.header{display:flex;align-items:flex-start;gap:.5em 1em;margin-bottom:var(--sc-card-header-mb);line-height:var(--sc-card-header-line-height);font-family:var(--sc-card-header-font-family);font-size:var(--sc-card-header-font-size);font-style:var(--sc-card-header-font-style);font-weight:var(--sc-card-header-font-weight)}.header-content{flex-grow:1}slot[name=suffix]{flex-shrink:0}`],Bn([it()],Wn.prototype,"label",2),Bn([it()],Wn.prototype,"description",2),Wn=Bn([rt(Hn)],Wn);try{customElements.define(Hn,Wn)}catch(Qa){}var Kn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor;const Yn="sonic-card-main";let Qn=class extends et{render(){return M`<div><slot></slot></div>`}};Qn=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Zn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Kn(e,s,i),i})([rt(Yn)],Qn);try{customElements.define(Yn,Qn)}catch(Qa){}var Gn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor;const Xn="sonic-card-footer";let ta=class extends et{render(){return M`<slot></slot>`}};ta=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Jn(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Gn(e,s,i),i})([rt(Xn)],ta);try{customElements.define(Xn,ta)}catch(Qa){}var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ra=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?sa(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ea(e,s,i),i};const oa="sonic-card";let ia=class extends et{constructor(){super(...arguments),this.type="default"}render(){return M`<div part="card" class="card"><slot></slot></div>`}};ia.styles=[n`:host{--sc-card-padding:1.5rem;--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base);--sc-card-rounded:var(--sc-rounded-lg);--sc-card-shadow:var(--sc-shadow-lg)}.card{padding:var(--sc-card-padding);background-color:var(--sc-card-bg);border-radius:var(--sc-card-rounded);box-shadow:var(--sc-card-shadow);color:var(--sc-card-color)}:host([type=primary]){--sc-card-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-card-color:var(--sc-warning-content);--sc-card-bg:var(--sc-warning)}:host([type=danger]){--sc-card-color:var(--sc-danger-content);--sc-card-bg:var(--sc-danger)}:host([type=info]){--sc-card-color:var(--sc-info-content);--sc-card-bg:var(--sc-info)}:host([type=success]){--sc-card-color:var(--sc-success-content);--sc-card-bg:var(--sc-success)}:host([type=light]){--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base-100)}:host([type=neutral]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-content)}:host([type=invert]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-900)}`],ra([it({type:String,reflect:!0})],ia.prototype,"type",2),ia=ra([rt(oa)],ia);try{customElements.define(oa,ia)}catch(Qa){}const na=n`:host{--sc-color:inherit;color:var(--sc-color)}:host([type=primary]){--sc-color:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success)}.inherit-color{color:var(--sc-color)}`;n`:host{--sc-color:inherit;--sc-bg:inherit;color:var(--sc-color);background:var(--sc-bg)}:host([type=primary]){--sc-color:var(--sc-primary-content);--sc-bg:var(--sc-primary)}:host([type=warning]){--sc-color:var(--sc-warning-content);--sc-bg:var(--sc-warning)}:host([type=danger]){--sc-color:var(--sc-danger-content);--sc-bg:var(--sc-danger)}:host([type=info]){--sc-color:var(--sc-info-content);--sc-bg:var(--sc-info)}:host([type=success]){--sc-color:var(--sc-success-content);--sc-bg:var(--sc-success)}.inherit-bg{color:inherit}`;var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor;const ca="sonic-tr";let ha=class extends et{render(){return M`<slot></slot>`}};ha.styles=[na,n`:host{display:table-row}`],ha=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?la(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&aa(e,s,i),i})([rt(ca)],ha);try{customElements.define(ca,ha)}catch(Qa){}var da=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ua=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?pa(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&da(e,s,i),i};const ma="sonic-th";let ga=class extends et{render(){const t={textAlign:this.align,minWidth:this.minWidth};return M`<th part="th" style="${Ve(t)}" colspan="${Fe(this.colSpan)}" rowspan="${Fe(this.rowSpan)}"><slot></slot></th>`}};ga.styles=[na,n`:host{display:contents;background:var(--sc-table-bg);position:sticky;top:0;z-index:20}th{all:inherit;display:table-cell;border-bottom:calc(var(--sc-border-width) * 1.5) solid var(--sc-table-border-color);text-transform:var(--sc-table-th-tt);font-weight:var(--sc-table-th-fw);font-size:var(--sc-table-th-fs);padding:var(--sc-table-th-py) var(--sc-table-th-px)}`],ua([it({type:Number})],ga.prototype,"colSpan",2),ua([it({type:Number})],ga.prototype,"rowSpan",2),ua([it({type:String})],ga.prototype,"align",2),ua([it({type:String})],ga.prototype,"minWidth",2),ga=ua([rt(ma)],ga);try{customElements.define(ma,ga)}catch(Qa){}var ba=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,va=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?fa(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&ba(e,s,i),i};const ya="sonic-td";let wa=class extends et{render(){const t={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth};return M`<td part="td" style="${Ve(t)}" colspan="${Fe(this.colSpan)}" rowspan="${Fe(this.rowSpan)}"><slot></slot></td>`}};wa.styles=[na,n`:host{display:contents}td{all:inherit;display:table-cell;padding:var(--sc-table-td-py) var(--sc-table-td-px)}`],va([it({type:Number})],wa.prototype,"colSpan",2),va([it({type:Number})],wa.prototype,"rowSpan",2),va([it({type:String})],wa.prototype,"align",2),va([it({type:String})],wa.prototype,"vAlign",2),va([it({type:String})],wa.prototype,"minWidth",2),wa=va([rt(ya)],wa);try{customElements.define(ya,wa)}catch(Qa){}var xa=Object.defineProperty,_a=Object.getOwnPropertyDescriptor;const ka="sonic-thead";let Aa=class extends et{render(){return M`<slot></slot>`}};Aa.styles=[n`:host{display:table-header-group}`],Aa=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?_a(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&xa(e,s,i),i})([rt(ka)],Aa);try{customElements.define(ka,Aa)}catch(Qa){}var Pa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor;const $a="sonic-tbody";let Sa=class extends et{render(){return M`<tbody><slot></slot></tbody>`}};Sa.styles=[n`:host{display:table-row-group}::slotted(sonic-tr:nth-child(odd)){background:var(--sc-base-50)}::slotted(sonic-tr:hover){background:var(--sc-base-100)}::slotted(sonic-tr:not(:last-child)){border-bottom:var(--sc-form-border-width) solid var(--sc-base-200)!important}`],Sa=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ca(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Pa(e,s,i),i})([rt($a)],Sa);try{customElements.define($a,Sa)}catch(Qa){}var Oa=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor;const ja="sonic-tfoot";let za=class extends et{render(){return M`<tfoot><slot></slot></tfoot>`}};za.styles=[n`:host{display:contents}`],za=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ea(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Oa(e,s,i),i})([rt(ja)],za);try{customElements.define(ja,za)}catch(Qa){}var Da=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor;const La="sonic-caption";let Na=class extends et{render(){return M`<slot></slot>`}};Na.styles=[n`:host{display:table-caption;font-size:.75rem;color:var(--sc-table-caption-color);padding:var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py))}`],Na=((t,e,s,r)=>{for(var o,i=r>1?void 0:r?Ma(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Da(e,s,i),i})([rt(La)],Na);try{customElements.define(La,Na)}catch(Qa){}var Ia=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,Va=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?Fa(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ia(e,s,i),i};const Ta="sonic-table";let Ra=class extends et{constructor(){super(...arguments),this.striped=!1,this.sticky=!1,this.bordered=!1,this.hover=!1}render(){const t={maxHeight:this.maxHeight};return M`<div class="table-container custom-scroll" style="${Ve(t)}"><div class="table" ?striped="${this.striped}" ?hover="${this.hover}" ?sticky="${this.sticky}"><slot></slot></div></div>`}};Ra.styles=[Te,as,n`:host{--sc-table-fw:var(--sc-font-weight-base);--sc-table-fst:var(--sc-font-style-base);--sc-table-fs:1rem;--sc-table-border-color:var(--sc-base-200);--sc-table-caption-color:var(--sc-base-400);--sc-table-bg:var(--sc-base);--sc-table-th-fs:.85em;--sc-table-th-fw:bold;--sc-table-th-tt:uppercase;--sc-table-th-px:var(--sc-table-td-px);--sc-table-th-py:calc(1.8 * var(--sc-table-td-py) );--sc-table-td-px:.5em;--sc-table-td-py:.5em;display:block}:host([maxHeight]) .table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.table{width:100%;display:table;box-sizing:border-box}:host([bordered]) .table-container{border:var(--sc-border-width) solid var(--sc-table-border-color)!important}`],Va([it({type:String,reflect:!0})],Ra.prototype,"size",2),Va([it({type:Boolean,reflect:!0})],Ra.prototype,"striped",2),Va([it({type:Boolean,reflect:!0})],Ra.prototype,"sticky",2),Va([it({type:Boolean,reflect:!0})],Ra.prototype,"bordered",2),Va([it({type:Boolean,reflect:!0})],Ra.prototype,"hover",2),Va([it({type:String})],Ra.prototype,"maxHeight",2),Ra=Va([rt(Ta)],Ra);try{customElements.define(Ta,Ra)}catch(Qa){}var Ua=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Ba=(t,e,s,r)=>{for(var o,i=r>1?void 0:r?qa(e,s):e,n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r?o(e,s,i):o(i))||i);return r&&i&&Ua(e,s,i),i};let Ha=class extends(Fr(et)){constructor(){super(...arguments),this.key="",this.action=null}connectedCallback(){var t;const e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js?render="+this.key,document.head.appendChild(e),super.connectedCallback(),this.formPublisher=xs.get(null!=(t=this.getAncestorAttributeValue("headersDataProvider"))?t:this.getAncestorAttributeValue("formDataProvider")),this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign((t=>{"request_token"==t&&this.requestToken()}))}requestToken(){var t,e,s,r;const o=window;let i=(null!=(s=null!=(e=this.action)?e:null==(t=this.formPublisher.captchaAction)?void 0:t.get())?s:"submit").replace(/[^\w_\/]/g,"_"),n=(null!=(r=this.formPublisher.captchaMethod.get())?r:"POST").toUpperCase();delete this.formPublisher.captchaAction,delete this.formPublisher.captchaMethod,o.grecaptcha.ready((()=>{o.grecaptcha.execute(this.key,{action:n+"//"+i}).then((t=>{this.formPublisher.captchaToken=t}))}))}render(){return M`<slot></slot>`}};Ba([it()],Ha.prototype,"key",2),Ba([it()],Ha.prototype,"action",2),Ha=Ba([rt("sonic-captcha")],Ha);let Wa=window;Wa.SonicPublisherManager||(Wa.SonicPublisherManager=gt),Wa.SonicDataBindObserver||(Wa.SonicDataBindObserver=kt);const Ka=Ye,Za=un;let Ya=window;Ya["concorde-components"]=Ya["concorde-components"]||{},Ya["concorde-components"]={SonicToast:Ka,SonicModal:Za}}));